/* =================================== */
/* resource-1: «Ресурсная» in the /black layout.                        */
/* css/root.css, css/main.css, css/animate.css are the /black files;     */
/* this file only adds what /black does not have.                       */
/* 00. Tokens (battery quiz)                                            */
/* 01. Hero additions                                                   */
/* 02. Shared additions                                                 */
/* 03. Battery check (quiz from /resource, frame in /black style)       */
/* 04. Statement row, register price, bonus course                       */
/* 05. Talks with a number / date label                                 */
/* 06. Data, speakers placeholders, program practice, team, guarantee   */
/* 07. Responsive                                                       */
/* =================================== */

/* 00. Tokens Start */
:root{
    --rs-bg: #212326;
    --rs-card: #26282C;
    --rs-dark: #1B1D20;
    --rs-line: #34373C;
    --rs-line-2: #4A4E54;
    --rs-y: #F7B500;
    --rs-t0: #FFFFFF;
    --rs-t1: #E6E9EC;
    --rs-t2: #C8CDD2;
    --rs-t3: #B4BAC0;
    --rs-t4: #9AA0A6;
    --rs-t5: #8B9197;
    --rs-mono: 'JetBrains Mono', monospace;
    --rs-sans: 'IBM Plex Sans', system-ui, sans-serif;
}
/* 00. Tokens End */


/* 01. Hero additions Start */
/* "В УПРАВЛЕНИИ" is one letter longer than "МЕНЕДЖМЕНТА" on /black */
.r1-hero__title{ width: auto; font-size: 104px; }

/* lead under the title: quieter, so the course name stays the accent */
.r1-hero__lead{
    max-width: 760px;
    color: var(--color-text-soft);
    font-size: 19px;
}
.r1-hero__lead p + p{ margin-top: 14px; }
.r1-hero__lead b{ font-weight: 700; }

/* 01. Hero additions End */


