/* Калькулятор оценок */

.grades-calc__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.grades-calc__tab {
    padding: 10px 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f5f5f5;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.grades-calc__tab:hover,
.grades-calc__tab:focus {
    border-color: #999;
}

.grades-calc__tab.active {
    background-image: linear-gradient(132.6deg, rgba(19, 19, 214, 1) 34%, rgba(19, 19, 214, 1) 35%, rgba(17, 22, 145, 1) 74%);
    color: #fff;
    border-color: transparent;
    font-weight: bold;
}

.grades-calc__tab--link {
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    box-sizing: border-box;
}

.grades-calc__tab--link:hover,
.grades-calc__tab--link:focus {
    color: #333;
}

.grades-calc__mode {
    margin-bottom: 20px;
}

.grades-calc__grades-input .input {
    max-width: 450px;
    width: 100%;
    font-size: 28px;
}

.grades-calc__counter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 0 20px;
}

.grades-calc__grades-input {
    margin-bottom: 24px;
}

.grades-calc__counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 14px 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    min-width: 88px;
}

.grades-calc__counter-label {
    font-size: 44px;
    font-weight: bold;
    line-height: 1;
    color: #111;
    text-align: center;
}

.grades-calc__counter-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.grades-calc__counter-value {
    font-size: 18px;
    min-width: 32px;
    text-align: center;
    font-weight: bold;
    color: #333;
}

.grades-calc__counter-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f5f5f5;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.grades-calc__counter-btn:hover,
.grades-calc__counter-btn:focus {
    background: #e8e8e8;
    border-color: #999;
}

.grades-calc__period-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
    margin-top: 16px;
}

.grades-calc__period-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.grades-calc__switch-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f5f5f5;
    font-size: 15px;
    cursor: pointer;
}

.grades-calc__switch-btn.active {
    background-image: linear-gradient(132.6deg, rgba(19, 19, 214, 1) 34%, rgba(19, 19, 214, 1) 35%, rgba(17, 22, 145, 1) 74%);
    color: #fff;
    border-color: transparent;
    font-weight: bold;
}

.grades-calc__thresholds {
    margin-top: 16px;
}

.grades-calc__thresholds .input {
    max-width: 120px;
}

.grades-calc__link-card {
    max-width: 700px;
    margin: 30px auto;
    padding: 24px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9ff;
    text-align: center;
}

.grades-calc__link-card-title {
    font-size: 22px;
    margin: 0 0 12px;
}

.grades-calc__link-card p {
    margin-bottom: 16px;
    color: #444;
}

.grades-calc__link-btn {
    display: inline-block;
    text-decoration: none;
    padding: 12px 24px;
}

.grades-calc__result-card {
    padding: 28px 24px 24px;
    text-align: left;
    border-radius: 16px;
    border: 1px solid #e4e8f5;
    background: linear-gradient(180deg, #fafbff 0%, #ffffff 120px);
}

.grades-calc__result-card .rezult-zone__text--main {
    display: none;
}

.grades-calc__result-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eef1fa;
}

