﻿.preparation-page {
    min-height: 100vh;
    background: #ffffff;
    color: #10244a;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.top-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 38px 24px 20px;
    background: #ffffff;
}

.preparation-logo {
    display: block;
    width: 220px;
    max-width: 70%;
    height: auto;
    mix-blend-mode: multiply;
}

.preparation-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 24px 90px;
}

.page-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 45px;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border-radius: 50px;
    background: #edf5ff;
    color: #1468dc;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    margin-bottom: 22px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1478f2;
    box-shadow: 0 0 0 4px rgba(20, 120, 242, .12);
}

.page-intro h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -2px;
    color: #10244a;
}

    .page-intro h1 span {
        background: linear-gradient(90deg, #0759e8, #10a7ed);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.page-intro p {
    max-width: 680px;
    margin: 25px auto 0;
    color: #687994;
    font-size: 17px;
    line-height: 1.75;
}

.exam-card {
    background: #ffffff;
    border: 1px solid #dfe8f4;
    border-radius: 28px;
    padding: 38px;
    box-shadow: 0 25px 70px rgba(27, 70, 120, .10);
}

.exam-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e7edf5;
}

.section-label {
    margin-bottom: 10px;
    color: #1478ed;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.exam-card-header h2 {
    margin: 0;
    color: #10244a;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.8px;
}

.exam-card-header p {
    margin: 10px 0 0;
    color: #71809a;
    font-size: 15px;
    line-height: 1.7;
}

.exam-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 17px;
    color: white;
    font-size: 25px;
    font-weight: 900;
    background: linear-gradient(135deg, #0759e8, #10a7ed);
    box-shadow: 0 10px 25px rgba(10, 105, 230, .20);
}

.exam-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.detail-card {
    padding: 23px 20px;
    border: 1px solid #e3ebf5;
    border-radius: 18px;
    background: #f8fbff;
}

.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 15px;
    border-radius: 10px;
    background: #eaf4ff;
    color: #0878ed;
    font-weight: 800;
    font-size: 16px;
}

.detail-card span {
    display: block;
    margin-bottom: 5px;
    color: #8291a8;
    font-size: 12px;
    font-weight: 600;
}

.detail-card strong {
    display: block;
    color: #18365f;
    font-size: 19px;
    font-weight: 800;
}

.preparation-info {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding: 22px;
    border-radius: 17px;
    background: #f1f7ff;
    border: 1px solid #dceafb;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0878ed;
    color: white;
    font-weight: 800;
}

.preparation-info strong {
    display: block;
    margin-bottom: 6px;
    color: #18365f;
    font-size: 15px;
}

.preparation-info p {
    margin: 0;
    color: #647691;
    font-size: 13px;
    line-height: 1.7;
}

.subject-section {
    margin-top: 32px;
}

    .subject-section label {
        display: block;
        margin-bottom: 10px;
        color: #18365f;
        font-size: 14px;
        font-weight: 800;
    }

.subject-input {
    width: 100%;
    height: 54px;
    padding: 0 17px;
    border: 1px solid #d6e1ef;
    border-radius: 13px;
    outline: none;
    color: #18365f;
    background: #ffffff;
    font-size: 15px;
    transition: all .2s ease;
    box-sizing: border-box;
}

    .subject-input:focus {
        border-color: #1684ed;
        box-shadow: 0 0 0 4px rgba(22, 132, 237, .10);
    }

.subject-section small {
    display: block;
    margin-top: 8px;
    color: #8a98ad;
    font-size: 12px;
}

.captcha-section {
    display: flex;
    justify-content: center;
    margin-top: 28px;
    padding: 4px 0;
}

.exam-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 35px;
    padding-top: 28px;
    border-top: 1px solid #e7edf5;
}

.btn-primary,
.btn-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 54px;
    padding: 0 30px;
    border: 0;
    border-radius: 14px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0759e8, #0d9bea);
    box-shadow: 0 12px 30px rgba(10, 105, 230, .22);
}

.btn-start {
    background: linear-gradient(135deg, #0878ed, #10a7ed);
    box-shadow: 0 12px 30px rgba(10, 105, 230, .22);
}

    .btn-primary:hover:not(:disabled),
    .btn-start:hover {
        transform: translateY(-3px);
        box-shadow: 0 17px 35px rgba(10, 105, 230, .30);
    }

.btn-primary:disabled {
    opacity: .75;
    cursor: wait;
    transform: none;
}

.arrow {
    font-size: 21px;
}

.spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.ready-message {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.ready-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e8f8f0;
    color: #15945c;
    font-weight: 900;
}

.ready-message strong,
.ready-message span {
    display: block;
}

.ready-message strong {
    color: #18365f;
    font-size: 14px;
}

.ready-message span {
    margin-top: 3px;
    color: #7a8aa2;
    font-size: 12px;
}

.error-message {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 20px;
    padding: 17px 20px;
    border: 1px solid #f1caca;
    border-radius: 13px;
    background: #fff5f5;
    color: #a33a3a;
    font-size: 13px;
}

.preparation-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 25px 20px;
    background: #061a3d;
    color: #7187a8;
    font-size: 12px;
}

    .preparation-footer strong {
        color: white;
        font-size: 15px;
    }

@@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@@media (max-width: 800px) {

    .exam-details {
        grid-template-columns: repeat(2, 1fr);
    }

    .exam-card {
        padding: 28px;
    }

    .exam-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .ready-message {
        margin-right: 0;
    }

    .btn-primary,
    .btn-start {
        width: 100%;
    }
}

@@media (max-width: 520px) {

    .preparation-container {
        padding: 25px 15px 60px;
    }

    .exam-card {
        padding: 22px;
        border-radius: 21px;
    }

    .exam-card-header {
        gap: 15px;
    }

        .exam-card-header h2 {
            font-size: 24px;
        }

    .exam-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .exam-details {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .detail-card {
        padding: 18px 15px;
    }

    .page-intro h1 {
        font-size: 37px;
    }
}
