/* Главная FeisInfo. Стили ограничены этой страницей. */
body.fi-home-page {
    min-width: 0;
    margin: 0;
    background: #f7fafc;
    font-family: "Trebuchet MS", Helvetica, sans-serif;
}

#feis-home {
    --home-blue: #009eff;
    --home-ink: #18334c;
    --home-muted: #63788b;
    --home-line: #dfebf2;
    color: var(--home-ink);
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: break-word;
}

#feis-home [hidden] {
    display: none !important;
}

#feis-home a {
    text-decoration: none !important;
}

#feis-home button,
#feis-home input,
#feis-home select {
    font: inherit;
}

#feis-home button,
#feis-home a,
#feis-home input,
#feis-home select {
    -webkit-tap-highlight-color: transparent;
}

#feis-home :focus-visible {
    outline: 3px solid #78c8ff;
    outline-offset: 3px;
}

#feis-home svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

#feis-home .home-header {
    background: var(--home-blue);
    color: white;
}

#feis-home .home-header-inner {
    display: flex;
    align-items: center;
    gap: 36px;
    max-width: 1180px;
    min-height: 80px;
    margin: auto;
    padding: 12px 24px;
}

#feis-home .home-brand {
    flex-shrink: 0;
}

#feis-home .home-brand img {
    display: block;
    width: 158px;
    height: auto;
}

#feis-home .home-navigation,
#feis-home .home-header-actions,
#feis-home .home-languages {
    display: flex;
    align-items: center;
    gap: 24px;
}

#feis-home .home-header a {
    color: white;
}

#feis-home .home-navigation a {
    font-size: 14px;
}

#feis-home .home-header-actions {
    margin-left: auto;
    gap: 18px;
}

#feis-home .home-languages {
    gap: 3px;
}

#feis-home .home-languages a {
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: bold;
}

#feis-home .home-languages a[aria-current],
#feis-home .home-languages a:hover {
    background: #ffffff24;
}

#feis-home .home-header-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #ffffff6b;
    border-radius: 10px;
    background: transparent;
    color: white;
    font-size: 13px;
    cursor: pointer;
}

#feis-home .home-main {
    max-width: 1180px;
    margin: auto;
    padding: 52px 24px 30px;
}

#feis-home section,
#feis-home #home-account {
    scroll-margin-top: 24px;
}

#feis-home .home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.85fr);
    align-items: center;
    gap: 60px;
    margin-bottom: 64px;
}

#feis-home .home-hero-copy {
    min-width: 0;
}

#feis-home .home-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--home-muted);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#feis-home .home-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--home-blue);
    box-shadow: 0 0 0 5px #009eff12;
    flex-shrink: 0;
}

#feis-home h1 {
    max-width: 16ch;
    margin: 0 0 22px;
    font-size: clamp(36px, 4.5vw, 57px);
    font-weight: bold;
    letter-spacing: -0.045em;
    line-height: 1.07;
}

#feis-home .home-lead {
    max-width: 520px;
    margin: 0 0 28px;
    color: var(--home-muted);
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: normal;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

#feis-home .home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#feis-home .home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

#feis-home .home-button.is-primary {
    background: var(--home-blue);
    color: white;
    box-shadow: 0 5px 14px #009eff24;
}

#feis-home .home-button.is-primary:hover {
    background: #008de5;
}

#feis-home .home-button.is-light {
    border-color: var(--home-line);
    background: white;
    color: var(--home-ink);
}

#feis-home .home-button.is-account {
    background: #edf7f0;
    color: #31844d;
}

#feis-home .home-account-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 420px;
    margin: 22px 0 0;
    color: var(--home-muted);
    font-size: 12px;
}

#feis-home .home-account-note svg {
    width: 17px;
    height: 17px;
    margin-top: 1px;
}

#feis-home .home-account-card {
    min-width: 0;
    padding: 27px;
    border: 1px solid var(--home-line);
    border-radius: 22px;
    background: white;
    box-shadow: 0 15px 40px #18334c08;
}

#feis-home .home-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

#feis-home .home-scope {
    max-width: 160px;
    color: #80929e;
    font-size: 11px;
    line-height: 1.4;
    text-align: right;
}

#feis-home .home-account-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

#feis-home .home-account-card > p:not(.home-eyebrow) {
    margin-bottom: 16px;
    color: var(--home-muted);
    font-size: 13px;
}

#feis-home #home-login label {
    display: block;
    margin: 12px 0 5px !important;
    color: var(--home-muted);
    font-size: 12px;
}

#feis-home #home-login input:not([type="hidden"]) {
    display: block;
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #d8e4ec;
    border-radius: 9px;
    background: #fafcfd;
    color: var(--home-ink);
    font-size: 14px;
}

