:root {
    --accent: #534AB7;
    --accent-dark: #3C3489;
    --accent-light: #EEEDFE;
    --accent-mid: #7B6FD4;
    --bg-page: #F5F5F7;
    --bg-card: #FFFFFF;
    --bg-surface: #F0F0F2;
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.15);
    --green-bg: #EAF3DE;
    --green-text: #3B6D11;
    --green-icon: #639922;
    --amber-bg: #FFF4E5;
    --amber-text: #854F0B;
    --amber-icon: #EF9F27;
    --red-bg: #FCEBEB;
    --red-text: #A32D2D;
    --blue-bg: #E6F1FB;
    --blue-text: #185FA5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-width: 320px;
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

h1 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
}

h2,
h3 {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

p {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 400;
}

strong {
    font-weight: 500;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 60px;
    background: #1a1a2e;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.app-shell {
    min-height: 100vh;
    background: var(--bg-page);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: #e8ff47;
    color: #1a1a2e;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(232, 255, 71, 0.4);
}

.brand-copy {
    display: none;
}

.nav-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.nav-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    transition: all 0.2s;
}

.nav-tabs a:hover,
.nav-tabs a.is-active {
    background: rgba(232, 255, 71, 0.15);
    color: #e8ff47;
}

.nav-tabs a.is-active {
    font-weight: 600;
}

.logout-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.logout-form button {
    background: transparent;
    color: #e8ff47;
    border: 1px solid rgba(232, 255, 71, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-form button:hover {
    background: rgba(232, 255, 71, 0.1);
    border-color: #e8ff47;
}

.page,
.student-content,
.admin-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.75rem 2rem;
}

.page.narrow {
    max-width: 760px;
}

.card {
    background: #FFFFFF;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.card.striped,
.page-header-card,
.admin-hero,
.admin-stat-card,
.student-card {
    position: relative;
    overflow: hidden;
}

.card-strip,
.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.card-strip.purple,
.card-accent.purple {
    background: var(--accent);
}

.card-strip.amber,
.card-accent.amber {
    background: var(--amber-icon);
}

.card-strip.green,
.card-accent.green {
    background: var(--green-icon);
}

.card-strip.gradient {
    background: linear-gradient(90deg, var(--accent), var(--accent-mid));
}

.btn-primary,
.button.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    color: #e8ff47;
    border: 2px solid #e8ff47;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 4px 16px rgba(232, 255, 71, 0.2);
    transition: all 0.2s;
}

.btn-primary:hover,
.button.primary:hover {
    background: #e8ff47;
    color: #1a1a2e;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232, 255, 71, 0.3);
}

.btn-secondary,
.button.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    line-height: 1;
}

.btn-small,
.btn-primary.small,
.btn-secondary.small,
.button.small {
    background: var(--accent-light);
    color: var(--accent);
    border: none;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1;
}

.btn-primary.small {
    background: var(--accent);
    color: #fff;
    font-weight: 500;
}

.btn-secondary.small {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-secondary.full,
.button.full {
    width: 100%;
}

.pill,
.role-badge,
.status-pill,
.mini-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
}

.pill-purple,
.mini-badge.purple {
    background: var(--accent-light);
    color: var(--accent);
}

.pill-green,
.role-badge.student,
.status-pill.done,
.mini-badge.green {
    background: var(--green-bg);
    color: var(--green-text);
}

.pill-amber,
.role-badge,
.status-pill.pending {
    background: var(--amber-bg);
    color: var(--amber-text);
}

.pill-red,
.status-pill.overdue {
    background: var(--red-bg);
    color: var(--red-text);
}

.panel-tag,
.eyebrow,
.surface-label,
.mini-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.page-header-card,
.admin-hero {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.page-header-card > div:not(.card-strip),
.admin-hero > div:not(.card-strip) {
    padding-top: 4px;
}

.page-header-card .panel-tag,
.admin-hero .panel-tag {
    margin-bottom: 6px;
}

.page-header-card h1,
.admin-hero h1 {
    margin-bottom: 4px;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.page-note-card {
    padding: 18px 20px;
    border: 1px dashed rgba(107, 69, 238, 0.3);
    border-radius: 12px;
    background: rgba(249, 247, 255, 0.85);
}

.page-note-card strong {
    display: block;
    margin-bottom: 6px;
}

.header-btns,
.heading-actions,
.form-actions,
.mat-actions,
.item-actions,
.student-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.landing-nav {
    height: 56px;
    padding: 0 2.5rem;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text-secondary);
    font-size: 13px;
}

.landing-nav-links a:not(.btn-primary):hover {
    color: var(--text-primary);
}

.hero {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-mid) 100%);
    padding: 4rem 2.5rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: 30%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 0.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-copy h1 {
    color: #fff;
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.hero-copy p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    max-width: 410px;
    margin-bottom: 1.4rem;
}

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

.hero-btn-primary,
.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    line-height: 1;
}

.hero-btn-primary {
    background: #fff;
    color: var(--accent);
    padding: 9px 20px;
    font-weight: 500;
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 0.5px solid rgba(255, 255, 255, 0.35);
    padding: 9px 16px;
}

.hero-preview {
    background: rgba(255, 255, 255, 0.12);
    border: 0.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 1.4rem;
}

.preview-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.preview-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
}

.preview-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.preview-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: 0 0 7px;
}

.preview-dot.green {
    background: #A8EECF;
}

.preview-dot.amber {
    background: #FFD080;
}

.preview-row > div {
    flex: 1;
    min-width: 0;
}

.preview-title {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.preview-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 2px;
}

.preview-pill {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 20px;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 500;
}

.preview-pill.done {
    background: rgba(168, 238, 207, 0.22);
}

.preview-pill.open {
    background: rgba(255, 208, 128, 0.24);
}

.landing-section {
    padding: 3rem 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.feat-card {
    border-radius: 14px;
    padding: 1.4rem;
    border: 1px solid;
}

.feat-card.purple {
    background: var(--accent-light);
    border-color: #C8C4F4;
}

.feat-card.amber {
    background: var(--amber-bg);
    border-color: #F9D8A0;
}

.feat-card.green {
    background: var(--green-bg);
    border-color: #BED99A;
}

.feat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 0.9rem;
    color: #fff;
}

.feat-card.purple .feat-icon {
    background: var(--accent);
}

.feat-card.amber .feat-icon {
    background: var(--amber-icon);
}

.feat-card.green .feat-icon {
    background: var(--green-icon);
}

.feat-card h2 {
    margin-bottom: 0.4rem;
}

.landing-separator {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    padding: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

.about-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 500;
}

.about-section h2 {
    font-size: 16px;
    margin-bottom: 4px;
}

.about-role {
    color: var(--accent);
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 0.65rem;
}

.about-section p {
    line-height: 1.7;
    max-width: 650px;
}

.chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.chip-row span {
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
}

.section-title {
    margin-bottom: 1rem;
}

.section-title h2 {
    font-size: 16px;
    margin-top: 4px;
}

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

.step {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem;
}

.step-num {
    font-size: 22px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.step h3 {
    margin-bottom: 0.35rem;
}

.cta-block {
    background: linear-gradient(135deg, var(--accent), var(--accent-mid));
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    max-width: 855px;
    margin: 0 auto 3rem;
}

.cta-block h2 {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-block p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
}

.cta-block a {
    display: inline-flex;
    background: #fff;
    color: var(--accent);
    font-weight: 500;
    font-size: 13px;
    border-radius: 8px;
    padding: 9px 24px;
}

.student-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.student-top h1 {
    margin-bottom: 3px;
}

.student-top p {
    font-size: 14px;
}

.next-lesson {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
}

.card-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 34px;
}

.icon-purple {
    background: var(--accent-light);
    color: var(--accent);
}

.icon-amber {
    background: var(--amber-bg);
    color: var(--amber-icon);
}

.icon-green {
    background: var(--green-bg);
    color: var(--green-icon);
}

.next-lesson strong {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-top: 1px;
}

.student-card-grid,
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.student-bottom-grid,
.admin-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.student-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem;
}

.card-head,
.panel-title-row,
.questions-toolbar,
.question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0.9rem;
}

.card-head-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.mini-list,
.activity-list {
    display: grid;
}

.mini-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mini-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mini-row-title {
    display: block;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-row-date,
.card-note,
.s-sub,
.s-stat,
.hw-meta,
.mat-sub,
.a-time,
.field small,
.field-error {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.35;
}

.lesson-surface,
.progress-tile,
.quick-grid a {
    background: var(--bg-page);
    border-radius: 8px;
}

.lesson-surface {
    padding: 10px 12px;
    margin-bottom: 8px;
    display: grid;
    gap: 6px;
}

.lesson-surface h3 {
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lesson-surface p {
    font-size: 12px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.progress-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 0.9rem;
}

.progress-tile {
    padding: 10px;
}

.progress-tile strong {
    display: block;
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
}

.progress-tile span {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 4px;
}

.progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 6px;
}

.progress-label strong {
    color: var(--text-primary);
    font-size: 12px;
}

.progress-track {
    height: 4px;
    background: var(--bg-page);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
}

.quick-access h2 {
    margin-bottom: 0.85rem;
}

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

.quick-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.quick-icon {
    color: var(--text-secondary);
    font-size: 20px;
    line-height: 1;
}

.activity-item,
.student-row,
.dashboard-homework-row,
.dashboard-material-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.activity-item:last-child,
.student-row:last-child,
.dashboard-homework-row:last-child,
.dashboard-material-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.a-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex: 0 0 7px;
}

.a-dot.purple {
    background: var(--accent);
}

.a-dot.green {
    background: var(--green-text);
}

.a-dot.amber {
    background: var(--amber-text);
}

.a-dot.red {
    background: var(--red-text);
}

.a-text {
    color: var(--text-primary);
    font-size: 13px;
}

.admin-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
}

.admin-stat-card .num {
    font-size: 32px;
    font-weight: 500;
    padding-top: 4px;
    line-height: 1;
}

.admin-stat-card .lbl {
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 4px;
}

.admin-stat-card .trend {
    font-size: 12px;
    margin-top: 8px;
    color: var(--green-text);
}

.admin-stat-card .trend.amber {
    color: var(--amber-text);
}

.admin-stat-card .trend.muted {
    color: var(--text-secondary);
}

.panel-link,
.card-link {
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
}

.row-main,
.item-main {
    min-width: 0;
    flex: 1;
}

.s-avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 11px;
    font-weight: 500;
}

