

@media (max-width: 980px){
    :root{ --pad: 24px; }
}

/* =========================================
   PAGE SHELL
   ========================================= */

.app_page{
    padding: 26px 0 60px;
}

.app_container{
    width: min(var(--container), calc(100% - var(--pad)));
    margin: 0 auto;
}

/* =========================================
   CARD
   ========================================= */

.app_card{
    background: var(--card);
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
    padding: 30px 25px;
}

/* =========================================
   TYPOGRAPHY (inside app_card)
   ========================================= */

.app_card h1{
    font-size: 16px;
    line-height: 1.35;
    margin: 0 0 18px;
    font-weight: 800;
}

.app_card h2{
    margin: 22px 0 10px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.app_card h3{
    margin: 18px 0 8px;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
}

.app_card p{
    margin: 0 0 12px;
    line-height: 1.62;
    color: rgba(11,15,20,.82);
}

.app_card ul,
.app_card ol{
    margin: 0 0 12px;
    padding-left: 20px;
    line-height: 1.62;
    color: rgba(11,15,20,.82);
}

.app_card li{ margin: 6px 0; }

/* =========================================
   NOTE / MUTED
   ========================================= */

.app_note{
    margin-top: 14px;
    background: #f0f8ff;
    padding: 15px;
    border-left: 4px solid #005a87;
    border-radius: 12px;
    color: rgba(11,15,20,.85);
}

.app_muted{ color: var(--muted); }

/* =========================================
   DIVIDER (optional)
   ========================================= */

.app_divider{
    height: 1px;
    background: rgba(15,23,42,.10);
    margin: 22px 0 10px;
}

/* =========================================
   ACTIONS
   ========================================= */

.app_actions{
    display:flex;
    justify-content:flex-end;
    margin-top: 16px;
    gap: 10px;
}

/* =========================================
   BUTTONS (primary + optional secondary)
   ========================================= */

.app_btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap: 12px;

    height: 48px;
    padding: 0 18px;
    border-radius: 12px;

    background: var(--green);
    color:#fff;
    text-decoration:none;
    font-weight: 800;
    border: none;

    box-shadow: 0 14px 30px rgba(10,143,42,.18);
    transition: transform .12s ease, background .12s ease, box-shadow .12s ease, filter .12s ease;
}

.app_btn:hover{
    background: var(--green2);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(10,143,42,.22);
}

.app_btn:active{ transform: translateY(0); }

/* icon wrapper (works for unicode symbols too) */
.app_btn__icon{
    width: 30px;
    height: 30px;
    display:grid;
    place-items:center;
    border-radius: 10px;
    background: rgba(255,255,255,.14);
    font-size: 18px;
    line-height: 1;
}

