/* ========================================
   OBLAKA LOFT — Mobile-first B&W design
   ======================================== */

:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--black);
    text-decoration: none;
}

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

ul {
    list-style: none;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
}

.logo {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    z-index: 200;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    transition: var(--transition);
    border-radius: 1px;
}

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

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

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

/* ========================================
   MENU OVERLAY
   ======================================== */

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.menu-item {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.menu-overlay.open .menu-item {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation */
.menu-overlay.open .menu-item:nth-child(1) { transition-delay: 0.05s; }
.menu-overlay.open .menu-item:nth-child(2) { transition-delay: 0.08s; }
.menu-overlay.open .menu-item:nth-child(3) { transition-delay: 0.11s; }
.menu-overlay.open .menu-item:nth-child(4) { transition-delay: 0.14s; }
.menu-overlay.open .menu-item:nth-child(5) { transition-delay: 0.17s; }
.menu-overlay.open .menu-item:nth-child(6) { transition-delay: 0.20s; }
.menu-overlay.open .menu-item:nth-child(7) { transition-delay: 0.23s; }
.menu-overlay.open .menu-item:nth-child(8) { transition-delay: 0.26s; }

.menu-item:active {
    background: var(--gray-100);
}

/* ========================================
   CONTENT
   ======================================== */

.content {
    padding-top: 64px;
    min-height: 100vh;
}

/* ========================================
   HERO (index)
   ======================================== */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 40px;
    text-align: center;
}

.hero-logo {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.1;
}

.hero-sub {
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    text-transform: uppercase;
}

.hero-city {
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gray-400);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ========================================
   TICKER (rotating texts on index)
   ======================================== */

.ticker-section {
    padding: 0 20px 40px;
}

.ticker-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px 24px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.25s ease;
}

.ticker-card.ticker-fade {
    opacity: 0;
}

.ticker-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.ticker-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--gray-700);
}

.ticker-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.ticker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
}

.ticker-dot.active {
    background: var(--black);
    transform: scale(1.25);
}

/* ========================================
   QUICK LINKS (index)
   ======================================== */

.quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 20px 40px;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: var(--transition);
}

.quick-link:active {
    background: var(--gray-100);
    transform: scale(0.97);
}

.quick-icon {
    font-size: 1.6rem;
}

/* ========================================
   PAGE SECTIONS
   ======================================== */

.page-section {
    padding: 24px 20px 60px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.page-hint {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 28px;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
}

.divider {
    height: 1px;
    background: var(--gray-200);
    margin: 32px 0;
}

.divider-thick {
    height: 3px;
    background: var(--black);
}

/* ========================================
   SCHEDULE
   ======================================== */

.schedule-block {
    margin-bottom: 16px;
}

.location-label {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.location-sub {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.location-header {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--black);
    margin-bottom: 24px;
}

.schedule-img {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
}

.schedule-link {
    display: block;
}

.schedule-updated {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 12px;
    font-style: italic;
}

/* ========================================
   PRICES
   ======================================== */

.price-block {
    margin-bottom: 16px;
}

.price-img {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
}

/* ========================================
   BOOKING
   ======================================== */

.booking-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 600;
}

.step p {
    font-size: 0.95rem;
    padding-top: 6px;
}

.step a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.booking-fields {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-fields li {
    font-size: 0.9rem;
    padding-left: 16px;
    position: relative;
}

.booking-fields li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gray-400);
}

.contact-alt {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.contact-alt a {
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.qr-img {
    max-width: 240px;
    margin: 16px auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 14px 28px;
    border: 2px solid var(--black);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background: transparent;
    color: var(--black);
}

.btn:active {
    transform: scale(0.97);
}

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

.btn-primary:active {
    background: var(--gray-800);
}

.btn-large {
    display: block;
    width: 100%;
    padding: 18px;
    font-size: 1rem;
}

.cta-block {
    margin-top: 32px;
}

/* ========================================
   CARDS
   ======================================== */

.info-card, .rules-card, .promo-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
}

.info-card h3, .rules-card h3, .promo-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-card p, .rules-card p, .promo-card p {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.65;
}

.info-card .btn {
    margin-top: 16px;
}

.rules-card ul, .promo-card ul {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rules-card li, .promo-card li {
    font-size: 0.9rem;
    color: var(--gray-700);
    padding-left: 20px;
    position: relative;
}

.rules-card li::before, .promo-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-400);
}

.rules-option {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.65;
}

.promo-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
}

/* ========================================
   LOCATION
   ======================================== */

.location-block {
    margin-bottom: 16px;
}

.location-detail {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.location-img {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

/* ========================================
   HALLS
   ======================================== */

.hall-card {
    margin-bottom: 32px;
}

.hall-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.hall-area {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.hall-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.hall-features li {
    font-size: 0.9rem;
    color: var(--gray-700);
    padding-left: 20px;
    position: relative;
}

.hall-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gray-400);
}

.hall-desc {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 16px;
    line-height: 1.65;
}

/* ========================================
   GALLERY
   ======================================== */

.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.gallery-img:active {
    transform: scale(0.97);
}

/* ========================================
   VIDEO PLAYER
   ======================================== */

.video-player {
    margin-bottom: 16px;
}

.video-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.video-player video {
    width: 100%;
    border-radius: var(--radius-sm);
    background: var(--black);
    max-height: 60vh;
}

/* ========================================
   LIGHTBOX
   ======================================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 2rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
    z-index: 301;
}

/* ========================================
   TEACHERS GRID
   ======================================== */

.teachers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.teacher-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.teacher-card strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.teacher-card p {
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.teacher-card a {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ========================================
   DESKTOP (optional polish)
   ======================================== */

@media (min-width: 768px) {
    .content {
        max-width: 540px;
        margin: 0 auto;
    }

    .header {
        padding: 16px calc((100% - 540px) / 2 + 20px);
    }

    .menu-item {
        font-size: 1.6rem;
    }

    .hero-logo {
        font-size: 4rem;
    }

    .quick-links {
        grid-template-columns: repeat(4, 1fr);
    }

    .teachers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
