:root {
    --primary: #6a1b9a;
    --primary-dark: #4a148c;
    --secondary: #ff4081;
    --dark: #111;
    --light: #f5f5f5;
    --gray: #888;
    --light-gray: #eee;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --neon-primary: 0 0 10px rgba(106,27,154,0.8), 0 0 20px rgba(106,27,154,0.6), 0 0 30px rgba(106,27,154,0.4);
    --neon-secondary: 0 0 10px rgba(255,64,129,0.8), 0 0 20px rgba(255,64,129,0.6), 0 0 30px rgba(255,64,129,0.4);
    --neon-name: 0 0 15px rgba(255,255,255,0.9), 0 0 30px rgba(255,64,129,0.7), 0 0 45px rgba(255,64,129,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--light);
    background-color: var(--dark);
    line-height: 1.6;
}
h1, h2, h3, h4, h5 { font-family: 'Montserrat', sans-serif; font-weight: 600; margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 60px 0; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--light);
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

/* ===== ЕДИНЫЕ КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: var(--secondary);
    color: #fff;
}
.btn-primary:hover {
    background: #e91e63;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,64,129,0.4);
}
.btn-secondary {
    background: var(--primary);
    color: #fff;
}
.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--neon-primary);
}
.btn-small {
    padding: 8px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    min-width: 0;
    box-sizing: border-box;
}
.btn-small.btn-primary {
    background: var(--secondary);
    color: #fff;
}
.btn-small.btn-primary:hover {
    background: #e91e63;
}
.btn-small.btn-secondary {
    background: var(--primary);
    color: #fff;
}
.btn-small.btn-secondary:hover {
    background: var(--primary-dark);
}
.btn-small.btn-outline {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
}
.btn-small.btn-outline:hover {
    background: var(--secondary);
    color: #fff;
}

/* ===== Значок 18+ ===== */
.age-badge {
    position: fixed;
    top: 12px;
    right: 20px;
    z-index: 9999;
    background: rgba(255,64,129,0.2);
    color: var(--secondary);
    font-weight: 700;
    font-size: 1rem;
    padding: 6px 12px;
    border-radius: 30px;
    border: 2px solid var(--secondary);
    box-shadow: 0 0 15px var(--secondary), 0 0 30px rgba(255,64,129,0.3);
    text-shadow: 0 0 10px var(--secondary);
    pointer-events: none;
    user-select: none;
    backdrop-filter: blur(2px);
    transition: 0.3s;
}
.age-badge:hover { transform: scale(1.05); }

@media (max-width: 768px) {
    .age-badge {
        position: static;
        display: inline-block;
        margin-left: 10px;
        margin-right: auto;
        top: auto;
        right: auto;
        font-size: 0.8rem;
        padding: 4px 10px;
        box-shadow: 0 0 10px rgba(255,64,129,0.3);
    }
    .header-container { flex-wrap: wrap; }
    .mobile-menu-btn { display: block; }
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(17,17,17,0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--light);
    white-space: nowrap;
}
.logo-part1 { color: var(--light); }
.logo-part2 { color: var(--secondary); }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Навигация ===== */
.nav-list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}
.nav-list li { margin-left: 1.2rem; }
.nav-list a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem;
    white-space: nowrap;
}
.nav-list a:hover { color: var(--secondary); }
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}
.nav-list a:hover::after { width: 100%; }
.cart-link { position: relative; }
.cart-count {
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    padding: 1px 7px;
    font-size: 0.75rem;
    margin-left: 3px;
}

.nav__item--dropdown { position: relative; }
.nav__item--dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(8px);
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    z-index: 999;
    border: 1px solid rgba(255, 64, 129, 0.2);
}
.nav__item--dropdown:hover .dropdown,
.nav__item--dropdown.open .dropdown { display: block; }
.dropdown li a {
    display: block;
    padding: 10px 24px;
    font-weight: 400;
    color: var(--light);
    transition: var(--transition);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dropdown li a:hover {
    background: rgba(106, 27, 154, 0.3);
    color: var(--secondary);
    padding-left: 30px;
}
.dropdown li:last-child a { border-bottom: none; }

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: left 0.5s ease;
    }
    .nav-list.active { left: 0; }
    .nav-list li { margin: 12px 0; }
    .nav__item--dropdown .dropdown {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.03);
        padding-left: 1.5rem;
        border: none;
        backdrop-filter: none;
        display: none;
    }
    .nav__item--dropdown.open .dropdown { display: block; }
    .dropdown li a { padding: 8px 20px; font-size: 0.85rem; }
}

