/* ===== Tikers.ru — Main Styles ===== */
:root {
    --color-primary: #1a1a1a;
    --color-primary-hover: #000;
    --color-accent: #1a1a1a;
    --color-text: #1a1a1a;
    --color-text-secondary: #666;
    --color-border: #ddd;
    --color-bg: #fff;
    --color-bg-secondary: #f5f5f5;
    --color-success: #1a1a1a;
    --color-error: #1a1a1a;
    --color-info: #f0f0f0;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.logo {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: var(--color-primary);
    letter-spacing: -0.5px;
}
.logo span { color: var(--color-accent); }
.logo-img { max-height: 40px; width: auto; vertical-align: middle; }
.site-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}
.site-nav a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
}
.site-nav a:hover { color: var(--color-primary); }
.site-nav .nav-admin {
    padding: 6px 14px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 13px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile menu */
.mobile-menu {
    display: none;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 10px 20px 20px;
}
.mobile-menu.open { display: block; }
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-nav a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .nav-admin {
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    text-align: center;
    font-size: 14px;
}
.mobile-search { margin-top: 10px; }
.mobile-search .search-input { width: 100%; }

/* Responsive header */
@media (max-width: 768px) {
    .site-nav { display: none; }
    .site-search { display: none; }
    .hamburger { display: flex; }
}

/* Main */
.site-main {
    min-height: calc(100vh - 120px);
    padding: 30px 0;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 13px;
}

/* Headings */
h1 { font-size: 28px; font-weight: 700; margin: 0 0 20px; }
h2 { font-size: 22px; font-weight: 600; margin: 0 0 15px; }
h3 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }

/* Page heading */
.page-heading { margin-bottom: 30px; }

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-info { background: #f5f5f5; color: #1a1a1a; border: 1px solid #ddd; }
.alert-success { background: #f5f5f5; color: #1a1a1a; border: 1px solid #ddd; }
.alert-error { background: #f5f5f5; color: #1a1a1a; border: 1px solid #1a1a1a; }

/* Event Cards Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.event-card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow .35s, transform .35s;
    outline: 1px solid #eaeaea;
    outline-offset: -1px;
}
.event-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    transform: translateY(-6px);
    outline-color: #1a1a1a;
}
.event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.event-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--color-bg-secondary);
}
.event-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent 20%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}
.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.event-card:hover .event-card-image img {
    transform: scale(1.05);
}
.event-card-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.event-card-date::before {
    content: '';
    font-size: 12px;
}
.event-card-body { padding: 16px 18px 18px; }
.event-card-body h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 650;
    color: #1a1a1a;
    line-height: 1.35;
    letter-spacing: -0.2px;
}
.event-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 14px;
}
.event-card-hall {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.event-card-hall::before {
    content: '';
    font-size: 11px;
}
.event-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #eee;
}
.badge-section {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #f5c518;
    color: #1a1a1a;
    vertical-align: middle;
    margin-left: 6px;
}
.event-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.3px;
}
.event-price::after {
    content: ' \20BD';
}
.event-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.event-status-upcoming { background: #fff; color: #1a1a1a; }
.event-status-sold_out { background: #ccc; color: #1a1a1a; }
.event-status-cancelled { background: #e0e0e0; color: #1a1a1a; }
.event-status-completed { background: #999; color: #fff; }

/* ===== Date Strip ===== */
.dates-strip {
    margin-bottom: 30px;
}
.dates-strip-label {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}
.dates-strip-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}
.dates-strip-inline {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}
.date-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1a1a;
    transition: all .2s;
    flex-shrink: 0;
    min-width: 54px;
    background: #fff;
    position: relative;
}
.date-chip:hover {
    border-color: #1a1a1a;
    background: #f8f8f8;
}
.date-chip.active {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
}
.date-chip-weekday {
    font-size: 10px;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.6;
    font-weight: 500;
}
.date-chip-day {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}
.date-chip-month {
    font-size: 10px;
    text-transform: uppercase;
    color: inherit;
    opacity: 0.6;
    font-weight: 500;
}
.date-chip-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #1a1a1a;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 4px;
}
.date-chip.active .date-chip-count {
    background: #fff;
    color: #1a1a1a;
}

