/* ?????????? ????? (ARTISTA STYLE) */
:root {
    --bg-dark: #1f1f1f;
    --bg-beige: #f9f7f2;
    --text-dark: #2c2c2c;
    --text-grey: #666666;
    --text-light: #ffffff;
    --accent-gold: #c6a87c;
}

/* ????? ?????? BOOTSTRAP ??? ?????? */
a {
    text-decoration: none;
    color: inherit;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    background-color: var(--bg-beige);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1; /* ????????? ????? ? ???? */
}

/* ??????????? */
h1, h2, h3, h4, h5, .serif-font {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    color: var(--text-dark);
}

/* =========================================
   HEADER STYLES (?????)
   ========================================= */
.site-header {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-top: 20px;
    border-bottom: 1px solid #333;
}

/* ??????? */
.brand-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-light) !important; /* ?????: ??????? ????? */
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.6rem;
    text-align: center;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #888;
    margin-top: -5px;
    display: block;
}

/* ?????? ???? ????????? */
.nav-link-custom {
    color: #ccc !important; /* ????? */
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s;
}

    .nav-link-custom:hover {
        color: var(--accent-gold) !important;
    }

/* ?????? ???????? ? ????? */
.header-social a {
    color: #aaa !important;
    margin-right: 15px;
    font-size: 1.1rem;
    transition: 0.3s;
}

    .header-social a:hover {
        color: var(--accent-gold) !important;
    }

/* =========================================
   FOOTER STYLES (??????)
   ========================================= */
.site-footer {
    background-color: var(--bg-dark);
    color: #b0b0b0;
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 1px solid #333;
    width: 100%;
    margin-top: auto;
}

.footer-title {
    color: #fff;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

/* ?????? ? ?????? */
.site-footer a,
.site-footer .footer-link {
    color: #b0b0b0 !important; /* ????????????? ????????????? ????? */
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 8px;
}

    .site-footer a:hover {
        color: var(--accent-gold) !important;
        padding-left: 5px; /* ?????? ?????? */
    }

    /* ??????????? ??? Email ? ???????? (??? ????? ??????) */
    .site-footer a[href^="mailto:"],
    .site-footer a[href^="tel:"] {
        color: #b0b0b0 !important;
        display: inline-block; /* ????? ?? ???????????? ??????? */
    }

/* ?????? ? ?????? */
.footer-social-icon {
    display: inline-block !important;
    margin-right: 15px;
    font-size: 1.2rem;
}


/* =========================================
   HERO SECTION
   ========================================= */
.hero-main {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: url('https://images.unsplash.com/photo-1544967082-d9d25d867d66?q=80&w=2000&auto=format&fit=crop') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 400;
    color: #f0f0f0;
}

.btn-hero {
    display: inline-block;
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    transition: 0.3s;
    margin: 10px;
}

.btn-hero-white {
    background: white;
    color: black !important;
    border: 2px solid white;
}

    .btn-hero-white:hover {
        background: #e0e0e0;
        border-color: #e0e0e0;
        color: black !important;
    }

.btn-hero-outline {
    background: transparent;
    color: white !important;
    border: 2px solid white;
}

    .btn-hero-outline:hover {
        background: white;
        color: black !important;
    }

/* =========================================
   COMPONENTS (CARDS, FEATURES)
   ========================================= */
/* Event Card */
.event-card {
    background: transparent;
    border: none;
    margin-bottom: 40px;
    transition: transform 0.3s;
}

    .event-card:hover {
        transform: translateY(-5px);
    }

.event-thumb {
    position: relative;
    height: 250px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

    .event-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

.event-card:hover .event-thumb img {
    transform: scale(1.05);
}

.event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    color: black;
    padding: 5px 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.event-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.2;
    color: var(--text-dark) !important;
}

.event-meta {
    font-size: 0.9rem;
    color: var(--text-grey);
    display: flex;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Info Card */
.info-card {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    color: white !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    text-decoration: none;
}

    .info-card img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

    .info-card:hover img {
        transform: scale(1.1);
    }

.info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
}

.info-content {
    position: relative;
    z-index: 2;
}

.info-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: white !important;
}

.info-desc {
    color: #ddd;
    font-size: 0.95rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Features */
.feature-box {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--text-grey);
    line-height: 1.6;
}

/* Speaker */
.speaker-card {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border: 1px solid #eee;
    height: 100%;
    transition: 0.3s;
}

    .speaker-card:hover {
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border-color: transparent;
    }

.speaker-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 3px solid var(--bg-beige);
}

.hero-main-logo {
    display: block;
    width: 350px;
    height: auto;
    margin: 0 auto 10px auto;
    object-fit: contain;
    background: transparent;
}

.hero-main-logo2 {
    display: block;
    width: 750px;
    height: auto;
    margin: 0 auto 10px auto;
    object-fit: contain;
    background: transparent;
}

.hero-title {
    margin-top: 0;
}

.course-page-wrapper {
    background-color: #f5f1e9 !important;
    min-height: 100vh;
    padding-top: 20px;
}

.sd-card {
    background: #fff;
    border-radius: 4px; /* На скринах скругление почти незаметно */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sd-header {
    background: #d98c53;
    color: #fff;
    padding: 8px 20px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
}

.sd-body {
    padding: 20px;
    flex-grow: 1;
}

.sd-flex-row {
    display: flex;
    gap: 20px;
}

/* Фиксируем ширину картинки, чтобы она не съедала всё место */
.sd-col-img {
    flex: 0 0 180px; /* Уменьшил ширину картинки для 2-х колонок */
}

    .sd-col-img img {
        width: 100%;
        height: 260px; /* Высота под пропорции скрина */
        object-fit: cover;
        border-radius: 4px;
    }

.sd-col-content {
    flex: 1;
}

.sd-accent {
    color: #d98c53;
    font-weight: 600;
}

.sd-date {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.sd-address {
    color: #d98c53;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.sd-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.4rem !important; /* Уменьшил размер заголовка */
    line-height: 1.2 !important;
    color: #2c2c2c !important;
    margin-bottom: 15px !important;
    text-transform: uppercase;
}

.sd-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
    /* Ограничиваем текст, чтобы карточки были одной высоты */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Сетка кнопок */
.sd-purchase-grid {
    display: flex;
    gap: 20px;
}

.sd-price {
    font-size: 1.4rem;
    font-weight: 500;
}

.sd-sub {
    font-size: 0.75rem;
    color: #888;
}

.sd-promo {
    font-size: 0.7rem;
    color: #d98c53;
    margin-bottom: 8px;
}

.sd-btn {
    display: inline-block;
    background: #d98c53;
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.sd-footer {
    padding: 15px 20px;
    border-top: 1px solid #f2f2f2;
    background: #fff;
}

.sd-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.sd-lecturer-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sd-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.sd-bio {
    font-size: 0.8rem;
    color: #888;
}

@media (max-width: 1200px) {
    .sd-flex-row {
        flex-direction: column;
    }

    .sd-col-img {
        flex: 0 0 auto;
        width: 100%;
    }

        .sd-col-img img {
            height: 200px;
        }
}