/* ======================================================
   KIA ORA — Театр огня · Магнитогорск
   Fiery dark theme design system
   ====================================================== */

:root {
    /* Backgrounds */
    --bg:        #0a0705;
    --bg-2:      #120b07;
    --surface:   #1a120d;
    --surface-2: #221812;
    --line:      rgba(255, 138, 43, 0.14);

    /* Fire palette */
    --fire-1: #ff2d00;
    --fire-2: #ff6b00;
    --fire-3: #ffab00;
    --fire-4: #ffd34e;
    --grad-fire: linear-gradient(120deg, #ff2d00 0%, #ff6b00 45%, #ffab00 100%);

    /* Text */
    --text:  #f6ede4;
    --muted: #bca695;
    --dim:   #8a7867;

    /* Sizing */
    --maxw: 1160px;
    --radius: 18px;
    --radius-sm: 12px;

    /* Shadows / glows */
    --glow: 0 0 40px rgba(255, 107, 0, 0.35);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);

    --font-head: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* subtle warm radial texture layered on the base */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(255, 90, 0, 0.16), transparent 60%),
        radial-gradient(700px 600px at -10% 20%, rgba(255, 45, 0, 0.10), transparent 55%),
        radial-gradient(1000px 800px at 50% 120%, rgba(255, 160, 0, 0.10), transparent 60%);
    z-index: -2;
    pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: 0.4px; }

/* ===== Ember canvas ===== */
#embers {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===== Layout helpers ===== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 780px; }
.section { padding: 92px 0; position: relative; }
.center { text-align: center; }

.eyebrow {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.82rem;
    color: var(--fire-3);
    margin-bottom: 12px;
}
.eyebrow.center { margin-left: auto; margin-right: auto; }

.grad {
    background: var(--grad-fire);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-lead {
    color: var(--muted);
    max-width: 640px;
    font-size: 1.05rem;
    margin-top: 14px;
}
.section-lead.center { margin-left: auto; margin-right: auto; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--fire-2);
    color: #180a00;
    padding: 10px 16px;
    border-radius: 0 0 10px 0;
    z-index: 200;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.95rem;
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
    will-change: transform;
}
.btn-primary {
    background: var(--grad-fire);
    color: #200b00;
    font-weight: 700;
    box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 55px rgba(255, 120, 0, 0.6); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line);
    color: var(--text);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--fire-2); color: var(--fire-3); }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(10, 7, 5, 0.55);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
    background: rgba(10, 7, 5, 0.9);
    border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-flame { font-size: 1.5rem; filter: drop-shadow(0 0 8px rgba(255, 120, 0, 0.7)); }
.logo-text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 2px;
    line-height: 1;
    display: flex;
    flex-direction: column;
}
.logo-text small {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    color: var(--dim);
    text-transform: uppercase;
    margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
    font-family: var(--font-head);
    font-size: 0.98rem;
    letter-spacing: 0.6px;
    color: var(--muted);
    transition: color 0.2s ease;
}
.nav a:hover { color: var(--fire-3); }
.nav .nav-cta {
    color: var(--fire-3);
    border: 1px solid var(--fire-2);
    padding: 8px 20px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}
