:root {
    --rr-green: #58cc02;
    --rr-green-dark: #58a700;
    --rr-blue: #1cb0f6;
    --rr-blue-dark: #1899d6;
    --rr-text: #3c3c3c;
    --rr-muted: #777;
    --rr-line: #e5e5e5;
    --rr-bg: #fff;
    --rr-soft: #f7f7f7;
    --rr-red: #ff4b4b;
    --rr-shadow: 0 2px 0 #e5e5e5;
    --font: "Nunito", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    color: var(--rr-text);
    background: var(--rr-bg);
    line-height: 1.5;
}

a { color: var(--rr-blue-dark); }

img { max-width: 100%; height: auto; }

.rr-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 2px solid var(--rr-line);
}

.rr-header__inner,
.rr-footer__inner,
.rr-hero,
.rr-section,
.rr-band,
.rr-narrow,
.rr-course-intro {
    width: min(1080px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
}

.rr-header__inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rr-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--rr-green-dark);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.rr-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.rr-nav__course,
.rr-nav__login,
.rr-nav__account {
    color: var(--rr-text);
    text-decoration: none;
    font-weight: 800;
}

.rr-nav__course.is-active { color: var(--rr-blue-dark); }

.rr-nav__account {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.rr-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--rr-blue);
    color: #fff;
    font-weight: 800;
}

.rr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.7rem 1.2rem;
    border-radius: 14px;
    border: 2px solid transparent;
    border-bottom-width: 4px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.rr-btn--primary {
    background: var(--rr-green);
    border-color: var(--rr-green);
    border-bottom-color: var(--rr-green-dark);
    color: #fff;
}

.rr-btn--ghost {
    background: #fff;
    border-color: var(--rr-line);
    border-bottom-color: #d4d4d4;
    color: var(--rr-blue-dark);
}

.rr-btn--white {
    background: #fff;
    border-color: #fff;
    border-bottom-color: #d7e8c4;
    color: var(--rr-green-dark);
}

.rr-btn--small {
    min-height: 42px;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.rr-btn:active { transform: translateY(2px); border-bottom-width: 2px; }

.rr-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    padding: 3.5rem 0 2rem;
}

.rr-kicker {
    margin: 0 0 0.4rem;
    color: var(--rr-green-dark);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.15; }

.rr-hero h1,
.rr-course-intro h1,
.rr-narrow h1 {
    margin: 0 0 0.8rem;
    font-size: clamp(2.1rem, 5vw, 3.5rem);
}

.rr-hero h1 span { color: var(--rr-green); }

.rr-lead { font-size: 1.15rem; color: var(--rr-muted); margin: 0 0 1.4rem; }

.rr-hero__actions, .rr-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.rr-hero__art {
    display: grid;
    place-items: center;
}

.rr-hero__art img {
    width: min(100%, 280px);
}

.rr-section { padding: 1.5rem 0 2.5rem; }

.rr-section h2 { font-size: 1.8rem; margin-bottom: 1rem; }

.rr-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.rr-steps article,
.rr-course,
.rr-panel {
    background: #fff;
    border: 2px solid var(--rr-line);
    border-bottom-width: 4px;
    border-radius: 16px;
}

.rr-steps article { padding: 1.1rem 1.15rem 1.25rem; }

.rr-steps span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ddf4ff;
    color: var(--rr-blue-dark);
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.rr-steps h3, .rr-panel h2 { margin: 0 0 0.35rem; }

.rr-steps p, .rr-muted { color: var(--rr-muted); }

.rr-courses { display: grid; gap: 0.8rem; }

.rr-course {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: inherit;
}

.rr-course:hover { border-color: var(--rr-green); }

.rr-course strong, .rr-course em { display: block; font-style: normal; }
.rr-course em { color: var(--rr-muted); font-weight: 700; }
.rr-course__meta { margin-left: auto; font-weight: 800; color: var(--rr-green-dark); }
.rr-course__icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--rr-green);
    color: #fff;
    font-size: 1.4rem;
    flex: 0 0 auto;
}

.rr-more { margin-top: 1rem; }

.rr-band {
    margin: 1rem auto 3rem;
    background: var(--rr-green);
    color: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.rr-band h2, .rr-band p { margin: 0; }
.rr-band p { color: #efffe0; }

.rr-main { min-height: 60vh; }

.rr-course-intro { padding: 1.6rem 0 0; }
.rr-course-intro h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.rr-narrow { padding: 2rem 0 3rem; }
.rr-panel { padding: 1.2rem 1.25rem 1.4rem; margin: 1rem 0; }
.rr-panel h2 { font-size: 1.25rem; }

.rr-form { display: grid; gap: 0.8rem; }
.rr-form label { display: grid; gap: 0.3rem; font-weight: 800; }
.rr-form input, .rr-form select, .rr-form textarea {
    width: 100%;
    min-height: 48px;
    border: 2px solid var(--rr-line);
    border-bottom-width: 4px;
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    font: inherit;
    color: inherit;
    background: #fff;
}
.rr-form textarea { min-height: 110px; }
.rr-form input:focus, .rr-form select:focus, .rr-form textarea:focus {
    outline: 2px solid var(--rr-blue);
    border-color: var(--rr-blue);
}

.rr-banner {
    background: #e5f8d0;
    border: 2px solid var(--rr-green);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font-weight: 700;
}

.rr-banner--bad {
    background: #ffdfe0;
    border-color: var(--rr-red);
    color: #9f0e18;
}

.rr-progress-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.rr-progress-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 2px solid var(--rr-soft);
}

.rr-footer {
    border-top: 2px solid var(--rr-line);
    background: var(--rr-soft);
    padding: 1.5rem 0 1rem;
}

.rr-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.rr-footer nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; }
.rr-footer a { color: var(--rr-text); font-weight: 800; text-decoration: none; }
.rr-footer__copy { width: min(1080px, calc(100% - 2rem)); margin: 1rem auto 0; color: var(--rr-muted); }

.rr-prose h1 { font-size: 2.2rem; }
.rr-prose h2 { margin-top: 1.6rem; }

.rr-certificate {
    width: min(880px, calc(100% - 2rem));
    margin: 2rem auto 3rem;
    border: 10px solid var(--rr-green);
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background:
        radial-gradient(circle at top, #f3ffe8, #fff 55%);
}

.rr-certificate__brand {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--rr-green-dark);
}

.rr-certificate__name {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin: 0.2rem 0 0.8rem;
}

.rr-certificate dl {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.rr-certificate dt { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rr-muted); }
.rr-certificate dd { margin: 0; font-size: 1.4rem; font-weight: 800; }

@media (max-width: 800px) {
    .rr-hero, .rr-steps, .rr-band, .rr-footer__inner { grid-template-columns: 1fr; display: grid; }
    .rr-band, .rr-footer__inner { display: grid; }
    .rr-nav__name { display: none; }
    .rr-hero { padding-top: 2rem; }
}

@media print {
    .rr-header, .rr-footer, .rr-certificate .rr-btn { display: none !important; }
    .rr-certificate { border-width: 8px; margin: 0; width: auto; }
}
