/* Keiro — Pole Dance. Палитра из логотипа. */

:root {
    --gold: #C4A35A;
    --pink: #D4687A;
    --black: #1A1A1A;
    --cream: #F5F0E8;
    --bg: var(--black);
    --surface: #252525;
    --surface2: #2e2e2e;
    --text: var(--cream);
    --muted: #a8a29e;
    --accent: var(--gold);
    --accent-hover: var(--pink);
    --radius: 12px;
    --font: "Montserrat", "Jost", system-ui, sans-serif;
    --font-display: "Cormorant Garamond", serif;
    --container-max: 1200px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    display: flex;
    flex-direction: column;
}

.header {
    background: var(--surface);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 1.25rem;
}

.nav {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
}

.theme-tumbler {
    margin-left: auto;
    display: flex;
    align-items: center;
    background: var(--surface2);
    border-radius: 999px;
    padding: 4px;
    gap: 0;
}

.theme-tumbler-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.theme-tumbler-btn:hover {
    color: var(--text);
}

.theme-tumbler-btn.active {
    background: var(--accent);
    color: var(--black);
}

.theme-tumbler .theme-icon {
    display: block;
}

.logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.02em;
    line-height: 1;
    min-width: 1.1em;
    text-align: center;
}

.logo-wrap:hover .logo {
    opacity: 0.9;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

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

.main {
    flex: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
    width: 100%;
}

/* Hero */
.hero {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    margin: 0 -1.25rem 2rem;
    background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
    border-radius: var(--radius);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 600;
    margin: 0 0 0.5rem;
    letter-spacing: 0.02em;
    color: var(--text);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--accent);
    margin: 0 0 1.5rem;
    letter-spacing: 0.05em;
}

.hero-cta {
    display: inline-block;
    padding: 0.9rem 1.75rem;
    background: var(--gold);
    color: var(--black);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.2s, color 0.2s;
}

.hero-cta:hover {
    background: var(--pink);
    color: #fff;
}

/* Intro & content */
.intro {
    margin-bottom: 2rem;
}

.main-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.main .content {
    color: var(--muted);
    margin: 0 0 1.25rem;
}

