/* ===== Палитра по референсам: бежево-розовый фон, коричневый текст, без белого и чёрного ===== */
:root {
    /* Фон: светло-светло-бежевый, бежево-розовый — белого нет */
    --color-bg: #f6f2ec;
    --color-bg-alt: #efeae3;
    --color-surface: #faf6f1;
    --color-surface-hover: #f5efe8;
    /* Текст: коричневые оттенки вместо чёрного */
    --color-text: #3d3229;
    --color-text-muted: #6b5c52;
    /* Акценты: тёплый коричневый и приглушённый золотисто-оливковый */
    --color-primary: #5c4a3d;
    --color-primary-dark: #4a3c30;
    --color-primary-light: #6b5848;
    --color-primary-soft: rgba(92, 74, 61, 0.1);
    --color-accent: #7d6b4a;
    --color-accent-alt: #6b5c42;
    --color-accent-soft: rgba(125, 107, 74, 0.12);
    /* Границы: тёплые бежево-коричневые */
    --color-border: #e5ddd4;
    --color-border-strong: #d4c9bc;
    /* Градиенты и тени — в коричневых тонах, без чёрного */
    --gradient-primary: linear-gradient(135deg, #5c4a3d 0%, #6b5848 100%);
    --gradient-accent: linear-gradient(135deg, #7d6b4a 0%, #8f7a58 100%);
    --gradient-hero: linear-gradient(180deg, rgba(239, 234, 227, 0.7) 0%, transparent 50%);
    --shadow-sm: 0 1px 2px rgba(61, 50, 41, 0.05);
    --shadow-md: 0 4px 12px rgba(61, 50, 41, 0.06), 0 1px 3px rgba(61, 50, 41, 0.04);
    --shadow-lg: 0 12px 28px rgba(61, 50, 41, 0.07), 0 4px 12px rgba(61, 50, 41, 0.04);
    --shadow-card-hover: 0 20px 40px rgba(61, 50, 41, 0.06), 0 8px 16px rgba(61, 50, 41, 0.05);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lora', 'Georgia', serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.75;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ===== Фон: бежево-розовые блики, без белых полей ===== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(210, 190, 170, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(180, 165, 145, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 60%, rgba(200, 180, 160, 0.06) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    animation: float 25s ease-in-out infinite;
}

.glow-orb-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(200, 180, 160, 0.15) 0%, transparent 70%);
    top: -180px;
    left: -120px;
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(180, 165, 140, 0.12) 0%, transparent 70%);
    bottom: -100px;
    right: -80px;
    animation-delay: 5s;
}

.glow-orb-3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(190, 175, 155, 0.1) 0%, transparent 70%);
    top: 45%;
    right: 5%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.98); }
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(250, 246, 241, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.nav.scrolled {
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    filter: brightness(1.05) contrast(0.95) saturate(0.85) sepia(0.35) hue-rotate(-10deg);
    transition: var(--transition);
}

.nav-logo:hover {
    filter: brightness(1.12) contrast(0.96) saturate(0.9) sepia(0.4) hue-rotate(-5deg);
}

.logo-img {
    height: 75px;
    width: auto;
    border-radius: 36px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: block;
}

.nav-logo:hover .logo-img {
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: var(--transition);
}

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

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

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.hero-flourish {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.1s forwards;
}

.hero-flourish__svg {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-line.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--gradient-primary);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Lora', 'Georgia', serif;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #faf7f2;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.btn-secondary:hover {
    background: var(--color-primary-soft);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ===== Sections ===== */
.section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: var(--color-bg-alt);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== Content Cards ===== */
.content-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.content-card:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-lg);
}

.lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 2rem;
    font-weight: 300;
}

.content-card p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* ===== Info Grid ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    padding: 2rem;
    background: var(--color-primary-soft);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    transition: var(--transition);
    text-align: center;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(92, 74, 61, 0.25);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    position: relative;
}

.info-icon-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
    opacity: 0.95;
}

.info-card:hover .info-icon-img {
    transform: scale(1.05);
    opacity: 1;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.info-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ===== Values Grid ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    padding: 2rem;
    background: var(--color-primary-soft);
    border-left: 4px solid var(--color-primary);
    border-radius: 16px;
    transition: var(--transition);
}

.value-item:hover {
    background: rgba(92, 74, 61, 0.12);
    transform: translateX(6px);
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.value-item p {
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ===== Courses Grid ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
    border-radius: 20px 20px 0 0;
}

.course-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-card-hover);
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.course-emoji {
    font-size: 3rem;
}

.course-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: var(--transition);
}

.course-card:hover .course-icon-img {
    transform: scale(1.08);
}

.modal-course-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-course-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-course-icon .course-emoji {
    font-size: 2.5rem;
}

.modal-course-icon .course-icon-img {
    width: 50px;
    height: 50px;
}