.grades-calc__result-badge {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 42px;
    font-weight: bold;
    color: #fff;
    background-image: linear-gradient(135deg, #1b1fd6 0%, #111691 100%);
    box-shadow: 0 10px 24px rgba(19, 19, 214, 0.25);
}

.grades-calc__result-badge[data-grade="5"] {
    background-image: linear-gradient(135deg, #1a9b4d 0%, #0d6e35 100%);
    box-shadow: 0 10px 24px rgba(26, 155, 77, 0.25);
}

.grades-calc__result-badge[data-grade="4"] {
    background-image: linear-gradient(135deg, #1b1fd6 0%, #111691 100%);
}

.grades-calc__result-badge[data-grade="3"] {
    background-image: linear-gradient(135deg, #d4a017 0%, #a67c00 100%);
    box-shadow: 0 10px 24px rgba(212, 160, 23, 0.25);
}

.grades-calc__result-badge[data-grade="2"],
.grades-calc__result-badge[data-grade="1"] {
    background-image: linear-gradient(135deg, #d64545 0%, #a82828 100%);
    box-shadow: 0 10px 24px rgba(214, 69, 69, 0.25);
}

.grades-calc__result-hero-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.grades-calc__result-hero-label {
    font-size: 24px;
    font-weight: bold;
    color: #111;
    line-height: 1.2;
}

.grades-calc__result-hero-sub {
    font-size: 16px;
    color: #667085;
}

.grades-calc__result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.grades-calc__stat-card {
    padding: 14px 16px;
    border-radius: 12px;
    background: #f7f8fc;
    border: 1px solid #edf0f7;
}

.grades-calc__stat-label {
    display: block;
    font-size: 13px;
    color: #667085;
    margin-bottom: 6px;
    line-height: 1.3;
}

.grades-calc__stat-value {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #111;
    line-height: 1.2;
}

.grades-calc__forecast-section {
    margin-bottom: 8px;
}

.grades-calc__forecast-title {
    font-size: 18px;
    font-weight: bold;
    color: #111;
    margin: 0 0 14px;
    text-align: left;
}

.grades-calc__forecast-targets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.grades-calc__target-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.grades-calc__target-card--ok {
    background: #edf9f1;
    border-color: #bfe8cb;
}

.grades-calc__target-card--need {
    background: #fff8e8;
    border-color: #f5dfa0;
}

.grades-calc__target-card--unavailable {
    background: #f5f5f5;
    border-color: #e0e0e0;
}

.grades-calc__target-grade {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    background: #1b1fd6;
}

.grades-calc__target-grade[data-grade="5"] { background: #1a9b4d; }
.grades-calc__target-grade[data-grade="4"] { background: #1b1fd6; }
.grades-calc__target-grade[data-grade="3"] { background: #d4a017; }
.grades-calc__target-grade[data-grade="2"],
.grades-calc__target-grade[data-grade="1"] { background: #d64545; }

.grades-calc__target-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.grades-calc__target-title {
    font-size: 13px;
    color: #667085;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.grades-calc__target-text {
    font-size: 15px;
    color: #222;
    line-height: 1.35;
}

.grades-calc__forecast-subtitle {
    font-size: 14px;
    color: #667085;
    margin: 0 0 10px;
    text-align: left;
}

.grades-calc__forecast-scenarios {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.grades-calc__scenario-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f7f9ff;
    border: 1px solid #e4e9fb;
}

.grades-calc__scenario-grade {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #1b1fd6;
}

.grades-calc__scenario-grade[data-grade="5"] { background: #1a9b4d; }
.grades-calc__scenario-grade[data-grade="4"] { background: #1b1fd6; }
.grades-calc__scenario-grade[data-grade="3"] { background: #d4a017; }
.grades-calc__scenario-grade[data-grade="2"],
.grades-calc__scenario-grade[data-grade="1"] { background: #d64545; }

.grades-calc__scenario-text {
    font-size: 14px;
    color: #444;
    line-height: 1.35;
}

.grades-calc__scenario-text strong {
    color: #111;
}

.grades-calc__result-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8f9ff;
    border: 1px solid #e4e8f5;
}

.grades-calc__result-note-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1b1fd6;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
}

.grades-calc__result-note p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.45;
    text-align: left;
}

.grades-calc__progress-wrap {
    height: 10px;
    border-radius: 999px;
    background: #edf0f7;
    overflow: hidden;
    margin-bottom: 24px;
}

.grades-calc__progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1b1fd6 0%, #4f55e8 100%);
    min-width: 4px;
    transition: width 0.4s ease;
}

.grades-calc__scale-section {
    margin-top: 8px;
}

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

.grades-calc__scale-item {
    padding: 12px 10px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e4e9fb;
    background: #f7f9ff;
}

.grades-calc__scale-item[data-grade="5"] {
    background: #edf9f1;
    border-color: #bfe8cb;
}

.grades-calc__scale-item[data-grade="4"] {
    background: #eef0ff;
    border-color: #c9cefa;
}

.grades-calc__scale-item[data-grade="3"] {
    background: #fff8e8;
    border-color: #f5dfa0;
}

.grades-calc__scale-item[data-grade="2"] {
    background: #fff0f0;
    border-color: #f5c2c2;
}

.grades-calc__scale-grade {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #111;
    margin-bottom: 4px;
}

.grades-calc__scale-range {
    display: block;
    font-size: 12px;
    color: #667085;
    line-height: 1.3;
}

.grades-calc__result-footer {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eef1fa;
}

.grades-calc__copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    min-width: 220px;
    height: auto;
    padding: 12px 20px;
    background-size: 24px 24px;
    background-position: 16px center;
    background-repeat: no-repeat;
    padding-left: 52px;
}

.grades-calc__copy-btn-text {
    font-size: 15px;
    font-weight: bold;
}

.grades-calc__result-error {
    text-align: center;
    margin-bottom: 10px;
}

.grades-calc__faq-item {
    margin-bottom: 20px;
}

.grades-calc__faq-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

@media (max-width: 600px) {
    .section {
        padding: 0 10px;
    }

    .grades-calc__tab {
        font-size: 14px;
        padding: 8px 12px;
    }

    .grades-calc__grades-input .input {
        font-size: 22px;
    }

    .grades-calc__counter-label {
        font-size: 38px;
    }

    .grades-calc__counter-btn {
        width: 44px;
        height: 44px;
    }

    .grades-calc__link-card {
        padding: 16px;
    }

    .grades-calc__result-hero {
        flex-direction: column;
        text-align: center;
    }

    .grades-calc__result-badge {
        width: 76px;
        height: 76px;
        font-size: 36px;
    }

    .grades-calc__result-hero-label {
        font-size: 20px;
    }

    .grades-calc__forecast-targets,
    .grades-calc__forecast-scenarios {
        grid-template-columns: 1fr;
    }

    .grades-calc__scale-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grades-calc__copy-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 360px) {
    .grades-calc__counter-list {
        gap: 8px;
    }

    .grades-calc__counter {
        min-width: 72px;
        padding: 12px 10px 10px;
    }

    .grades-calc__counter-label {
        font-size: 34px;
    }
}
.grades-info {
    max-width: 1200px;
    margin: 0 auto 35px;
}

.grades-info a {
    color: #0f0fff;
    border-bottom: 1px solid rgba(15, 15, 255, 0.25);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.grades-info a:hover,
.grades-info a:focus {
    color: #050a99;
    border-color: #050a99;
}

.grades-info__hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 25px;
    margin-bottom: 25px;
    padding: 30px;
    border-radius: 12px;
    background: linear-gradient(132.60036294847635deg, rgba(15, 15, 255, 1) 34.0895190834999%, rgba(22, 28, 186, 1) 74.23275063435236%);
    color: #fff;
    box-shadow: 0 11px 34px -26px rgba(0, 0, 0, 0.75);
}

.grades-info__hero-content {
    max-width: 760px;
}

.grades-info__label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.2;
}

.grades-info__title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
}

.grades-info__lead {
    margin: 0;
    font-size: 22px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}

.grades-info__score-card {
    width: 260px;
    min-width: 240px;
    padding: 20px;
    border-radius: 12px;
    background-color: #fff;
    color: #000;
    box-shadow: 0 11px 34px -26px rgba(0, 0, 0, 0.75);
}

.grades-info__score-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.grades-info__score-row span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #f3f5fa;
    color: #0f0fff;
    font-weight: 700;
}

.grades-info__score-result {
    padding: 18px 12px;
    border-radius: 10px;
    text-align: center;
    background-color: #eaf7ff;
}

.grades-info__score-small {
    display: block;
    margin-bottom: 5px;
    color: #8093a7;
    font-size: 15px;
}

.grades-info__score-result strong {
    display: block;
    color: #0f0fff;
    font-size: 42px;
    line-height: 1;
}

.grades-info__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.grades-info__card {
    padding: 24px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 11px 34px -30px rgba(0, 0, 0, 0.75);
}

.grades-info__card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.grades-info__card p {
    margin: 0;
    color: #555;
    font-size: 18px;
    line-height: 1.45;
}

.grades-info__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 50%;
    background-image: linear-gradient(315deg, #06bcfb 0%, #4884ee 74%);
    color: #fff;
    font-weight: 700;
}

.grades-info__formula {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 18px;
    margin-bottom: 25px;
}

.grades-info__formula-main,
.grades-info__note,
.grades-info__links {
    padding: 26px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fff;
}

.grades-info__formula-main {
    background-color: #f8fbff;
}

.grades-info__formula-main h3,
.grades-info__note h3,
.grades-info__links h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.grades-info__formula-main p,
.grades-info__note p,
.grades-info__links p {
    margin-top: 0;
    color: #444;
    font-size: 18px;
    line-height: 1.5;
}

.grades-info__formula-main p:last-child,
.grades-info__note p:last-child,
.grades-info__links p:last-child {
    margin-bottom: 0;
}

.grades-info__formula-box {
    margin: 18px 0;
    padding: 18px;
    border-left: 5px solid #0f0fff;
    border-radius: 8px;
    background-color: #fff;
    color: #0f0fff;
    font-size: 24px;
    font-weight: 700;
}

.grades-info__note {
    border-color: #d9edff;
    background-color: #eaf7ff;
}

.grades-info__note-link {
    display: inline-block;
    margin-top: 5px;
    font-size: 17px;
    font-weight: 700;
}

.grades-info__links {
    background-color: #fff;
}

@media (max-width: 900px) {
    .grades-info__hero,
    .grades-info__formula {
        display: block;
    }

    .grades-info__score-card {
        width: 100%;
        margin-top: 20px;
    }

    .grades-info__grid {
        grid-template-columns: 1fr;
    }

    .grades-info__note {
        margin-top: 18px;
    }
}

@media (max-width: 540px) {
    .grades-info__hero,
    .grades-info__card,
    .grades-info__formula-main,
    .grades-info__note,
    .grades-info__links {
        padding: 20px 16px;
    }

    .grades-info__lead {
        font-size: 19px;
    }

    .grades-info__formula-box {
        font-size: 20px;
        overflow-x: auto;
    }
}

.grades-faq {
    max-width: 1200px;
    margin: 0 auto 35px;
}

.grades-faq a {
    color: #0f0fff;
    border-bottom: 1px solid rgba(15, 15, 255, 0.25);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.grades-faq a:hover,
.grades-faq a:focus {
    color: #050a99;
    border-color: #050a99;
}

.grades-faq__head {
    margin-bottom: 22px;
    padding: 28px 30px;
    border-radius: 12px;
    background: linear-gradient(132.60036294847635deg, rgba(15, 15, 255, 1) 34.0895190834999%, rgba(22, 28, 186, 1) 74.23275063435236%);
    color: #fff;
    box-shadow: 0 11px 34px -26px rgba(0, 0, 0, 0.75);
}

.grades-faq__label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.2;
}

.grades-faq__title {
    margin-top: 0;
    margin-bottom: 12px;
    color: #fff;
}

.grades-faq__lead {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 21px;
    line-height: 1.45;
}

.grades-faq__list {
    display: grid;
    gap: 14px;
}

.grades-faq__item {
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 11px 34px -30px rgba(0, 0, 0, 0.75);
    overflow: hidden;
}

.grades-faq__item[open] {
    border-color: #d9edff;
    background-color: #f8fbff;
}

.grades-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    cursor: pointer;
    color: #222;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    list-style: none;
}

.grades-faq__question::-webkit-details-marker {
    display: none;
}

.grades-faq__icon {
    position: relative;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-image: linear-gradient(315deg, #06bcfb 0%, #4884ee 74%);
}

.grades-faq__icon::before,
.grades-faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background-color: #fff;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
}

.grades-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.grades-faq__item[open] .grades-faq__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.grades-faq__answer {
    padding: 0 24px 22px;
}

.grades-faq__answer p {
    margin: 0;
    color: #444;
    font-size: 18px;
    line-height: 1.55;
}

@media (max-width: 540px) {
    .grades-faq__head {
        padding: 22px 16px;
    }

    .grades-faq__lead {
        font-size: 18px;
    }

    .grades-faq__question {
        padding: 18px 16px;
        font-size: 18px;
    }

    .grades-faq__answer {
        padding: 0 16px 20px;
    }

    .grades-faq__answer p {
        font-size: 16px;
    }

    .grades-faq__icon {
        width: 30px;
        height: 30px;
    }
}

.grades-year-info,
.grades-year-faq {
    max-width: 1200px;
    margin: 0 auto 35px;
}

.grades-year-info a,
.grades-year-faq a {
    color: #0f0fff;
    border-bottom: 1px solid rgba(15, 15, 255, 0.25);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.grades-year-info a:hover,
.grades-year-info a:focus,
.grades-year-faq a:hover,
.grades-year-faq a:focus {
    color: #050a99;
    border-color: #050a99;
}

.grades-year-info__hero,
.grades-year-faq__head {
    border-radius: 12px;
    background: linear-gradient(132.60036294847635deg, rgba(15, 15, 255, 1) 34.0895190834999%, rgba(22, 28, 186, 1) 74.23275063435236%);
    color: #fff;
    box-shadow: 0 11px 34px -26px rgba(0, 0, 0, 0.75);
}

.grades-year-info__hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 25px;
    margin-bottom: 25px;
    padding: 30px;
}

.grades-year-info__hero-content {
    max-width: 760px;
}

.grades-year-info__label,
.grades-year-faq__label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.2;
}

.grades-year-info__title,
.grades-year-faq__title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
}

.grades-year-info__lead,
.grades-year-faq__lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    line-height: 1.45;
}

.grades-year-info__score-card {
    width: 290px;
    min-width: 260px;
    padding: 20px;
    border-radius: 12px;
    background-color: #fff;
    color: #000;
    box-shadow: 0 11px 34px -26px rgba(0, 0, 0, 0.75);
}

.grades-year-info__periods {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.grades-year-info__period {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background-color: #f3f5fa;
}

.grades-year-info__period span {
    color: #64748b;
    font-size: 15px;
}

.grades-year-info__period strong {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #fff;
    color: #0f0fff;
    font-size: 19px;
}

.grades-year-info__score-result {
    padding: 18px 12px;
    border-radius: 10px;
    text-align: center;
    background-color: #eaf7ff;
}

.grades-year-info__score-small {
    display: block;
    margin-bottom: 5px;
    color: #8093a7;
    font-size: 15px;
}

.grades-year-info__score-result strong {
    display: block;
    color: #0f0fff;
    font-size: 42px;
    line-height: 1;
}

.grades-year-info__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.grades-year-info__card {
    padding: 24px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 11px 34px -30px rgba(0, 0, 0, 0.75);
}

.grades-year-info__card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.grades-year-info__card p {
    margin: 0;
    color: #555;
    font-size: 18px;
    line-height: 1.45;
}

.grades-year-info__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 50%;
    background-image: linear-gradient(315deg, #06bcfb 0%, #4884ee 74%);
    color: #fff;
    font-weight: 700;
}

.grades-year-info__formula {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 18px;
    margin-bottom: 25px;
}

.grades-year-info__formula-main,
.grades-year-info__note,
.grades-year-info__links {
    padding: 26px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fff;
}

.grades-year-info__formula-main {
    background-color: #f8fbff;
}

.grades-year-info__formula-main h3,
.grades-year-info__note h3,
.grades-year-info__links h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.grades-year-info__formula-main p,
.grades-year-info__note p,
.grades-year-info__links p {
    margin-top: 0;
    color: #444;
    font-size: 18px;
    line-height: 1.5;
}

.grades-year-info__formula-main p:last-child,
.grades-year-info__note p:last-child,
.grades-year-info__links p:last-child {
    margin-bottom: 0;
}

.grades-year-info__formula-box {
    margin: 18px 0;
    padding: 18px;
    border-left: 5px solid #0f0fff;
    border-radius: 8px;
    background-color: #fff;
    color: #0f0fff;
    font-size: 24px;
    font-weight: 700;
}

.grades-year-info__note {
    border-color: #d9edff;
    background-color: #eaf7ff;
}

.grades-year-info__note-link {
    display: inline-block;
    margin-top: 5px;
    font-size: 17px;
    font-weight: 700;
}

.grades-year-faq__head {
    margin-bottom: 22px;
    padding: 28px 30px;
}

.grades-year-faq__lead {
    max-width: 850px;
    font-size: 21px;
}

.grades-year-faq__list {
    display: grid;
    gap: 14px;
}

.grades-year-faq__item {
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 11px 34px -30px rgba(0, 0, 0, 0.75);
    overflow: hidden;
}

.grades-year-faq__item[open] {
    border-color: #d9edff;
    background-color: #f8fbff;
}

.grades-year-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    cursor: pointer;
    color: #222;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    list-style: none;
}

.grades-year-faq__question::-webkit-details-marker {
    display: none;
}

.grades-year-faq__icon {
    position: relative;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-image: linear-gradient(315deg, #06bcfb 0%, #4884ee 74%);
}

.grades-year-faq__icon::before,
.grades-year-faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background-color: #fff;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
}

.grades-year-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.grades-year-faq__item[open] .grades-year-faq__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.grades-year-faq__answer {
    padding: 0 24px 22px;
}

.grades-year-faq__answer p {
    margin: 0;
    color: #444;
    font-size: 18px;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .grades-year-info__hero,
    .grades-year-info__formula {
        display: block;
    }

    .grades-year-info__score-card {
        width: 100%;
        margin-top: 20px;
    }

    .grades-year-info__grid {
        grid-template-columns: 1fr;
    }

    .grades-year-info__note {
        margin-top: 18px;
    }
}

@media (max-width: 540px) {
    .grades-year-info__hero,
    .grades-year-info__card,
    .grades-year-info__formula-main,
    .grades-year-info__note,
    .grades-year-info__links,
    .grades-year-faq__head {
        padding: 20px 16px;
    }

    .grades-year-info__lead,
    .grades-year-faq__lead {
        font-size: 18px;
    }

    .grades-year-info__formula-box {
        font-size: 20px;
        overflow-x: auto;
    }

    .grades-year-faq__question {
        padding: 18px 16px;
        font-size: 18px;
    }

    .grades-year-faq__answer {
        padding: 0 16px 20px;
    }

    .grades-year-faq__answer p {
        font-size: 16px;
    }

    .grades-year-faq__icon {
        width: 30px;
        height: 30px;
    }
}

.grades-test-info,
.grades-test-faq {
    max-width: 1200px;
    margin: 0 auto 35px;
}

.grades-test-info a,
.grades-test-faq a {
    color: #0f0fff;
    border-bottom: 1px solid rgba(15, 15, 255, 0.25);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.grades-test-info a:hover,
.grades-test-info a:focus,
.grades-test-faq a:hover,
.grades-test-faq a:focus {
    color: #050a99;
    border-color: #050a99;
}

.grades-test-info__hero,
.grades-test-faq__head {
    border-radius: 12px;
    background: linear-gradient(132.60036294847635deg, rgba(15, 15, 255, 1) 34.0895190834999%, rgba(22, 28, 186, 1) 74.23275063435236%);
    color: #fff;
    box-shadow: 0 11px 34px -26px rgba(0, 0, 0, 0.75);
}

.grades-test-info__hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 25px;
    margin-bottom: 25px;
    padding: 30px;
}

.grades-test-info__hero-content {
    max-width: 760px;
}

.grades-test-info__label,
.grades-test-faq__label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.2;
}

