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

body {
    font-family: 'Inter', sans-serif;
    background-color: #FEFCF8;
    color: #1E1E2A;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 252, 245, 0.92);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #2C2A3A;
    text-decoration: none;
}

.logo span {
    font-weight: 400;
    color: #9B7B5C;
}

/* Десктопное меню - по умолчанию */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: #2C2A3A;
    transition: color 0.2s;
}

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

.nav-cta {
    background: #2C2A3A;
    color: white !important;
    padding: 0.5rem 1.3rem;
    border-radius: 40px;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: #9B7B5C !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #2C2A3A;
}

/* Мобильное меню - ТОЛЬКО на экранах до 900px */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    /* Скрываем обычное меню */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #FEFCF8;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        display: flex !important;
        padding: 2rem;
    }

    /* Когда меню активно - выезжает справа */
    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-cta {
        margin-top: 1rem;
    }

    /* Оверлей (тёмный фон) */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open {
        overflow: hidden;
    }
}


/* Hero Section - остальное без изменений */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img,
.hero-bg picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, rgba(20,18,28,0.65) 0%, rgba(20,18,28,0.25) 55%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    padding-top: 80px;
    padding-bottom: 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero-accent {
    color: #FADCA8;
    border-bottom: 2px solid rgba(250,220,168,0.5);
}

.hero-description {
    font-size: 1.2rem;
    color: #FEF7E6;
    margin-bottom: 2rem;
    max-width: 90%;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: #2C2A3A;
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background: #9B7B5C;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0,0,0,0.25);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #FFFAF0;
    backdrop-filter: blur(4px);
    color: #FFFAF0;
    padding: 0.9rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(255,255,240,0.2);
    border-color: #FADCA8;
    color: #FFF;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section-alt {
    background-color: #F9F6EF;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.3px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6B6B7A;
    max-width: 680px;
    margin: 0 auto 3rem auto;
}

.accent-line {
    width: 60px;
    height: 3px;
    background: #9B7B5C;
    margin: 0 auto 1.5rem auto;
}

/* About Section */
.about-full {
    padding: 0;
    position: relative;
    background: #FEFCF8;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    min-height: 550px;
    align-items: stretch;
}

.about-image {
    flex: 1.1;
    min-width: 40%;
}

.about-image img,
.about-image picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-content {
    flex: 1;
    padding: 4rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FEFCF8;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 1.2rem;
}

.about-content .accent-line-left {
    width: 60px;
    height: 3px;
    background: #9B7B5C;
    margin-bottom: 1.8rem;
}

.about-text {
    font-size: 1rem;
    color: #2D2D3A;
    line-height: 1.6;
}

.about-text p {
    margin-bottom: 1.2rem;
}

.quote {
    font-style: italic;
    border-left: 3px solid #9B7B5C;
    padding-left: 1.2rem;
    margin: 1.5rem 0;
    color: #3C3C4A;
}

/* Lecture Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.lecture-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    cursor: pointer;
}

.lecture-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 36px -12px rgba(0, 0, 0, 0.2);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
    transition: background 0.25s ease;
}

.lecture-card:hover .card-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.2) 100%);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.8rem 2rem 1.8rem;
    width: 100%;
    color: white;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    margin-bottom: 0.6rem;
    color: #E0C8A8;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    min-height: 4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-list {
    list-style: none;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s ease-out, opacity 0.3s ease, margin 0.2s;
    padding-left: 0;
    visibility: hidden;
}

.lecture-card:hover .card-list {
    max-height: 260px;
    opacity: 1;
    visibility: visible;
    margin-top: 1rem;
}

.lecture-card:hover .card-content {
    transform: translateY(-12px);
}

.card-list li {
    font-size: 0.85rem;
    margin-bottom: 0.65rem;
    padding-left: 1rem;
    position: relative;
    font-weight: 400;
    line-height: 1.4;
    color: #F5EFE6;
}

.card-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #E0C8A8;
    font-weight: 500;
}

.format-note {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 40px;
    font-size: 1rem;
    color: #3C3C4A;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.service-text {
    margin-bottom: 1rem;
    color: #5A5A6E;
    line-height: 1.5;
}

.service-list {
    list-style: none;
    margin-top: 1rem;
}

.service-list li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    padding-left: 1.2rem;
    position: relative;
}

.service-list li::before {
    content: "—";
    color: #9B7B5C;
    position: absolute;
    left: 0;
    font-weight: 500;
}

/* Testimonials */
.testimonials-section {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    padding-bottom: 20px;
    margin-bottom: 8px;
    border-radius: 40px;
    width: 100%;
}

.testimonials-section::-webkit-scrollbar {
    display: none;
}

.testimonials-section:active {
    cursor: grabbing;
}

.testimonials-track {
    display: inline-flex;
    gap: 28px;
    padding: 20px 12px 20px 12px;
}

.testimonial-card {
    white-space: normal;
    width: 380px;
    flex-shrink: 0;
    background: rgba(255, 255, 248, 0.95);
    backdrop-filter: blur(2px);
    border-radius: 32px;
    padding: 2rem 1.9rem 1.5rem 1.9rem;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    border: 1px solid rgba(155, 123, 92, 0.2);
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    position: relative;
    min-height: 340px;
    cursor: grab;
}

.testimonial-card:active {
    cursor: grabbing;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 40px -14px rgba(0, 0, 0, 0.2);
    border-color: rgba(155, 123, 92, 0.5);
    background: #FFFFFF;
}

.testimonial-card::before {
    content: "❝";
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 4rem;
    font-family: serif;
    color: #E0C8A8;
    opacity: 0.35;
    line-height: 1;
    pointer-events: none;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.55;
    color: #2C2A3A;
    margin-bottom: 1.5rem;
    font-weight: 450;
    quotes: none;
    position: relative;
    z-index: 1;
    padding-top: 0.6rem;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #9B7B5C;
    text-transform: uppercase;
    border-top: 1px solid rgba(155, 123, 92, 0.25);
    padding-top: 1rem;
    margin-top: 0;
    text-align: right;
    font-style: normal;
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    background: #2C2A3A;
    color: white;
    text-align: center;
    border-radius: 40px;
    margin: 40px 0 60px;
    padding: 4rem 2rem;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.btn-light {
    background: white;
    color: #2C2A3A;
    padding: 0.9rem 2.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-block;
}

.btn-light:hover {
    background: #9B7B5C;
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: 50px 0 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #5A5A6E;
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: #2C2A3A;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #9B7B5C;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .container {
        padding: 0 24px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-container {
        flex-direction: column;
    }

    .about-image {
        min-height: 400px;
        width: 100%;
    }

    .about-content {
        padding: 3rem 2rem;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-content .accent-line-left {
        margin-left: auto;
        margin-right: auto;
    }

    .card-list {
        max-height: 200px;
        opacity: 1;
        visibility: visible;
        margin-top: 1rem;
    }

    .lecture-card:hover .card-content {
        transform: translateY(0);
    }

    .lecture-card .card-content {
        transform: translateY(0);
    }

    .card-list {
        max-height: none;
        opacity: 1;
    }
}

@media (max-width: 700px) {
    .testimonial-card {
        width: 320px;
        padding: 1.5rem 1.5rem 1rem 1.5rem;
        min-height: 300px;
    }

    .testimonial-text {
        font-size: 0.92rem;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section {
        padding: 70px 0;
    }

    .cta-section {
        padding: 2.5rem 1rem;
    }

    .card-title {
        font-size: 1.4rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .testimonials-section,
    .cta-section,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero-overlay,
    .hero-glow,
    .hero-shimmer {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Loading States */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}