.nav .nav-cta:hover { background: var(--grad-fire); color: #200b00; }

/* ===== Nav dropdowns ===== */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-head); font-size: 0.98rem; letter-spacing: 0.6px;
    color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0;
    transition: color 0.2s ease;
}
.nav-toggle:hover, .nav-toggle.active, .nav-item:hover .nav-toggle, .nav-item.open .nav-toggle { color: var(--fire-3); }
.nav-toggle .caret { font-size: 0.7rem; transition: transform 0.25s ease; }
.nav-item:hover .caret, .nav-item.open .caret { transform: rotate(180deg); }
.dropdown {
    position: absolute; top: 100%; left: 50%;
    margin-top: 14px;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 8px;
    display: flex; flex-direction: column; gap: 2px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 60;
}
.dropdown.mega { display: grid; grid-template-columns: 1fr 1fr; min-width: 440px; gap: 2px 6px; }
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .nav-item.open .dropdown {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.dropdown a {
    display: block; padding: 9px 14px; border-radius: 8px;
    font-family: var(--font-head); font-size: 0.94rem; letter-spacing: 0.3px;
    color: var(--muted); white-space: nowrap; transition: background 0.18s ease, color 0.18s ease;
}
.dropdown a:hover { background: var(--surface); color: var(--fire-3); }
.dropdown-all { color: var(--fire-3); border-top: 1px solid var(--line); margin-top: 5px; padding-top: 12px; }
.dropdown.mega .dropdown-all { grid-column: 1 / -1; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.28s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 90px 0 60px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0.55;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(10,7,5,0.94) 0%, rgba(10,7,5,0.7) 45%, rgba(10,7,5,0.35) 100%),
        linear-gradient(0deg, var(--bg) 2%, transparent 40%);
    pointer-events: none;
}
.hero-glow {
    position: absolute;
    width: 700px; height: 700px;
    top: -180px; right: -120px;
    background: radial-gradient(circle, rgba(255, 90, 0, 0.35), transparent 62%);
    filter: blur(30px);
    animation: pulse 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pulse { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.hero-kicker {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--fire-3);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(2.5rem, 6.5vw, 5rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 22px;
    text-shadow: 0 4px 40px rgba(255, 80, 0, 0.25);
}
.hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--muted);
    max-width: 640px;
    margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    list-style: none;
    padding: 0;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 700;
    background: var(--grad-fire);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.hero-stats span { color: var(--dim); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    font-size: 1.6rem;
    color: var(--fire-3);
    z-index: 2;
    animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.about h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 22px; }
.about p { color: var(--muted); margin-bottom: 16px; }
.about-features { list-style: none; padding: 0; display: grid; gap: 16px; }
.about-features li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.about-features li:hover { transform: translateX(6px); border-color: var(--fire-2); }
.about-features span { font-size: 1.6rem; line-height: 1; }
.about-features strong { display: block; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 3px; letter-spacing: 0.5px; }
.about-features div { color: var(--muted); font-size: 0.94rem; }

/* Section headings shared */
.section h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); text-transform: uppercase; }

/* ===== Shows cards ===== */
.cards {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}
.card {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--fire-2); }
.card-media {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #100a07;
}
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card-media img { transform: scale(1.07); }
.card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(16,10,7,0.85));
}
.card-body { padding: 22px 24px 28px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; letter-spacing: 0.5px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ===== Events ===== */
.events { background: linear-gradient(180deg, transparent, rgba(255, 90, 0, 0.04), transparent); }
.events-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.event {
    text-align: center;
    padding: 34px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.event:hover { transform: translateY(-6px); background: var(--surface); border-color: var(--fire-3); }
.event .event-ic { font-size: 2.6rem; display: block; margin-bottom: 12px; filter: drop-shadow(0 0 12px rgba(255, 110, 0, 0.5)); }
.event h3 { font-size: 1.25rem; margin-bottom: 8px; }
.event p { color: var(--muted); font-size: 0.92rem; }

/* ===== Why ===== */
.why-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}
.why-item {
    padding: 28px 26px;
    border-left: 3px solid var(--fire-2);
    background: var(--surface);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: transform 0.2s ease;
}
.why-item:hover { transform: translateY(-4px); }
.why-item strong { font-family: var(--font-head); font-size: 1.25rem; display: block; margin-bottom: 8px; color: var(--fire-3); letter-spacing: 0.5px; }
.why-item p { color: var(--muted); font-size: 0.95rem; }

/* ===== Steps ===== */
.steps-list {
    margin-top: 48px;
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    counter-reset: step;
}
.steps-list li {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 26px;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.steps-list li:hover { transform: translateY(-6px); border-color: var(--fire-2); }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--grad-fire);
    color: #200b00;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 16px;
    box-shadow: var(--glow);
}
.steps-list h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps-list p { color: var(--muted); font-size: 0.93rem; }