.grades-test-info__title,
.grades-test-faq__title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
}

.grades-test-info__lead,
.grades-test-faq__lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    line-height: 1.45;
}

.grades-test-info__score-card {
    width: 290px;
    min-width: 260px;
    padding: 20px;
    border-radius: 12px;
    background-color: #fff;
    color: #000;
    box-shadow: 0 11px 34px -26px rgba(0, 0, 0, 0.75);
}

.grades-test-info__test-result {
    padding: 16px 12px;
    border-radius: 10px;
    text-align: center;
    background-color: #f3f5fa;
}

.grades-test-info__score-small {
    display: block;
    margin-bottom: 5px;
    color: #8093a7;
    font-size: 15px;
}

.grades-test-info__test-result strong {
    display: block;
    color: #0f0fff;
    font-size: 34px;
    line-height: 1;
}

.grades-test-info__progress {
    height: 12px;
    margin: 18px 0;
    border-radius: 999px;
    background-color: #e7edf7;
    overflow: hidden;
}

.grades-test-info__progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background-image: linear-gradient(315deg, #06bcfb 0%, #4884ee 74%);
}

.grades-test-info__score-result {
    padding: 18px 12px;
    border-radius: 10px;
    text-align: center;
    background-color: #eaf7ff;
}

.grades-test-info__score-result strong {
    display: block;
    color: #0f0fff;
    font-size: 42px;
    line-height: 1;
}

