@font-face {
    font-family: "Blackberry";
    src: url("/fonts/blackberry-normal_version_02.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --gm-bg: #0b0d12;
    --gm-surface: #121622;
    --gm-card: #171c2a;
    --gm-border: #232a3d;
    --gm-text: #f6f7fb;
    --gm-muted: #9aa4b2;
    --gm-primary: #ff8a3d;
    --gm-primary-600: #f0741f;
    --gm-accent: #ffb26f;
}

body {
    background: #ffffff;
    color: #0b0d12;
    font-feature-settings: "ss01";
}

main > .container {
    padding: 96px 20px 40px;
    overflow-x: hidden;
}

.navbar {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(233, 236, 244, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.navbar .navbar-toggler {
    border: none;
    box-shadow: none;
}

.navbar .navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.site-logo {
    font-family: "Blackberry", "Segoe UI", sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-logo__go {
    color: #ff8a3d;
}

.site-logo__almet {
    color: #2b3448;
}

.footer__logo .site-logo {
    font-size: 1.6rem;
}

.hero {
    background: #f8f9fc;
    border: none;
    border-radius: 24px;
    padding: 32px;
}

.hero h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 12px;
}

.hero .subtitle {
    color: #5b6270;
}

.date-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.date-chip {
    border: 1px solid #e1e6f0;
    background: #ffffff;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #434a59;
    text-decoration: none;
    transition: all 0.2s ease;
}

.date-chip:hover,
.date-chip.is-active {
    border-color: var(--gm-primary);
    color: var(--gm-primary);
    background: #fff1e6;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 991.98px) {
    .featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .featured-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-right: 20px;
        padding-left: 4px;
    }

    .featured-grid::after {
        content: '';
        flex: 0 0 24px;
    }

    .featured-card {
        flex: 0 0 78%;
        scroll-snap-align: start;
    }
}

.featured-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    height: 320px;
    min-height: 320px;
    text-decoration: none;
    color: #fff;
    box-shadow: none;
    border: 1px solid #e6e9ef;
}

.featured-grid::-webkit-scrollbar {
    height: 0;
}

.featured-grid::-webkit-scrollbar-thumb {
    background: transparent;
}

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

.featured-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #edf1f7 0%, #f6f8fc 55%, #e9edf6 100%);
}

.featured-card.is-placeholder {
    color: #1b2333;
}

.featured-card.is-placeholder .featured-card__content {
    color: #1b2333;
}

.featured-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 16, 28, 0.1) 0%, rgba(10, 16, 28, 0.72) 100%);
}

.featured-card.is-placeholder .featured-card__overlay {
    background: linear-gradient(180deg, rgba(10, 16, 28, 0.0) 0%, rgba(10, 16, 28, 0.08) 100%);
}

.featured-card__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    gap: 10px;
}

.featured-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.featured-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.featured-card__meta .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.no-events-callout {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff6ee;
    border: 1px solid #ffd9bf;
    color: #8a3f10;
    margin: 24px 0 20px;
}

.no-events-callout__icon {
    font-size: 22px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ff8a3d;
    color: #fff;
    flex: 0 0 36px;
}

.no-events-callout__title {
    font-weight: 600;
    margin-bottom: 2px;
}

.no-events-callout__text {
    color: #8a3f10;
}

.upcoming-section {
    margin-top: 28px;
}

.upcoming-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 16px;
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 991.98px) {
    .upcoming-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .upcoming-grid {
        grid-template-columns: 1fr;
    }
}

.upcoming-card {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e6e9ef;
    background: #fff;
    min-height: 190px;
    position: relative;
    box-shadow: none;
}

.upcoming-card.has-cover {
    background: var(--event-cover) center / cover no-repeat;
    color: #f8fafc;
    border-color: rgba(15, 23, 42, 0.15);
}

.upcoming-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 28, 0.62);
}

.upcoming-card__content {
    position: relative;
    z-index: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upcoming-card__title {
    font-weight: 600;
    font-size: 1rem;
}

.upcoming-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    color: #5f6776;
}

.upcoming-card.has-cover .upcoming-card__meta {
    color: rgba(248, 250, 252, 0.86);
}

.upcoming-card__price {
    font-weight: 600;
    color: #10141f;
}

.upcoming-card.has-cover .upcoming-card__price,
.upcoming-card.has-cover .text-muted {
    color: #f8fafc !important;
}

@media (max-width: 991.98px) {
    .event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .event-grid {
        grid-template-columns: 1fr;
    }
}