.course-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.course-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.course-bullets {
    list-style: none;
    margin-bottom: 1.5rem;
}

.course-bullets li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-muted);
}

.course-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.course-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.course-tag {
    padding: 0.35rem 0.9rem;
    background: var(--color-primary-soft);
    border: 1px solid rgba(92, 74, 61, 0.3);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--color-primary);
}

.course-note {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--color-accent-soft);
    border-left: 4px solid var(--color-accent);
    border-radius: 12px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ===== Path Timeline ===== */
.path-timeline {
    margin: 3rem 0;
    position: relative;
    padding-left: 2rem;
}

.path-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
}

.path-item {
    position: relative;
    padding: 1.5rem 0 1.5rem 3rem;
    margin-bottom: 1rem;
}

.path-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 2rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: var(--shadow-sm);
    border: 3px solid var(--color-bg);
}

.path-step {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.path-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ===== Callout blocks (light theme) ===== */
.callout-primary {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--color-primary-soft);
    border-left: 4px solid var(--color-primary);
    border-radius: 16px;
}

.callout-primary h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.callout-primary p,
.callout-primary ul {
    color: var(--color-text-muted);
    margin-top: 1rem;
    list-style: none;
    padding-left: 0;
}

.callout-accent {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--color-accent-soft);
    border-left: 4px solid var(--color-accent);
    border-radius: 16px;
}

.callout-accent h3 {
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.callout-accent p,
.callout-accent ul {
    color: var(--color-text-muted);
    margin-top: 1rem;
    list-style: none;
    padding-left: 0;
}

.callout-inline {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--color-primary-soft);
    border-left: 4px solid var(--color-primary);
    border-radius: 12px;
}

.early-bird-badge {
    color: var(--color-accent);
    font-size: 0.9em;
}

.modal-price-line {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.modal-recommendation {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--color-accent-soft);
    border-left: 4px solid var(--color-accent);
    border-radius: 12px;
}

/* ===== Reviews Carousel ===== */
.reviews-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.15rem;
    margin-bottom: 3rem;
    font-style: italic;
}

.carousel {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 80vh;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-border-strong);
    background: rgba(250, 246, 241, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn--prev {
    left: -24px;
}

.carousel-btn--next {
    right: -24px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--color-primary);
    transform: scale(1.25);
}

.carousel-dot:hover {
    background: rgba(92, 74, 61, 0.4);
}

.carousel-counter {
    text-align: center;
    margin-top: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.footer-main {
    text-align: center;
}

.footer-logo {
    display: inline-block;
    filter: brightness(1.05) contrast(0.95) saturate(0.85) sepia(0.35) hue-rotate(-10deg);
}

.logo-img-small {
    height: 75px;
    width: auto;
    border-radius: 36px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    display: block;
}

.footer-text {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.footer-link:hover {
    color: var(--color-primary);
    background: var(--color-primary-soft);
    transform: translateX(4px);
}

.footer-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: var(--transition);
}

.footer-link:hover .footer-icon {
    transform: scale(1.08);
}

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    width: 100%;
}

.footer-copyright p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61, 50, 41, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 1;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.modal-body {
    padding: 3rem;
}

.modal-body h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.modal-body h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    color: var(--color-text);
}

.modal-body p,
.modal-body ul {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
}

.modal-body ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.modal-body ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-paypal {
    background: var(--gradient-accent);
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: #faf7f2;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.scroll-to-top-icon {
    display: block;
    line-height: 1;
}

.scroll-to-top-text {
    display: none;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.2rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }
    
    .logo-img-small {
        height: 50px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(250, 246, 241, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: var(--transition);
        border-bottom: 1px solid var(--color-border);
        z-index: 999;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    .content-card {
        padding: 2rem 1.5rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .info-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }

    .modal-body {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-links {
        gap: 0.75rem;
    }

    .footer-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .carousel {
        max-width: 100%;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-btn--prev {
        left: 8px;
    }

    .carousel-btn--next {
        right: 8px;
    }

    .carousel-viewport {
        border-radius: 16px;
    }

    .carousel-dots {
        gap: 8px;
    }

    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 60px;
        height: 60px;
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.5rem;
    }

    .scroll-to-top-text {
        display: block;
        font-size: 0.7rem;
    }

    .scroll-to-top-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }
}

/* ===== Scroll Animations ===== */
@media (prefers-reduced-motion: no-preference) {
    .content-card,
    .course-card,
    .info-card,
    .value-item {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.8s ease-out forwards;
    }

    .course-card:nth-child(1) { animation-delay: 0.1s; }
    .course-card:nth-child(2) { animation-delay: 0.2s; }
    .course-card:nth-child(3) { animation-delay: 0.3s; }
    .course-card:nth-child(4) { animation-delay: 0.4s; }
    .course-card:nth-child(5) { animation-delay: 0.5s; }
}