/* 02. Shared additions Start */
.r1-head{
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.r1-lead{
    max-width: 900px;
    color: #B0B6BA;
    font-size: 24px;
    line-height: 1.4;
}

.r1-btn{ align-self: flex-start; }

.r1-about p + p{ margin-top: 1em; }
.r1-about b{ color: var(--color-text); font-weight: 700; }
/* 02. Shared additions End */


/* 03. Battery check Start */
.r1-battery__inner{
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.r1-bat{
    position: relative;
    border: 1.5px solid var(--color-line);
    background: var(--color-ink-card);
}

/* quiz buttons look like the /black buttons */
.r1-bat .rs-btn{
    display: inline-flex;
    align-items: center;
    gap: 20px;
    height: 60px;
    padding: 2px 32px 0 35px;
    border: 0;
    background: var(--color-yellow);
    color: #000;
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 700;
    line-height: normal;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .25s ease;
}

.r1-bat .rs-btn:hover{ background: #FFC52E; }
.r1-bat .rs-btn span{ display: inline-block; transition: transform .25s ease; }
.r1-bat .rs-btn:hover span{ transform: translateX(4px); }
.r1-bat .rs-p{ margin: 0; font-size: 19px; line-height: 1.45; }
.r1-bat .rs-bat__big{ font-size: 28px; font-weight: 700; }

/* 04. Battery check Start */
.rs-bat [hidden]{ display: none !important; }

.rs-bat__intro{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 40px 32px;
}

.rs-bat__intro-text{
    flex: 999 1 480px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rs-bat__big{ margin: 0; color: var(--rs-t0); font-size: 20px; font-weight: 500; }
.rs-bat__note{ margin: 0; color: var(--rs-t4); font-size: 15px; }

/* battery icon: body + tip */
.rs-battery{
    display: flex;
    align-items: center;
    gap: 6px;
}

.rs-bat__intro .rs-battery{ flex: 1 1 240px; min-width: 0; }

.rs-battery__body{
    flex: 1 1 auto;
    box-sizing: border-box;
    height: 96px;
    padding: 6px;
    border: 2px solid var(--rs-t1);
}

.rs-battery__cells{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    height: 100%;
}

.rs-battery__cells i{ background: var(--rs-line); }
.rs-battery__cells i.is-on{ background: var(--rs-y); }

/* the 2nd yellow cell blinks: the charge is running out */
.rs-battery__cells i.is-blink{ animation: rsCell 1.6s steps(1) infinite; }

@keyframes rsCell{
    0%, 60%{ background: var(--rs-y); }
    61%, 100%{ background: var(--rs-line); }
}

.rs-battery__tip{
    flex-shrink: 0;
    width: 10px;
    height: 36px;
    background: var(--rs-t1);
}

.rs-battery__fill{
    width: 0;
    height: 100%;
    background: var(--rs-y);
    transition: width 1s cubic-bezier(.65, 0, .25, 1);
}

/* quiz */
.rs-bat__quiz{
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
}

.rs-bar{ height: 6px; background: var(--rs-line); }
.rs-bar i{ display: block; width: 0; height: 100%; background: var(--rs-y); transition: width .4s ease; }

.rs-bat__meta{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--rs-mono);
    font-size: 13px;
}

.rs-bat__scale{ color: var(--rs-y); }
.rs-bat__num{ color: var(--rs-t5); }

.rs-bat__q{
    margin: 0;
    max-width: 860px;
    color: var(--rs-t0);
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 500;
    line-height: 1.35;
}

.rs-bat__opts{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 12px;
}

.rs-opt{
    min-height: 60px;
    padding: 18px 20px;
    border: 1px solid var(--rs-line-2);
    background: var(--rs-dark);
    color: var(--rs-t1);
    font-family: var(--rs-mono);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.rs-opt:hover, .rs-opt:focus-visible{ border-color: var(--rs-y); color: var(--rs-y); }
.rs-opt.is-picked{ border-color: var(--rs-y); background: var(--rs-y); color: var(--rs-bg); }

.rs-link-btn{
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--rs-t4);
    font-family: var(--rs-mono);
    font-size: 13px;
    cursor: pointer;
    transition: color .2s ease;
}

.rs-link-btn:hover{ color: var(--rs-y); }

/* the question fades in */
.rs-bat__step{ animation: rsStep .35s ease both; }
@keyframes rsStep{ from{ opacity: 0; transform: translateY(8px); } to{ opacity: 1; transform: none; } }

/* result */
.rs-bat__result{
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 32px;
}

.rs-bat__res-l{
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rs-bat__res-r{
    flex: 999 1 480px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rs-bat__k{ color: var(--rs-t5); font-family: var(--rs-mono); font-size: 13px; }

.rs-bat__pct{
    color: var(--rs-t0);
    font-family: var(--rs-mono);
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
}

.rs-bat__level{ color: var(--rs-y); font-family: var(--rs-mono); font-size: 22px; font-weight: 800; }

.rs-scale{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rs-line);
}

.rs-scale__top{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--rs-mono);
    font-size: 15px;
    font-weight: 700;
}

.rs-scale__name{ color: var(--rs-t0); }
.rs-scale__pct{ color: var(--rs-y); }
.rs-scale .rs-bar{ height: 10px; }
.rs-scale .rs-bar i{ transition: width .9s cubic-bezier(.65, 0, .25, 1); }
.rs-scale__note{ color: var(--rs-t4); font-size: 15px; }

.rs-weak{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--rs-y);
}

.rs-weak__t{ color: var(--rs-y); font-family: var(--rs-mono); font-size: 14px; font-weight: 700; }
.rs-weak__d{ color: var(--rs-t1); }

.rs-bat__btns{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.rs-btn-ghost{
    padding: 15px 18px;
    border: 1px solid var(--rs-line-2);
    background: transparent;
    color: var(--rs-t4);
    font-family: var(--rs-mono);
    font-size: 13px;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}

.rs-btn-ghost:hover{ border-color: var(--rs-y); color: var(--rs-y); }
/* 04. Battery check End */




/* 04. Statement row, register price, bonus course Start */
/* line under the 4 points: text + button, like the course statement row */
.r1-statement{ gap: 40px; }
.r1-statement__text{ max-width: 760px; color: var(--color-text); }
.r1-statement-wide{ width: 760px; }

.r1-reg__title{
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 20px;
}

.r1-price{ color: var(--color-yellow); white-space: nowrap; }

.r1-bonus__k{ font-size: 20px; }

.r1-mods{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.r1-mod{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 190px;
    padding: 28px 28px 32px;
    border: 1.5px solid var(--color-line);
    background: var(--color-ink-card);
}

.r1-mod .school__stat-sq{ position: absolute; top: 18px; right: 18px; margin: 0; }

.r1-mod__k{
    padding-right: 20px;
    color: var(--color-yellow);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.r1-mod__t{
    color: var(--color-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}

.r1-mod--bonus{ border-color: #4A4E54; }

/* bonus course: link in the paid card + modal */
.r1-bonus-link{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-yellow);
    cursor: pointer;
    transition: color .2s ease;
}

.r1-bonus-link__t{ min-width: 0; }
/* "Бонус:" stays the colour of the other items, the course name is the accent */
.r1-bonus-link__k{ color: #E4E9EB; }
.r1-bonus-link:hover{ color: #FFC52E; }

.r1-bonus-link__i{
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    transition: transform .2s ease;
}

.r1-bonus-link:hover .r1-bonus-link__i{ transform: rotate(90deg); }

/* close button sits on the right in every modal of this page */
.modal__bar{ justify-content: flex-end; }

.r1-bonus-modal .modal__dialog{ max-width: 1040px; }

.r1-bm{
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 8px 40px 44px;
}

.r1-bm__title{ font-size: 44px; }
.r1-bm__lead{ font-size: 19px; }
.r1-bm__mods{ grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.r1-bm .r1-mod{ min-height: 150px; padding: 22px 22px 26px; gap: 12px; }
.r1-bm .r1-mod__k{ font-size: 13px; }
.r1-bm .r1-mod__t{ font-size: 19px; }
/* 04. Statement row, register price, bonus course End */


/* head-resource: the hero "free / 3 / 9" block next to the single free card */
.r1-reg-info{ align-self: center; margin-right: 40px; }

/* 05. Talks Start */
.r1-talk__k{
    margin-bottom: -12px;
    color: var(--color-yellow);
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
}


/* 05. Talks End */


/* 06. Other blocks Start */
.r1-speaker__ph{
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 900 / 650;
    background: var(--color-ink-chip);
    color: var(--color-text-dim);
    font-size: 18px;
}

/* 06. Other blocks End */


/* 07. Responsive Start */
@media (max-width: 1280px) {
}

@media (max-width: 1280px) {
    .r1-hero__title{ font-size: 84px; }
    .r1-mods{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .r1-reg-info{ align-self: stretch; margin: 16px 0 0; }
    .r1-bm__mods{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .r1-bm__title{ font-size: 36px; }
    .r1-hero__title{ font-size: 80px; }
    .r1-statement-wide{ width: 100%; }
    .r1-mods{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .r1-lead{ font-size: 20px; }
}

@media (max-width: 767px) {
    .r1-hero__lead{ font-size: 15px; }
    .r1-bm{ gap: 22px; padding: 4px 18px 26px; }
    .r1-bm__title{ font-size: 26px; }
    .r1-bm__lead{ font-size: 15px; }
    .r1-bm__mods{ grid-template-columns: 1fr; gap: 10px; }
    .r1-bm .r1-mod{ min-height: 0; padding: 16px 16px 18px; gap: 6px; }
    .r1-bm .r1-mod__t{ font-size: 16px; }
    .r1-hero__title{ font-size: 46px; }
    .r1-bonus__k{ font-size: 15px; }
    .r1-mods{ grid-template-columns: 1fr; gap: 12px; }
    .r1-mod{ min-height: 0; padding: 22px 20px; gap: 10px; }
    .r1-mod__k{ font-size: 13px; }
    .r1-mod__t{ font-size: 18px; }
    .r1-battery__inner{ gap: 32px; }
    .r1-bat .rs-btn{ width: 100%; justify-content: space-between; height: 56px; padding: 2px 22px 0; font-size: 16px; }
    .r1-bat .rs-bat__big{ font-size: 22px; }
    .r1-bat .rs-p{ font-size: 16px; }
    .rs-bat__intro{ gap: 28px; padding: 28px 20px; }
    .rs-bat__intro .rs-battery{ flex-basis: 100%; }
    .rs-battery__body{ height: 72px; }
    .rs-bat__quiz, .rs-bat__result{ padding: 24px 20px; }
    .rs-bat__result{ gap: 28px; }
    .rs-bat__pct{ font-size: 44px; }
    .r1-lead{ font-size: 17px; }
    .r1-btn{
        align-self: stretch;
        height: auto;
        min-height: 60px;
        padding-top: 14px;
        padding-bottom: 12px;
        gap: 16px;
        font-size: 17px;
        line-height: 1.25;
        white-space: normal;
        text-align: left;
    }
    .r1-talk__k{ margin-bottom: -6px; font-size: 13px; }
}
/* 07. Responsive End */