.event-card {
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: none;
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    overflow: hidden;
    min-height: 360px;
}

.event-card.has-cover {
    background: var(--event-cover) center / cover no-repeat;
    border-color: rgba(15, 23, 42, 0.15);
    color: #f8fafc;
}

.event-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 28, 0.64);
}

.event-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.event-card.has-cover .event-card__title,
.event-card.has-cover .event-card__meta,
.event-card.has-cover .event-card__price {
    color: #f8fafc;
}

.event-card.has-cover .event-card__meta,
.event-card.has-cover .text-muted {
    color: rgba(248, 250, 252, 0.86) !important;
}

.event-card.has-cover .badge-soft {
    background: rgba(255, 255, 255, 0.18);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.event-card:focus-visible,
.featured-card:focus-visible,
.date-chip:focus-visible,
.btn:focus-visible {
    outline: 3px solid rgba(91, 140, 255, 0.35);
    outline-offset: 3px;
}

.form-control,
.form-select {
    border-radius: 14px;
    border-color: #e2e7f2;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(91, 140, 255, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(91, 140, 255, 0.18);
}

.card {
    border-radius: 18px;
    border-color: #e6e9f2;
    box-shadow: none;
}

.event-card:hover {
    transform: translateY(-2px);
}

.event-card.is-past {
    opacity: 0.68;
}

.event-card__media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.event-card__media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.event-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(17, 24, 39, 0.8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
}

.event-card.has-cover .event-card__badge {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.event-card__badge.is-standalone {
    position: static;
    align-self: flex-start;
}

.event-card__title {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.event-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #5f6776;
    font-size: 0.95rem;
}

.event-card__meta span {
    color: inherit;
}

.event-card__price {
    font-weight: 600;
    color: #10141f;
}

.event-card__actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.event-card.has-cover .btn.btn-light {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.7);
}

.event-card.has-cover .btn.btn-light:hover {
    background: #ffffff;
    border-color: #ffffff;
}

.system-panel {
    background: #f8f9fc;
    border-radius: 16px;
    padding: 16px 20px;
    min-width: 220px;
    color: #4a5568;
}

.system-panel__title {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 6px;
}

.badge-soft {
    background: #fff1e6;
    color: var(--gm-primary-600);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.event-page__layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.event-page__cover {
    width: 280px;
    max-width: 100%;
    flex: 0 0 280px;
}

.event-page__cover img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.event-page__info {
    flex: 1 1 320px;
    min-width: 0;
}

.event-page__header {
    row-gap: 12px;
}

.event-page__status {
    align-self: flex-start;
}

.event-page__address {
    margin-top: 6px;
    margin-bottom: 12px;
}

.event-page__badges {
    row-gap: 12px;
}

.event-page__description {
    font-size: 1rem;
    line-height: 1.6;
    color: #273041;
}

@media (max-width: 575.98px) {
    .event-page__cover {
        width: 100%;
        flex: 0 0 100%;
    }

    .event-page__status {
        margin-top: 8px;
    }
}

.site-suggest .card {
    border: 1px solid #e6e9f2;
    box-shadow: none;
    border-radius: 20px;
}

.footer {
    background: transparent;
    color: #7b8394;
}

.footer__card {
    background: linear-gradient(135deg, #f6f8ff 0%, #ffffff 55%, #f2f6ff 100%);
    border-radius: 28px;
    padding: 28px 28px 20px;
    border: 1px solid #e6e9f2;
    box-shadow: none;
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.footer__logo {
    font-weight: 700;
    font-size: 1.3rem;
    color: #1b2333;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.footer__text {
    color: #5a6476;
    line-height: 1.6;
}

.footer__title {
    font-weight: 600;
    color: #2b3448;
    margin-bottom: 10px;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer__list a {
    color: #5a6476;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__list a:hover {
    color: var(--gm-primary);
}

.footer__bottom {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e6e9f2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    justify-content: space-between;
    color: #8b94a6;
    font-size: 0.95rem;
}

@media (max-width: 767.98px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__card {
        padding: 24px;
        border-radius: 22px;
    }
}

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

.btn-primary:hover,
.btn-primary:focus {
    background: var(--gm-primary-600);
    border-color: var(--gm-primary-600);
}

.btn-outline-primary {
    border-color: #f6d2b8;
    color: var(--gm-primary);
}

.btn-outline-primary:hover {
    background: #fff1e6;
    border-color: var(--gm-primary);
    color: var(--gm-primary);
}
