:root {
    --bg: #f5f7fc;
    --surface: #ffffff;
    --surface-soft: #f9faff;
    --ink: #202436;
    --muted: #687087;
    --line: #e1e6f0;
    --line-strong: #cfd7e7;
    --primary: #3157d5;
    --primary-dark: #213a94;
    --primary-soft: #ebefff;
    --success: #158a63;
    --success-soft: #e4f6ef;
    --warning: #a76008;
    --warning-soft: #fff3dc;
    --danger: #b83d4e;
    --danger-soft: #fdecef;
    --info: #126f9a;
    --info-soft: #e9f6fc;
    --shadow: 0 18px 48px rgba(28, 39, 82, 0.1);
    --shadow-soft: 0 6px 22px rgba(28, 39, 82, 0.07);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 88% 8%, rgba(111, 127, 240, 0.12), transparent 28rem),
        var(--bg);
    font-size: 16px;
    line-height: 1.62;
}

a {
    color: var(--primary);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--primary-dark);
}

a:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(49, 87, 213, 0.28);
    outline-offset: 3px;
    border-radius: 6px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.16;
    letter-spacing: -0.025em;
}

h1 {
    max-width: 820px;
    margin-bottom: 22px;
    font-size: clamp(42px, 7vw, 78px);
}

h2 {
    margin-bottom: 0;
    font-size: clamp(29px, 4vw, 44px);
}

h3 {
    font-size: 19px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--primary-dark);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 10px clamp(18px, 4vw, 56px);
    border-bottom: 1px solid rgba(225, 230, 240, 0.9);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(145deg, #3157d5, #6f7ff0);
    box-shadow: 0 9px 22px rgba(49, 87, 213, 0.25);
    font-size: 21px;
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 16px;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.header-action {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--ink);
    background: var(--surface);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.page-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 940px);
    gap: clamp(28px, 5vw, 70px);
    width: min(100% - 36px, 1260px);
    margin: 0 auto;
    padding: 44px 0 96px;
}

.contents {
    position: sticky;
    top: 104px;
    align-self: start;
    max-height: calc(100vh - 128px);
    padding-right: 22px;
    overflow-y: auto;
}

.contents-title {
    margin-bottom: 13px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.contents nav {
    display: grid;
    gap: 4px;
}

.contents nav a {
    padding: 8px 10px;
    border-left: 2px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}

.contents nav a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.6);
}

.contents-note {
    display: grid;
    gap: 4px;
    margin-top: 24px;
    padding: 15px;
    border: 1px solid #d8def5;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    font-size: 13px;
}

.contents-note span {
    color: var(--muted);
}

main {
    min-width: 0;
}

.hero {
    position: relative;
    padding: clamp(34px, 6vw, 66px);
    overflow: hidden;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(145deg, #17265f 0%, #3157d5 58%, #7384ee 100%);
    box-shadow: 0 24px 70px rgba(34, 54, 130, 0.24);
}

.hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    top: -180px;
    right: -130px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 52px rgba(255, 255, 255, 0.035), 0 0 0 104px rgba(255, 255, 255, 0.025);
}

