@font-face {
    font-family: Inter;
    src: url("inter-variable-latin-cyrillic.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --heading-ink: #29244f;
    --menu-font-size: 18px;
}

[hidden] { display: none !important; }

.skip-link {
    position: absolute;
    z-index: 40;
    top: .7rem;
    left: .7rem;
    padding: .65rem 1rem;
    background: white;
    transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.brand-logo { display: block; width: 100%; height: auto; }
.header .brand {
    flex: 0 1 244px;
}
.footer {
    padding-block: 0 14px;
    background: #fff;
}
.footer::before {
    display: block;
    height: clamp(108px, 14vw, 200px);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(to bottom, var(--page-background, #fff) 5%, #f5f8fb55 44%, #f5f8fb48),
        #dfe7f2 url("hero/big-conference.webp") center 57% / cover no-repeat;
    content: "";
}
.footer .footer-inner { gap: 8px 20px; }
.footer .brand { width: 180px; max-width: 100%; }
.footer .footer-links { gap: 2px 18px; }
.footer .footer-links a { display: flex; align-items: center; min-height: 28px; }
.footer .footer-description {
    margin: 8px auto 0;
    font-size: clamp(11px, 3.5vw, 14px);
    text-align: center;
}
.footer .footer-copyright {
    margin: 9px auto 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    text-align: center;
}
.cookie-banner {
    position: fixed;
    z-index: 35;
    inset: auto max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) auto;
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(390px, calc(100% - 24px));
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    color: var(--ink);
    font-size: 14px;
}
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--accent-deep); text-decoration: underline; }
.cookie-banner button {
    flex: none;
    min-height: 40px;
    padding: 6px 12px;
    border: 0;
    border-radius: 9px;
    background: var(--accent-deep);
    color: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.nav a, .mobile-overlay a { font-size: var(--menu-font-size); }
.nav a { font-weight: 720; letter-spacing: -.025em; }
.site { padding-top: 18px; }
.hero {
    --hero-height: clamp(400px, 33vw, 460px);
    height: auto;
    min-height: var(--hero-height);
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: var(--hero-height);
    max-width: min(57%, 690px);
    padding-block: clamp(52px, 5vw, 76px) 40px;
}
.hero h1 {
    max-width: 100%;
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 780;
    line-height: 1.1;
    letter-spacing: -.035em;
}
.hero p { margin: 13px 0 0; font-size: 18px; line-height: 1.38; }
.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    margin-top: auto;
    padding-top: 20px;
}
.hero-cta {
    min-width: 220px;
    height: 56px;
    margin: 0;
    padding-inline: 20px;
    font-weight: 740;
}
.hero-next {
    position: static;
    width: 300px;
    height: 56px;
    gap: 10px;
    padding: 7px 12px;
    border-radius: 16px;
}
.hero-next .next-icon { width: 38px; height: 38px; }
.hero-next .next-icon .icon { width: 22px; height: 22px; }
.next-details strong { font-size: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.hero-visual { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}
.hero-push {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #dce9fb;
    border-radius: 50%;
    background: #f5f9ff;
    color: var(--accent-deep);
    box-shadow: var(--shadow);
    pointer-events: auto;
}
.hero-push[data-subscribed="true"] { background: var(--accent-deep); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
    .hero-push[data-subscribed="false"] .icon {
        transform-origin: 50% 20%;
        animation: push-bell-ring .8s ease-in-out 2;
    }
    @keyframes push-bell-ring {
        20%, 60% { transform: rotate(13deg); }
        40%, 80% { transform: rotate(-13deg); }
    }
}
.push-dialog {
    width: min(410px, calc(100% - 24px));
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--ink);
    background: #fff;
}
.push-dialog::backdrop { background: #15243c80; }
.push-dialog h2 { margin: 0; color: var(--heading-ink); font-size: 20px; }
.push-dialog p { margin: 12px 0 16px; }
.push-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.push-actions button {
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--accent-deep);
    font: inherit;
}
.push-actions [data-push-toggle] { background: var(--accent-deep); color: #fff; }
@media (min-width: 781px) {
    .hero-content :is(h1, p) { text-shadow: 0 1px 5px #141a35d9, 0 1px 12px #141a3599; }
}
.next-details strong { overflow: hidden; text-overflow: ellipsis; }
.catalog-top h2 {
    margin: 0;
    color: var(--heading-ink);
    font-size: clamp(34px, 3.05vw, 42px);
    font-weight: 790;
    letter-spacing: -.04em;
}
.catalog .filters { grid-template-columns: minmax(0, 1fr) minmax(155px, 230px) auto; }
.filter-submit {
    min-height: 44px;
    padding: 0 24px;
    border: 0;
    border-radius: 13px;
    background: var(--accent);
    color: white;
    font-weight: 750;
}
.filter-submit:hover { background: var(--accent-deep); }
.art .event-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.art { isolation: isolate; }
.art:not(:has(.event-cover))::before {
    background: #3568aa;
    mix-blend-mode: color;
    opacity: .78;
}
.event .date.date-text {
    min-height: 70px;
    height: auto;
    max-width: min(170px, calc(100% - 30px));
    padding: 6px 9px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}
.event h3, .meta-line, .event-note { overflow-wrap: anywhere; }
.event h3 { font-size: clamp(17px, 1.4vw, 19px); font-weight: 750; line-height: 1.18; letter-spacing: -.025em; }
.meta { letter-spacing: -.01em; }
.event-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.card-actions { margin-top: auto; }
.card-foot { font-weight: 720; }
.catalog-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.catalog-pages a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--accent); }
.preview-note { margin-block: 0; padding-bottom: 14px; color: var(--muted); font-size: 13px; }

@media (max-width: 1200px) and (min-width: 781px) {
    .hero-content { max-width: min(57%, max(300px, calc(100% - 510px))); }
}

@media (max-width: 1120px) and (min-width: 781px) {
    :root { --menu-font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 780px) {
    :root { --menu-font-size: 15px; }
    .site { padding-top: 8px; }
    .header { height: 58px; gap: 8px; }
    .header .brand { flex-basis: clamp(140px, 48vw, 160px); }
    .header .actions { flex-shrink: 0; gap: 6px; }
    .account { min-height: 40px; padding-inline: 9px; gap: 5px; font-size: 12px; }
    .account .icon { width: 16px; height: 16px; }
    .mobile-menu { width: 40px; height: 40px; }
    .mobile-menu span { font-size: 22px; line-height: 1; }
    .mobile-overlay { top: 100%; }
    .mobile-overlay:not([data-menu-ready]) { display: grid; }
    .mobile-menu:not([data-menu-ready]) { display: none; }

    .hero {
        display: grid;
        grid-template-rows: auto auto minmax(min(190px, 38vw), 1fr) auto auto;
        gap: 8px;
        height: auto;
        min-height: calc(100vh - 74px);
        min-height: calc(100svh - 74px);
        margin: 0;
        padding: clamp(18px, 5vh, 38px) 16px 5px;
    }
    .hero-visual {
        grid-row: 3;
        position: relative;
        align-self: center;
        height: min(100%, calc((100vw - 32px) / 1.08), 440px);
        margin-inline: -16px;
    }
    .hero-content, .hero-actions { display: contents; }
    .hero h1, .hero p, .hero-cta { position: relative; z-index: 5; }
    .hero h1 {
        grid-row: 1;
        margin: 0;
        font-size: clamp(32px, 9.5vw, 48px);
        line-height: 1.06;
        letter-spacing: -.045em;
        text-wrap: wrap;
    }
    .hero h1 span { display: block; }
    .hero p { grid-row: 2; margin: 0; font-size: 15px; line-height: 1.4; }
    .hero-cta { grid-row: 4; width: 100%; max-width: 410px; min-width: 0; height: 52px; margin: 0; padding-inline: 16px; font-size: 16px; }
    .hero-cta .icon { width: 23px; height: 23px; }
    .hero-next { grid-row: 5; position: relative; inset: auto; width: 100%; max-width: 410px; height: 58px; padding: 7px 11px; gap: 10px; }
    .next-details small { font-size: clamp(11px, 3.34vw, 13px); line-height: 1.2; }
    .next-details strong { font-size: 16px; }

    .catalog { padding-block: 12px 28px; }
    .catalog-top { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; }
    .catalog-top h2 { font-size: clamp(22px, 6vw, 28px); }
    .catalog .tabs { margin: 0; }
    .catalog .tab { padding: 6px 9px; }
    .catalog .filters { margin-top: 9px; }
    .results { min-height: 0; margin: 6px 2px; font-size: 13px; }
}

@media (max-width: 520px) {
    .catalog .filters { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
    .catalog .filters label:first-of-type { grid-column: 1 / -1; }
    .filter-submit { padding-inline: 14px; }
    .footer .footer-links { flex-direction: column; }
    .event .art { height: 88px; }
    .event .date { top: 8px; height: 70px; }
    .event h3 { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