.grades-test-info__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.grades-test-info__card {
    padding: 24px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 11px 34px -30px rgba(0, 0, 0, 0.75);
}

.grades-test-info__card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.grades-test-info__card p {
    margin: 0;
    color: #555;
    font-size: 18px;
    line-height: 1.45;
}

.grades-test-info__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 50%;
    background-image: linear-gradient(315deg, #06bcfb 0%, #4884ee 74%);
    color: #fff;
    font-weight: 700;
}

.grades-test-info__formula {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 18px;
    margin-bottom: 25px;
}

.grades-test-info__formula-main,
.grades-test-info__note,
.grades-test-info__links,
.grades-test-info__scale {
    padding: 26px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fff;
}

.grades-test-info__formula-main {
    background-color: #f8fbff;
}

.grades-test-info__formula-main h3,
.grades-test-info__note h3,
.grades-test-info__links h3,
.grades-test-info__scale h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.grades-test-info__formula-main p,
.grades-test-info__note p,
.grades-test-info__links p {
    margin-top: 0;
    color: #444;
    font-size: 18px;
    line-height: 1.5;
}

.grades-test-info__formula-main p:last-child,
.grades-test-info__note p:last-child,
.grades-test-info__links p:last-child {
    margin-bottom: 0;
}

.grades-test-info__formula-box {
    margin: 18px 0;
    padding: 18px;
    border-left: 5px solid #0f0fff;
    border-radius: 8px;
    background-color: #fff;
    color: #0f0fff;
    font-size: 24px;
    font-weight: 700;
}