/* ===== HERO ===== */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('/images/photo.jpg') center 25%/cover no-repeat;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; text-shadow: 2px 2px 5px rgba(0,0,0,0.5); animation: neonNameGlow 3s ease-in-out infinite; }
@keyframes neonNameGlow {
    0% { text-shadow: 0 0 10px rgba(255,255,255,0.9), 0 0 20px rgba(255,64,129,0.7), 0 0 30px rgba(255,64,129,0.5), -10px 0 40px rgba(255,64,129,0.3); }
    50% { text-shadow: 0 0 10px rgba(255,255,255,0.9), 0 0 20px rgba(255,64,129,0.7), 0 0 30px rgba(255,64,129,0.5), 10px 0 40px rgba(255,64,129,0.3); }
    100% { text-shadow: 0 0 10px rgba(255,255,255,0.9), 0 0 20px rgba(255,64,129,0.7), 0 0 30px rgba(255,64,129,0.5), -10px 0 40px rgba(255,64,129,0.3); }
}
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; color: var(--light-gray); }
.hero-btns { display: flex; justify-content: center; gap: 20px; margin-top: 4rem; }

@media (max-width: 768px) {
    .hero { min-height: 50vh; padding-top: 80px; }
}
@media (max-width: 576px) {
    blockquote { font-size: 1.8rem !important; white-space: nowrap; }
}

/* ===== HERO ГЛАВНОЙ ===== */
.hero-home { padding: 120px 0 80px; background: transparent; display: flex; align-items: flex-start; }
.hero-container { display: flex; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.hero-image { flex: 1; max-width: 400px; }
.hero-image img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.hero-content { flex: 2; }
.hero-specialty { font-size: 1.2rem; color: var(--secondary); margin-bottom: 10px; }
.hero-name { font-family: 'Montserrat', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--light); margin-bottom: 10px; }
.hero-quote { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-style: italic; color: var(--secondary); margin: 20px 0 10px; }
.hero-text { font-size: 1.1rem; color: var(--light-gray); margin-bottom: 15px; }
.hero-approach { font-size: 1rem; color: var(--gray); font-style: italic; margin-bottom: 30px; }
.hero-about h2, .hero-education h2 { font-size: 1.6rem; color: var(--secondary); margin-bottom: 10px; }
.hero-about p { font-size: 1rem; color: var(--light-gray); margin-bottom: 20px; }
.hero-education ul { list-style: none; padding: 0; margin: 0; }
.hero-education ul li { font-size: 0.95rem; color: var(--light-gray); margin-bottom: 10px; padding-left: 20px; position: relative; }
.hero-education ul li::before { content: '•'; position: absolute; left: 0; color: var(--secondary); }
@media (max-width: 768px) {
    .hero-container { flex-direction: column; text-align: center; align-items: center; }
    .hero-image { max-width: 250px; margin-bottom: 20px; }
    .hero-name { font-size: 2rem; }
    .hero-quote { font-size: 1.4rem; }
    .hero-education ul li { text-align: left; padding-left: 25px; }
}

/* ===== СОЦКНОПКИ ===== */
.hero-social { display: flex; gap: 10px; margin-top: 15px; justify-content: center; }
.social-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: var(--light);
    font-size: 1.2rem; transition: var(--transition); text-decoration: none;
}
.social-btn:hover { background: var(--secondary); transform: translateY(-3px); box-shadow: 0 4px 15px rgba(255,64,129,0.4); }

/* ===== НАПРАВЛЕНИЯ ===== */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.direction-link { display: block; text-decoration: none; color: inherit; }
.direction-item {
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}
.direction-img { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.direction-img img { width: 100%; height: 100%; object-fit: cover; }
.direction-text { font-size: 1rem; font-weight: 500; }
.direction-link:hover .direction-item { background: rgba(255,255,255,0.1); transform: translateX(5px); border-color: var(--primary); }

/* ===== КАРТОЧКИ УСЛУГ ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.service-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 8px 25px rgba(255,64,129,0.15);
}
.service-img { width: 100%; height: 150px; border-radius: var(--border-radius); overflow: hidden; margin-bottom: 15px; display: block; }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 { color: var(--light); font-size: 1.1rem; margin-bottom: 0.5rem; }
.service-card h3 a { color: var(--light); }
.service-card h3 a:hover { color: var(--secondary); }
.service-card p { color: var(--light-gray); font-size: 0.9rem; margin-bottom: 1rem; flex: 1; }
.service-price { font-size: 1rem; font-weight: 700; color: var(--secondary); margin-bottom: 1rem; }

/* ===== КАРТОЧКИ КУРСОВ ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.course-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}
.course-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 8px 25px rgba(255,64,129,0.15);
}
.course-img { width: 100%; height: 150px; border-radius: var(--border-radius); overflow: hidden; margin-bottom: 15px; display: block; }
.course-img img { width: 100%; height: 100%; object-fit: cover; }
.course-card h3 { color: var(--light); font-size: 1.1rem; margin-bottom: 10px; }
.course-card h3 a { color: var(--light); }
.course-card h3 a:hover { color: var(--secondary); }
.course-card p { color: var(--light-gray); font-size: 0.9rem; margin-bottom: 15px; flex: 1; }

/* ===== КНОПКИ В КАРТОЧКАХ (2 в ряд, минимальное скругление) ===== */
.course-buttons,
.service-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    box-sizing: border-box;
}
.course-buttons .btn-small,
.service-buttons .btn-small {
    padding: 8px 6px;
    font-size: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    display: block;
    min-width: 0;
    box-sizing: border-box;
}
.course-buttons .btn-small i,
.service-buttons .btn-small i { display: none; }