@media (max-width: 600px) {
    .dates-strip-list, .dates-strip-inline {
        gap: 6px;
    }
    .date-chip {
        padding: 6px 10px;
        min-width: 44px;
    }
    .date-chip-day {
        font-size: 15px;
    }
    .date-chip-weekday, .date-chip-month {
        font-size: 9px;
    }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
}

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 20px; }
.breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
}
.breadcrumbs a:hover { text-decoration: underline; }

/* Event Single */
.event-single { max-width: 100%; }
.event-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 35px;
    margin-bottom: 40px;
}
@media (max-width: 768px) {
    .event-header { grid-template-columns: 1fr; }
}
.event-poster img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.event-info h1 {
    margin-top: 0;
    font-size: 30px;
    line-height: 1.2;
}
.event-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}
.event-detail {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.detail-label {
    font-size: 11px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}
.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}
.detail-value.event-status-upcoming { color: #1a1a1a; }
.detail-value.event-status-sold_out { color: #1a1a1a; }
.detail-value.event-status-cancelled { color: #999; }
.detail-value.event-status-completed { color: #666; }
.event-description {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 15px;
}

/* Section heading */
.section-heading {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

/* Seating Chart */
.seating-section, .cart-section {
    margin: 35px 0;
    padding: 25px;
    background: var(--color-bg-secondary);
    border-radius: 14px;
    border: 1px solid var(--color-border);
}
.seating-section h2, .cart-section h4 {
    margin-top: 0;
}
.seating-chart {
    text-align: center;
}
.stage-label {
    background: #1a1a1a;
    color: #fff;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}
.seating-grid-wrap { overflow-x: auto; }
.seating-grid {
    border-collapse: separate;
    border-spacing: 3px;
    margin: 0 auto;
}
.seating-grid td { text-align: center; vertical-align: middle; }
.row-label {
    font-weight: 700;
    padding-right: 10px;
    font-size: 12px;
    color: #555;
}
.seat {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s;
    color: #fff;
}
.seat:hover { transform: scale(1.15); z-index: 1; }
.seat-free { background: #ccc; cursor: pointer; color: #1a1a1a; }
.seat-selected {
    outline: 3px solid #1a1a1a;
    outline-offset: -3px;
    transform: scale(1.1);
}
.seat-sold {
    background: #e0e0e0 !important;
    cursor: not-allowed;
    opacity: 0.5;
    text-decoration: line-through;
    color: #999;
}
.seat-blocked {
    cursor: default !important;
    background: #f0f0f0;
    border: 1px dashed #bbb;
    color: #999;
}
.seat-aisle { background: #f5f5f5 !important; border: 1px dashed #ccc !important; }
.seat-stage { background: #bbb !important; font-size: 18px; color: #fff; }
.seat-reserve { background: #FFF3CD !important; border: 1px solid #e6c952 !important; color: #856404; font-weight: 700; }
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    font-size: 13px;
}
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-color {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 3px;
}
.legend-sold { background: #ccc !important; }
.legend-blocked { background: #e0e0e0 !important; border: 1px dashed #bbb; }

/* Cart */
.cart {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.cart h4 { margin: 0 0 15px; font-size: 16px; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 15px; }
.cart-table th, .cart-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}
.cart-table tfoot th {
    border-top: 2px solid var(--color-text);
    border-bottom: none;
    font-size: 15px;
}
.cart-remove {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    font-size: 20px;
    padding: 0 5px;
}
.cart-empty { color: var(--color-text-secondary); text-align: center; }
.btn-cart-checkout { display: block; text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .25s ease;
    line-height: 1.4;
    letter-spacing: 0.2px;
}
.btn-primary { background: #1a1a1a; color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.btn-outline { background: transparent; color: #1a1a1a; border: 1.5px solid #ddd; }
.btn-outline:hover { border-color: #1a1a1a; background: #f8f8f8; }
.btn-success { background: #1a1a1a; color: #fff; }
.btn-lg { padding: 14px 34px; font-size: 15px; }
.btn-sm { padding: 6px 14px; font-size: 12px; }

/* Checkout */
.checkout-page { max-width: 100%; }
.checkout-event-title {
    color: var(--color-text-secondary);
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 25px;
}
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 768px) {
    .checkout-layout { grid-template-columns: 1fr; }
}
.checkout-form .form-group { margin-bottom: 20px; }
.checkout-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.checkout-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 15px;
}
.checkout-form input:focus {
    border-color: #1a1a1a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

/* Payment result */
.payment-result {
    text-align: center;
    padding: 60px 20px;
}
.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.result-icon-fail { background: #e0e0e0; color: #1a1a1a; }
.result-actions { margin-top: 30px; display: flex; gap: 15px; justify-content: center; }

/* Verify */
.verify-page { max-width: 600px; margin: 0 auto; }
.verify-input-group { display: flex; gap: 10px; }
.verify-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 15px;
}
.verify-result { margin-top: 25px; }
.verify-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
}
.verify-card-header {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}
.verify-status-ok { color: #1a1a1a; font-weight: 700; }
.verify-status-pending { color: #666; font-weight: 600; }
.verify-details { width: 100%; }
.verify-details th, .verify-details td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
}
.verify-details th { width: 140px; color: var(--color-text-secondary); font-weight: 500; }
.text-success { color: #1a1a1a; font-weight: 700; }
.verify-redeem { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--color-border); }
.verify-warning { color: #c0392b; font-size: 13px; font-weight: 600; margin-bottom: 12px; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--color-text);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #1a1a1a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}
.form-group textarea { resize: vertical; }
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}
.form-actions { margin-top: 25px; display: flex; gap: 10px; }
.current-poster img { border-radius: 6px; }

/* Error page */
.error-page { text-align: center; padding: 80px 20px; }
.error-page h1 { font-size: 36px; }

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 40px;
    background: var(--color-bg-secondary);
}
.slider-track {
    position: relative;
    min-height: 350px;
}
.slider-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
}
.slider-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}
.slider-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.slider-link:hover .slider-image img {
    transform: scale(1.03);
    transition: transform .5s ease;
}
.slider-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    background: #f0f0f0;
}
.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 25px 25px;
    background: linear-gradient(transparent 0%, rgba(0,0,0,.75) 100%);
    color: #fff;
}
.slider-overlay h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.slider-overlay p {
    margin: 0;
    font-size: 14px;
    opacity: .9;
}
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: background .2s;
}
.slider-dot.active { background: #fff; }

/* ===== Sections ===== */
.section { margin-bottom: 40px; }
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== Event Card Badges ===== */
.event-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    letter-spacing: .5px;
}
.event-badge-top { background: #f5c518; color: #1a1a1a; }
.event-badge-exclusive { background: #555; color: #fff; }
.event-card-image { position: relative; }

/* ===== Home Banner ===== */
.section-banner {
    margin-bottom: 40px;
    text-align: center;
}
.home-banner-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}
.banner-link {
    display: inline-block;
    max-width: 100%;
}
.banner-link:hover .home-banner-img {
    opacity: 0.9;
}

/* ===== Event Map ===== */
.event-map-container {
    margin-top: 10px;
    margin-bottom: 8px;
    min-height: 60px;
}
.event-map-container iframe {
    display: block;
}
.map-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    transition: all .2s;
}
.map-link:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ===== Category Icons ===== */
.categories-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.category-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 24px;
    background: #fff;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1a1a;
    transition: all .25s;
    min-width: 90px;
    position: relative;
    flex: 0 1 auto;
}
.category-icon:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}
.category-icon-img {
    font-size: 36px;
    line-height: 1;
    filter: brightness(0);
}
.category-icon-label {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}
.category-icon-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    padding: 0 5px;
}

@media (max-width: 600px) {
    .categories-grid {
        gap: 8px;
    }
    .category-icon {
        padding: 12px 10px;
        min-width: 0;
        flex: 1;
        border-radius: 8px;
        border: 1px solid #eee;
    }
    .category-icon-img {
        font-size: 24px;
    }
    .category-icon-label {
        font-size: 11px;
    }
    .category-icon-count {
        font-size: 9px;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
        padding: 0 4px;
        top: -4px;
        right: -4px;
    }
}

/* ===== VK Block ===== */
.vk-block {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius);
}
.vk-block-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 24px;
    flex-shrink: 0;
}
.vk-block-text h3 { margin: 0 0 8px; font-size: 18px; }
.vk-block-text p { margin: 0 0 15px; color: var(--color-text-secondary); font-size: 14px; }

/* ===== Search ===== */
.search-form { margin-bottom: 25px; }
.search-input-group {
    display: flex;
    gap: 10px;
    max-width: 500px;
}
.search-input-group input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--color-border);
    border-radius: 6px;
    font-size: 15px;
}
.search-input-group input:focus {
    border-color: #1a1a1a;
    outline: none;
}
.search-count {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===== Header search ===== */
.site-search { margin-left: 15px; }
.search-input {
    padding: 7px 14px;
    border: 1.5px solid #ddd;
    border-radius: 24px;
    font-size: 13px;
    width: 140px;
    transition: all .25s;
    background: #f8f8f8;
}
.search-input:focus {
    width: 200px;
    border-color: #1a1a1a;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

/* ===== Page content ===== */
.page-content { max-width: 800px; }
.page-body { line-height: 1.8; color: var(--color-text); }
.page-body img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* ===== Cookie Consent ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    color: #ccc;
    padding: 15px 20px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 1000;
    font-size: 13px;
    flex-wrap: wrap;
}
.cookie-consent p { margin: 0; }
.cookie-consent .btn { flex-shrink: 0; }

/* ===== Section filter ===== */
.page-heading-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.filter-link {
    padding: 6px 16px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all .2s;
}
.filter-link:hover, .filter-link.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ===== Footer ===== */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.footer-tagline { font-size: 13px; color: var(--color-text-secondary); margin: 5px 0 0; }
.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-links a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 13px;
    transition: color .2s;
}
.footer-links a:hover { color: var(--color-primary); }
.footer-copy { font-size: 12px; color: var(--color-text-secondary); margin: 0; line-height: 1.6; }
.footer-dev { font-size: 11px; margin: 6px 0 0; }
.footer-dev a { color: var(--color-text-secondary); text-decoration: underline; }
.footer-dev a:hover { color: var(--color-primary); }

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    .footer-links {
        justify-content: center;
        gap: 14px;
    }
    .footer-links a {
        font-size: 12px;
    }
    .footer-copy {
        font-size: 11px;
        line-height: 1.5;
    }
}