.grades-test-info__note {
    border-color: #d9edff;
    background-color: #eaf7ff;
}

.grades-test-info__note-link {
    display: inline-block;
    margin-top: 5px;
    font-size: 17px;
    font-weight: 700;
}

.grades-test-info__scale {
    margin-bottom: 25px;
    background-color: #fff;
}

.grades-test-info__scale-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.grades-test-info__scale-item {
    padding: 18px 12px;
    border-radius: 10px;
    text-align: center;
    background-color: #f3f5fa;
}

.grades-test-info__scale-item strong {
    display: block;
    margin-bottom: 6px;
    color: #0f0fff;
    font-size: 32px;
    line-height: 1;
}

.grades-test-info__scale-item span {
    display: block;
    color: #64748b;
    font-size: 16px;
}

.grades-test-faq__head {
    margin-bottom: 22px;
    padding: 28px 30px;
}

.grades-test-faq__lead {
    max-width: 850px;
    font-size: 21px;
}

.grades-test-faq__list {
    display: grid;
    gap: 14px;
}

.grades-test-faq__item {
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 11px 34px -30px rgba(0, 0, 0, 0.75);
    overflow: hidden;
}

.grades-test-faq__item[open] {
    border-color: #d9edff;
    background-color: #f8fbff;
}

.grades-test-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    cursor: pointer;
    color: #222;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    list-style: none;
}