.s-name,
.hw-name,
.mat-name,
.item-title {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.s-stat {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.material-card,
.homework-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.material-type-icon,
.homework-type-icon,
.empty-icon,
.mat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.material-type-icon.pdf,
.mat-icon.pdf {
    background: var(--red-bg);
    color: var(--red-text);
}

.material-type-icon.presentation,
.mat-icon.presentation,
.admin-material-icon.presentation {
    background: var(--amber-bg);
    color: var(--amber-icon);
}

.material-type-icon.url,
.mat-icon.url {
    background: var(--blue-bg);
    color: var(--blue-text);
}

.homework-type-icon {
    background: var(--amber-bg);
    color: var(--amber-icon);
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
    padding: 4px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: var(--bg-page);
    color: var(--text-primary);
}

.danger-text {
    color: var(--red-text);
}

.empty-card,
.empty-state {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.empty-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 22px;
    margin: 0 auto 1rem;
}

.empty-icon.amber {
    background: var(--amber-bg);
    color: var(--amber-icon);
}

.empty-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.empty-card p,
.empty-state p {
    margin-bottom: 1rem;
}

.empty.compact {
    padding: 1rem 0;
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
}

.panel-card,
.form-panel,
.table-panel,
.question-editor,
.question-view,
.item-card,
.login-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem;
}

.panel-card-footer {
    margin-top: 12px;
}

.form-panel,
.questions-list,
.options-list,
.question-view-list,
.student-links-list,
.item-list {
    display: grid;
    gap: 12px;
}

.completion-screen {
    display: grid;
    gap: 24px;
}

.completion-card {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.completion-card.completion-perfect {
    border-color: var(--green-icon);
    background: linear-gradient(135deg, #fff 0%, rgba(234, 243, 222, 0.3) 100%);
}

.completion-card.completion-done {
    border-color: #e8ff47;
    background: linear-gradient(135deg, #fff 0%, rgba(232, 255, 71, 0.1) 100%);
}

.completion-icon {
    font-size: 72px;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.completion-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.completion-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: rgba(245, 245, 247, 0.5);
    border-radius: 12px;
    min-width: 280px;
}

.result-score {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 18px;
}

.result-score strong {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a2e;
}

.result-score small {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 8px;
}

.result-mistakes {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--amber-text);
}

.result-mistakes strong {
    font-size: 20px;
    font-weight: 600;
}

.result-perfect {
    font-size: 16px;
    font-weight: 600;
    color: var(--green-text);
}

.completion-button {
    margin-top: 8px;
    min-width: 240px;
}

.completion-details {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 24px;
}

.completion-details h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.completion-note {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.field {
    display: grid;
    gap: 6px;
}

.field span,
.field label {
    font-size: 13px;
    font-weight: 500;
}

.field input[type="text"],
.field input[type="password"],
.field input[type="url"],
.field input[type="file"],
.field textarea,
.option-row input[type="text"] {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.option-row input[type="text"]:focus {
    border-color: #e8ff47;
    outline: 3px solid rgba(232, 255, 71, 0.15);
    box-shadow: 0 2px 8px rgba(232, 255, 71, 0.15);
}

.field-error {
    color: var(--red-text);
}

.alert {
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    font-size: 13px;
}

.alert.success {
    border-color: var(--green-bg);
    background: var(--green-bg);
    color: var(--green-text);
}

.alert.error {
    border-color: var(--red-bg);
    background: var(--red-bg);
    color: var(--red-text);
}

.option-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.option-row input[type="radio"] {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
}

.ghost-button {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 12px;
}

.ghost-button:hover {
    color: var(--text-primary);
}

.question-view-title {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.question-view-title > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
}

.question-image {
    display: block;
    width: min(100%, 820px);
    max-height: 720px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
}

.answer-list {
    display: grid;
    gap: 8px;
    list-style: none;
}

.answer-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-page);
    font-size: 13px;
}

.answer-list li.is-correct {
    background: var(--green-bg);
}

.answer-list strong,
.answer-correct {
    color: var(--green-text);
    font-weight: 500;
}

.answer-wrong {
    color: var(--red-text);
}

.table-panel {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.results-table th,
.results-table td {
    padding: 11px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}

.results-table th {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.results-table tr:last-child td {
    border-bottom: none;
}

.results-table .mat-actions {
    justify-content: flex-start;
}

.auth-screen {
    min-height: 100vh;
    background: #f4f3f0;
}

.login-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-panel {
    width: min(420px, 100%);
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.login-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.avatar-mark {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8ff47;
    color: #1a1a2e;
    font-size: 20px;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 20px rgba(232, 255, 71, 0.4);
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.5;
}

.lead {
    margin-bottom: 1rem;
}

.hero-badge.login-badge,
.login-panel .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    padding: 6px 10px;
    border-radius: 20px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
}

.badge-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    color: var(--accent);
    font-size: 11px;
    font-weight: 500;
}

.login-form {
    display: grid;
    gap: 20px;
    margin: 0 0 24px;
    text-align: left;
}

.login-form .field {
    display: grid;
    gap: 8px;
}

.login-form .field span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-switch {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}

.auth-switch a {
    color: #1a1a2e;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    nav,
    .landing-nav {
        align-items: stretch;
        flex-direction: column;
        height: auto;
        padding: 0.75rem 1rem;
        gap: 10px;
    }

    .nav-tabs,
    .landing-nav-links {
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
    }

    .logout-form {
        justify-content: space-between;
        width: 100%;
    }

    .hero-inner,
    .features-grid,
    .steps-grid,
    .about-section,
    .student-top,
    .student-card-grid,
    .student-bottom-grid,
    .admin-stats,
    .admin-two-col {
        grid-template-columns: 1fr;
    }

    .page-header-card,
    .admin-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .next-lesson {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 620px) {
    .page,
    .student-content,
    .admin-content,
    .page.narrow {
        padding: 1.25rem 1rem;
    }

    .hero,
    .landing-section,
    .about-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .material-card,
    .homework-card {
        align-items: flex-start;
    }

    .mat-actions,
    .header-btns,
    .heading-actions,
    .form-actions {
        justify-content: stretch;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary,
    .button.primary,
    .button.secondary {
        width: 100%;
    }

    .option-row {
        grid-template-columns: 20px minmax(0, 1fr);
    }

    .option-row .ghost-button {
        grid-column: 2;
        justify-self: start;
    }
}

.landing-page {
    --landing-ink: #10122E;
    --landing-muted: #515778;
    --landing-purple: #6B45EE;
    --landing-purple-dark: #5130D4;
    --landing-purple-soft: #F0ECFF;
    --landing-yellow: #FFC72C;
    --landing-yellow-soft: #FFF5D8;
    --landing-green: #83B958;
    --landing-green-soft: #EDF7E4;
    --landing-shadow: 0 18px 45px rgba(39, 33, 91, 0.12);
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% 13%, rgba(128, 91, 242, 0.11), transparent 24rem),
        radial-gradient(circle at 4% 58%, rgba(255, 199, 44, 0.12), transparent 22rem),
        radial-gradient(circle at 78% 78%, rgba(131, 185, 88, 0.12), transparent 18rem),
        linear-gradient(rgba(124, 58, 237, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 1px),
        #FFFDF8;
    background-size: auto, auto, auto, 56px 56px, 56px 56px, auto;
    color: var(--landing-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
    position: relative;
}

.landing-page p {
    color: var(--landing-muted);
}

.landing-container {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
}

#about,
#services,
#reviews,
#contacts,
#contact-cards {
    scroll-margin-top: 94px;
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 253, 249, 0.94);
    border-bottom: 1px solid rgba(103, 85, 168, 0.08);
    backdrop-filter: blur(14px);
}

.landing-header .landing-nav {
    position: static;
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto minmax(230px, 1fr);
    align-items: center;
    gap: 24px;
    width: min(1220px, calc(100% - 40px));
    height: 72px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    justify-self: start;
}

.landing-brand .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    background: radial-gradient(circle at 30% 25%, #9E7BFF, var(--landing-purple) 68%, #4327B9);
    box-shadow: 0 9px 20px rgba(107, 69, 238, 0.25);
    font-size: 13px;
}

.landing-brand-text {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.landing-brand-text strong {
    color: var(--landing-ink);
    font-size: 15px;
    font-weight: 700;
}

.landing-brand-text small {
    color: #2F3046;
    font-size: 12px;
}

.landing-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.6vw, 42px);
    color: #15162B;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.landing-menu a {
    position: relative;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.landing-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -11px;
    height: 3px;
    border-radius: 999px;
    background: var(--landing-purple);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.landing-menu a:hover,
.landing-page:has(#about:target) .nav-about,
.landing-page:has(#services:target) .nav-services,
.landing-page:has(#reviews:target) .nav-reviews,
.landing-page:has(#contacts:target) .nav-contacts,
.landing-page:has(#contact-cards:target) .nav-contacts {
    color: var(--landing-purple);
}

.landing-page:has(#about:target) .nav-about::after,
.landing-page:has(#services:target) .nav-services::after,
.landing-page:has(#reviews:target) .nav-reviews::after,
.landing-page:has(#contacts:target) .nav-contacts::after,
.landing-page:has(#contact-cards:target) .nav-contacts::after {
    opacity: 1;
    transform: scaleX(1);
}

.landing-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

.landing-header-button,
.landing-login-button,
.landing-primary-button,
.landing-secondary-button,
.cta-button {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.landing-header-button,
.landing-primary-button {
    background: linear-gradient(135deg, #7D59F5, var(--landing-purple-dark));
    color: #fff;
    box-shadow: 0 15px 30px rgba(107, 69, 238, 0.25);
}

.landing-header-button {
    min-height: 42px;
    padding: 0 26px;
}

.landing-login-button {
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid rgba(107, 69, 238, 0.4);
    background: rgba(255, 255, 255, 0.72);
    color: var(--landing-purple);
    box-shadow: 0 10px 22px rgba(107, 69, 238, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.landing-login-button:hover {
    border-color: rgba(107, 69, 238, 0.68);
    background: #fff;
    box-shadow: 0 14px 28px rgba(107, 69, 238, 0.14);
    transform: translateY(-1px);
}

.landing-plane-button {
    border: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    background: #F3EEFF;
    color: var(--landing-purple);
    cursor: pointer;
}

.landing-plane-button svg,
.cta-plane svg,
.feature-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 0 8px;
    background:
        linear-gradient(rgba(107, 69, 238, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 69, 238, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 82% 18%, rgba(132, 94, 255, 0.12), transparent 30%),
        radial-gradient(circle at 12% 88%, rgba(255, 199, 44, 0.08), transparent 24%),
        transparent;
    background-size: 56px 56px, 56px 56px, auto, auto;
}

.landing-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    align-items: center;
    gap: 54px;
    min-height: 470px;
}

.landing-hero-grid > * {
    min-width: 0;
}

.landing-hero-copy {
    position: relative;
    z-index: 3;
    padding: 26px 0 32px 70px;
}

.landing-hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 16px;
    padding: 5px 18px;
    border-radius: 999px;
    background: var(--landing-green-soft);
    color: #66933A;
    font-size: 13px;
    font-weight: 600;
}

.landing-hero h1 {
    display: grid;
    gap: 2px;
    color: var(--landing-ink);
    font-size: clamp(40px, 3.8vw, 56px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: 0;
    margin: 0;
}

.hero-script {
    color: var(--landing-purple);
    font-family: "Segoe Print", "Comic Sans MS", cursive;
    font-size: clamp(42px, 4.2vw, 60px);
    font-weight: 700;
    line-height: 1.05;
}

.hero-underline {
    display: block;
    width: min(420px, 82%);
    height: 15px;
    margin: -2px 0 16px;
    background:
        linear-gradient(95deg, transparent 0 4%, var(--landing-yellow) 4% 94%, transparent 94%),
        linear-gradient(180deg, transparent 0 45%, var(--landing-yellow) 45% 66%, transparent 66%);
    clip-path: polygon(0 44%, 30% 34%, 73% 42%, 100% 33%, 99% 58%, 56% 60%, 22% 70%, 2% 62%);
}

.landing-hero-text {
    max-width: 470px;
    margin-bottom: 24px;
    color: #30334D;
    font-size: 16px;
    line-height: 1.7;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.landing-primary-button {
    min-width: 222px;
    padding: 0 24px;
}

.landing-secondary-button {
    min-width: 206px;
    padding: 0 24px;
    background: #F1F0FA;
    color: #24253C;
}

.hero-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 520px;
}

.hero-benefit {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
}

.benefit-icon {
    grid-row: span 2;
    color: #FFB900;
    font-size: 28px;
    line-height: 1;
}

.hero-benefit strong {
    color: var(--landing-ink);
    font-size: 13px;
    font-weight: 800;
}

.hero-benefit small {
    color: #34374D;
    font-size: 12px;
}

.landing-hero-visual {
    position: relative;
    min-height: 486px;
    align-self: stretch;
    max-width: 100%;
}

.hero-blob {
    position: absolute;
    right: 10px;
    bottom: 38px;
    width: min(95%, 575px);
    height: 355px;
    border-radius: 48% 52% 32% 68% / 57% 41% 59% 43%;
    background: linear-gradient(145deg, rgba(183, 164, 255, 0.95), rgba(111, 75, 226, 0.64));
    transform: rotate(-7deg);
    z-index: 0;
}

.hero-dot-field {
    position: absolute;
    right: 0;
    bottom: 90px;
    width: 210px;
    height: 210px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.58) 2px, transparent 2px);
    background-size: 16px 16px;
    opacity: 0.75;
    z-index: 1;
}

.hero-photo {
    position: absolute;
    top: 108px;
    left: 115px;
    z-index: 2;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 4px solid #e8ff47;
    object-fit: cover;
    object-position: 55% 25%;
    filter: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-study-illustration {
    position: absolute;
    right: 34px;
    bottom: 34px;
    z-index: 2;
    width: min(500px, 86%);
    aspect-ratio: 1 / 1;
}

.hero-study-card,
.hero-study-sheet {
    position: absolute;
    border-radius: 18px;
    box-shadow: 0 24px 54px rgba(41, 35, 76, 0.18);
}

.hero-study-card-back {
    inset: 78px 84px 68px 34px;
    background: linear-gradient(160deg, #F5D86A, #F2A93B);
    transform: rotate(-10deg);
}

.hero-study-card-front {
    inset: 42px 22px 54px 102px;
    padding: 42px 34px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(245, 241, 255, 0.96));
    transform: rotate(6deg);
}

.hero-study-line {
    display: block;
    height: 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--landing-purple) 24%, #fff);
}

.hero-study-line.short {
    width: 64%;
}

.hero-study-sheet {
    right: 34px;
    bottom: 30px;
    width: 138px;
    height: 172px;
    background: linear-gradient(180deg, #FFFFFF, #F1EDFF);
    transform: rotate(11deg);
}

.hero-study-sheet::before,
.hero-study-sheet::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    height: 10px;
    border-radius: 999px;
    background: rgba(111, 75, 226, 0.16);
}

.hero-study-sheet::before {
    top: 42px;
}

.hero-study-sheet::after {
    top: 68px;
}

.hero-study-badge {
    position: absolute;
    left: 56px;
    bottom: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    background: #64A83E;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 18px 32px rgba(67, 111, 43, 0.22);
    transform: rotate(-7deg);
}

.hero-note {
    position: absolute;
    right: 4px;
    bottom: 56px;
    z-index: 4;
    min-width: 238px;
    padding: 24px 28px 24px 30px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 35px rgba(64, 47, 111, 0.14);
    transform: rotate(-1deg);
    color: #15162B;
    font-family: "Segoe Print", "Comic Sans MS", cursive;
    font-size: 20px;
    line-height: 1.35;
}

.hero-note strong,
.hero-note span {
    display: block;
}

.hero-note-heart {
    position: absolute;
    right: 20px;
    bottom: 18px;
    color: var(--landing-purple);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.doodle {
    position: absolute;
    pointer-events: none;
    z-index: 5;
}

.doodle svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.doodle-check {
    top: 58px;
    left: 60%;
    width: 58px;
    height: 58px;
    color: var(--landing-purple);
    transform: rotate(-9deg);
}

.doodle-arrow {
    left: -26px;
    top: 230px;
    width: 88px;
    height: 136px;
    color: var(--landing-purple);
}

.doodle-star {
    right: -8px;
    top: 238px;
    width: 54px;
    height: 54px;
    color: #FFBC00;
    transform: rotate(12deg);
}

.doodle-rays {
    top: 122px;
    left: 49%;
    width: 58px;
    height: 54px;
    color: #FFBC00;
    background:
        linear-gradient(currentColor, currentColor) 6px 6px / 4px 32px no-repeat,
        linear-gradient(currentColor, currentColor) 30px 17px / 4px 28px no-repeat,
        linear-gradient(currentColor, currentColor) 49px 35px / 4px 22px no-repeat;
    transform: rotate(27deg);
}

.features-section {
    position: relative;
    padding: 10px 0 12px;
}

.features-section::before {
    content: "✦";
    position: absolute;
    left: max(18px, calc((100% - 1220px) / 2 - 42px));
    top: -12px;
    color: rgba(255, 184, 0, 0.75);
    font-size: 26px;
    line-height: 1;
}

.features-section::after {
    content: "";
    position: absolute;
    right: max(18px, calc((100% - 1220px) / 2 - 30px));
    bottom: -16px;
    width: 62px;
    height: 44px;
    border: 3px solid rgba(107, 69, 238, 0.26);
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    transform: rotate(-18deg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.features-grid > *,
.stats-grid > *,
.about-grid > *,
.service-pricing-grid > *,
.service-contact-grid > *,
.reviews-grid > *,
.reviews-metrics > *,
.contacts-hero-grid > *,
.contacts-grid > *,
.contact-steps-panel > *,
.cta-section > * {
    min-width: 0;
}

.feature-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 20px;
    min-height: 104px;
    min-width: 0;
    padding: 22px 24px;
    border-radius: 12px;
    box-shadow: var(--landing-shadow);
}

.feature-card > div {
    min-width: 0;
}

.feature-card-purple {
    background: #F0EDFF;
}

.feature-card-yellow {
    background: #FFF5E4;
}

.feature-card-green {
    background: #F1F6E8;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    color: #fff;
}

.feature-card-purple .feature-icon {
    background: linear-gradient(135deg, #8B68FF, #5E36E6);
}

.feature-card-yellow .feature-icon {
    background: linear-gradient(135deg, #FFCB33, #FFAE00);
}

.feature-card-green .feature-icon {
    background: linear-gradient(135deg, #96C965, #6EA647);
}

.feature-card h2 {
    color: var(--landing-ink);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
}

.feature-card p {
    color: #59607D;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: break-word;
}

.feature-arrow {
    color: var(--landing-purple);
    font-size: 23px;
}

.feature-card-yellow .feature-arrow {
    color: #E5A000;
}

.feature-card-green .feature-arrow {
    color: #79A94E;
}

.stats-strip {
    position: relative;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 190px;
    align-items: center;
    gap: 24px;
    min-height: 154px;
    margin: 0 auto 18px;
    padding: 24px 26px 22px 38px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 22% 0, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(135deg, #7555F0, #6544E4 62%, #7756ED);
    color: #fff;
    box-shadow: 0 18px 34px rgba(84, 62, 201, 0.24);
    overflow: hidden;
}

.stats-script {
    display: grid;
    color: #fff;
    font-family: "Segoe Print", "Comic Sans MS", cursive;
    font-size: 25px;
    line-height: 1.18;
}

.stats-script::after {
    content: "";
    width: 124px;
    height: 12px;
    margin-top: 8px;
    background: var(--landing-yellow);
    clip-path: polygon(0 48%, 44% 28%, 100% 42%, 99% 67%, 58% 58%, 12% 78%);
}

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

.stat-item {
    min-height: 78px;
    padding: 0 22px;
    border-left: 1px dashed rgba(255, 255, 255, 0.28);
}

.stat-item strong {
    display: block;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item span {
    display: block;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    line-height: 1.35;
}

.sticky-note {
    justify-self: end;
    width: 180px;
    padding: 26px 18px;
    background: #FFF0A7;
    color: #17172B;
    box-shadow: 0 12px 22px rgba(42, 28, 102, 0.18);
    font-family: "Segoe Print", "Comic Sans MS", cursive;
    font-size: 18px;
    line-height: 1.35;
    text-align: center;
    transform: rotate(4deg);
}

.sticky-note::before {
    content: "";
    position: absolute;
    width: 76px;
    height: 17px;
    margin: -36px 0 0 42px;
    background: rgba(130, 84, 236, 0.35);
}

.about-section {
    display: block;
    grid-template-columns: none;
    gap: 0;
    width: 100%;
    padding: 6px 0 22px;
    max-width: none;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: "";
    position: absolute;
    left: max(12px, calc((100% - 1220px) / 2 - 72px));
    top: 18px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(131, 185, 88, 0.13);
    filter: blur(8px);
    pointer-events: none;
}

.about-section::after {
    content: "";
    position: absolute;
    right: max(18px, calc((100% - 1220px) / 2 - 44px));
    top: 28px;
    width: 84px;
    height: 84px;
    background-image: radial-gradient(rgba(107, 69, 238, 0.18) 2px, transparent 2px);
    background-size: 14px 14px;
    pointer-events: none;
}

.about-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 320px;
    align-items: start;
    gap: 42px;
    max-width: 1220px;
}

.about-photo-card {
    position: relative;
    width: 220px;
    height: 178px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(145deg, #96CB6B, #75AF4F);
    box-shadow: 0 16px 30px rgba(69, 103, 43, 0.16);
}

.about-photo-card img {
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 94%;
    height: 188px;
    object-fit: contain;
    object-position: bottom center;
    transform: translateX(-50%);
}

.about-abstract-illustration {
    position: absolute;
    inset: 0;
}

.about-abstract-circle {
    position: absolute;
    left: 24px;
    bottom: 22px;
    width: 122px;
    height: 122px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.about-abstract-sheet {
    position: absolute;
    right: 22px;
    bottom: 20px;
    width: 112px;
    height: 136px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 24px rgba(41, 72, 18, 0.16);
    transform: rotate(8deg);
}

.about-abstract-line {
    position: absolute;
    right: 44px;
    height: 10px;
    width: 74px;
    border-radius: 999px;
    background: rgba(117, 175, 79, 0.26);
}

.about-abstract-line:nth-of-type(3) {
    bottom: 118px;
}

.about-abstract-line:nth-of-type(4) {
    bottom: 92px;
}

.about-abstract-line:nth-of-type(5) {
    bottom: 66px;
}

.about-abstract-line.short {
    width: 48px;
}

.about-spark {
    position: absolute;
    top: -16px;
    right: -15px;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #D8C8FF;
    color: #FFE04E;
    font-size: 30px;
    box-shadow: 0 10px 24px rgba(107, 69, 238, 0.18);
}

.about-copy h2 {
    color: var(--landing-ink);
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 16px;
}

.about-copy p {
    max-width: 590px;
    color: #565D7F;
    font-size: 14px;
    line-height: 1.7;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.about-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 14px;
    border-radius: 999px;
    background: #F0ECFF;
    color: var(--landing-purple);
    font-size: 12px;
    font-weight: 700;
}

.about-checklist {
    display: grid;
    gap: 14px;
    list-style: none;
    color: #272A3D;
    font-size: 14px;
}

.about-checklist li {
    position: relative;
    padding-left: 28px;
}

.about-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #89B85D;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    margin-bottom: 12px;
    padding: 5px 15px;
    border-radius: 999px;
    background: var(--landing-green-soft);
    color: #5E8E34;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.section-hero {
    position: relative;
    display: grid;
    justify-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.section-hero h2,
.contacts-hero-copy h2 {
    color: var(--landing-ink);
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 900;
    line-height: 1.08;
}

.section-underline {
    display: block;
    width: min(360px, 86%);
    height: 13px;
    margin: -2px 0 14px;
    background: var(--landing-yellow);
    clip-path: polygon(0 50%, 30% 34%, 72% 47%, 100% 35%, 99% 59%, 58% 57%, 21% 73%, 1% 63%);
}

.section-hero p,
.contacts-hero-copy p {
    max-width: 720px;
    color: #59607D;
    font-size: 17px;
    line-height: 1.55;
}

.section-hero .section-lead {
    margin-bottom: 6px;
    color: #545A79;
}

.section-doodle {
    position: absolute;
    pointer-events: none;
}

.section-star {
    left: 10%;
    top: 62px;
    color: var(--landing-purple);
    font-size: 72px;
    line-height: 1;
    transform: rotate(-12deg);
}

.section-rays {
    right: 24%;
    top: 18px;
    width: 58px;
    height: 54px;
    color: #FFBC00;
    background:
        linear-gradient(currentColor, currentColor) 6px 6px / 4px 32px no-repeat,
        linear-gradient(currentColor, currentColor) 30px 17px / 4px 28px no-repeat,
        linear-gradient(currentColor, currentColor) 49px 35px / 4px 22px no-repeat;
    transform: rotate(27deg);
}

.services-page-section {
    position: relative;
    padding: 58px 0 34px;
    overflow: hidden;
}

.services-page-section::before,
.services-page-section::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.services-page-section::before {
    left: max(16px, calc((100% - 1220px) / 2 - 70px));
    bottom: 12%;
    width: 122px;
    height: 122px;
    border: 4px solid rgba(107, 69, 238, 0.36);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    transform: rotate(-36deg);
}

.services-page-section::after {
    right: max(16px, calc((100% - 1220px) / 2 - 72px));
    top: 42%;
    width: 150px;
    height: 170px;
    background-image: radial-gradient(rgba(107, 69, 238, 0.18) 2px, transparent 2px);
    background-size: 15px 15px;
}

.service-pricing-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.service-pricing-grid-extended .service-price-card:last-child {
    grid-column: auto;
}

.service-price-card {
    --service-color: var(--landing-purple);
    display: grid;
    align-content: start;
    min-height: 372px;
    padding: 38px 32px 28px;
    border-top: 5px solid var(--service-color);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(42, 38, 74, 0.11);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(42, 38, 74, 0.16);
}

.service-price-icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--service-color) 13%, #fff);
    color: var(--service-color);
}

.service-price-icon svg,
.contact-icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-price-card h3 {
    max-width: 270px;
    color: var(--landing-ink);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.32;
    margin-bottom: 14px;
}

.service-price-card p {
    max-width: 280px;
    color: #59607D;
    font-size: 15px;
    line-height: 1.65;
}

.service-price-card strong {
    display: block;
    margin-top: 30px;
    color: var(--service-color);
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

.service-price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 32px;
    margin-bottom: 18px;
    padding: 0 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--service-color) 16%, #fff);
    color: var(--service-color);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.service-price-note {
    display: block;
    margin-top: 8px;
    color: #59607D;
    font-size: 14px;
}

.service-price-button {
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 28px;
    border-radius: 12px;
    background: var(--service-color);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.service-price-purple {
    --service-color: var(--landing-purple);
}

.service-price-yellow {
    --service-color: #F5A400;
}

.service-price-green {
    --service-color: #64A83E;
}

.service-price-blue {
    --service-color: #3A7AF0;
}

.service-price-berry {
    --service-color: #D14C78;
}

.services-contact-panel {
    position: relative;
    z-index: 1;
    margin-top: 34px;
    padding: 34px 64px;
    border: 2px dashed rgba(107, 69, 238, 0.24);
    border-radius: 18px;
    background: rgba(249, 247, 255, 0.7);
}

.services-contact-title {
    display: grid;
    justify-items: center;
    text-align: center;
    margin-bottom: 28px;
}

.services-contact-title > span {
    color: var(--landing-purple);
    font-size: 30px;
    line-height: 1;
}

.services-contact-title h3 {
    color: var(--landing-ink);
    font-size: 22px;
    font-weight: 900;
    margin-top: 4px;
}

.services-contact-title p {
    max-width: 470px;
    margin-top: 8px;
    color: #59607D;
    font-size: 14px;
    line-height: 1.55;
}

.service-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.service-contact-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 4px 18px;
    min-height: 118px;
    padding: 18px 22px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(42, 38, 74, 0.07);
}

.service-contact-card .contact-icon {
    grid-row: span 3;
}

.service-contact-card strong {
    color: var(--landing-ink);
    font-size: 17px;
    font-weight: 900;
}

.service-contact-card span:not(.contact-icon) {
    color: var(--landing-purple);
    font-size: 14px;
    font-weight: 800;
}

.service-contact-card em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 28px;
    margin-top: 6px;
    padding: 0 12px;
    border-radius: 8px;
    background: #F1EDFF;
    color: var(--landing-purple);
    font-size: 12px;
    font-weight: 900;
    font-style: normal;
}

.contact-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 14px;
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
}

.contact-icon-vk {
    background: linear-gradient(135deg, #6DA8F1, #2F74D8);
}

.contact-icon-telegram {
    background: linear-gradient(135deg, #2FC5F2, #1B9BDC);
}

.contact-icon-phone {
    background: linear-gradient(135deg, #82C94C, #58A832);
}

.reviews-section {
    position: relative;
    padding: 58px 0 26px;
    overflow: hidden;
}

.reviews-section::after {
    content: "";
    position: absolute;
    right: max(18px, calc((100% - 1220px) / 2 - 54px));
    bottom: 26px;
    width: 118px;
    height: 150px;
    background-image: radial-gradient(rgba(107, 69, 238, 0.22) 2px, transparent 2px);
    background-size: 16px 16px;
    pointer-events: none;
}

.reviews-header {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 36px;
    margin-bottom: 24px;
}

.reviews-title {
    position: relative;
}

.reviews-title .section-badge {
    margin-bottom: 14px;
}

.reviews-title h2 {
    max-width: 640px;
    color: var(--landing-ink);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.1;
}

.reviews-title p {
    max-width: 560px;
    margin-top: 6px;
    color: #30334D;
    font-size: 14px;
    font-weight: 700;
}

.reviews-underline {
    display: block;
    width: min(420px, 100%);
    height: 13px;
    margin-top: -2px;
    background: var(--landing-yellow);
    clip-path: polygon(0 50%, 30% 34%, 72% 47%, 100% 35%, 99% 59%, 58% 57%, 21% 73%, 1% 63%);
}

.reviews-doodle-star {
    position: absolute;
    right: -76px;
    top: 18px;
    color: #FFB900;
    font-size: 54px;
    line-height: 1;
    transform: rotate(14deg);
}

.reviews-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(96px, auto));
    gap: 30px;
    text-align: center;
}

.review-metric strong {
    display: block;
    color: var(--landing-purple);
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

.review-metric span {
    display: block;
    margin-top: 6px;
    color: #30334D;
    font-size: 13px;
    line-height: 1.35;
}

.review-metric:first-child::after {
    content: "★★★★★";
    display: block;
    margin-top: 7px;
    color: var(--landing-yellow);
    font-size: 17px;
    letter-spacing: 1px;
}

.reviews-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
}

.review-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 36px rgba(42, 38, 74, 0.09);
}

.review-card-compact::before {
    content: "”";
    position: absolute;
    right: 24px;
    top: 18px;
    color: var(--landing-purple);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.review-card-large {
    grid-column: span 6;
    min-height: 166px;
    padding: 24px 30px 22px 62px;
}

.review-card-compact {
    grid-column: span 3;
    min-height: 164px;
    padding: 22px 24px;
}

.review-quote {
    position: absolute;
    left: 30px;
    top: 18px;
    color: var(--landing-purple);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.review-card p {
    color: #29304F;
    font-size: 14px;
    line-height: 1.65;
}

.review-card-compact p {
    font-size: 13px;
    line-height: 1.58;
}

.review-stars {
    color: var(--landing-yellow);
    font-size: 17px;
    letter-spacing: 2px;
    line-height: 1;
}

.review-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    margin-top: 2px;
}

.review-footer strong {
    min-width: 0;
    color: #30334D;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.review-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: #105463;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.review-avatar-purple {
    background: #6D5BBB;
}

.review-avatar-ink {
    background: #2D3447;
}

.review-avatar-gray {
    background: #6C7280;
}

.review-avatar-berry {
    background: #8D4C75;
}

.review-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    margin-left: auto;
    padding: 4px 11px;
    border-radius: 8px;
    background: #EAF5DD;
    color: #5F8E35;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.review-tag-purple {
    background: #EEE9FF;
    color: var(--landing-purple);
}

.review-tag-blue {
    background: #E8EFFF;
    color: #496DD6;
}

.review-tag-yellow {
    background: #FFF0C8;
    color: #C37A00;
}

.reviews-button {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(280px, 100%);
    min-height: 44px;
    margin: 24px auto 0;
    border: 1px solid rgba(107, 69, 238, 0.44);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--landing-purple);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(42, 38, 74, 0.06);
}

.reviews-cta-section {
    margin-top: 0;
}

.contacts-page-section {
    position: relative;
    padding: 52px 0 8px;
    overflow: hidden;
}

.contacts-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
    align-items: center;
    gap: 48px;
    margin-bottom: 40px;
}

.contacts-hero-copy h2 {
    margin-bottom: 0;
}

.contacts-hero-copy .section-underline {
    width: 280px;
}

.contacts-hero-copy p {
    margin-top: 6px;
}

.contacts-illustration {
    position: relative;
    min-height: 250px;
}

.message-bubble {
    position: absolute;
    left: 90px;
    top: 8px;
    display: grid;
    place-items: center;
    width: 142px;
    height: 90px;
    border-radius: 45px 45px 36px 36px;
    background: linear-gradient(135deg, #D9CCFF, #B79DFF);
    color: #fff;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 8px;
    box-shadow: 0 16px 34px rgba(107, 69, 238, 0.15);
}

.message-bubble::after {
    content: "";
    position: absolute;
    left: 34px;
    bottom: -18px;
    border: 18px solid transparent;
    border-top-color: #B79DFF;
    border-right-width: 7px;
}

.mail-circle {
    position: absolute;
    left: 114px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #FFF1C9;
    color: #F5A400;
    font-size: 44px;
    transform: rotate(-8deg);
}

.notebook {
    position: absolute;
    right: 44px;
    top: 66px;
    width: 142px;
    height: 144px;
    border: 6px solid #A58BFF;
    border-radius: 12px;
    background:
        repeating-linear-gradient(#fff 0 24px, #EDE7FF 25px 27px),
        #fff;
    transform: rotate(8deg);
    box-shadow: 0 16px 32px rgba(107, 69, 238, 0.14);
}

.notebook::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 16px;
    width: 16px;
    height: 94px;
    background: repeating-linear-gradient(#A58BFF 0 7px, transparent 7px 17px);
}

.pen {
    position: absolute;
    right: 54px;
    top: 82px;
    width: 18px;
    height: 126px;
    border-radius: 9px;
    background: linear-gradient(#7E5CF0 0 66%, #4F32C9 66% 84%, #FFE2A7 84%);
    transform: rotate(31deg);
    box-shadow: 0 12px 22px rgba(107, 69, 238, 0.22);
}

.contacts-dot-field {
    position: absolute;
    right: 0;
    bottom: 10px;
    width: 154px;
    height: 112px;
    background-image: radial-gradient(rgba(107, 69, 238, 0.22) 2px, transparent 2px);
    background-size: 15px 15px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.contact-card {
    display: grid;
    align-content: start;
    min-height: 270px;
    padding: 30px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 36px rgba(42, 38, 74, 0.09);
}

.contact-card h3 {
    margin-top: 20px;
    color: var(--landing-ink);
    font-size: 20px;
    font-weight: 900;
}

.contact-card strong {
    display: block;
    margin-top: 8px;
    color: var(--landing-purple);
    font-size: 15px;
    font-weight: 900;
}

.contact-card p {
    margin-top: 20px;
    color: #59607D;
    font-size: 14px;
    line-height: 1.6;
}

.contact-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    margin-top: 24px;
    border: 1px solid rgba(107, 69, 238, 0.35);
    border-radius: 9px;
    color: var(--landing-purple);
    font-size: 13px;
    font-weight: 900;
}

.contact-steps-panel {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0 22px;
    margin-top: 28px;
    padding: 30px;
    border: 1px solid rgba(107, 69, 238, 0.12);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(245, 241, 255, 0.92), rgba(255, 255, 255, 0.9));
    box-shadow: 0 14px 30px rgba(42, 38, 74, 0.06);
}

.contact-panel-icon,
.contact-help-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #F1EDFF;
    color: var(--landing-purple);
    font-size: 25px;
    font-weight: 900;
}

.contact-steps-panel h3 {
    color: var(--landing-ink);
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 20px;
}

.contact-steps-panel ol {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    list-style: none;
    counter-reset: contact-step;
}

.contact-steps-panel li {
    position: relative;
    counter-increment: contact-step;
    padding-top: 36px;
    color: #59607D;
    font-size: 14px;
    line-height: 1.55;
}

.contact-steps-panel li::before {
    content: counter(contact-step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    color: var(--landing-purple);
    font-size: 13px;
    font-weight: 900;
}

.howto-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 32px 36px;
}

.howto-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.howto-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #ede9fe;
    border-radius: 10px;
    font-size: 22px;
}

.howto-header h3 {
    color: #1a1a2e;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.howto-steps {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    justify-content: space-between;
}

.howto-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.howto-step-label {
    color: #6c5ce7;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.howto-step-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #1a1a2e;
    border-radius: 50%;
    color: #e8ff47;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

.howto-step h4 {
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.howto-step p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.howto-arrow {
    position: relative;
    flex: 0 0 auto;
    width: 40px;
    height: 2px;
    background: #e5e5e5;
    margin-top: 50px;
}

.howto-arrow::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid #e5e5e5;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.contact-help-panel {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 20px;
    margin-top: 28px;
    padding: 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(237, 248, 231, 0.96), rgba(255, 255, 255, 0.9));
    box-shadow: 0 14px 30px rgba(42, 38, 74, 0.06);
}

.contact-help-icon {
    background: var(--landing-green-soft);
    color: #64A83E;
}

.contact-help-panel h3 {
    color: var(--landing-ink);
    font-size: 22px;
    font-weight: 900;
}

.contact-help-panel p {
    max-width: 800px;
    margin-top: 10px;
    color: #59607D;
    font-size: 14px;
    line-height: 1.55;
}

.contact-help-panel a,
.contact-help-panel button {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    margin-top: 18px;
    padding: 0 30px;
    border-radius: 10px;
    background: #64A83E;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.cta-section {
    position: relative;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    min-height: 98px;
    margin-top: 2px;
    margin-bottom: 24px;
    padding: 22px 34px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 94% 78%, rgba(255, 220, 64, 0.18), transparent 18%),
        linear-gradient(135deg, #7655F0, #6544E4);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(84, 62, 201, 0.2);
}

.cta-plane {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    color: #fff;
    transform: rotate(-8deg);
}

.cta-plane svg {
    width: 56px;
    height: 56px;
    stroke-width: 1.8;
}

.cta-copy h2 {
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 6px;
}

.cta-copy p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.cta-button {
    min-width: 292px;
    padding: 0 28px;
    background: var(--landing-yellow);
    color: #17172B;
    box-shadow: 0 12px 24px rgba(255, 199, 44, 0.22);
}

.contact-modal {
    width: min(430px, calc(100vw - 32px));
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: transparent;
    color: var(--landing-ink);
    overflow: visible;
}

.contact-modal::backdrop {
    background: rgba(20, 17, 43, 0.42);
    backdrop-filter: blur(5px);
}

.contact-modal-card {
    position: relative;
    padding: 30px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 10%, rgba(107, 69, 238, 0.12), transparent 34%),
        linear-gradient(135deg, #FFFDF8, #FFFFFF);
    box-shadow: 0 28px 70px rgba(33, 26, 75, 0.28);
}

.contact-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #F1EDFF;
    color: var(--landing-purple);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.contact-modal-head {
    display: grid;
    justify-items: center;
    text-align: center;
    padding: 8px 24px 22px;
}

.contact-modal-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #7D59F5, #5C39DE);
    color: #fff;
    font-size: 25px;
    box-shadow: 0 12px 24px rgba(107, 69, 238, 0.22);
}

.contact-modal h2 {
    color: var(--landing-ink);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
}

.contact-modal p {
    margin-top: 8px;
    color: #59607D;
    font-size: 14px;
    line-height: 1.45;
}

.contact-modal-actions {
    display: grid;
    gap: 12px;
}

.contact-modal-actions a {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 10px 14px;
    border: 1px solid rgba(107, 69, 238, 0.12);
    border-radius: 15px;
    background: #fff;
    color: var(--landing-ink);
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(42, 38, 74, 0.06);
}

.contact-modal-actions .contact-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 13px;
    font-size: 15px;
}

@media (min-width: 901px) {
    .landing-hero h1 > span {
        white-space: nowrap;
    }
}

@media (max-width: 1100px) {
    .landing-header .landing-nav {
        grid-template-columns: minmax(190px, 1fr) auto;
    }

    .landing-menu {
        order: 3;
        grid-column: 1 / -1;
        justify-content: flex-start;
        width: 100%;
        padding-bottom: 12px;
        overflow-x: auto;
    }

    .landing-header .landing-nav {
        height: auto;
        padding-top: 14px;
    }

    .landing-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
        gap: 20px;
    }

    .landing-hero-copy {
        padding-left: 18px;
    }

    .features-grid,
    .stats-grid {
        gap: 16px;
    }

    .feature-card {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .feature-arrow {
        display: none;
    }

    .reviews-grid {
        gap: 18px;
    }

    .review-card-compact {
        grid-column: span 6;
    }

    .stats-strip {
        grid-template-columns: 1fr;
    }

    .stats-script,
    .sticky-note {
        justify-self: start;
    }

    .sticky-note {
        width: 210px;
    }

    .about-grid {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 28px;
    }

    .about-checklist {
        grid-column: 2;
    }

    .service-pricing-grid,
    .contacts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-price-card:last-child,
    .contact-card:last-child {
        grid-column: 1 / -1;
    }

    .services-contact-panel {
        padding: 30px;
    }

    .service-contact-grid {
        gap: 16px;
    }

    .contacts-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
        gap: 24px;
    }

    .contact-steps-panel ol {
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .landing-header .landing-nav {
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        gap: 14px;
        width: min(100% - 32px, 1220px);
        padding: 12px 0;
    }

    .landing-menu {
        display: none;
    }

    .landing-header-button {
        padding: 0 18px;
    }

    .landing-hero {
        padding-top: 28px;
    }

    .landing-hero-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .landing-hero-copy {
        padding: 8px 0 0;
    }

    .landing-hero-visual {
        min-height: 430px;
        width: min(620px, 100%);
        margin: 0 auto;
    }

    .hero-benefits,
    .features-grid,
    .service-pricing-grid,
    .service-contact-grid,
    .stats-grid,
    .about-grid,
    .contacts-hero-grid,
    .contacts-grid,
    .cta-section {
        grid-template-columns: 1fr;
    }

    .hero-benefits {
        max-width: 100%;
    }

    .feature-card {
        grid-template-columns: 58px minmax(0, 1fr) 22px;
    }

    .feature-arrow {
        display: block;
    }

    .stats-strip {
        padding: 26px;
    }

    .stat-item {
        border-left: 0;
        border-top: 1px dashed rgba(255, 255, 255, 0.28);
        padding: 18px 0 0;
    }

    .about-grid {
        align-items: start;
    }

    .reviews-header {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 20px;
    }

    .reviews-metrics {
        justify-self: start;
    }

    .reviews-doodle-star {
        right: 18px;
        top: 2px;
    }

    .about-photo-card {
        width: min(260px, 100%);
    }

    .about-checklist {
        grid-column: auto;
    }

    .service-price-card:last-child,
    .contact-card:last-child {
        grid-column: auto;
    }

    .section-star,
    .section-rays,
    .services-page-section::before,
    .services-page-section::after {
        display: none;
    }

    .contacts-illustration {
        min-height: 220px;
        width: min(430px, 100%);
        margin: 0 auto;
    }

    .contact-steps-panel {
        grid-template-columns: 1fr;
    }

    .contact-steps-panel ol {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .cta-section {
        justify-items: start;
    }
}

@media (max-width: 560px) {
    .landing-page {
        overflow-x: hidden;
    }

    .landing-container {
        width: min(1220px, calc(100vw - 28px));
    }

    .landing-brand-text small {
        display: none;
    }

    .landing-header-actions {
        gap: 8px;
    }

    .landing-login-button {
        min-height: 38px;
        padding: 0 14px;
    }

    .landing-header-button {
        display: none;
    }

    .landing-plane-button {
        display: grid;
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .landing-hero h1 {
        font-size: clamp(32px, 8.6vw, 36px);
        line-height: 1.04;
        max-width: 100%;
    }

    .landing-hero-grid,
    .landing-hero-copy {
        width: 100%;
        max-width: calc(100vw - 28px);
    }

    .hero-script {
        font-size: clamp(33px, 9vw, 38px);
        overflow-wrap: break-word;
    }

    .landing-hero-text {
        font-size: 14px;
        width: 100%;
        max-width: 330px;
        overflow-wrap: anywhere;
    }

    .landing-hero-actions,
    .hero-benefits {
        grid-template-columns: 1fr;
    }

    .landing-primary-button,
    .landing-secondary-button,
    .cta-button {
        width: 100%;
        min-width: 0;
    }

    .landing-hero-visual {
        min-height: 330px;
        width: 100%;
        max-width: calc(100vw - 28px);
        overflow: hidden;
    }

    .hero-photo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 160px;
        height: 160px;
        border-radius: 50%;
        border: 3px solid #e8ff47;
        object-fit: cover;
        object-position: 55% 25%;
    }

    .hero-study-illustration {
        right: 4%;
        bottom: 28px;
        width: 92%;
    }

    .hero-blob {
        right: 0;
        bottom: 24px;
        height: 245px;
    }

    .hero-note {
        right: auto;
        left: min(190px, calc(100% - 176px));
        bottom: 28px;
        min-width: 0;
        width: 166px;
        padding: 16px 18px;
        font-size: 16px;
    }

    .hero-study-badge {
        left: 22px;
        bottom: 44px;
        min-width: 88px;
        min-height: 44px;
        font-size: 15px;
    }

    .doodle-check,
    .doodle-arrow,
    .doodle-rays,
    .doodle-star {
        display: none;
    }

    .services-page-section,
    .contacts-page-section {
        padding-top: 38px;
    }

    .section-hero {
        justify-items: start;
        text-align: left;
        margin-bottom: 24px;
    }

    .section-hero h2,
    .contacts-hero-copy h2 {
        font-size: 32px;
    }

    .section-hero p,
    .contacts-hero-copy p {
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .section-underline,
    .contacts-hero-copy .section-underline {
        width: min(280px, 100%);
    }

    .service-pricing-grid,
    .service-contact-grid,
    .contacts-grid {
        gap: 14px;
    }

    .service-price-card {
        min-height: 0;
        padding: 24px 20px;
    }

    .service-price-card h3 {
        font-size: 21px;
        overflow-wrap: anywhere;
    }

    .service-price-card p,
    .service-price-note {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .service-price-card strong {
        font-size: 36px;
    }

    .service-price-button {
        min-height: 48px;
        text-align: center;
    }

    .hero-study-card-front {
        padding: 30px 24px;
    }

    .hero-study-line {
        height: 12px;
        margin-bottom: 14px;
    }

    .services-contact-panel {
        padding: 22px 16px;
    }

    .services-contact-title h3,
    .contact-steps-panel h3,
    .contact-help-panel h3 {
        font-size: 20px;
    }

    .service-contact-card {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 16px;
    }

    .service-contact-card span:not(.contact-icon),
    .service-contact-card strong,
    .service-contact-card em {
        overflow-wrap: anywhere;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 13px;
        font-size: 16px;
    }

    .contacts-illustration {
        min-height: 180px;
        transform: scale(0.84);
        transform-origin: top center;
        margin-bottom: -28px;
    }

    .contacts-grid {
        margin-top: 6px;
    }

    .contact-card,
    .contact-steps-panel,
    .contact-help-panel {
        padding: 20px;
    }

    .contact-card {
        min-height: 0;
    }

    .contact-card h3 {
        margin-top: 16px;
    }

    .contact-card p,
    .contact-steps-panel li,
    .contact-help-panel p {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .howto-card {
        padding: 24px 20px;
    }

    .howto-header {
        margin-bottom: 24px;
    }

    .howto-steps {
        flex-direction: column;
        gap: 24px;
    }

    .howto-arrow {
        display: none;
    }

    .howto-step h4 {
        font-size: 15px;
    }

    .howto-step p {
        font-size: 13px;
    }

    .contact-card a,
    .contact-help-panel a,
    .contact-help-panel button {
        width: 100%;
        padding: 0 14px;
        white-space: normal;
        text-align: center;
    }

    .reviews-title h2 {
        width: 100%;
        max-width: 330px;
        font-size: 24px;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .reviews-doodle-star {
        display: none;
    }

    .reviews-header,
    .reviews-title {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .reviews-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        max-width: 330px;
    }

    .review-metric strong {
        font-size: 27px;
    }

    .review-metric span {
        font-size: 11px;
        overflow-wrap: anywhere;
    }

    .review-metric:first-child::after {
        font-size: 13px;
        letter-spacing: 0;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .review-card-large,
    .review-card-compact {
        grid-column: 1;
        min-height: 0;
        padding: 20px;
    }

    .review-card-large {
        padding-left: 46px;
    }

    .review-quote {
        left: 20px;
        top: 18px;
        font-size: 26px;
    }

    .review-card p {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .review-footer {
        flex-wrap: wrap;
    }

    .review-footer strong {
        flex: 1 1 calc(100% - 48px);
    }

    .review-tag {
        margin-left: 44px;
        white-space: normal;
    }

    .feature-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 16px;
        padding: 18px;
    }

    .feature-card h2,
    .feature-card p {
        max-width: 230px;
        overflow-wrap: anywhere;
    }

    .feature-icon {
        width: 46px;
        height: 46px;
    }

    .feature-arrow {
        display: none;
    }

    .stats-strip {
        border-radius: 12px;
        padding: 22px;
    }

    .about-copy h2,
    .cta-copy h2 {
        font-size: 25px;
    }

    .about-grid,
    .about-copy,
    .about-copy p,
    .about-tags,
    .about-checklist {
        width: 100%;
        max-width: 320px;
    }

    .about-copy p,
    .about-checklist li,
    .about-tags span {
        overflow-wrap: anywhere;
    }

    .about-tags {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-tags span {
        max-width: 100%;
        white-space: normal;
        line-height: 1.25;
    }

    .cta-section {
        gap: 14px;
        width: min(1220px, calc(100vw - 28px));
        max-width: calc(100vw - 28px);
        padding: 22px;
        overflow: hidden;
    }

    .cta-copy,
    .cta-copy h2,
    .cta-copy p {
        width: 100%;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .cta-copy h2 {
        font-size: 22px;
        line-height: 1.15;
    }

    .cta-button {
        min-height: 50px;
        padding: 0 16px;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .landing-header .landing-nav {
        width: min(100% - 24px, 1220px);
        gap: 10px;
    }

    .landing-brand-text {
        display: none;
    }
}

.admin-shell {
    --admin-bg: #FFFDF8;
    --admin-ink: #11142E;
    --admin-muted: #687089;
    --admin-line: rgba(83, 74, 183, 0.13);
    --admin-purple: #6B45EE;
    --admin-purple-dark: #4F31CD;
    --admin-purple-soft: #F1EDFF;
    --admin-amber: #FF9900;
    --admin-amber-soft: #FFF5DD;
    --admin-green: #73B84B;
    --admin-green-soft: #EDF8E7;
    --admin-shadow: 0 22px 54px rgba(42, 38, 74, 0.08);
    background:
        linear-gradient(rgba(107, 69, 238, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 69, 238, 0.025) 1px, transparent 1px),
        var(--admin-bg);
    background-size: 64px 64px;
    color: var(--admin-ink);
}

.admin-shell > nav {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
    height: 74px;
    padding: 0 34px;
    border-bottom: 1px solid rgba(50, 43, 91, 0.1);
    background: rgba(255, 253, 249, 0.94);
    backdrop-filter: blur(14px);
}

.admin-shell .brand {
    justify-self: start;
    gap: 12px;
}

.admin-shell .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    background: linear-gradient(135deg, #9274FF, var(--admin-purple));
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(107, 69, 238, 0.22);
}

.admin-shell .brand-copy {
    display: grid;
    gap: 2px;
}

.admin-shell .brand-copy strong {
    color: var(--admin-ink);
    font-size: 15px;
    font-weight: 800;
}

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

.admin-shell .nav-tabs {
    justify-self: center;
    gap: 8px;
}

.admin-shell .nav-tabs a {
    min-height: 42px;
    padding: 10px 20px;
    border-radius: 12px;
    color: #5D6278;
    font-size: 15px;
    font-weight: 700;
}

.admin-shell .nav-tabs a:hover,
.admin-shell .nav-tabs a.is-active {
    background: var(--admin-purple-soft);
    color: var(--admin-purple);
}

.admin-shell .logout-form {
    justify-self: end;
    gap: 12px;
}

.admin-shell .role-badge {
    min-height: 34px;
    padding: 8px 14px;
    border: 1px solid rgba(107, 69, 238, 0.12);
    background: var(--admin-purple-soft);
    color: var(--admin-purple);
    font-size: 13px;
    font-weight: 800;
}

.admin-shell .logout-form button {
    min-height: 38px;
    padding: 8px 16px;
    border-color: rgba(49, 43, 91, 0.12);
    border-radius: 12px;
    background: #fff;
    color: var(--admin-ink);
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(42, 38, 74, 0.04);
}

.admin-dashboard,
.homework-builder {
    width: min(1360px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 28px 0 44px;
}

.admin-hero-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px 240px;
    align-items: center;
    gap: 26px;
    min-height: 188px;
    padding: 34px 38px;
    border: 1px solid rgba(107, 69, 238, 0.1);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(245, 241, 255, 0.96), rgba(255, 255, 255, 0.9)),
        #fff;
    box-shadow: var(--admin-shadow);
    overflow: hidden;
}

.admin-eyebrow,
.builder-eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--admin-purple);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.admin-hero-card h1,
.homework-builder-hero h1 {
    color: var(--admin-ink);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0;
}

.admin-hero-card p,
.homework-builder-hero p {
    max-width: 660px;
    margin-top: 12px;
    color: var(--admin-muted);
    font-size: 15px;
}

.admin-hero-actions {
    display: grid;
    gap: 12px;
    justify-items: stretch;
}

.admin-primary-action,
.admin-secondary-action,
.admin-outline-action,
.builder-add-question,
.builder-back-link,
.builder-save-button,
.builder-cancel-button,
.builder-add-option,
.builder-after-save a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.admin-primary-action,
.builder-add-question,
.builder-save-button {
    border: 0;
    background: linear-gradient(135deg, #7D59F5, var(--admin-purple-dark));
    color: #fff;
    box-shadow: 0 14px 30px rgba(107, 69, 238, 0.24);
}

.admin-secondary-action,
.admin-outline-action,
.builder-back-link,
.builder-cancel-button,
.builder-after-save a {
    border: 1px solid rgba(107, 69, 238, 0.32);
    background: rgba(255, 255, 255, 0.82);
    color: var(--admin-purple);
}

.admin-hero-illustration {
    position: relative;
    height: 128px;
}

.admin-notebook {
    position: absolute;
    left: 68px;
    top: 8px;
    width: 104px;
    height: 116px;
    border-radius: 14px 18px 18px 14px;
    background:
        repeating-linear-gradient(180deg, transparent 0 18px, rgba(107, 69, 238, 0.11) 19px 21px),
        #fff;
    border: 1px solid rgba(107, 69, 238, 0.16);
    box-shadow: 0 16px 30px rgba(107, 69, 238, 0.13);
    transform: rotate(-8deg);
}

.admin-notebook::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 14px;
    width: 14px;
    height: 84px;
    border-radius: 999px;
    border: 5px solid #8B70F2;
    border-right: 0;
}

.admin-pencil,
.admin-pencil.small {
    position: absolute;
    border-radius: 999px;
    background: linear-gradient(90deg, #8B70F2, #5E3FDC);
    box-shadow: 0 10px 18px rgba(107, 69, 238, 0.22);
}

.admin-pencil {
    left: 146px;
    top: 26px;
    width: 14px;
    height: 104px;
    transform: rotate(34deg);
}

.admin-pencil.small {
    left: 220px;
    top: 64px;
    width: 10px;
    height: 70px;
    background: linear-gradient(90deg, #FFB12A, #FF9900);
    transform: rotate(-4deg);
}

.admin-star {
    position: absolute;
    color: #FFBD43;
    font-size: 20px;
}

.admin-star.one {
    right: 82px;
    top: 14px;
}

.admin-star.two {
    right: 30px;
    top: 56px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 26px 0 22px;
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 140px;
    padding: 26px;
    border: 1px solid var(--admin-line);
    border-top-color: rgba(107, 69, 238, 0.42);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 36px rgba(42, 38, 74, 0.06);
}

.admin-stat-card.amber {
    border-top-color: rgba(255, 153, 0, 0.48);
}

.admin-stat-card.green {
    border-top-color: rgba(115, 184, 75, 0.52);
}

.admin-stat-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 50%;
    background: var(--admin-purple-soft);
    color: var(--admin-purple);
    font-size: 26px;
    font-weight: 900;
}

.admin-stat-card.amber .admin-stat-icon {
    background: var(--admin-amber-soft);
    color: var(--admin-amber);
}

.admin-stat-card.green .admin-stat-icon {
    background: var(--admin-green-soft);
    color: var(--admin-green);
}

.admin-stat-card.mixed .admin-stat-icon {
    background: linear-gradient(135deg, var(--admin-purple-soft), var(--admin-green-soft));
    color: var(--admin-purple);
}

.admin-stat-card strong {
    display: block;
    color: var(--admin-ink);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.admin-stat-card span,
.admin-stat-card small {
    display: block;
}

.admin-stat-card span {
    margin-top: 6px;
    color: #5D6278;
    font-size: 15px;
    font-weight: 700;
}

.admin-stat-card small {
    margin-top: 10px;
    color: var(--admin-green);
    font-size: 13px;
    font-weight: 800;
}

.admin-stat-card.amber small {
    color: var(--admin-amber);
}

.admin-stat-card.green small,
.admin-stat-card.mixed small {
    color: var(--admin-muted);
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
}

.admin-main-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.admin-side-column {
    display: grid;
    align-content: start;
    gap: 22px;
}

.admin-card-section,
.admin-tip-card,
.homework-builder-form,
.homework-builder-hero,
.builder-after-save {
    border: 1px solid rgba(49, 43, 91, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 38px rgba(42, 38, 74, 0.06);
}

.admin-card-section {
    min-height: 210px;
    padding: 24px;
}

.admin-card-section.students,
.admin-card-section.materials {
    min-height: 245px;
}

.admin-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.admin-section-head h2,
.admin-tip-card h2,
.builder-after-save h2 {
    color: var(--admin-ink);
    font-size: 18px;
    font-weight: 900;
}

.admin-section-head a {
    color: var(--admin-purple);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-student-list,
.admin-homework-list,
.admin-material-list,
.admin-activity-list,
.admin-action-list {
    display: grid;
    gap: 12px;
}

.admin-student-row,
.admin-homework-row,
.admin-material-row,
.admin-activity-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(49, 43, 91, 0.08);
}

.admin-student-row:last-child,
.admin-homework-row:last-child,
.admin-material-row:last-child,
.admin-activity-row:last-child {
    border-bottom: 0;
}

.admin-student-avatar,
.admin-material-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    background: var(--admin-purple-soft);
    color: var(--admin-purple);
    font-size: 14px;
    font-weight: 900;
}

.admin-student-row strong,
.admin-homework-row strong,
.admin-material-row strong,
.admin-activity-row strong {
    display: block;
    color: var(--admin-ink);
    font-size: 15px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-student-row span,
.admin-student-row small,
.admin-homework-row span,
.admin-material-row span,
.admin-activity-row span {
    display: block;
    color: var(--admin-muted);
    font-size: 13px;
}

.admin-student-row small {
    white-space: nowrap;
}

.admin-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.admin-status.pending {
    background: var(--admin-amber-soft);
    color: #C77400;
}

.admin-status.done {
    background: var(--admin-green-soft);
    color: #3F8125;
}

.admin-empty-state {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
    min-height: 140px;
    color: var(--admin-muted);
    text-align: center;
}

.admin-empty-state.compact {
    min-height: 96px;
}

.admin-empty-state strong {
    color: #555D76;
    font-size: 15px;
    font-weight: 800;
}

.admin-empty-state p,
.admin-empty-state span,
.admin-tip-card p,
.admin-card-section.support p {
    color: var(--admin-muted);
    font-size: 14px;
}

.admin-empty-icon {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 22px;
    background: var(--admin-purple-soft);
    color: var(--admin-purple);
    font-size: 30px;
}

.admin-empty-icon.amber {
    background: var(--admin-amber-soft);
    color: var(--admin-amber);
}

.admin-empty-icon.green {
    background: var(--admin-green-soft);
    color: var(--admin-green);
}

.admin-outline-action.full {
    width: 100%;
}

.admin-action-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(49, 43, 91, 0.1);
    border-radius: 12px;
    background: #fff;
    color: var(--admin-ink);
    font-size: 14px;
    font-weight: 800;
}

.admin-action-list span {
    color: var(--admin-purple);
    font-size: 24px;
    line-height: 1;
}

.admin-tip-card {
    padding: 24px;
    background: linear-gradient(135deg, rgba(241, 237, 255, 0.96), rgba(255, 255, 255, 0.94));
}

.admin-card-section.support {
    display: grid;
    gap: 14px;
    min-height: 0;
}

.admin-activity-chart {
    position: relative;
    height: 92px;
    margin-bottom: 16px;
    border: 1px solid rgba(49, 43, 91, 0.08);
    border-radius: 16px;
    background:
        linear-gradient(180deg, transparent 32%, rgba(107, 69, 238, 0.08) 33%, transparent 34%),
        linear-gradient(180deg, transparent 66%, rgba(107, 69, 238, 0.08) 67%, transparent 68%),
        #fff;
    overflow: hidden;
}

.admin-activity-chart span {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 22px;
    height: 46px;
    border: solid rgba(107, 69, 238, 0.42);
    border-width: 2px 0 0;
    border-radius: 52% 48% 0 0;
    transform: skewX(-20deg);
}

.homework-builder {
    width: min(1220px, calc(100vw - 48px));
}

.homework-builder-hero {
    position: relative;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    min-height: 210px;
    padding: 36px 40px;
    border-top: 5px solid var(--admin-amber);
}

.builder-hero-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--admin-amber-soft);
}

.builder-clipboard {
    width: 50px;
    height: 64px;
    border: 2px solid #AA93FF;
    border-radius: 10px;
    background:
        repeating-linear-gradient(180deg, transparent 0 14px, rgba(107, 69, 238, 0.15) 15px 17px),
        #fff;
    box-shadow: 0 10px 22px rgba(107, 69, 238, 0.12);
}

.builder-clipboard::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 42px;
    width: 28px;
    height: 14px;
    border-radius: 9px 9px 5px 5px;
    background: var(--admin-purple);
}

.builder-pen {
    position: absolute;
    right: 20px;
    bottom: 18px;
    width: 12px;
    height: 56px;
    border-radius: 999px;
    background: linear-gradient(180deg, #8B70F2, #5E3FDC);
    transform: rotate(38deg);
}

.builder-eyebrow {
    color: #F08A00;
}

.builder-back-link {
    min-width: 170px;
    padding: 0 22px;
}

.homework-builder-form {
    display: grid;
    gap: 26px;
    margin-top: 24px;
    padding: 36px 40px;
    border-radius: 22px;
}

.builder-field {
    display: grid;
    gap: 12px;
}

.builder-field > span,
.builder-options-label {
    color: var(--admin-ink);
    font-size: 16px;
    font-weight: 900;
}

.builder-field > span small {
    color: var(--admin-muted);
    font-size: 14px;
    font-weight: 600;
}

.builder-field input[type="text"],
.builder-field input[type="file"],
.builder-field textarea,
.builder-option-row input[type="text"] {
    width: 100%;
    min-height: 58px;
    border: 1px solid rgba(49, 43, 91, 0.18);
    border-radius: 13px;
    background: #fff;
    color: var(--admin-ink);
    font-size: 15px;
    padding: 14px 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.builder-field input[type="file"] {
    padding: 16px;
    cursor: pointer;
}

.builder-field textarea {
    min-height: 118px;
    resize: vertical;
}

.builder-field input:focus,
.builder-field textarea:focus,
.builder-option-row input[type="text"]:focus {
    border-color: var(--admin-purple);
    outline: 3px solid rgba(107, 69, 238, 0.12);
}

.builder-questions-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.builder-title-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.builder-title-line h2 {
    color: var(--admin-ink);
    font-size: 20px;
    font-weight: 900;
}

.question-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--admin-purple-soft);
    color: var(--admin-purple);
    font-size: 14px;
    font-weight: 900;
}

.builder-questions-head p {
    margin-top: 8px;
    color: var(--admin-muted);
    font-size: 15px;
}

.builder-add-question {
    min-width: 216px;
    padding: 0 24px;
}

.builder-questions-list {
    gap: 20px;
}

.builder-question-card {
    display: grid;
    gap: 22px;
    padding: 24px;
    border: 1px solid rgba(107, 69, 238, 0.1);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(246, 243, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.builder-question-header {
    display: grid;
    grid-template-columns: 20px 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.builder-drag-handle {
    color: #8D94AA;
    font-size: 18px;
    letter-spacing: 0;
}

.builder-question-index {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--admin-purple);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.builder-question-header h3 {
    color: var(--admin-ink);
    font-size: 18px;
    font-weight: 900;
}

.builder-remove-button,
.builder-remove-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid rgba(214, 55, 55, 0.16);
    border-radius: 12px;
    background: #fff;
    color: #D63737;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.builder-remove-button {
    padding: 0 16px;
}

.builder-options-block {
    display: grid;
    gap: 12px;
}

.builder-options-list {
    gap: 10px;
}

.builder-option-row {
    display: grid;
    grid-template-columns: 22px 44px minmax(0, 1fr) auto 48px;
    align-items: center;
    gap: 10px;
}

.builder-option-row input[type="radio"] {
    width: 21px;
    height: 21px;
    accent-color: var(--admin-purple);
}

.builder-option-letter {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--admin-purple-soft);
    color: var(--admin-purple);
    font-size: 16px;
    font-weight: 900;
}

.builder-correct-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #DDF8E6;
    color: #208348;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.builder-option-row.is-correct .builder-correct-badge,
.builder-option-row:has([data-option-radio]:checked) .builder-correct-badge {
    display: inline-flex;
}

.builder-remove-option {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
}

.builder-add-option {
    justify-self: start;
    min-height: 44px;
    padding: 0 18px;
    border: 1px dashed rgba(107, 69, 238, 0.58);
    background: rgba(255, 255, 255, 0.72);
    color: var(--admin-purple);
}

.builder-hint {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    border: 1px solid rgba(255, 153, 0, 0.42);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 245, 221, 0.96), rgba(255, 255, 255, 0.9));
}

.builder-hint > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--admin-amber);
    color: var(--admin-amber);
    font-weight: 900;
}

.builder-hint strong {
    display: block;
    color: var(--admin-ink);
    font-size: 15px;
    font-weight: 900;
}

.builder-hint p {
    margin-top: 4px;
    color: var(--admin-muted);
    font-size: 14px;
}

.builder-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    padding-top: 8px;
}

.builder-cancel-button,
.builder-save-button {
    min-width: 190px;
    padding: 0 24px;
}

.builder-save-button {
    min-width: 320px;
}

.builder-after-save {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
    padding: 26px 34px;
    background: linear-gradient(135deg, rgba(241, 237, 255, 0.98), rgba(255, 255, 255, 0.94));
}

.builder-after-icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: var(--admin-purple-soft);
    color: var(--admin-purple);
    font-size: 30px;
    font-weight: 900;
}

.builder-after-save p {
    margin-top: 8px;
    color: var(--admin-muted);
    font-size: 15px;
}

.builder-after-save a {
    min-width: 220px;
    padding: 0 22px;
}

@media (max-width: 1120px) {
    .admin-shell > nav {
        grid-template-columns: minmax(220px, 1fr) auto;
        height: auto;
        gap: 12px;
        padding: 14px 24px;
    }

    .admin-shell .nav-tabs {
        order: 3;
        grid-column: 1 / -1;
        justify-self: center;
    }

    .admin-hero-card {
        grid-template-columns: minmax(0, 1fr) 220px;
    }

    .admin-hero-illustration {
        display: none;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-side-column {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-card-section.events,
    .admin-card-section.quick {
        min-height: 100%;
    }

    .homework-builder-hero {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .builder-back-link {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .admin-dashboard,
    .homework-builder {
        width: min(100vw - 28px, 1360px);
        padding: 20px 0 34px;
    }

    .admin-shell > nav {
        display: flex;
        align-items: stretch;
        flex-direction: column;
    }

    .admin-shell .brand,
    .admin-shell .logout-form,
    .admin-shell .nav-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .admin-shell .nav-tabs {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .admin-hero-card,
    .homework-builder-hero,
    .homework-builder-form,
    .builder-after-save,
    .admin-card-section {
        border-radius: 18px;
        padding: 22px;
    }

    .admin-hero-card,
    .homework-builder-hero,
    .builder-after-save {
        grid-template-columns: 1fr;
    }

    .admin-hero-card h1,
    .homework-builder-hero h1 {
        font-size: 27px;
    }

    .admin-hero-actions,
    .admin-main-column,
    .admin-side-column,
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-student-row,
    .admin-homework-row,
    .admin-material-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-student-row small,
    .admin-status {
        grid-column: 2;
        justify-self: start;
    }

    .builder-questions-head,
    .builder-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .builder-add-question,
    .builder-cancel-button,
    .builder-save-button,
    .builder-back-link,
    .builder-after-save a {
        width: 100%;
        min-width: 0;
    }

    .builder-question-header {
        grid-template-columns: 20px 38px minmax(0, 1fr);
    }

    .builder-remove-button {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .builder-option-row {
        grid-template-columns: 22px 42px minmax(0, 1fr) 44px;
    }

    .builder-correct-badge {
        grid-column: 3 / 4;
        justify-self: start;
    }
}

@media (max-width: 460px) {
    .admin-shell .brand-copy {
        display: none;
    }

    .admin-shell .logout-form {
        flex-wrap: wrap;
    }

    .builder-hero-icon {
        width: 82px;
        height: 82px;
    }

    .builder-option-row {
        grid-template-columns: 22px 38px minmax(0, 1fr);
    }

    .builder-remove-option {
        grid-column: 3;
        justify-self: end;
    }

    .builder-correct-badge {
        grid-column: 1 / -1;
    }
}

.student-area {
    --student-ink: #11132B;
    --student-muted: #596179;
    --student-purple: #6B45EE;
    --student-purple-dark: #5130D4;
    --student-purple-soft: #F1EDFF;
    --student-amber: #FFB21F;
    --student-amber-soft: #FFF4DE;
    --student-green: #74B84B;
    --student-green-soft: #EDF8E7;
    --student-line: rgba(124, 58, 237, 0.05);
    --student-border: rgba(49, 43, 91, 0.1);
    --student-shadow: 0 20px 46px rgba(42, 38, 74, 0.1);
    min-height: 100vh;
    color: var(--student-ink);
    background:
        radial-gradient(circle at 6% 70%, rgba(255, 199, 44, 0.16), transparent 21rem),
        radial-gradient(circle at 88% 22%, rgba(107, 69, 238, 0.14), transparent 25rem),
        radial-gradient(circle at 84% 84%, rgba(116, 184, 75, 0.13), transparent 18rem),
        linear-gradient(var(--student-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--student-line) 1px, transparent 1px),
        #FFFDF8;
    background-size: auto, auto, auto, 56px 56px, 56px 56px, auto;
}

.student-area > nav {
    display: grid;
    grid-template-columns: minmax(80px, 1fr) auto minmax(210px, 1fr);
    align-items: center;
    height: 68px;
    padding: 0 max(24px, calc((100% - 1360px) / 2));
    background: rgba(255, 253, 248, 0.94);
    border-bottom: 1px solid rgba(54, 48, 100, 0.1);
    backdrop-filter: blur(16px);
}

.student-area > nav .brand {
    justify-self: start;
}

.student-area > nav .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    background: radial-gradient(circle at 30% 24%, #9E7BFF, var(--student-purple) 68%, #4327B9);
    box-shadow: 0 10px 22px rgba(107, 69, 238, 0.22);
    font-size: 13px;
    font-weight: 800;
}

.student-area .nav-tabs {
    justify-self: center;
    gap: 28px;
}

.student-area .nav-tabs a {
    position: relative;
    min-height: 42px;
    padding: 9px 4px;
    border-radius: 0;
    color: #181A2E;
    font-size: 15px;
    font-weight: 700;
}

.student-area .nav-tabs a:hover {
    background: transparent;
    color: var(--student-purple);
}

.student-area .nav-tabs a.is-active {
    background: transparent;
    color: var(--student-purple-dark);
}

.student-area .nav-tabs a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 999px;
    background: var(--student-purple);
}

.student-area .logout-form {
    justify-self: end;
    gap: 14px;
}

.student-area .role-badge.student {
    min-height: 34px;
    padding: 7px 18px;
    background: #EAF7DF;
    color: #327321;
    font-size: 14px;
    font-weight: 700;
}

.student-area .logout-form button {
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid rgba(31, 35, 59, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: #17172B;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(26, 24, 54, 0.05);
}

.student-area .page,
.student-area .student-content {
    width: min(1360px, calc(100% - 48px));
    max-width: 1360px;
    margin: 0 auto;
    padding: 34px 0 44px;
}

.student-page {
    position: relative;
}

.student-decor {
    position: fixed;
    z-index: 0;
    pointer-events: none;
}

.decor-dot-field {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(rgba(107, 69, 238, 0.18) 2px, transparent 2px);
    background-size: 16px 16px;
}

.decor-dot-field-left {
    left: 42px;
    top: 52%;
}

.decor-dot-field-right {
    right: 34px;
    top: 16%;
}

.decor-star {
    color: rgba(255, 178, 31, 0.88);
    font-size: 50px;
    line-height: 1;
}

.decor-star-left {
    left: 82px;
    top: 20%;
}

.decor-squiggle {
    width: 74px;
    height: 74px;
    border: 5px solid rgba(107, 69, 238, 0.3);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
}

.decor-squiggle-left {
    left: 96px;
    top: 34%;
    transform: rotate(28deg);
}

.decor-squiggle-right {
    right: 98px;
    bottom: 18%;
    transform: rotate(-34deg);
}

.student-page > :not(.student-decor) {
    position: relative;
    z-index: 1;
}

.student-area .dashboard-top,
.student-area .student-dashboard-grid,
.student-area .student-card-grid,
.student-area .homework-layout,
.student-area .resource-panel,
.student-area .resource-hero,
.student-area .card,
.student-area .dashboard-welcome,
.student-area .dashboard-next-lesson {
    min-width: 0;
    max-width: 100%;
}

.student-area .card,
.resource-hero,
.resource-panel,
.dashboard-welcome,
.dashboard-next-lesson,
.how-card,
.side-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--student-border);
    border-radius: 24px;
    box-shadow: var(--student-shadow);
}

.dashboard-top {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(360px, 1fr);
    gap: 34px;
    margin-bottom: 26px;
}

.dashboard-welcome {
    position: relative;
    overflow: hidden;
    min-height: 236px;
    padding: 34px 36px;
    background:
        radial-gradient(circle at 92% 18%, rgba(107, 69, 238, 0.13), transparent 12rem),
        linear-gradient(135deg, rgba(244, 239, 255, 0.96), rgba(255, 255, 255, 0.9));
}

.dashboard-welcome h1 {
    color: var(--student-ink);
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 12px;
}

.dashboard-welcome p,
.dashboard-next-lesson p,
.resource-hero p,
.resource-empty p,
.side-card p,
.student-empty-state p,
.student-empty-inline p,
.how-card p {
    color: var(--student-muted);
    font-size: 16px;
    line-height: 1.55;
}

.welcome-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.metric-tile {
    display: grid;
    grid-template-columns: 52px auto;
    align-items: center;
    column-gap: 14px;
    min-height: 86px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(47, 41, 91, 0.06);
}

.metric-icon {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 21px;
}

.metric-purple .metric-icon {
    background: var(--student-purple-soft);
    color: var(--student-purple);
}

.metric-amber .metric-icon {
    background: var(--student-amber-soft);
    color: var(--student-amber);
}

.metric-green .metric-icon {
    background: var(--student-green-soft);
    color: var(--student-green);
}

.metric-tile strong {
    color: var(--student-ink);
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

.metric-tile span:last-child {
    color: #40465E;
    font-size: 15px;
}

.welcome-smile {
    position: absolute;
    right: 36px;
    top: 34px;
    width: 64px;
    height: 64px;
    border: 4px solid rgba(107, 69, 238, 0.38);
    border-top-color: transparent;
    border-left-color: transparent;
    border-radius: 50%;
    transform: rotate(42deg);
}

.dashboard-next-lesson {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    align-items: center;
    min-height: 236px;
    padding: 34px;
}

.dashboard-next-lesson .mini-label,
.resource-hero .panel-tag {
    color: var(--student-purple);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.dashboard-next-lesson strong {
    display: block;
    margin: 10px 0 26px;
    color: var(--student-ink);
    font-size: 22px;
    font-weight: 900;
}

.calendar-illustration {
    position: relative;
    justify-self: end;
    width: 138px;
    height: 116px;
    border-radius: 20px;
    background:
        linear-gradient(#B9A4FF 0 32px, #F2EEFF 32px),
        repeating-linear-gradient(90deg, transparent 0 20px, rgba(107, 69, 238, 0.12) 20px 32px);
    box-shadow: inset 0 -12px 0 rgba(107, 69, 238, 0.08);
}

.calendar-illustration::before,
.calendar-illustration::after {
    content: "";
    position: absolute;
    top: -12px;
    width: 11px;
    height: 31px;
    border-radius: 8px;
    background: #B9A4FF;
}

.calendar-illustration::before {
    left: 28px;
}

.calendar-illustration::after {
    right: 28px;
}

.calendar-illustration span {
    position: absolute;
    right: -16px;
    bottom: -12px;
    width: 58px;
    height: 58px;
    border: 5px solid #B9A4FF;
    border-radius: 50%;
    background: #fff;
}

.calendar-illustration span::before,
.calendar-illustration span::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 14px;
    width: 4px;
    height: 19px;
    border-radius: 999px;
    background: #B9A4FF;
    transform-origin: bottom center;
}

.calendar-illustration span::after {
    height: 15px;
    transform: rotate(90deg);
}

.student-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
}

.student-dashboard-main {
    min-width: 0;
}

.student-area .student-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.student-area .student-card {
    min-height: 290px;
    padding: 28px;
    border-radius: 22px;
}

.student-area .card-accent,
.student-area .card-strip {
    height: 5px;
}

.student-area .card-accent.purple,
.student-area .card-strip.purple {
    background: var(--student-purple);
}

.student-area .card-accent.amber,
.student-area .card-strip.amber {
    background: var(--student-amber);
}

.student-area .card-accent.green {
    background: var(--student-green);
}

.student-area .card-head {
    align-items: flex-start;
    margin-bottom: 22px;
}

.student-area .card-head h2,
.quick-access h2,
.events-card h2,
.help-card h2,
.how-card h2,
.resource-panel h2,
.side-card h2 {
    color: var(--student-ink);
    font-size: 22px;
    font-weight: 900;
}

.student-area .card-head p {
    color: var(--student-muted);
    font-size: 16px;
}

.student-area .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 27px;
}

.student-area .icon-purple {
    background: var(--student-purple-soft);
    color: var(--student-purple);
}

.student-area .icon-amber {
    background: var(--student-amber-soft);
    color: var(--student-amber);
}

.student-area .icon-green {
    background: var(--student-green-soft);
    color: var(--student-green);
}

.student-empty-state {
    display: grid;
    place-items: center;
    gap: 12px;
    min-height: 170px;
    text-align: center;
}

.student-empty-state strong,
.student-empty-inline strong {
    color: var(--student-ink);
    font-size: 18px;
    font-weight: 900;
}

.student-empty-state p,
.student-empty-inline p,
.student-area .card p,
.resource-empty p {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.empty-visual {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    font-size: 36px;
    background: #F3EEFF;
    color: var(--student-purple);
}

.empty-folder {
    background: var(--student-amber-soft);
}

.student-area .lesson-surface,
.student-area .progress-tile,
.student-area .quick-grid a {
    background: rgba(246, 243, 255, 0.76);
    border-radius: 16px;
}

.student-area .lesson-surface {
    padding: 18px;
}

.student-area .lesson-surface h3 {
    font-size: 17px;
    font-weight: 800;
}

.student-area .lesson-surface p,
.student-area .card-note {
    font-size: 14px;
}

.student-area .progress-tiles {
    gap: 18px;
}

.student-area .progress-tile {
    padding: 22px;
    background: var(--student-green-soft);
}

.student-area .progress-tile strong {
    font-size: 34px;
    font-weight: 900;
}

.student-area .progress-track {
    height: 8px;
    background: rgba(58, 54, 91, 0.08);
}

.student-area .progress-fill {
    background: var(--student-green);
}

.student-sidebar {
    display: grid;
    align-content: start;
    gap: 20px;
}

.student-sidebar .card {
    padding: 24px;
}

.student-area .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.student-area .quick-grid a {
    min-height: 104px;
    justify-content: center;
    font-size: 15px;
}

.student-area .quick-icon {
    color: var(--student-purple);
    font-size: 32px;
}

.student-empty-inline {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px 18px;
    align-items: center;
    min-height: 118px;
}

.student-empty-inline > span {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--student-purple-soft);
    color: var(--student-purple);
    font-size: 30px;
}

.help-card {
    display: grid;
    gap: 12px;
    background: linear-gradient(135deg, rgba(237, 248, 231, 0.95), rgba(255, 255, 255, 0.95));
}

.help-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--student-green-soft);
    color: var(--student-green);
    font-weight: 900;
}

.how-card {
    padding: 28px;
}

.how-card .section-title {
    margin-bottom: 18px;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.how-grid article {
    min-height: 120px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(49, 43, 91, 0.08);
}

.how-grid h3 {
    margin: 12px 0 8px;
    color: var(--student-ink);
    font-size: 17px;
    font-weight: 900;
}

.how-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 23px;
}

.how-icon.purple {
    background: var(--student-purple-soft);
    color: var(--student-purple);
}

.how-icon.amber {
    background: var(--student-amber-soft);
    color: var(--student-amber);
}

.how-icon.green {
    background: var(--student-green-soft);
    color: var(--student-green);
}

.resource-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 300px;
    align-items: center;
    min-height: 210px;
    margin-bottom: 24px;
    padding: 42px 48px;
    border-top: 6px solid var(--student-purple);
}

.resource-hero-amber {
    border-top-color: var(--student-amber);
}

.resource-hero h1 {
    color: var(--student-ink);
    font-size: 42px;
    font-weight: 900;
    margin: 14px 0 12px;
}

.resource-admin-action {
    position: relative;
    z-index: 2;
    justify-self: end;
}

.resource-illustration {
    position: relative;
    width: 260px;
    height: 160px;
    justify-self: end;
}

.folder-illustration .folder-back {
    position: absolute;
    right: 10px;
    bottom: 16px;
    width: 138px;
    height: 106px;
    border-radius: 18px;
    background: linear-gradient(135deg, #FFD761, #FFB52F);
    transform: rotate(9deg);
}

.folder-illustration .folder-front {
    position: absolute;
    right: 46px;
    bottom: 0;
    width: 150px;
    height: 104px;
    border-radius: 18px 18px 22px 22px;
    background: linear-gradient(135deg, #A58BFF, #6B45EE);
    box-shadow: 0 16px 28px rgba(107, 69, 238, 0.2);
}

.folder-illustration .paper {
    position: absolute;
    right: 72px;
    top: 8px;
    width: 88px;
    height: 104px;
    border-radius: 12px;
    background: #F6F2FF;
    box-shadow: 0 10px 24px rgba(107, 69, 238, 0.1);
}

.folder-illustration .paper::before,
.folder-illustration .paper::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    height: 7px;
    border-radius: 999px;
    background: #B8A6FF;
}

.folder-illustration .paper::before {
    top: 28px;
}

.folder-illustration .paper::after {
    top: 50px;
}

.folder-illustration .paper-two {
    right: 110px;
    top: 26px;
    transform: rotate(-6deg);
    opacity: 0.8;
}

.folder-illustration .download-bubble {
    position: absolute;
    right: 4px;
    bottom: 4px;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #B9A4FF, #7251EA);
    color: #fff;
    font-size: 42px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(107, 69, 238, 0.24);
}

.homework-illustration .homework-blob {
    position: absolute;
    inset: 24px 20px 10px 26px;
    border-radius: 45% 55% 42% 58%;
    background: rgba(107, 69, 238, 0.1);
}

.homework-illustration .tablet {
    position: absolute;
    right: 72px;
    top: 20px;
    width: 92px;
    height: 118px;
    border-radius: 18px;
    background: #F6F2FF;
    border: 9px solid #9E86FF;
    box-shadow: 0 16px 28px rgba(107, 69, 238, 0.18);
}

.homework-illustration .tablet::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: -19px;
    height: 18px;
    border-radius: 10px 10px 2px 2px;
    background: #FFB21F;
}

.homework-illustration .tablet::after {
    content: "✓\A✓\A✓";
    white-space: pre;
    position: absolute;
    left: 18px;
    top: 20px;
    color: #FFB21F;
    font-weight: 900;
    line-height: 24px;
}

.homework-illustration .pencil {
    position: absolute;
    right: 36px;
    bottom: 28px;
    width: 24px;
    height: 98px;
    border-radius: 12px;
    background: linear-gradient(#7E5CF0 0 58%, #FFB21F 58% 84%, #FFE7AE 84%);
    transform: rotate(32deg);
    box-shadow: 0 12px 22px rgba(107, 69, 238, 0.18);
}

.resource-panel {
    overflow: hidden;
    padding: 0;
}

.resource-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 34px 0;
}

.resource-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    height: 50px;
    padding: 0 18px;
    border: 1px solid rgba(49, 43, 91, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--student-muted);
}

.resource-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--student-ink);
    font-size: 15px;
}

.filter-tabs {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 34px;
    border-bottom: 1px solid rgba(49, 43, 91, 0.08);
    overflow-x: auto;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    border: 1px solid rgba(49, 43, 91, 0.14);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--student-ink);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.filter-tab.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #7D59F5, #5C39DE);
    color: #fff;
    box-shadow: 0 12px 24px rgba(107, 69, 238, 0.24);
}

.resource-empty {
    position: relative;
    display: grid;
    place-items: center;
    gap: 18px;
    min-height: 420px;
    margin: 24px 34px 34px;
    padding: 48px 24px;
    border: 2px dashed rgba(107, 69, 238, 0.24);
    border-radius: 22px;
    text-align: center;
}

.resource-empty h3 {
    color: var(--student-ink);
    font-size: 26px;
    font-weight: 900;
}

.resource-empty p {
    max-width: 560px;
}

.empty-blob-icon {
    display: grid;
    place-items: center;
    width: 122px;
    height: 122px;
    border-radius: 50%;
    background: var(--student-purple-soft);
    color: var(--student-purple);
    font-size: 54px;
    box-shadow: 0 15px 34px rgba(107, 69, 238, 0.12);
}

.resource-hint,
.new-homework-note {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    max-width: 700px;
    padding: 14px 24px;
    border-radius: 15px;
    background: rgba(241, 237, 255, 0.82);
    color: #5B5772;
    font-size: 15px;
    font-weight: 700;
}

.resource-list {
    padding: 24px 34px 34px;
}

.student-area .material-card,
.student-area .homework-card {
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
    border-color: rgba(49, 43, 91, 0.09);
    box-shadow: 0 12px 24px rgba(42, 38, 74, 0.06);
}

.student-area .material-type-icon,
.student-area .homework-type-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 24px;
}

.student-area .mat-name,
.student-area .hw-name {
    color: var(--student-ink);
    font-size: 17px;
    font-weight: 900;
}

.student-area .mat-sub,
.student-area .hw-meta,
.student-area .a-time {
    color: var(--student-muted);
    font-size: 14px;
}

.homework-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.homework-list-panel {
    min-height: 550px;
}

.sort-select {
    min-height: 46px;
    padding: 8px 40px 8px 16px;
    border: 1px solid rgba(49, 43, 91, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--student-ink);
    font-size: 15px;
    font-weight: 700;
}

.homework-empty {
    min-height: 392px;
    border: 0;
}

.new-homework-note {
    background: linear-gradient(135deg, #7D59F5, #5C39DE);
    color: #fff;
    box-shadow: 0 12px 24px rgba(107, 69, 238, 0.24);
}

.homework-sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
}

.side-card {
    padding: 26px;
}

.how-work-card {
    background: linear-gradient(135deg, rgba(245, 241, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.how-work-card ol {
    display: grid;
    gap: 20px;
    margin-top: 22px;
    list-style: none;
    counter-reset: homework-step;
}

.how-work-card li {
    position: relative;
    padding-left: 44px;
    counter-increment: homework-step;
}

.how-work-card li::before {
    content: counter(homework-step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--student-purple);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.how-work-card strong {
    display: block;
    color: var(--student-ink);
    font-size: 15px;
    font-weight: 900;
}

.how-work-card span {
    display: block;
    margin-top: 4px;
    color: var(--student-muted);
    font-size: 14px;
    line-height: 1.45;
}

.tip-card {
    background: linear-gradient(135deg, rgba(255, 244, 222, 0.95), rgba(255, 255, 255, 0.92));
}

.contact-card {
    background: linear-gradient(135deg, rgba(237, 248, 231, 0.95), rgba(255, 255, 255, 0.92));
}

.side-card .btn-secondary {
    margin-top: 14px;
    min-height: 46px;
    border: 0;
    background: #fff;
    box-shadow: 0 10px 22px rgba(42, 38, 74, 0.06);
}

@media (max-width: 1180px) {
    .student-dashboard-grid,
    .homework-layout {
        grid-template-columns: 1fr;
    }

    .student-sidebar,
    .homework-sidebar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-top,
    .resource-hero {
        grid-template-columns: 1fr;
    }

    .resource-illustration,
    .resource-admin-action {
        justify-self: start;
    }
}

@media (max-width: 900px) {
    .student-area > nav {
        grid-template-columns: auto 1fr;
        height: auto;
        padding: 12px 18px;
        gap: 12px;
    }

    .student-area .nav-tabs {
        order: 3;
        grid-column: 1 / -1;
        justify-self: stretch;
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
    }

    .student-area .logout-form {
        justify-self: end;
        grid-column: 2;
        width: auto;
        justify-content: flex-end;
    }

    .student-area .student-content,
    .student-area .page {
        width: min(calc(100% - 28px), 1360px);
        padding-top: 22px;
    }

    .dashboard-top,
    .student-area .student-card-grid,
    .how-grid,
    .student-sidebar,
    .homework-sidebar,
    .welcome-metrics {
        grid-template-columns: 1fr;
    }

    .dashboard-next-lesson {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .calendar-illustration {
        justify-self: start;
    }

    .resource-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .resource-search {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 560px) {
    .student-area > nav .brand-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .student-area .nav-tabs a {
        font-size: 14px;
    }

    .student-area .logout-form {
        gap: 8px;
        width: auto;
        justify-content: flex-end;
        justify-self: start;
    }

    .student-area .logout-form button {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .student-area .role-badge.student {
        min-height: 30px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .student-area .logout-form button {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 13px;
    }

    .dashboard-welcome,
    .dashboard-next-lesson,
    .resource-hero,
    .resource-panel-head,
    .filter-tabs,
    .resource-list,
    .how-card,
    .side-card,
    .student-sidebar .card,
    .student-area .student-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .dashboard-welcome h1,
    .resource-hero h1 {
        font-size: 30px;
    }

    .dashboard-next-lesson,
    .dashboard-welcome {
        min-height: 0;
    }

    .metric-tile {
        grid-template-columns: 44px auto;
        padding: 14px;
    }

    .student-area .student-empty-state p,
    .student-area .student-empty-inline p {
        max-width: 260px;
    }

    .resource-hero {
        min-height: 0;
        padding-top: 30px;
        padding-bottom: 24px;
    }

    .resource-illustration {
        transform: scale(0.8);
        transform-origin: left center;
        margin-top: -16px;
        margin-bottom: -18px;
    }

    .filter-tabs {
        gap: 10px;
    }

    .filter-tab {
        min-height: 40px;
        padding: 8px 14px;
        font-size: 14px;
    }

    .resource-empty {
        min-height: 360px;
        margin: 18px;
        padding: 34px 18px;
    }

    .student-area .material-card,
    .student-area .homework-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .student-area .mat-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .decor-dot-field,
    .decor-squiggle,
    .decor-star {
        display: none;
    }
}
