/* Памятки (resources/views/page/*_memo): участника, финалиста, жюри, модератора, МТС Линк. Палитра — как у страницы оценок (jury_scores.css) */

.memo-page {
    overflow: clip;
}

.memo-page .policy-page__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    max-width: 56rem;
    margin: 0 auto;
}

/* ---- Шапка */

.memo-hero {
    position: relative;
    padding: 2rem 2rem 1.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #E8F7FD 0%, #E9FBF6 100%);
    overflow: hidden;
}

.memo-hero::after {
    content: '';
    position: absolute;
    right: -4rem;
    top: -4rem;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 208, 168, 0.18), rgba(26, 208, 168, 0) 70%);
    pointer-events: none;
}

.memo-hero__kicker {
    color: #0B7FB5;
    font-size: 0.8125rem;
    font-weight: 600;
}

.memo-hero__title {
    margin: 0.5rem 0 0.4rem;
    color: #303030;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.memo-hero__lead {
    max-width: 40rem;
    margin: 0;
    color: #4A4A4A;
}

.memo-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
}

.memo-facts__item {
    min-width: 8.5rem;
    padding: 0.7rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.85);
}

.memo-facts dt {
    color: #7C7C7D;
    font-size: 0.75rem;
    font-weight: 500;
}

.memo-facts dd {
    margin: 0.1rem 0 0;
    color: #303030;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}

.memo-facts dd small {
    color: #7C7C7D;
    font-size: 0.75rem;
    font-weight: 500;
}

.memo-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.25rem;
}

.memo-nav a {
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(11, 127, 181, 0.25);
    border-radius: 999px;
    background: #fff;
    color: #0B7FB5;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.memo-nav a:hover {
    border-color: #1AA7EC;
    color: #1AA7EC;
}

/* ---- Разделы */

.memo-section {
    scroll-margin-top: 1rem;
    padding: 1.5rem 1.6rem;
    border: 1px solid #EDEEF0;
    border-radius: 1.25rem;
    background: #fff;
    font-size: 0.9875rem;
    line-height: 1.55;
}

.memo-section > p {
    margin: 0 0 0.75rem;
}

.memo-section_soft {
    background: #F7F8FA;
}

.memo-section__title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.memo-section__n {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #1AA7EC;
    color: #fff;
    font-size: 1rem;
}

.memo-hint {
    color: #7C7C7D;
    font-size: 0.875rem;
}

.memo-section code {
    padding: 0.05rem 0.35rem;
    border-radius: 0.35rem;
    background: #F4F5F7;
    color: #303030;
    font-size: 0.85em;
    word-break: break-all;
}

/* Чек-лист и списки */
.memo-checks,
.memo-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}

.memo-checks li,
.memo-list li {
    position: relative;
    padding-left: 1.9rem;
}

.memo-checks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #DDF6EE;
    color: #0E7A62;
    font-size: 0.8rem;
    font-weight: 700;
}

.memo-list li::before {
    content: '';
    position: absolute;
    left: 0.45rem;
    top: 0.62rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #1AA7EC;
}

/* Нумерованные шаги */
.memo-steps {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    counter-reset: memo-step;
}

.memo-steps li {
    position: relative;
    padding: 0.65rem 0.9rem 0.65rem 3rem;
    border-radius: 0.9rem;
    background: #F7F8FA;
    counter-increment: memo-step;
}

.memo-steps li::before {
    content: counter(memo-step);
    position: absolute;
    left: 0.8rem;
    top: 0.62rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #fff;
    color: #0B7FB5;
    font-size: 0.8125rem;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px #CFE9F7;
}

/* Выноски */
.memo-callout {
    margin: 0 0 1rem;
    padding: 1rem 1.15rem;
    border-left: 4px solid #1AA7EC;
    border-radius: 0.9rem;
    background: #F5FBFE;
}

.memo-callout p {
    margin: 0;
}

.memo-callout p + p {
    margin-top: 0.5rem;
}

.memo-callout__title {
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.memo-callout_main {
    border-left-color: #E0A800;
    background: #FFF7E6;
}

/* Карточки: критерии, правила */
.memo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.memo-card {
    padding: 0.9rem 1rem;
    border: 1px solid #EDEEF0;
    border-radius: 1rem;
    background: #fff;
}

.memo-card__title {
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.memo-card__text {
    color: #5f6b73;
    font-size: 0.875rem;
    line-height: 1.45;
}

.memo-card__text p {
    margin: 0;
}

.memo-card__text p + p {
    margin-top: 0.5rem;
}

.memo-card__price {
    margin-bottom: 0.35rem;
    color: #0B7FB5;
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Шкала оценок */
.memo-scale {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1rem;
    font-size: 0.8125rem;
}

.memo-scale__caption {
    margin-right: 0.25rem;
    color: #7C7C7D;
    font-weight: 600;
}

.memo-scale__item {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: #F4F5F7;
}

.memo-scale__item b {
    margin-right: 0.2rem;
}

.memo-scale__item_0 {
    background: #DDF6EE;
}

.memo-scale__item_1 {
    background: #E8F7FD;
}

.memo-scale__item_2 {
    background: #FFF4D6;
}

/* Расписание */
.memo-timeline {
    position: relative;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}

.memo-timeline::before {
    content: '';
    position: absolute;
    left: 5.35rem;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 2px;
    background: #CFE9F7;
}

.memo-timeline__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2.1rem;
    padding: 0.4rem 0;
}

.memo-timeline__item::before {
    content: '';
    position: absolute;
    left: 5.05rem;
    width: 0.75rem;
    height: 0.75rem;
    border: 2px solid #1AA7EC;
    border-radius: 50%;
    background: #fff;
}

.memo-timeline__time {
    flex: 0 0 4.2rem;
    color: #0B7FB5;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.memo-timeline__item_accent {
    font-weight: 700;
}

.memo-timeline__item_accent::before {
    background: #1AA7EC;
}

.memo-timeline__item_break {
    color: #8A6100;
}

.memo-timeline__item_break::before {
    border-color: #E0A800;
}

.memo-timeline__item_break .memo-timeline__time {
    color: #8A6100;
    font-weight: 600;
}

/* Скриншоты */
.memo-figure {
    margin: 0 0 1rem;
}

.memo-figure img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #EDEEF0;
    border-radius: 0.9rem;
}

.memo-figure_small img {
    max-width: 14rem;
}

.memo-figure figcaption {
    margin-top: 0.4rem;
    color: #7C7C7D;
    font-size: 0.8125rem;
}

@media (max-width: 767px) {
    .memo-hero {
        padding: 1.4rem 1.2rem 1.2rem;
        border-radius: 1.25rem;
    }

    .memo-hero__title {
        font-size: 1.6rem;
    }

    .memo-facts {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .memo-facts__item {
        min-width: 0;
        padding: 0.6rem 0.8rem;
    }

    .memo-facts dd {
        white-space: normal;
    }

    .memo-section {
        padding: 1.2rem;
    }

    .memo-section__title {
        font-size: 1.1rem;
    }
}