.grades-test-faq__question::-webkit-details-marker {
    display: none;
}

.grades-test-faq__icon {
    position: relative;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-image: linear-gradient(315deg, #06bcfb 0%, #4884ee 74%);
}

.grades-test-faq__icon::before,
.grades-test-faq__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background-color: #fff;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
}

.grades-test-faq__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.grades-test-faq__item[open] .grades-test-faq__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.grades-test-faq__answer {
    padding: 0 24px 22px;
}

.grades-test-faq__answer p {
    margin: 0;
    color: #444;
    font-size: 18px;
    line-height: 1.55;
}

@media (max-width: 900px) {
    .grades-test-info__hero,
    .grades-test-info__formula {
        display: block;
    }

    .grades-test-info__score-card {
        width: 100%;
        margin-top: 20px;
    }

    .grades-test-info__grid,
    .grades-test-info__scale-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grades-test-info__note {
        margin-top: 18px;
    }
}

@media (max-width: 540px) {
    .grades-test-info__hero,
    .grades-test-info__card,
    .grades-test-info__formula-main,
    .grades-test-info__note,
    .grades-test-info__links,
    .grades-test-info__scale,
    .grades-test-faq__head {
        padding: 20px 16px;
    }

    .grades-test-info__lead,
    .grades-test-faq__lead {
        font-size: 18px;
    }

    .grades-test-info__formula-box {
        font-size: 20px;
        overflow-x: auto;
    }

    .grades-test-info__grid,
    .grades-test-info__scale-grid {
        grid-template-columns: 1fr;
    }

    .grades-test-faq__question {
        padding: 18px 16px;
        font-size: 18px;
    }

    .grades-test-faq__answer {
        padding: 0 16px 20px;
    }

    .grades-test-faq__answer p {
        font-size: 16px;
    }

    .grades-test-faq__icon {
        width: 30px;
        height: 30px;
    }
}