/* ============================================================
   ГЛОБАЛЬНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
    --primary-color: #c76d94;
    --primary-dark: #b55a80;
    --secondary-color: #2c2c2c;
    --background-light: #f9f5f7;
    --text-dark: #2c2c2c;
    --text-muted: #888;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    --header-height: 70px;
    --transition: 0.3s ease;
    --radius: 10px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   СБРОС И БАЗА
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

/* ============================================================
   КОНТЕЙНЕР
   ============================================================ */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================
   ТИПОГРАФИКА
   ============================================================ */
h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.3;
}

h2 {
    font-size: clamp(1.8em, 4vw, 2.4em);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 35px;
}

h3 {
    font-size: 1.2em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.section-padding {
    padding: 80px 0;
}

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

.bg-dark {
    background-color: var(--secondary-color);
    color: #e0e0e0;
}

.bg-dark h2 {
    color: white;
}

.bg-dark p {
    color: #ccc;
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95em;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color var(--transition), color var(--transition),
                transform var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 109, 148, 0.4);
}

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

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.outline-btn {
    background-color: transparent;
    color: white;
    border-color: rgba(255,255,255,0.7);
}

.outline-btn:hover {
    background-color: rgba(255,255,255,0.15);
    border-color: white;
    transform: translateY(-2px);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
header {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.07);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Логотип */
.logo-link {
    text-decoration: none;
    display: block;
}

.logo h1 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin: 0;
    text-align: left;
    font-family: var(--font-heading);
}

.logo p {
    font-size: 0.78em;
    color: var(--text-muted);
    margin-top: -3px;
    text-align: left;
}

/* Десктоп nav */
#mainNav ul {
    display: flex;
    align-items: center;
    gap: 5px;
}

#mainNav ul li a {
    padding: 8px 12px;
    border-radius: 5px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95em;
    transition: color var(--transition), background-color var(--transition);
}

#mainNav ul li a:hover {
    color: var(--primary-color);
    background-color: rgba(199, 109, 148, 0.07);
}

/* Кнопка «Записаться» в nav */
.nav-cta {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 8px 18px !important;
}

.nav-cta:hover {
    background-color: var(--primary-dark) !important;
}

/* Бургер кнопка */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
    flex-shrink: 0;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
    transform-origin: center;
}

/* Анимация бургера → крестик */
.burger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Оверлей фон при открытом мобильном меню */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition);
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
    background: url('assets/images/placeholder_bg.jpg') center / cover no-repeat;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 750px;
    padding: 20px;
}

.hero-content h2 {
    font-size: clamp(2em, 6vw, 3.8em);
    margin-bottom: 18px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content > p {
    font-size: clamp(1em, 2.5vw, 1.2em);
    margin-bottom: 32px;
    opacity: 0.92;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 3;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.about-image {
    flex: 2;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    aspect-ratio: 4/3;
    object-fit: cover;
}

.highlight {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 500;
    padding: 12px 18px;
    border-left: 4px solid var(--primary-color);
    background: rgba(199, 109, 148, 0.06);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 20px 0 !important;
    display: block;
}

/* Бейджи */
.about-badges {
    display: flex;
    gap: 25px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--background-light);
    border-radius: var(--radius);
    padding: 15px 25px;
    border: 2px solid rgba(199, 109, 148, 0.2);
}

.badge-num {
    font-family: var(--font-heading);
    font-size: 2em;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1;
}

.badge span:last-child {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================================
   DIRECTIONS SECTION
   ============================================================ */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.direction-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.direction-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.direction-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
    text-align: center;
}

.card-body h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.25em;
}

.card-body p {
    color: #666;
    font-size: 0.95em;
}

/* ============================================================
   SCHEDULE SECTION
   ============================================================ */
#schedule {
    text-align: center;
}

.schedule-info {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.98em;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}

table th,
table td {
    padding: 15px 18px;
    border: 1px solid #eee;
    text-align: center;
    font-size: 0.95em;
}

table thead {
    background-color: var(--primary-color);
    color: white;
}

table thead th {
    font-weight: 700;
    border-color: rgba(255,255,255,0.2);
}

table tbody tr:nth-child(even) {
    background-color: var(--background-light);
}

table tbody tr:hover {
    background-color: rgba(199, 109, 148, 0.06);
}

table tbody td:first-child {
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

/* ============================================================
   GALLERY / PHOTO SLIDER
   ============================================================ */
.photo-slider {
    max-width: 900px;
    margin: 0 auto 20px auto;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    user-select: none;
    touch-action: pan-y;
}

.slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: #111;
}

.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.slide-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 5;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Стрелки */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
    color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    line-height: 1;
}

.slider-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: 15px; }
.slider-next { right: 15px; }