@media (max-width: 768px) {
    .services-grid, .courses-grid { grid-template-columns: 1fr; max-width: 500px; }
    .course-buttons .btn-small,
    .service-buttons .btn-small { font-size: 0.72rem; padding: 8px 6px; }
}

/* ===== КАРТОЧКИ СТАТЕЙ ===== */
.material-item {
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.material-item:hover { transform: translateY(-5px); border-color: var(--secondary); box-shadow: 0 8px 25px rgba(255,64,129,0.15); }
.material-img { height: 180px; overflow: hidden; }
.material-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.material-item:hover .material-img img { transform: scale(1.05); }
.material-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.material-content h4 { color: var(--light); font-size: 1.2rem; margin-bottom: 0.5rem; }
.material-content p { color: var(--light-gray); font-size: 0.95rem; flex: 1; margin-bottom: 1rem; }
.material-content .btn-small { align-self: flex-start; }

/* ===== КАРТОЧКИ КНИГ ===== */
.book-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.book-card:hover { transform: translateY(-5px); border-color: var(--secondary); box-shadow: 0 8px 25px rgba(255,64,129,0.15); }
.book-cover { height: 200px; overflow: hidden; border-radius: 8px; margin-bottom: 15px; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card h3 { color: var(--light); font-size: 1.2rem; margin-bottom: 0.5rem; }
.book-card p { color: var(--light-gray); font-size: 0.95rem; }
.book-price { font-size: 0.95rem; color: var(--gray); margin: 0.5rem 0 1rem; }
.book-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

/* ===== КАРТОЧКИ ВЕБИНАРОВ ===== */
.webinar-card {
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.webinar-card:hover { transform: translateY(-5px); border-color: var(--secondary); }
.webinar-img { height: 180px; overflow: hidden; }
.webinar-img img { width: 100%; height: 100%; object-fit: cover; }
.webinar-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.webinar-content h3 { color: var(--light); font-size: 1.2rem; margin-bottom: 0.5rem; }
.webinar-content p { color: var(--light-gray); font-size: 0.95rem; flex: 1; margin-bottom: 1rem; }
.webinar-actions { display: flex; gap: 10px; margin-top: auto; }

/* ===== ФОРМА ===== */
.booking-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    padding: 35px 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.1);
}
.booking-form .form-group { margin-bottom: 18px; }
.booking-form label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--light); font-size: 0.95rem; }
.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--border-radius);
    color: var(--light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255,255,255,0.15);
}
.booking-form .checkbox-group { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.booking-form .checkbox-group input { width: auto; margin: 0; }
.booking-form .checkbox-group label { margin: 0; font-weight: 300; font-size: 0.95rem; }
.booking-form .checkbox-group a { color: var(--secondary); text-decoration: underline; }
.btn-submit {
    background: var(--secondary);
    color: #fff;
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    width: 100%;
    text-align: center;
}
.btn-submit:hover { background: #e91e63; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255,64,129,0.4); }

/* ===== ФУТЕР ===== */
footer {
    background: #000;
    padding: 40px 0;
    text-align: center;
    color: var(--gray);
    border-top: 2px solid var(--secondary);
    box-shadow: 0 -5px 20px rgba(255, 64, 129, 0.2);
}
footer .footer-content { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
footer .social-links { display: flex; gap: 15px; justify-content: center; }
footer .social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: var(--primary); color: white;
    border-radius: 50%; font-size: 1.2rem; transition: var(--transition);
    box-shadow: 0 0 10px rgba(106, 27, 154, 0.5);
}
footer .social-links a:hover { background: var(--secondary); transform: translateY(-3px); box-shadow: 0 0 20px rgba(255, 64, 129, 0.7); }

/* ===== ОБЩИЙ АДАПТИВ ===== */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .booking-wrapper { grid-template-columns: 1fr; }
    .book-header { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .booking-form { grid-template-columns: 1fr; }
    .services-grid, .courses-grid, .directions-grid, .materials-grid, .books-grid, .webinars-grid { grid-template-columns: 1fr; }
    .course-buttons, .book-actions, .webinar-actions { align-items: stretch; }
    .booking-container { padding: 25px; }
}