#feis-home #home-login .home-button {
    width: 100%;
    margin-top: 18px;
}

#feis-home .home-signup-link {
    margin: 13px 0 0;
    text-align: center;
}

#feis-home .home-signup-link a {
    color: #0789d8;
}

#feis-home .home-account-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

#feis-home .home-account-links a,
#feis-home .home-account-links button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--home-muted);
    font-size: 12px;
    cursor: pointer;
}

#feis-home .home-status {
    margin: 8px 0 0;
    color: var(--home-muted);
    font-size: 12px;
}

#feis-home .home-status:empty {
    margin: 0;
}

#feis-home .home-status.is-error {
    color: #b42d32;
}

#feis-home .home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 22px;
}

#feis-home .home-section-heading .home-eyebrow {
    margin-bottom: 8px;
}

#feis-home .home-section-heading h2 {
    margin: 0;
    font-size: 27px;
    font-weight: bold;
    letter-spacing: -0.03em;
}

#feis-home .home-section-heading > p {
    max-width: 440px;
    margin: 0;
    color: var(--home-muted);
    font-size: 13px;
}

#feis-home .home-event-picker {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 25px;
    margin-bottom: 16px;
    padding: 20px 24px;
    border: 1px solid #cde8f9;
    border-radius: 15px;
    background: #edf7fe;
}

#feis-home .home-event-picker label {
    display: block;
    margin-bottom: 6px !important;
    color: #63809a;
    font-size: 11px;
}

#feis-home .home-event-control {
    position: relative;
}

#feis-home .home-event-control select,
#feis-home .home-event-input {
    width: 100%;
    height: 44px;
    padding: 10px 44px 10px 12px;
    border: 1px solid #c8ddeb;
    border-radius: 9px;
    background: white;
    color: var(--home-ink);
    font-size: 14px;
    line-height: 22px;
}

#feis-home .home-event-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #4f829f;
    font-size: 20px;
    cursor: pointer;
}

#feis-home .home-event-options {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 20;
    max-height: 280px;
    padding: 6px;
    margin: 0;
    overflow-y: auto;
    border: 1px solid #c8ddeb;
    border-radius: 11px;
    background: white;
    box-shadow: 0 12px 28px #18334c18;
    list-style: none;
}

#feis-home .home-event-option {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 13px;
    cursor: pointer;
}

#feis-home .home-event-option small {
    color: var(--home-muted);
    font-size: 11px;
}

#feis-home .home-event-option.is-active,
#feis-home .home-event-option:hover {
    background: #eaf6ff;
}

#feis-home .home-native-select {
    margin-top: 8px;
}

#feis-home .home-event-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 16px;
    padding-top: 18px;
    color: #4f6d87;
    font-size: 12px;
}

#feis-home .home-event-meta > span,
#feis-home .home-event-meta > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#feis-home .home-event-meta > a {
    color: #0789d8;
}

#feis-home .home-event-meta svg {
    width: 16px;
    height: 16px;
}

#feis-home .home-event-picker .home-status {
    grid-column: 1 / -1;
}

#feis-home .home-state {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: bold;
}

#feis-home .home-state.is-open {
    background: #dcf1e2;
    color: #398152;
}

#feis-home .home-state.is-closed,
#feis-home .home-state.is-archive {
    background: #e4edf4;
    color: #607b90;
}

#feis-home .home-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

#feis-home .home-module-card {
    --module-color: #0086d6;
    --module-tint: #edf7fe;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--home-line);
    border-radius: 15px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#feis-home .home-module-card:hover {
    border-color: var(--module-color);
    box-shadow: 0 8px 24px #18334c06;
}

#feis-home .home-module-card.is-registration {
    --module-color: #dc870b;
    --module-tint: #fff5e6;
}

#feis-home .home-module-card.is-organizer {
    --module-color: #6666cc;
    --module-tint: #f0effc;
}

#feis-home .home-module-card.is-visitor {
    --module-color: #df4063;
    --module-tint: #fff0f3;
}

#feis-home .home-module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--module-tint, #edf7f0);
    color: var(--module-color, #41915b);
}

#feis-home .home-module-card h3 {
    margin: 19px 0 10px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: -0.02em;
}

#feis-home .home-module-card > p {
    margin: 0 0 20px;
    color: var(--home-muted);
    font-size: 13px;
}

#feis-home .home-module-action {
    margin-top: auto;
}

#feis-home .home-module-action a,
#feis-home .home-module-action button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--module-color);
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

#feis-home .home-access-note {
    display: block;
    color: #8495a3;
    font-size: 11px;
}

#feis-home .home-school {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 55px;
    padding: 35px;
    border-radius: 20px;
    background: #18334c;
    color: white;
}