/* ===== Share buttons ===== */
.event-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
}
.share-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: 500;
    margin-right: 4px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    transition: all .2s;
    line-height: 1.2;
}
.share-btn:hover { background: #f0f0f0; border-color: #bbb; }
.share-copy { font-family: inherit; }

/* ===== Similar events ===== */
.section-similar { margin-top: 40px; }

/* ===== Current logo preview ===== */
.current-logo { margin-bottom: 8px; }

/* ===== Homepage WYSIWYG block ===== */
.homepage-wysiwyg {
    padding: 30px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    line-height: 1.8;
}
.homepage-wysiwyg h2 { color: #1a1a1a; }
.homepage-wysiwyg img { max-width: 100%; height: auto; border-radius: var(--radius); }
.homepage-wysiwyg a { color: #1a1a1a; text-decoration: underline; }

/* ===== Form hints ===== */
.form-hint {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin: 5px 0 0;
}

/* ===== Toast notifications ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}
.toast {
    display: none;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    line-height: 1.4;
    word-break: break-word;
}
.toast-error { background: #1a1a1a; }
.toast-success { background: #1a1a1a; }
.toast-info { background: #666; }
.toast-warning { background: #ccc; color: #1a1a1a; }

/* ===== Scroll-to-top ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform .2s, opacity .2s;
    line-height: 1;
}
.scroll-top:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* ===== Cart loading spinner ===== */
.cart-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}
.cart-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: cart-spin .7s linear infinite;
}
@keyframes cart-spin {
    to { transform: rotate(360deg); }
}

/* ===== Cart timer ===== */
.cart-timer {
    font-size: 12px;
    color: var(--color-text-secondary);
    font-weight: 600;
    white-space: nowrap;
    min-width: 40px;
    text-align: center;
}

/* ===== Result download section ===== */
.result-download {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg-secondary);
}
.result-download p {
    margin: 0 0 10px;
    font-weight: 600;
    font-size: 14px;
}
.ticket-download-item {
    margin-bottom: 6px;
}
.ticket-download-item .btn {
    font-size: 13px;
}

/* ===== Orders table (front) ===== */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
.orders-table th,
.orders-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    font-size: 14px;
}
.orders-table th {
    background: var(--color-bg-secondary);
    font-weight: 600;
}
.orders-table .btn-sm {
    font-size: 12px;
    padding: 4px 10px;
}
.text-muted {
    color: var(--color-text-secondary);
}