/* Точки */
.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255,255,255,0.8);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    padding: 0;
}

.slider-dot.active,
.slider-dot:hover {
    background: white;
    transform: scale(1.25);
}

/* ============================================================
   VIDEO STRIP SECTION
   ============================================================ */
#video-strip-section {
    background-color: #fff;
}

.video-strip-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 10px 0 20px;
}

.video-strip {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.video-strip:active {
    cursor: grabbing;
}

.video-strip::-webkit-scrollbar {
    height: 5px;
}

.video-strip::-webkit-scrollbar-track {
    background: transparent;
}

.video-strip::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.strip-content {
    display: flex;
    width: max-content;
    padding: 10px 40px;
    gap: 20px;
}

.video-card {
    flex: 0 0 300px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.video-card p {
    padding: 10px 15px;
    font-size: 0.9em;
    color: var(--text-muted);
    text-align: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #111;
}

.video-wrapper video,
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================================
   CONTACTS SECTION
   ============================================================ */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    padding: 28px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    text-align: center;
    background: rgba(255,255,255,0.05);
    transition: background var(--transition);
}

.contact-item:hover {
    background: rgba(255,255,255,0.1);
}

.contact-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.contact-item h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.contact-item p {
    color: #ccc;
    font-size: 0.95em;
    line-height: 1.6;
}

.contact-item a {
    color: #f0c0d5;
    font-weight: 600;
    transition: color var(--transition);
}

.contact-item a:hover {
    color: white;
}

.contact-item small {
    color: #aaa;
    font-size: 0.85em;
}

.vk-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 9px 22px;
    background: #4C75A3;
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9em;
    transition: background var(--transition), transform var(--transition);
}

.vk-btn:hover {
    background: #3a5f8a;
    transform: translateY(-2px);
}

.call-to-action {
    font-size: 1.15em;
    font-weight: 700;
    color: white;
    text-align: center;
    padding: 20px;
    border: 1px dashed rgba(255,255,255,0.3);
    border-radius: var(--radius);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #1a1a1a;
    color: #888;
    text-align: center;
    padding: 22px 0;
    font-size: 0.88em;
}

/* ============================================================
   АДАПТИВНОСТЬ — ПЛАНШЕТ (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {

    /* Бургер появляется */
    .burger-btn {
        display: flex;
    }

    /* Мобильное меню — выезжает справа */
    #mainNav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(80vw, 320px);
        height: 100vh;
        background: white;
        box-shadow: -5px 0 30px rgba(0,0,0,0.15);
        z-index: 1050;
        display: flex;
        align-items: flex-start;
        padding: calc(var(--header-height) + 20px) 30px 30px;
        transition: right 0.35s ease;
        overflow-y: auto;
    }

    #mainNav.open {
        right: 0;
    }

    #mainNav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        width: 100%;
    }

    #mainNav ul li {
        width: 100%;
    }

    #mainNav ul li a {
        display: block;
        padding: 13px 10px;
        font-size: 1.05em;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
    }

    .nav-cta {
        border-radius: 50px !important;
        text-align: center;
        margin-top: 10px;
        border-bottom: none !important;
        background-color: var(--primary-color) !important;
    }

    /* About */
    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .about-image {
        width: 100%;
    }

    .about-badges {
        justify-content: center;
    }

    /* Секции */
    .section-padding {
        padding: 55px 0;
    }

    /* Видео карточки чуть уже */
    .video-card {
        flex: 0 0 260px;
    }
}

/* ============================================================
   АДАПТИВНОСТЬ — МОБИЛЬНЫЙ (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {

    :root {
        --header-height: 60px;
    }

    /* Hero */
    #hero {
        min-height: 80vh;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 320px;
    }

    /* Badges */
    .about-badges {
        gap: 12px;
    }

    .badge {
        padding: 12px 18px;
        flex: 1 1 80px;
        min-width: 80px;
    }

    /* Слайдер */
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 1em;
    }

    .slider-prev { left: 8px; }
    .slider-next { right: 8px; }

    /* Таблица скролл */
    .table-wrap {
        border-radius: 8px;
    }

    /* Видео полоса */
    .video-card {
        flex: 0 0 230px;
    }

    .strip-content {
        padding: 10px 15px;
        gap: 15px;
    }

    /* Контакты */
    .contact-info {
        grid-template-columns: 1fr;
    }

    /* Секции */
    .section-padding {
        padding: 45px 0;
    }

    h2 {
        margin-bottom: 25px;
    }
}

/* ============================================================
   АДАПТИВНОСТЬ — ОЧЕНЬ МАЛЕНЬКИЙ (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {
    .logo h1 {
        font-size: 1.2em;
    }

    .logo p {
        font-size: 0.7em;
    }

    .badge-num {
        font-size: 1.5em;
    }
}