#feis-home .home-school-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border: 1px solid #ffffff20;
    border-radius: 19px;
    background: #ffffff08;
    color: #81c6de;
    flex-shrink: 0;
}

#feis-home .home-school-icon svg {
    width: 38px;
    height: 38px;
}

#feis-home .home-school .home-eyebrow {
    color: #91afc8;
}

#feis-home .home-state.is-planned {
    background: #ffffff12;
    color: #bfd0de;
    font-size: 9px;
    letter-spacing: normal;
}

#feis-home .home-school h2 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: -0.025em;
}

#feis-home .home-school h2 > span {
    margin-left: 13px;
    color: #81c6de;
    font-size: 13px;
    font-weight: normal;
    letter-spacing: 0.08em;
}

#feis-home .home-school-copy {
    min-width: 0;
}

#feis-home .home-school-copy > p {
    max-width: 750px;
    color: #a8bfd2;
    font-size: 14px;
}

#feis-home .home-school summary {
    color: #d5e6f3;
    font-size: 12px;
    cursor: pointer;
}

#feis-home .home-school ul {
    margin: 12px 0 0;
    color: #a8bfd2;
    font-size: 13px;
}

#feis-home .home-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1180px;
    margin: auto;
    padding: 0 24px 25px;
    color: #8c9fad;
    font-size: 11px;
}

#feis-home .home-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#feis-home button:disabled,
#feis-home input:disabled,
#feis-home select:disabled {
    cursor: wait;
    opacity: 0.65;
}

@media (max-width: 950px)  {
    #feis-home .home-hero {
        gap: 30px;
    }

    #feis-home .home-event-picker {
        grid-template-columns: minmax(0, 1fr);
    }

    #feis-home .home-event-meta {
        justify-content: flex-start;
        padding-top: 14px;
    }
}

@media (max-width: 720px)  {
    #feis-home .home-header-inner {
        gap: 10px;
        min-height: 68px;
        padding: 12px 18px;
    }

    #feis-home .home-brand img {
        width: 125px;
    }

    #feis-home .home-navigation {
        display: none;
    }

    #feis-home .home-header-actions {
        gap: 8px;
    }

    #feis-home .home-header-account {
        padding: 8px;
    }

    #feis-home .home-header-account > span {
        display: none;
    }

    #feis-home .home-main {
        padding: 30px 18px 25px;
    }

    #feis-home .home-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        margin-bottom: 40px;
    }

    #feis-home h1 {
        max-width: 17ch;
        font-size: 40px;
    }

    #feis-home .home-lead {
        font-size: 24px;
    }

    #feis-home .home-account-card {
        padding: 22px;
    }

    #feis-home .home-section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    #feis-home .home-section-heading h2 {
        font-size: 25px;
    }

    #feis-home .home-event-picker {
        padding: 18px;
    }

    #feis-home .home-module-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    #feis-home .home-module-card {
        padding: 21px;
    }

    #feis-home .home-module-card h3 {
        margin-top: 14px;
    }

    #feis-home .home-school {
        flex-direction: column;
        gap: 20px;
        margin-top: 35px;
        padding: 25px;
    }

    #feis-home .home-school h2 {
        font-size: 25px;
    }

    #feis-home .home-footer {
        flex-wrap: wrap;
        gap: 8px 20px;
        padding: 0 18px 22px;
    }
}

@media (prefers-reduced-motion: reduce)  {
    #feis-home *,
    #feis-home *::before,
    #feis-home *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Быстрый выбор раздела в мобильной шапке. */
#feis-home .home-header {
    position: relative;
    z-index: 30;
}

#feis-home .home-menu-toggle,
#feis-home .home-mobile-menu {
    display: none;
}

#feis-home .home-menu-toggle {
    width: 42px;
    min-height: 42px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid #ffffff6b;
    border-radius: 9px;
    background: transparent;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

#feis-home .home-mobile-menu {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    z-index: 30;
    max-height: min(70vh, 480px);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #d1e5f4;
    border-radius: 0 0 12px 12px;
    background: white;
    box-shadow: 0 12px 24px #18334c24;
}

#feis-home .home-mobile-menu a,
#feis-home .home-mobile-menu button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #37566e;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

#feis-home .home-mobile-menu a:hover,
#feis-home .home-mobile-menu button:hover {
    background: #edf7ff;
}

#feis-home .home-menu-context {
    margin: 4px 12px;
    padding: 8px 0 4px;
    border-top: 1px solid #e3edf5;
    color: #8a9cac;
    font-size: 10px;
    overflow-wrap: anywhere;
}

@media (max-width: 720px) {
    #feis-home .home-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #feis-home .home-mobile-menu {
        display: block;
    }

    #feis-home .home-brand img {
        width: 100px;
    }
}