/* ===== Gallery ===== */
.gallery-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.gitem {
    position: relative;
    padding: 0;
    border: 0;
    cursor: pointer;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #100a07;
}
.gitem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: saturate(1.05);
}
.gitem::after {
    content: "🔍";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(20, 10, 5, 0.5);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.gitem:hover img, .gitem:focus-visible img { transform: scale(1.08); }
.gitem:hover::after, .gitem:focus-visible::after { opacity: 1; }

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 4, 3, 0.95);
    backdrop-filter: blur(6px);
    padding: 30px;
}
.lightbox[hidden] { display: none; }
.lb-img {
    max-width: min(92vw, 1100px);
    max-height: 86vh;
    border-radius: 10px;
    box-shadow: 0 0 60px rgba(255, 90, 0, 0.35);
    object-fit: contain;
}
.lb-close, .lb-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
    border-radius: 50%;
    width: 52px; height: 52px;
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}
.lb-close:hover, .lb-nav:hover { background: var(--fire-2); color: #200b00; transform: scale(1.08); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lb-next:hover { transform: translateY(-50%) scale(1.08); }

@media (max-width: 560px) {
    .lb-prev { left: 10px; } .lb-next { right: 10px; }
    .lb-close { top: 12px; right: 12px; }
    .lb-nav, .lb-close { width: 44px; height: 44px; font-size: 1.3rem; }
}

/* ===== FAQ ===== */
.faq details {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-top: 14px;
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.faq details[open] { border-color: var(--fire-2); }
.faq summary {
    cursor: pointer;
    padding: 20px 24px;
    font-family: var(--font-head);
    font-size: 1.12rem;
    letter-spacing: 0.4px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--fire-3); font-size: 1.6rem; line-height: 1; transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ===== Contact ===== */
.contact { padding-bottom: 110px; }
.contact-inner { max-width: 860px; margin: 0 auto; }
.contact-cards {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 34px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: transform 0.22s ease, box-shadow 0.3s ease, border-color 0.22s ease;
}
.contact-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--fire-2); }
.contact-ic {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    font-family: var(--font-head);
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--grad-fire);
    color: #200b00;
    box-shadow: var(--glow);
}
.contact-card.vk .contact-ic { background: linear-gradient(120deg, #4a76a8, #5b8fd0); color: #fff; box-shadow: 0 0 30px rgba(74,118,168,0.5); }
.contact-card.tg .contact-ic { background: linear-gradient(120deg, #229ED9, #37bffa); color: #fff; box-shadow: 0 0 30px rgba(34,158,217,0.5); }
.contact-card strong { font-family: var(--font-head); font-size: 1.3rem; letter-spacing: 0.5px; }
.contact-card em { color: var(--muted); font-style: normal; font-size: 0.95rem; }
.contact-meta {
    list-style: none; padding: 0; margin: 40px auto 0; max-width: 720px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px;
}
.contact-meta li { display: flex; gap: 12px; align-items: flex-start; text-align: left; }
.contact-meta li span { font-size: 1.3rem; filter: drop-shadow(0 0 8px rgba(255,110,0,0.4)); }
.contact-meta strong { font-family: var(--font-head); display: block; font-size: 1.02rem; margin-bottom: 3px; letter-spacing: 0.5px; }
.contact-meta div { color: var(--muted); font-size: 0.92rem; }

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    padding-top: 50px;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 34px;
}
.footer-brand { display: flex; gap: 12px; align-items: center; max-width: 320px; }
.footer-brand strong { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: 1px; display: block; }
.footer-brand span { color: var(--dim); font-size: 0.88rem; }
.footer-nav, .footer-social { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-social a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-nav a:hover, .footer-social a:hover { color: var(--fire-3); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-bottom p { color: var(--dim); font-size: 0.85rem; text-align: center; }

/* ===== "Подробнее" link (events) ===== */
.event .more {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--font-head);
    color: var(--fire-3);
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
}
.event:hover .more { transform: translateX(5px); }

/* ===== Hero: split offer + photo ===== */
.hero { min-height: auto; padding: clamp(38px, 7vh, 84px) 0 clamp(48px, 7vh, 76px); align-items: stretch; }
.hero-split { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.hero-content { max-width: 640px; }
.hero-sub { font-size: clamp(1.02rem, 1.8vw, 1.22rem); color: var(--muted); margin: 0 0 24px; }
.hero-bullets { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.hero-bullets li { position: relative; padding-left: 32px; color: var(--text); font-size: 1.02rem; }
.hero-bullets li::before { content: "🔥"; position: absolute; left: 0; top: 1px; filter: drop-shadow(0 0 8px rgba(255,110,0,0.6)); }
.hero-photo {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin-left: auto;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line);
    background: radial-gradient(130% 120% at 62% 8%, rgba(255,90,0,0.28), transparent 60%), var(--surface);
    box-shadow: var(--shadow);
}
.hero-photo img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-photo::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
        linear-gradient(100deg, var(--bg) 0%, rgba(10,7,5,0.35) 24%, transparent 52%),
        linear-gradient(0deg, rgba(10,7,5,0.7), transparent 42%),
        linear-gradient(135deg, rgba(255,90,0,0.20), transparent 55%);
}
.hero-photo .ph { z-index: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 3rem; color: var(--dim); }
.hero-photo .ph small { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.5px; }

/* ===== Service card: link + action row ===== */
.card { display: flex; flex-direction: column; }
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.card .card-body { padding-bottom: 14px; }
.card-actions {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 0 24px 20px; margin-top: auto;
}
.card-more { font-family: var(--font-head); color: var(--fire-3); letter-spacing: 0.5px; font-size: 0.95rem; transition: transform 0.2s ease; }
.card:hover .card-more { transform: translateX(4px); }
.card-msg { display: inline-flex; gap: 8px; }
.ic-btn {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
    font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
    transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ic-btn:hover { transform: translateY(-3px); }
.ic-btn.vk { color: #6b9bd8; }
.ic-btn.vk:hover { background: #4a76a8; color: #fff; border-color: transparent; }
.ic-btn.tg { color: #37bffa; }
.ic-btn.tg:hover { background: #229ED9; color: #fff; border-color: transparent; }

/* ===== Founder block ===== */
.founder { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.founder-grid { display: grid; grid-template-columns: 380px 1fr; gap: 54px; align-items: center; }
.founder-photo {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: radial-gradient(120% 120% at 50% 0%, rgba(255,90,0,0.22), transparent 60%), var(--surface);
    display: flex; align-items: center; justify-content: center;
}
.founder-photo .ph {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 3rem; color: var(--dim);
    filter: drop-shadow(0 0 14px rgba(255,110,0,0.5));
}
.founder-photo .ph small { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.5px; }
.founder-photo img {
    position: absolute; inset: 0; z-index: 1;
    width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.founder-text h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); text-transform: uppercase; margin: 8px 0 18px; }
.founder-text p { color: var(--muted); margin-bottom: 14px; }
.founder-chips { list-style: none; padding: 0; margin: 22px 0 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.founder-chips li {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 50px;
    border: 1px solid var(--line); background: var(--surface);
    font-size: 0.9rem; color: var(--text);
}
.founder-chips li::before { content: "🔥"; font-size: 0.85rem; }
.founder-sign { font-family: var(--font-head); color: var(--fire-3); letter-spacing: 0.5px; margin: 6px 0 22px; }

/* ===== Owner card (in "Кто мы") ===== */
.owner-card { display: flex; align-items: center; gap: 14px; margin: 22px 0; }
.owner-photo {
    position: relative; flex: 0 0 auto;
    width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad-fire); box-shadow: var(--glow);
}
.owner-photo::before { content: "🔥"; position: absolute; font-size: 1.5rem; }
.owner-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.owner-card figcaption { color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.owner-card figcaption strong { font-family: var(--font-head); display: block; font-size: 1.1rem; color: var(--text); letter-spacing: 0.5px; margin-bottom: 2px; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { padding: 18px 0 4px; font-size: 0.9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; color: var(--dim); }
.breadcrumbs li:not(:last-child)::after { content: "›"; color: var(--fire-3); margin-left: 4px; }
.breadcrumbs a { color: var(--muted); transition: color 0.2s ease; }
.breadcrumbs a:hover { color: var(--fire-3); }
.breadcrumbs li[aria-current] { color: var(--text); }

/* ===== Detail hero (show / event pages) ===== */
.detail-hero { padding-top: 34px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.detail-media img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.detail-intro h1 { font-size: clamp(1.9rem, 4vw, 3rem); text-transform: uppercase; margin: 8px 0 16px; }
.detail-intro .lead { color: var(--muted); font-size: 1.12rem; margin-bottom: 26px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Detail body ===== */
.detail-body p { color: var(--muted); margin-bottom: 16px; font-size: 1.05rem; }
.detail-body h2 { font-size: 1.6rem; text-transform: uppercase; margin: 34px 0 16px; }
.check-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: var(--text); }
.check-list li::before {
    content: "🔥";
    position: absolute; left: 0; top: 0;
    filter: drop-shadow(0 0 8px rgba(255,110,0,0.6));
}

/* ===== Event pills ===== */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.pill:hover { border-color: var(--fire-2); color: var(--fire-3); transform: translateY(-3px); }

/* ===== Mini cards (recommended shows on event pages) ===== */
.mini-grid {
    margin-top: 44px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.mini-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}
.mini-card:hover { transform: translateY(-6px); border-color: var(--fire-2); box-shadow: var(--shadow); }
.mini-media { aspect-ratio: 3 / 2; overflow: hidden; }
.mini-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mini-card:hover .mini-media img { transform: scale(1.07); }
.mini-body { padding: 18px 20px 22px; }
.mini-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.mini-body p { color: var(--muted); font-size: 0.92rem; }

/* ===== Stat row (about) ===== */
.stat-row { display: flex; flex-wrap: wrap; gap: 40px; margin: 34px 0; }
.stat-row div { display: flex; flex-direction: column; }
.stat-row strong {
    font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; line-height: 1;
    background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-row span { color: var(--dim); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }

/* ===== CTA band ===== */
.cta-band {
    text-align: center;
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(255,90,0,0.18), transparent 70%),
        var(--bg-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); text-transform: uppercase; margin-bottom: 14px; }
.cta-band p { color: var(--muted); margin-bottom: 28px; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ===== Portfolio ===== */
.pf-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 40px 0 30px; }
.pf-filter {
    font-family: var(--font-head);
    letter-spacing: 0.6px;
    padding: 9px 18px;
    border-radius: 50px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
}
.pf-filter:hover { color: var(--fire-3); border-color: var(--fire-2); }
.pf-filter.active { background: var(--grad-fire); color: #200b00; border-color: transparent; }
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.gitem.is-video .pf-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #fff;
    text-shadow: 0 0 18px rgba(0,0,0,0.7);
    background: rgba(20,10,5,0.35);
    pointer-events: none;
}
.pf-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ===== Lightbox video / embed ===== */
.pf-stage { max-width: min(92vw, 1100px); width: 100%; display: flex; align-items: center; justify-content: center; }
.lb-video { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 10px; box-shadow: 0 0 60px rgba(255,90,0,0.35); }
.lb-embed { position: relative; width: min(92vw, 1000px); aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; box-shadow: 0 0 60px rgba(255,90,0,0.35); }
.lb-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .nav {
        position: fixed;
        inset: 72px 0 auto 0;
        flex-direction: column;
        gap: 0;
        background: rgba(12, 8, 5, 0.98);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        padding: 10px 0 24px;
        transform: translateY(-140%);
        transition: transform 0.35s ease;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    .nav.open { transform: translateY(0); }
    .nav a { padding: 15px 24px; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 1.1rem; }
    .nav .nav-cta { margin: 14px 24px 0; text-align: center; border-radius: 50px; }
    .burger { display: flex; }
    /* Dropdowns as accordions on mobile */
    .nav-item { flex-direction: column; align-items: stretch; width: 100%; }
    .nav-toggle { width: 100%; justify-content: space-between; padding: 15px 24px; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 1.1rem; }
    .dropdown, .dropdown.mega {
        position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
        display: none; grid-template-columns: 1fr; min-width: 0; margin: 0;
        border: 0; border-radius: 0; box-shadow: none;
        background: rgba(0, 0, 0, 0.28); padding: 4px 0;
    }
    .nav-item.open > .dropdown { display: block; }
    .dropdown::before { display: none; }
    .nav .dropdown a { padding: 12px 24px 12px 42px; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 1rem; }
    .dropdown-all { border-top: 0; margin-top: 0; }
    .section { padding: 66px 0; }
    .hero { min-height: auto; padding-top: 60px; }
    .hero-stats { gap: 28px; }
    .hero-stats strong { font-size: 2rem; }
    .detail-grid { grid-template-columns: 1fr; gap: 30px; }
    .detail-media { order: -1; }
    .founder-grid { grid-template-columns: 1fr; gap: 32px; }
    .founder-photo { max-width: 340px; margin: 0 auto; width: 100%; }
    .hero-split { grid-template-columns: 1fr; gap: 34px; }
    .hero-photo { order: -1; max-width: 300px; margin: 0 auto; aspect-ratio: 1 / 1; }
    .hero-content { max-width: none; }
    .stat-row { gap: 26px; }
    .stat-row strong { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-stats { justify-content: space-between; width: 100%; gap: 16px; }
    .contact-cards { grid-template-columns: 1fr; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