/* if somewhere legacy svg still exists — не мешает */
.app_btn .svg-sprite-icon{
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* Optional: secondary button (если понадобится “Назад/Подробнее”) */
.app_btn--secondary{
    background: rgba(10,143,42,.10);
    color: var(--text);
    box-shadow: none;
    border: 1px solid rgba(15,23,42,.12);
}

.app_btn--secondary:hover{
    background: rgba(10,143,42,.14);
    transform: translateY(-1px);
}
/* =========================================
   APPLICATION FORM (vanilla, no bootstrap)
   Depends on app_ui.css variables
   ========================================= */

.application-form__title{
    margin: 0 0 16px;
}

/* meta */
.application_course_name{
    margin: 0 0 6px;
    font-size: 18px;
}
.application_course_price{
    margin: 0 0 18px;
}

/* error/alert */
.app_alert{
    border-radius: var(--radius);
    padding: 14px 14px;
    margin: 0 0 15px;
    border: 1px solid rgba(15,23,42,.12);
    background: #fff;
}
.app_alert--error{
    color:#b92e2e;
    border-color: rgba(185,46,46,.25);
    background: rgba(185,46,46,.06);
}

/* fields layout */
.application-form__fields{
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 14px;
    margin-top: 14px;
}

@media (min-width: 920px){
    .application-form__fields{
        grid-template-columns: 1fr 1fr;
        gap: 16px 18px;
    }
}

.form-item--full{
    grid-column: 1 / -1;
}

/* labels + inputs */
.form-item__label{
    font-weight: 800;
    font-size: 13px;
    margin: 0 0 8px;
    color: rgba(11,15,20,.86);
}

.form-field{
    width: 100%;
    border: 1px solid rgba(15,23,42,.14);
    border-radius: 12px;
    background: #fff;
    padding: 12px 12px;
    outline: none;
    transition: box-shadow .12s ease, border-color .12s ease, transform .12s ease;
}

.form-field::placeholder{
    color: rgba(11,15,20,.45);
}

.form-field:focus{
    border-color: rgba(10,143,42,.45);
    box-shadow: 0 0 0 4px rgba(10,143,42,.10);
}

.form-input{
    height: 46px;
}

.form-textarea{
    min-height: 150px;
    resize: vertical;
    line-height: 1.55;
}

/* actions */
.application-form__actions{
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

/* checkbox */
.form-checkbox{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.form-checkbox input{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form-checkbox__content{
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox__icon{
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 1px solid rgba(15,23,42,.18);
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
    position: relative;
}

.form-checkbox input:checked + .form-checkbox__content .form-checkbox__icon{
    border-color: rgba(10,143,42,.35);
    background: rgba(10,143,42,.10);
}

.form-checkbox input:checked + .form-checkbox__content .form-checkbox__icon::after{
    content: "✓";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 14px;
    color: var(--green);
}

.form-checkbox__txt{
    font-size: 13px;
    line-height: 1.25;
    color: rgba(11,15,20,.75);
}

.form-checkbox__txt a{
    color: inherit;
}


/* Card wrapper */
.app_intro_card{
    position: relative;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 24px;
    padding: 34px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* subtle premium tint */
.app_intro_card::before{
    content:"";
    position:absolute;
    inset:-1px;
    background:
            radial-gradient(1200px 380px at 14% 0%, rgba(10,143,42,.10), transparent 55%),
            radial-gradient(900px 320px at 92% 18%, rgba(8,122,36,.10), transparent 50%);
    pointer-events:none;
}

@media (max-width: 720px){
    .app_intro_card{ padding: 20px; border-radius: 18px; }
}

/* Headings */
.app_intro_h2{
    position: relative;
    margin: 0 0 14px 0;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.app_intro_h3{
    margin: 0 0 14px 0;
    font-size: 18px;
    line-height: 1.2;
    color: var(--ink);
}

/* Lead block */
.app_intro_lead{
    position: relative;
    margin-top: 8px;
    padding: 16px 18px;
    border-radius: var(--r-md);
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.7);
    box-shadow: var(--shadow2);
}

.app_intro_text{
    margin: 0 0 12px 0;
    color: var(--muted);
}

/* Course badge */
.app_intro_course{
    display: grid;
    gap: 6px;
    padding: 14px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(10,143,42,.10), rgba(8,122,36,.06));
    border: 1px solid rgba(10,143,42,.16);
}

.app_intro_course__label{
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(11,15,20,.66);
}

.app_intro_course__name{
    font-weight: 800;
    line-height: 1.22;
    color: var(--ink);
}

/* Layout grid */
.app_intro_grid{
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 22px;
    margin-top: 22px;
}

@media (max-width: 920px){
    .app_intro_grid{ grid-template-columns: 1fr; }
}

/* Columns */
.app_intro_col{
    position: relative;
    padding: 18px;
    border-radius: var(--r-lg);
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.82);
}

/* Lists */
.app_intro_ul,
.app_intro_ol{
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.5;
}

.app_intro_ul li,
.app_intro_ol li{
    margin: 10px 0;
}

.app_intro_ul--nested{ margin-top: 10px; }

/* Step title */
.app_intro_step_title{
    font-weight: 900;
    color: var(--ink);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.app_intro_step_text{
    margin-top: 8px;
    color: var(--muted);
}

/* Hint block */
.app_intro_hint{
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(10,143,42,.18);
    background: rgba(10,143,42,.06);
    color: rgba(11,15,20,.74);
}

/* Note at bottom */
.app_intro_note{
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(15,23,42,.03);
    color: rgba(11,15,20,.75);
    margin-bottom: 20px;
}


/* Small polish */
.app_intro_col .app_intro_h3{
    position: relative;
    padding-left: 12px;
}
.app_intro_col .app_intro_h3::before{
    content:"";
    position:absolute;
    left:0;
    top: 2px;
    width: 4px;
    height: 18px;
    border-radius: 10px;
    background: var(--grad);
}
.order_check_actions_row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(15,23,42,.03);
    border: 1px solid rgba(15,23,42,.10);
}

.order_check_badge{
    color: rgba(11,15,20,.78);
    font-weight: 700;
}

.order_check_badge strong{
    font-weight: 900;
    color: rgba(11,15,20,.92);
}

.order_check_btn_logout{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    height: 42px;
    padding: 0 14px;
    border-radius: 12px;

    text-decoration:none;
    font-weight: 900;

    color: #0b0f14;
    background: #fff;
    border: 1px solid rgba(15,23,42,.14);
    box-shadow: 0 10px 24px rgba(15,23,42,.06);

    transition: transform .16s ease, filter .16s ease;
}

.order_check_btn_logout:hover{
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.02);
}

.order_check_btn_logout:active{
    transform: translateY(0) scale(.99);
}

@media (max-width: 640px){
    .order_check_actions_row{
        flex-direction: column;
        align-items: stretch;
    }
    .order_check_btn_logout{
        width: 100%;
    }
}