.main .content-lead {
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.main .content:last-child {
    margin-bottom: 0;
}

.main .error {
    color: var(--pink);
}

/* Quick links */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* Buttons: золотой фон, чёрный текст; hover — розовый, белый */
.btn {
    display: inline-block;
    padding: 0.65rem 1.35rem;
    background: var(--gold);
    color: var(--black);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn:hover {
    background: var(--pink);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-outline:hover {
    background: var(--pink);
    color: #fff;
    border-color: var(--pink);
}

.btn-telegram {
    margin-top: 1rem;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 1.5rem;
}

/* Schedule */
.schedule-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.schedule-card {
    transition: border-color 0.2s;
}

.schedule-card:hover {
    border-color: rgba(196, 163, 90, 0.4);
}

.schedule-time {
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.schedule-style {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.schedule-place {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

.schedule-place-link {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid rgba(196, 163, 90, 0.4);
    transition: color 0.2s, border-color 0.2s;
}

.schedule-place-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Прайс-лист в разделе «Расписание» */
.schedule-price-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.schedule-price-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
}
.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 400px;
}
.price-list-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 1rem;
}
.price-list-item:last-child {
    border-bottom: none;
}

/* About page */
.about-layout {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.about-photo {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 3/4;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.about-stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1.2;
}

.about-stat-label {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

.about-block {
    margin-bottom: 2rem;
}

.about-block-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 1rem;
}

.about-timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.about-timeline-time {
    font-weight: 600;
    color: var(--gold);
    font-size: 1rem;
}

.about-why-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.about-why-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.about-why-title {
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.35rem;
}

.about-why-text {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0;
}

.about-cta-block {
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: 2rem;
}

.about-cta-block .btn {
    padding: 0.9rem 1.75rem;
    font-size: 1.05rem;
}

/* Частые вопросы (FAQ) */
.faq-page {
    max-width: 720px;
    margin: 0 auto;
}

.faq-section {
    margin-top: 2.25rem;
}

.faq-section:first-of-type {
    margin-top: 1rem;
}

.faq-section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.faq-item {
    background: var(--surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--gold);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    margin: 0;
    text-align: left;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.faq-q:hover {
    background: rgba(196, 163, 90, 0.08);
}

.faq-q:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.faq-q-text {
    flex: 1;
    line-height: 1.45;
}

.faq-q-icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(196, 163, 90, 0.15);
    color: var(--gold);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.3s ease, background 0.2s;
}

.faq-item.is-open .faq-q-icon {
    transform: rotate(45deg);
    background: rgba(196, 163, 90, 0.25);
}

.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-a {
    grid-template-rows: 1fr;
}

.faq-a-inner {
    overflow: hidden;
    min-height: 0;
}

.faq-a-body {
    padding: 0 1.1rem 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-answer-p {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.65;
}

.faq-answer-p:first-child {
    margin-top: 0.85rem;
}

.faq-cta {
    margin-top: 3rem;
}

.faq-cta .hero-cta {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
}

/* Contact: иконки контактов */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.25rem 0;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s, background 0.2s;
}

.contact-link:hover {
    border-color: var(--gold);
    background: rgba(196, 163, 90, 0.1);
}

.contact-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Awards / Достижения */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.award-card {
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.award-card:hover {
    border-color: rgba(196, 163, 90, 0.4);
    transform: translateY(-2px);
}

.award-card-image-wrap {
    width: 100%;
    margin: -1rem -1rem 0.75rem -1rem;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.15);
}

.award-card-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
}

.award-year {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.award-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.award-desc {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

/* Achievement sections */
.achievement-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.achievement-section:first-of-type {
    margin-top: 1rem;
    padding-top: 0;
    border-top: none;
}

.achievement-section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
}

.achievement-block {
    margin-bottom: 1.5rem;
}

.achievement-block:last-child {
    margin-bottom: 0;
}

.achievement-category {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.5rem;
}

.achievement-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 0.5rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.achievement-list li {
    padding: 0.2em 0;
    padding-left: 1em;
    position: relative;
}

.achievement-list li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.achievement-list-full {
    margin-left: 0;
}

.achievement-list-full li {
    padding-left: 1.2em;
}

.achievement-list-full li::before {
    content: "—";
}

.achievement-judge {
    font-size: 1rem;
    color: var(--text);
    margin: 0;
}

/* Media: video & photo */
.media-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.media-section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
    color: var(--text);
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.video-item {
    max-width: 640px;
}

.video-item-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
    color: var(--muted);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--surface);
    border-radius: var(--radius);
}

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

.video-wrapper video {
    object-fit: contain;
    background: #000;
}

.video-placeholder .video-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 0;
    height: 200px;
}

.video-placeholder-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.photo-item {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

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

.photo-item figcaption {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.photo-item-zoom {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    font: inherit;
    color: inherit;
    border-radius: 0;
}

.photo-item-zoom:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.photo-item-zoom img {
    vertical-align: middle;
}

/* Лайтбокс: полный кадр без обрезки (object-fit: contain) */
.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.photo-lightbox[hidden] {
    display: none !important;
}

.photo-lightbox.is-open {
    display: flex;
}

.photo-lightbox-backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(0, 0, 0, 0.88);
    cursor: pointer;
}

.photo-lightbox-panel {
    position: relative;
    z-index: 1;
    max-width: min(100vw - 2rem, 1600px);
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.photo-lightbox-panel > * {
    pointer-events: auto;
}

.photo-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 5rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.photo-lightbox-caption {
    margin: 0.75rem 0 0;
    max-width: 42rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.photo-lightbox-caption[hidden] {
    display: none;
}

.photo-lightbox-close {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(40, 38, 42, 0.95);
    color: #ebe8e6;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    transition: background 0.2s, color 0.2s;
}

.photo-lightbox-close:hover {
    background: rgba(60, 56, 64, 0.98);
    color: var(--gold);
}

.photo-lightbox-close:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .photo-lightbox-close {
        top: -2.5rem;
        right: 0;
    }
}

/* Footer */
.footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 0.85rem;
}

.footer p {
    margin: 0;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.footer-brand:hover .logo {
    opacity: 0.9;
}

/* Буква K как в шапке (Cormorant Garamond, золото) */
.footer .logo {
    font-size: 1.35rem;
}

.footer-text {
    color: inherit;
}

/* Responsive: планшет 768–1024px, десктоп >1024px */
@media (min-width: 768px) {
    html {
        font-size: 17px;
    }
    .about-layout {
        grid-template-columns: 320px 1fr;
        align-items: start;
    }
    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    .about-timeline-item {
        grid-template-columns: 120px 1fr;
    }
}

@media (min-width: 1024px) {
    html {
        font-size: 18px;
    }
    .header {
        padding: 0.9rem 1.5rem;
    }
    .main {
        padding: 2.5rem 1.5rem 3.5rem;
    }
}

@media (max-width: 767px) {
    .nav {
        gap: 1rem;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .schedule-cards {
        grid-template-columns: 1fr;
    }
    .awards-grid {
        grid-template-columns: 1fr;
    }
    .about-why-card {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 600px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .photo-item img {
        height: 160px;
    }
}

/* Theme switcher (footer) */
.theme-switcher {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
}

.theme-switcher-label {
    color: var(--muted);
    margin-right: 0.5rem;
}

.theme-switcher .theme-link {
    color: var(--muted);
    text-decoration: none;
}

.theme-switcher .theme-link:hover,
.theme-switcher .theme-link.active {
    color: var(--accent);
}

/* Login screen (admin) */
.login-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 100;
}

.login-screen[hidden] {
    display: none;
}

.login-screen-box {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    width: 100%;
    max-width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.login-screen-title {
    margin: 0 0 1.25rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
}

.login-screen-form input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: var(--surface2);
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.login-screen-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.login-screen-error {
    margin: 0 0 0.75rem;
    color: var(--pink);
    font-size: 0.9rem;
}

.login-screen-error[hidden] {
    display: none;
}

.btn-login-submit {
    width: 100%;
    padding: 0.65rem;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.btn-login-submit:hover {
    background: var(--pink);
    color: #fff;
}

/* Plyr */
.plyr-wrap {
    position: relative;
}

.plyr__control--overlaid {
    background: var(--accent);
}
