/* ==========================================================================
   Олимпиада «НАЛОГИ» — лендинг /olimpiada-nalogi
   Дополнительные блоки: плавающая кнопка записи, номинации, этапы проведения.
   ========================================================================== */

.new_land_v2 #consultation-form,
.new_land_v2 #nominations,
.new_land_v2 #stages {
    scroll-margin-top: 96px;
}

/* ---------- Плавающая кнопка «Зарегистрироваться» ---------- */

.olymp-fixed-cta {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 28px;
    border-radius: 999px;
    background: #ff383c;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(255, 56, 60, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.olymp-fixed-cta:hover,
.olymp-fixed-cta:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(255, 56, 60, 0.45);
}

.olymp-fixed-cta:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

.olymp-fixed-cta svg {
    flex: 0 0 auto;
}

.olymp-fixed-cta.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
}

/* ---------- Номинации ---------- */

.olymp-nominations {
    margin-top: 120px;
    margin-bottom: 120px;
}

.olymp-nominations .what-give__title {
    margin: 0 0 48px;
    font-weight: 500;
    font-size: 36px;
    line-height: 44px;
    color: #fff;
}

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

.nomination-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 28px 24px;
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.nomination-card:hover,
a.nomination-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 42, 94, 0.18);
}

a.nomination-card:focus-visible {
    outline: 3px solid #2f51a2;
    outline-offset: 2px;
}

.nomination-card__title {
    margin: 0;
    font-weight: 500;
    font-size: 22px;
    line-height: 28px;
    color: #2f51a2;
}

.nomination-card__text {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #5c5c5c;
}

.nomination-card__org {
    margin: 0;
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
    color: #0e5399;
}

.nomination-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #2f51a2;
}

/* ---------- Этапы проведения ---------- */

.olymp-stages {
    margin-top: 120px;
    margin-bottom: 120px;
}

.olymp-stages__title {
    margin: 0 0 48px;
    font-weight: 500;
    font-size: 36px;
    line-height: 44px;
    color: #fff;
}

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

.olymp-stage-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    padding: 28px;
    border-radius: 16px;
    background: #fff;
    box-sizing: border-box;
}

.olymp-stage-card__num {
    position: absolute;
    top: 10px;
    right: 20px;
    font-weight: 700;
    font-size: 64px;
    line-height: 1;
    color: rgba(47, 81, 162, 0.08);
    pointer-events: none;
}

.olymp-stage-card__step {
    position: relative;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a9bb8;
}

.olymp-stage-card__title {
    position: relative;
    margin: 0;
    font-weight: 500;
    font-size: 22px;
    line-height: 28px;
    color: #2f51a2;
}

.olymp-stage-card__dates {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    padding: 8px 14px;
    border-radius: 48px;
    background: #eaf1fb;
    color: #2f51a2;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
}

/* ---------- Блок «Результаты» (итоги и протоколы) ---------- */

.olymp-results-archive__header {
    margin-bottom: 36px;
}

.olymp-results-archive__title {
    margin: 0 0 14px;
    font-weight: 500;
    font-size: 36px;
    line-height: 44px;
    color: #fff;
}

.olymp-results-archive__subtitle {
    margin: 0;
    max-width: 720px;
    font-size: 16px;
    line-height: 22px;
    color: rgba(255, 255, 255, 0.85);
}

.olymp-results-archive__stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.olymp-result-stage {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    box-sizing: border-box;
}

.olymp-result-stage__period {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    background: #eaf1fb;
    color: #2f51a2;
    font-weight: 500;
    font-size: 12px;
    line-height: 18px;
}

.olymp-result-stage__title {
    margin: 0;
    font-weight: 500;
    font-size: 20px;
    line-height: 26px;
    color: #2f51a2;
}

.olymp-result-stage__meta {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #0e5399;
}

.olymp-result-stage__summary {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: #5c5c5c;
}

.olymp-result-stage__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #2f51a2;
    text-decoration: none;
}

.olymp-result-stage__link:hover {
    text-decoration: underline;
}

.olymp-results-archive__docs {
    margin-top: 24px;
    padding: 28px 32px;
    border-radius: 20px;
    background: #fff;
}

.olymp-results-archive__docs-title {
    margin: 0 0 18px;
    font-weight: 500;
    font-size: 22px;
    line-height: 28px;
    color: #2f51a2;
}

.olymp-results-archive__docs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.olymp-result-doc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid #d9e3f5;
    border-radius: 12px;
    background: #f8faff;
    color: #1f2a37;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.olymp-result-doc:hover {
    border-color: #2f51a2;
    background: #eef4ff;
}

.olymp-result-doc__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.olymp-result-doc__title {
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    color: #2f51a2;
}

.olymp-result-doc__meta {
    font-size: 13px;
    line-height: 18px;
    color: #5c5c5c;
}

.olymp-result-doc__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #eaf1fb;
    color: #2f51a2;
}

.olymp-results-archive__empty {
    padding: 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 16px;
    line-height: 22px;
}

/* ---------- Нижний информационный блок контактов ---------- */

.olymp-contact-note {
    margin: 48px 0 96px;
}

.olymp-contact-note__card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 22px 28px;
    border-radius: 16px;
    background: #fff;
    color: #1f2c4d;
    text-align: center;
    box-shadow: 0 12px 32px rgba(10, 29, 68, 0.12);
}

.olymp-contact-note__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: #eaf1fb;
    color: #2f51a2;
}

.olymp-contact-note__text {
    margin: 0;
    font-weight: 500;
    font-size: 17px;
    line-height: 24px;
    color: #1f2c4d;
}

.olymp-contact-note__link {
    color: #2f51a2;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.olymp-contact-note__link:hover {
    color: #1f3c84;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1024px) {
    .olymp-nominations {
        margin-top: 64px;
        margin-bottom: 64px;
    }

    .olymp-nominations .what-give__title {
        margin-bottom: 32px;
        font-size: 28px;
        line-height: 36px;
    }

    .olymp-nominations__grid {
        gap: 16px;
    }

    .olymp-stages {
        margin-top: 64px;
        margin-bottom: 64px;
    }

    .olymp-stages__title {
        margin-bottom: 32px;
        font-size: 28px;
        line-height: 36px;
    }

    .olymp-stage-card {
        padding: 24px;
    }

    .olymp-results-archive__title {
        font-size: 28px;
        line-height: 36px;
    }

    .olymp-results-archive__docs {
        padding: 24px;
    }
}

@media (max-width: 900px) {
    .olymp-stages__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .olymp-fixed-cta {
        right: 16px;
        bottom: 16px;
        height: 44px;
        padding: 0 20px;
        font-size: 14px;
    }

    .olymp-nominations__grid {
        grid-template-columns: 1fr;
    }

    .nomination-card {
        padding: 24px 20px 20px;
    }

    .olymp-contact-note {
        margin: 32px 0 88px;
    }

    .olymp-contact-note__card {
        flex-direction: column;
        gap: 10px;
        padding: 18px 20px;
    }

    .olymp-contact-note__text {
        font-size: 15px;
        line-height: 22px;
    }

    .olymp-results-archive__docs {
        padding: 20px 16px;
    }
}

@media (max-width: 420px) {
    .olymp-fixed-cta {
        left: 16px;
        right: 16px;
        padding: 0 16px;
    }
}