.hero > * {
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-kicker {
    margin-bottom: 11px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.hero-lead {
    max-width: 720px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(18px, 2.5vw, 23px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 750;
    text-decoration: none;
}

.button-primary {
    color: var(--primary-dark);
    background: #ffffff;
}

.button-primary:hover {
    color: var(--primary);
    background: #f4f6ff;
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
}

.button-secondary:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.button-light {
    flex: 0 0 auto;
    color: var(--primary-dark);
    background: #ffffff;
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 42px 0 0;
}

.hero-facts div {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.07);
}

.hero-facts dt {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.hero-facts dd {
    margin: 2px 0 0;
    font-weight: 750;
}

.section {
    padding: 84px 4px 8px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 30px;
}

.section-number {
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #d6ddf5;
    border-radius: 13px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 13px;
    font-weight: 850;
}

.section-heading .section-kicker {
    margin-bottom: 5px;
}

.section-intro {
    max-width: 760px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 18px;
}

.steps,
.feature-grid,
.tip-grid,
.support-grid {
    display: grid;
    gap: 14px;
}

.steps-compact,
.feature-grid,
.tip-grid,
.support-grid {
    grid-template-columns: repeat(3, 1fr);
}

.step-card,
.feature-card,
.support-grid article {
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.step-card h3,
.feature-card h3,
.support-grid h3 {
    margin-bottom: 8px;
}

.step-card p,
.feature-card p,
.support-grid p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.step-index,
.feature-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    margin-bottom: 15px;
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 12px;
    font-weight: 800;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.role-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: clamp(24px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.role-symbol {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    color: #ffffff;
    background: var(--primary);
    font-size: 20px;
    font-weight: 850;
}

.role-teacher .role-symbol {
    background: var(--success);
}

.role-label {
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.role-teacher .role-label {
    color: var(--success);
}

.role-card h3 {
    margin-bottom: 0;
}

.check-list {
    grid-column: 1 / -1;
    display: grid;
    gap: 9px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
    font-weight: 850;
}

.check-list-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.setup-flow {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.setup-flow li {
    position: relative;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 17px;
    min-height: 104px;
}

.setup-flow li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 46px;
    bottom: 0;
    width: 2px;
    background: var(--line);
}

.flow-index {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 6px 16px rgba(49, 87, 213, 0.2);
    font-weight: 800;
}

.setup-flow h3 {
    margin: 2px 0 6px;
}

.setup-flow p {
    margin-bottom: 22px;
    color: var(--muted);
}

.callout {
    margin-top: 24px;
    padding: 19px 21px;
    border: 1px solid;
    border-radius: var(--radius);
}

.callout strong {
    display: block;
    margin-bottom: 4px;
}

.callout p {
    margin-bottom: 0;
}

.callout-info {
    border-color: #cbe4ef;
    background: var(--info-soft);
}

.callout-warning {
    border-color: #eed6ae;
    background: var(--warning-soft);
}

.callout-danger {
    border-color: #efc5cc;
    background: var(--danger-soft);
}

.callout-neutral {
    border-color: var(--line);
    background: var(--surface-soft);
}

.subheading {
    margin: 38px 0 18px;
    font-size: 23px;
}

.numbered-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    counter-reset: instruction;
    list-style: none;
}

.numbered-list li {
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 15px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    counter-increment: instruction;
}

.numbered-list li::before {
    content: counter(instruction);
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    align-self: start;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 850;
}

.numbered-list strong,
.numbered-list span {
    grid-column: 2;
}

.numbered-list span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.two-column-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.two-column-notes article {
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.two-column-notes h3 {
    margin-bottom: 8px;
}

.two-column-notes p {
    margin-bottom: 0;
    color: var(--muted);
}

.tip-grid {
    margin-top: 24px;
}

.tip-grid article {
    padding: 22px;
    border-radius: var(--radius);
    background: #182040;
    color: #ffffff;
}

.tip-grid article > span {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    margin-bottom: 14px;
    padding: 0 7px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.11);
    font-weight: 800;
}

.tip-grid h3 {
    margin-bottom: 7px;
}

.tip-grid p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
}

.booking-flow {
    display: grid;
    grid-template-columns: repeat(6, minmax(116px, 1fr));
    gap: 7px;
    padding: 20px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.booking-flow div {
    position: relative;
    display: grid;
    align-content: start;
    min-width: 116px;
    padding: 14px 12px;
    border-radius: 11px;
    background: var(--surface-soft);
}

.booking-flow div:not(:last-child)::after {
    content: "→";
    position: absolute;
    z-index: 2;
    top: 50%;
    right: -10px;
    color: var(--primary);
    transform: translateY(-50%);
}

.booking-flow span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-bottom: 10px;
    border-radius: 7px;
    color: #ffffff;
    background: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.booking-flow small {
    margin-top: 3px;
    color: var(--muted);
    line-height: 1.35;
}

.accordion-list {
    display: grid;
    gap: 10px;
}

.accordion-list details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.accordion-list summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
}

.accordion-list summary::-webkit-details-marker {
    display: none;
}

.accordion-list summary::after {
    content: "+";
    margin-left: auto;
    color: var(--primary);
    font-size: 24px;
    line-height: 1;
}

.accordion-list details[open] summary::after {
    content: "−";
}

.summary-mark {
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 13px;
    font-weight: 850;
}

.accordion-list summary strong,
.accordion-list summary small {
    display: block;
}

.accordion-list summary small {
    margin-top: 2px;
    color: var(--muted);
}

.details-body {
    padding: 0 22px 20px 72px;
    color: var(--muted);
}

.details-body p:last-child {
    margin-bottom: 0;
}

.support-number {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.safety-list {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.safety-list li {
    padding: 17px 19px;
    border-left: 3px solid var(--primary);
    border-radius: 0 11px 11px 0;
    background: var(--surface);
}

.finish {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 82px;
    padding: clamp(28px, 5vw, 46px);
    border-radius: var(--radius-lg);
    color: #ffffff;
    background: linear-gradient(145deg, #182040, #29429a);
    box-shadow: var(--shadow);
}

.finish .section-kicker {
    color: rgba(255, 255, 255, 0.62);
}

.finish h2 {
    margin-bottom: 12px;
    font-size: clamp(27px, 4vw, 38px);
}

.finish p:last-child {
    max-width: 650px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px max(20px, calc((100% - 1260px) / 2));
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.site-footer strong,
.site-footer span {
    display: block;
}

.site-footer span {
    color: var(--muted);
    font-size: 13px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
}

.site-footer nav a {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 1040px) {
    .page-shell {
        grid-template-columns: 1fr;
        width: min(100% - 32px, 940px);
        padding-top: 26px;
    }

    .contents {
        position: static;
        max-height: none;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--surface);
    }

    .contents nav {
        grid-template-columns: repeat(4, 1fr);
    }

    .contents nav a {
        border-left: 0;
        border-bottom: 2px solid var(--line);
    }

    .contents-note {
        display: none;
    }
}

@media (max-width: 760px) {
    .site-header {
        min-height: 64px;
    }

    .brand small {
        display: none;
    }

    .header-action {
        min-height: 38px;
        padding-inline: 12px;
        font-size: 13px;
    }

    .page-shell {
        width: min(100% - 22px, 940px);
        padding-bottom: 60px;
    }

    .contents nav {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .contents nav a {
        flex: 0 0 auto;
        padding: 7px 10px;
        border: 1px solid var(--line);
        border-radius: 9px;
    }

    .hero {
        padding: 32px 22px;
        border-radius: 22px;
    }

    .hero-facts,
    .steps-compact,
    .feature-grid,
    .tip-grid,
    .support-grid,
    .role-grid,
    .two-column-notes,
    .check-list-wide {
        grid-template-columns: 1fr;
    }

    .hero-facts {
        gap: 7px;
        margin-top: 30px;
    }

    .section {
        padding-top: 66px;
    }

    .section-heading {
        gap: 12px;
    }

    .section-number {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .numbered-list li {
        padding: 16px;
    }

    .details-body {
        padding-left: 20px;
    }

    .finish,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .button-light {
        align-self: flex-start;
    }
}

@media (max-width: 440px) {
    .header-action {
        font-size: 0;
    }

    .header-action::after {
        content: "Войти";
        font-size: 13px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .role-card {
        grid-template-columns: 1fr;
    }

    .setup-flow li {
        grid-template-columns: 40px 1fr;
        gap: 12px;
    }

    .setup-flow li:not(:last-child)::before {
        left: 19px;
    }

    .flow-index {
        width: 40px;
        height: 40px;
    }
}

@media print {
    :root {
        --bg: #ffffff;
        --shadow: none;
        --shadow-soft: none;
    }

    body {
        background: #ffffff;
        font-size: 11pt;
    }

    .site-header,
    .contents,
    .hero-actions,
    .site-footer,
    .button {
        display: none;
    }

    .page-shell {
        display: block;
        width: 100%;
        padding: 0;
    }

    .hero {
        color: #000000;
        background: #ffffff;
        box-shadow: none;
        border: 2px solid #222222;
    }

    .hero::after {
        display: none;
    }

    .hero .eyebrow,
    .hero-lead,
    .hero-facts dt {
        color: #444444;
    }

    .hero-facts div,
    .step-card,
    .feature-card,
    .role-card,
    .numbered-list li,
    .two-column-notes article,
    .accordion-list details,
    .support-grid article {
        break-inside: avoid;
        box-shadow: none;
    }

    .section {
        padding-top: 34px;
    }

    .accordion-list details {
        display: block;
    }

    .accordion-list .details-body {
        display: block;
    }

    .finish {
        color: #000000;
        background: #ffffff;
        box-shadow: none;
        border: 2px solid #222222;
    }

    .finish .section-kicker,
    .finish p:last-child {
        color: #444444;
    }
}
