:root {
    --purple: #6f2c8f;
    --purple-dark: #26072f;
    --purple-deep: #120a22;
    --orange: #ff7a1a;
    --blue: #1fb6e9;
    --green: #20c56b;
    --yellow: #ffd43b;
    --text: #1e1c24;
    --muted: #74717d;
    --line: #e8e6ee;
    --soft: #f5f6fb;
    --white: #ffffff;
    --shadow: 0 16px 40px rgba(26, 20, 38, 0.08);
    --radius: 6px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

strong,
b {
    font-weight: 600;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: relative;
    z-index: 20;
    width: 100%;
    border-bottom: 1px solid rgba(232, 230, 238, 0.86);
}

.site-header--hero {
    position: absolute;
    top: 0;
    left: 0;
    border-bottom-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.site-header--light {
    background: var(--white);
    color: var(--text);
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
}

.brand-mark {
    position: relative;
    width: 27px;
    height: 27px;
    display: inline-block;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i,
.brand-mark b {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 3px 9px 3px 9px;
}

.brand-mark::before {
    left: 0;
    top: 1px;
    background: #ffcf39;
}

.brand-mark::after {
    right: 0;
    top: 0;
    background: #ff4f70;
}

.brand-mark i {
    left: 3px;
    bottom: 0;
    background: var(--orange);
}

.brand-mark b {
    right: 1px;
    bottom: 2px;
    background: var(--purple);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    font-size: 14px;
    font-weight: 600;
}

.nav-links a {
    position: relative;
    color: currentColor;
    white-space: nowrap;
}

.nav-links a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -26px;
    height: 3px;
    background: var(--orange);
}

.nav-links small {
    position: absolute;
    top: -17px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1px 6px;
    border-radius: 8px;
    color: var(--white);
    background: var(--orange);
    font-size: 9px;
    text-transform: uppercase;
}

.login-link {
    color: var(--blue) !important;
}

.nav-links a.btn--primary {
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 700;
    line-height: 1;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(26, 20, 38, 0.14);
}

.btn--primary {
    color: var(--white);
    background: var(--purple);
}

.btn--accent {
    color: var(--white);
    background: var(--orange);
}

.btn--ghost {
    color: var(--text);
    background: var(--white);
    border-color: var(--line);
}

.btn--outline-light {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.55);
    background: transparent;
}

.btn--small {
    min-height: 40px;
    padding-inline: 18px;
    font-size: 13px;
}

.btn--large {
    min-height: 54px;
    padding-inline: 34px;
}

.btn--block {
    width: 100%;
}

.flash-stack {
    position: fixed;
    top: 86px;
    right: 24px;
    z-index: 50;
    display: grid;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
}

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-radius: var(--radius);
    color: var(--white);
    box-shadow: var(--shadow);
}

.flash--success {
    background: #198d50;
}

.flash--error {
    background: #c43248;
}

.flash button {
    width: 24px;
    height: 24px;
    border: 0;
    color: inherit;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    padding: 132px 0 150px;
    color: var(--white);
    background:
        radial-gradient(circle at 5% 95%, rgba(255, 122, 26, 0.2), transparent 20%),
        linear-gradient(145deg, #74318f 0%, #5e277b 52%, #6f2c8f 100%);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -6% -120px -6%;
    height: 220px;
    background: var(--white);
    transform: rotate(-7deg);
    transform-origin: left center;
}

.hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 570px) minmax(360px, 1fr);
    align-items: center;
    gap: 58px;
}

.hero__grid--single {
    grid-template-columns: minmax(0, 760px);
}

.hero-kicker {
    display: block;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.hero h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.04;
    letter-spacing: 0;
}

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

.hero p {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr 210px 150px;
    gap: 0;
    max-width: 760px;
    margin-top: 30px;
    padding: 8px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 22px 48px rgba(13, 8, 27, 0.24);
}

.hero-search label {
    display: grid;
    gap: 2px;
    padding: 0 14px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.hero-search label + label {
    border-left: 1px solid var(--line);
}

.hero-search input,
.hero-search select {
    width: 100%;
    height: 36px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero__visual {
    position: relative;
    min-height: 420px;
}

.hero-person {
    position: absolute;
    right: 26%;
    top: 180px;
    width: 132px;
    height: 132px;
    border: 8px solid #23c8c4;
    border-radius: 28px;
    object-fit: cover;
    transform: rotate(-10deg);
    box-shadow: 0 18px 34px rgba(14, 8, 28, 0.25);
}

.hero-person--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(145deg, var(--purple), var(--orange));
    font-weight: 800;
}

.floating-card {
    position: absolute;
    border-radius: 8px;
    color: var(--text);
    background: var(--white);
    box-shadow: 0 20px 48px rgba(14, 8, 28, 0.24);
}

.tutor-stack {
    top: 40px;
    left: 4%;
    width: 260px;
    padding: 18px;
    transform: rotate(-7deg);
}

.tutor-stack div {
    display: grid;
    grid-template-columns: 42px 1fr 12px;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
}

.tutor-stack img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.tutor-stack span {
    font-weight: 700;
    font-size: 13px;
}

.tutor-stack b {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
}

.chart-card {
    top: 16px;
    right: 2%;
    width: 220px;
    padding: 18px;
    transform: rotate(-12deg);
}

.chart-card span {
    display: block;
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
}

.chart-card div {
    display: flex;
    align-items: end;
    gap: 12px;
    height: 76px;
    margin-top: 12px;
}

.chart-card i {
    flex: 1;
    border-radius: 8px 8px 0 0;
    background: var(--blue);
}

.chart-card i:nth-child(1) { height: 35%; }
.chart-card i:nth-child(2) { height: 58%; }
.chart-card i:nth-child(3) { height: 44%; }
.chart-card i:nth-child(4) { height: 82%; }

.mini-review {
    right: 10%;
    bottom: 32px;
    width: 240px;
    padding: 18px;
    transform: rotate(5deg);
}

.mini-review strong {
    display: block;
    color: var(--purple);
    font-size: 30px;
    line-height: 1;
}

.mini-review span {
    color: var(--muted);
    font-weight: 700;
}

.section {
    padding: 96px 0;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-heading--left {
    margin-left: 0;
    text-align: left;
}

.section-heading span {
    display: block;
    color: var(--muted);
    font-weight: 700;
}

.section-heading h2,
.stories-heading h2,
.related-section h2 {
    margin: 6px 0 12px;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.15;
    letter-spacing: 0;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.intro-section {
    padding-top: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.feature-grid article {
    min-height: 205px;
    padding: 36px 30px;
    text-align: center;
    background: var(--white);
}

.feature-icon {
    position: relative;
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #f4f1ff;
}

.feature-icon::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 5px;
}

.icon-book::before { background: var(--orange); }
.icon-ticket::before { background: var(--purple); }
.icon-calendar::before { background: var(--blue); }
.icon-badge::before { background: var(--yellow); }
.icon-chat::before { background: var(--green); }
.icon-shield::before { background: #ff4f70; }

.feature-grid h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.feature-grid p {
    margin: 0;
    color: var(--muted);
}

.center-action {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.stats-band {
    padding: 42px 0;
    background: var(--soft);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    text-align: center;
}

.stats-grid strong {
    display: block;
    color: var(--text);
    font-size: 25px;
    line-height: 1;
}

.stats-grid span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.category-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 8px 22px rgba(26, 20, 38, 0.04);
}

.category-card img {
    width: 100%;
    height: 168px;
    object-fit: cover;
}

.category-card .cover-placeholder {
    height: 168px;
    min-height: 168px;
}

.category-card span,
.category-card small {
    display: block;
    padding-inline: 16px;
}

.category-card span {
    padding-top: 14px;
    font-weight: 800;
}

.category-card small {
    padding-bottom: 16px;
    color: var(--muted);
}

.stories-section {
    background: linear-gradient(90deg, var(--white) 0 13%, var(--soft) 13% 100%);
}

.stories-grid {
    display: grid;
    grid-template-columns: 1.15fr repeat(3, 1fr);
    align-items: stretch;
    gap: 24px;
}

.stories-heading {
    display: flex;
    align-items: center;
}

.stories-grid article {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.stories-grid article img {
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.stories-grid article .avatar-placeholder {
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
}

.stories-grid h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.35;
}

.stories-grid p {
    color: var(--muted);
}

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

.teacher-grid--three {
    grid-template-columns: repeat(3, 1fr);
}

.teacher-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.teacher-card__cover {
    position: relative;
    display: block;
    height: 165px;
    background: var(--soft);
}

.teacher-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder,
.avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(145deg, var(--purple), var(--orange));
    font-weight: 800;
    text-align: center;
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    min-height: 165px;
    padding: 20px;
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    font-size: 13px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 800;
}

.badge--verified {
    position: absolute;
    top: 12px;
    left: 12px;
    color: var(--white);
    background: #ff4f70;
}

.teacher-card__body {
    padding: 18px;
}

.teacher-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.teacher-mini img {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    object-fit: cover;
}

.teacher-mini h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
}

.teacher-mini p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.verify-dot {
    display: inline-flex;
    width: 14px;
    height: 14px;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 1px var(--green);
}

.teacher-card__headline {
    min-height: 54px;
    margin: 16px 0;
    color: var(--muted);
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.price-row span,
.tutor-price span,
.profile-price span {
    color: var(--muted);
    font-size: 12px;
}

.price-row strong,
.tutor-price strong,
.profile-price strong {
    color: var(--blue);
    font-size: 18px;
}

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

.service-modes span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 8px;
    border-radius: 4px;
    color: var(--muted);
    background: #faf9fc;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.mode-icon {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--green);
}

.mode-icon.pin { background: var(--blue); }
.mode-icon.camera { background: var(--orange); }

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags span,
.teach-table span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 3px;
    color: #625e6c;
    background: #f7f6fa;
    font-size: 12px;
    font-weight: 700;
}

.teacher-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.teacher-card__footer a {
    color: var(--purple);
    font-weight: 800;
}

.stars {
    display: inline-flex;
    gap: 2px;
    color: var(--yellow);
    font-size: 13px;
    line-height: 1;
}

.stars .muted {
    color: #d8d5df;
}

.location-section {
    background: var(--soft);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 44px;
}

.location-grid h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.location-grid a {
    display: block;
    margin: 5px 0;
    color: var(--muted);
}

.location-grid a:last-child {
    color: var(--blue);
    font-weight: 700;
}

.page-shell {
    background: var(--soft);
    min-height: 640px;
    padding: 72px 0 96px;
}

.listing-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.listing-hero h1 {
    margin: 0;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.2;
}

.listing-hero p {
    margin: 8px 0 0;
    color: var(--muted);
}

.sort-form label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
}

select,
input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    background: var(--white);
    outline: none;
}

input,
select {
    height: 46px;
    padding: 0 14px;
}

textarea {
    padding: 12px 14px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(111, 44, 143, 0.55);
    box-shadow: 0 0 0 3px rgba(111, 44, 143, 0.08);
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    padding: 0;
    border: 1px solid #d8d5df;
    border-radius: 4px;
    background: var(--white);
    appearance: none;
    -webkit-appearance: none;
    vertical-align: middle;
}

input[type="checkbox"]:checked {
    border-color: var(--green);
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='10' viewBox='0 0 12 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5.1 4.2 8 11 1' fill='none' stroke='%2320c56b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 10px;
}

input[type="checkbox"]:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(32, 197, 107, 0.14);
}

.search-panel {
    margin-bottom: 28px;
}

.search-panel form {
    display: grid;
    grid-template-columns: 1fr 250px 160px;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.search-panel label {
    display: grid;
    gap: 3px;
    padding: 0 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.search-panel input,
.search-panel select {
    border: 0;
    padding-inline: 0;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.chips span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--white);
    color: #625e6c;
    font-size: 13px;
    font-weight: 700;
}

.chips button {
    border: 0;
    color: var(--muted);
    background: transparent;
}

.listing-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.filters-card,
.side-card,
.detail-tabs,
.profile-card,
.dashboard-card,
.application-form,
.auth-forms form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 10px 26px rgba(26, 20, 38, 0.04);
}

.filters-card {
    position: sticky;
    top: 20px;
    padding: 22px;
}

.filter-group {
    padding-bottom: 22px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.filter-group h3 {
    margin: 0 0 14px;
    font-size: 16px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    color: #625e6c;
    font-weight: 400;
}

.check-row span {
    font-weight: 400;
}

.check-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.range {
    padding: 0;
    accent-color: var(--green);
}

.clear-link {
    display: block;
    margin-top: 14px;
    color: var(--muted);
    text-align: center;
    font-weight: 700;
}

.tutor-results {
    display: grid;
    gap: 18px;
}

.tutor-row {
    position: relative;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.tutor-row::after {
    content: "";
    position: absolute;
    top: -1px;
    right: 18px;
    width: 12px;
    height: 24px;
    background: #ff4f70;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%);
}

.tutor-row__media img {
    width: 100%;
    height: 210px;
    border-radius: 4px;
    object-fit: cover;
}

.tutor-row__media .cover-placeholder {
    height: 210px;
    min-height: 210px;
    border-radius: 4px;
}

.tutor-row__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.tutor-price {
    display: grid;
    justify-items: end;
    min-width: 130px;
}

.rating-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
    color: var(--muted);
}

.rating-line strong {
    color: var(--text);
}

.save-link {
    border: 0;
    color: var(--muted);
    background: transparent;
    font-weight: 700;
}

.tutor-row__content > p {
    margin: 0 0 14px;
    color: var(--muted);
}

.tutor-row__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: var(--white);
    color: var(--muted);
    font-weight: 700;
}

.pagination span,
.pagination__next {
    color: var(--white) !important;
    background: var(--purple) !important;
}

.empty-state {
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    text-align: center;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 820px) 300px;
    align-items: start;
    gap: 24px;
}

.detail-main {
    display: grid;
    gap: 22px;
}

.profile-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
    padding: 22px;
}

.profile-card__avatar {
    width: 190px;
    height: 190px;
    border-radius: 4px;
    object-fit: cover;
}

.profile-card__avatar.avatar-placeholder {
    border-radius: 4px;
    font-size: 34px;
}

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

.profile-heading h1 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
}

.profile-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.profile-price {
    display: grid;
    justify-items: end;
    min-width: 140px;
}

.profile-meta,
.language-line,
.share-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    color: var(--muted);
}

.language-line span {
    color: var(--text);
    font-weight: 700;
}

.share-line {
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}

.share-line > span {
    flex: 1;
    min-width: 220px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--blue);
    background: #fbfbfd;
}

.share-line button {
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    font-weight: 700;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--line);
}

.tabs a {
    min-width: 150px;
    padding: 18px 24px;
    border-right: 1px solid var(--line);
    color: var(--muted);
    font-weight: 800;
}

.tabs a.is-active {
    color: var(--text);
    box-shadow: inset 0 -3px 0 var(--yellow);
}

.detail-content {
    padding: 28px;
}

.detail-content h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.detail-content p {
    color: #55515e;
}

.intro-split {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: center;
    margin: 22px 0 34px;
}

.intro-split img {
    width: 100%;
    height: 210px;
    border-radius: 4px;
    object-fit: cover;
}

.intro-split .cover-placeholder {
    height: 210px;
    min-height: 210px;
    border-radius: 4px;
}

.intro-split ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.intro-split li {
    position: relative;
    padding-left: 28px;
    color: #55515e;
}

.intro-split li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green);
}

.timeline {
    display: grid;
    gap: 14px;
    margin-bottom: 34px;
}

.timeline div {
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--line);
}

.timeline h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.timeline p {
    margin: 0;
}

.teach-table {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px 18px;
    margin-bottom: 34px;
}

.teach-table > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr repeat(3, 110px);
    gap: 10px;
}

.gallery img {
    width: 100%;
    height: 110px;
    border-radius: 4px;
    object-fit: cover;
}

.gallery .cover-placeholder {
    height: 110px;
    min-height: 110px;
    border-radius: 4px;
}

.gallery img:first-child {
    grid-row: span 2;
    height: 230px;
}

.gallery .cover-placeholder:first-child {
    grid-row: span 2;
    height: 230px;
}

.review-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.review-item img {
    width: 58px;
    height: 58px;
    border-radius: 4px;
    object-fit: cover;
}

.review-item .avatar-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 4px;
}

.review-item h3 {
    margin: 0;
    font-size: 17px;
}

.review-item h3 span {
    margin-left: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.load-more {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 4px;
    color: var(--muted);
    background: var(--soft);
    font-weight: 800;
}

.detail-sidebar {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 16px;
}

.side-card {
    padding: 20px;
}

.side-card h3 {
    margin: 0 0 16px;
    font-size: 17px;
}

.detail-sidebar .service-modes {
    grid-template-columns: 1fr;
}

.contact-card ul {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #55515e;
    font-weight: 700;
}

.contact-dot {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: var(--purple);
}

.contact-dot.mail { background: #b84bc4; }
.contact-dot.web { background: var(--orange); }
.contact-dot.phone { background: #ff4f70; }

.booking-card {
    display: grid;
    gap: 12px;
}

.booking-card label,
.application-form label,
.auth-forms label {
    display: grid;
    gap: 7px;
    color: #55515e;
    font-weight: 650;
}

.community-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border-radius: var(--radius);
    color: var(--white);
    background: var(--blue);
}

.community-banner strong,
.community-banner span {
    display: block;
}

.community-banner strong {
    font-size: 21px;
}

.related-section {
    padding-top: 10px;
}

.site-footer {
    color: rgba(255, 255, 255, 0.74);
    background: var(--purple-dark);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    padding: 70px 0 52px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand--footer {
    color: var(--white);
}

.footer-brand p {
    max-width: 560px;
    margin: 18px 0 24px;
}

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.footer-contact h3,
.footer-links h4 {
    margin: 0 0 16px;
    color: var(--white);
}

.footer-contact ul,
.footer-links ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.48);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 52px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links a:hover {
    color: var(--white);
}

.newsletter {
    display: grid;
    grid-template-columns: 1fr 50px;
    margin-top: 18px;
}

.newsletter input {
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    background: rgba(0, 0, 0, 0.16);
}

.newsletter button {
    border: 0;
    border-radius: 0 4px 4px 0;
    color: var(--white);
    background: var(--orange);
    font-weight: 800;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.12);
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 62px;
    font-size: 13px;
}

.footer-bottom nav {
    display: flex;
    gap: 24px;
}

.form-hero {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    margin-bottom: 28px;
}

.form-hero > div,
.form-hero aside,
.auth-panel,
.dashboard-head,
.ticket-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.form-hero > div {
    padding: 44px;
}

.form-hero aside {
    padding: 28px;
}

.form-hero span,
.dashboard-head span,
.auth-panel span {
    color: var(--orange);
    font-weight: 650;
}

.form-hero h1,
.auth-panel h1,
.dashboard-head h1 {
    margin: 8px 0 12px;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 650;
    line-height: 1.12;
}

.form-hero p,
.auth-panel p,
.dashboard-head p {
    color: var(--muted);
}

.verification-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.verification-steps div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.verification-steps strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    border-radius: 50%;
    color: var(--white);
    background: var(--purple);
}

.verification-steps span {
    display: block;
    color: var(--text);
}

.application-layout {
    display: grid;
}

.application-form {
    display: grid;
    gap: 28px;
    padding: 32px;
}

.teacher-stepper {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.application-form.is-stepped .teacher-stepper {
    display: grid;
}

.teacher-step {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    background: var(--soft);
}

.teacher-step strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    background: var(--white);
    font-size: 13px;
}

.teacher-step small {
    font-size: 13px;
    font-weight: 600;
}

.teacher-step.is-active {
    border-color: rgba(111, 44, 143, 0.42);
    color: var(--text);
    background: var(--white);
}

.teacher-step.is-active strong {
    border-color: var(--purple);
    color: var(--white);
    background: var(--purple);
}

.teacher-step.is-complete strong {
    border-color: var(--green);
    color: var(--white);
    background: var(--green);
}

.application-form.is-stepped [data-step-panel] {
    display: none;
}

.application-form.is-stepped [data-step-panel].is-active {
    display: grid;
}

.form-section {
    display: grid;
    gap: 18px;
}

.form-section + .form-section {
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.form-section h2 {
    margin: 0;
}

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

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 4px;
}

.form-actions [data-step-prev] {
    margin-right: auto;
}

.mode-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.mode-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.mode-checkboxes input {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

.small-muted {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.auth-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
}

.auth-layout--single {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.75fr);
    align-items: stretch;
}

.auth-panel {
    padding: 44px;
    background: linear-gradient(145deg, rgba(111, 44, 143, 0.92), rgba(38, 7, 47, 0.94));
    color: var(--white);
}

.auth-panel p {
    color: rgba(255, 255, 255, 0.78);
}

.info-box {
    display: grid;
    gap: 7px;
    margin-top: 26px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.info-box strong,
.info-box span {
    color: var(--white);
}

.info-box strong {
    font-weight: 650;
}

.info-box a,
.auth-switch a {
    color: var(--orange);
    font-weight: 650;
}

.auth-forms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.auth-layout--single .auth-forms {
    grid-template-columns: 1fr;
}

.auth-forms form {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 28px;
}

.auth-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.auth-forms h2 {
    margin: 0 0 8px;
    font-weight: 650;
}

.auth-switch {
    margin: 0;
    color: var(--muted);
    text-align: center;
}

.dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 36px;
    margin-bottom: 26px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.dashboard-card {
    padding: 26px;
}

.dashboard-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.dashboard-card strong {
    display: block;
    font-size: 24px;
}

.dashboard-card p {
    color: var(--muted);
}

.dashboard-card a {
    color: var(--purple);
    font-weight: 800;
}

.ticket-panel {
    margin-top: 26px;
    padding: 30px;
}

.ticket-panel h2 {
    margin: 0 0 18px;
}

.ticket-list {
    display: grid;
    gap: 14px;
}

.ticket-list article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.ticket-actions {
    display: grid;
    grid-template-columns: 160px 1fr 140px;
    gap: 10px;
    margin-top: 14px;
}

.status-pill {
    display: inline-flex;
    margin-left: 10px;
    padding: 4px 9px;
    border-radius: 20px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.status-pill--pending { background: var(--orange); }
.status-pill--approved { background: var(--green); }
.status-pill--rejected { background: #c43248; }

.admin-shell {
    display: grid;
    gap: 24px;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.admin-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: var(--radius);
    color: var(--muted);
    font-weight: 800;
}

.admin-tabs a.is-active {
    color: var(--white);
    background: var(--purple);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.admin-stat-grid article,
.admin-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.admin-stat-grid article {
    padding: 22px;
}

.admin-stat-grid span {
    display: block;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
}

.admin-stat-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 30px;
    line-height: 1;
}

.admin-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.admin-panel {
    padding: 26px;
}

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

.admin-panel h2 {
    margin: 0 0 18px;
}

.admin-panel-head h2 {
    margin: 0;
}

.admin-list {
    display: grid;
    gap: 12px;
}

.admin-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

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

.admin-list small {
    color: var(--muted);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.admin-form-grid label {
    display: grid;
    gap: 6px;
    color: #55515e;
    font-weight: 600;
}

.admin-inline-form label,
.admin-row-actions label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #55515e;
    font-weight: 400;
}

.admin-form-grid .check-row {
    display: flex;
    align-items: center;
    font-weight: 400;
}

.admin-form-grid .admin-wide {
    grid-column: span 4;
}

.admin-table-wrap {
    overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-table strong,
.admin-table small {
    display: block;
}

.admin-table small {
    margin-top: 4px;
    color: var(--muted);
}

.admin-inline-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 10px;
    min-width: 520px;
}

.admin-inline-form textarea {
    grid-column: span 2;
}

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

.admin-danger {
    margin-top: 10px;
    padding: 0;
    border: 0;
    color: #c43248;
    background: transparent;
    font-weight: 600;
}

.admin-page .btn {
    font-weight: 650;
}

.admin-filter select {
    min-width: 180px;
}

.admin-main {
    min-height: 100vh;
    padding: 0;
    background: var(--soft);
}

.admin-page .container.admin-layout {
    width: 100%;
    max-width: none;
    margin: 0;
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    display: grid;
    gap: 16px;
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    padding: 16px;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: var(--white);
}

.admin-sidebar__brand {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: var(--radius);
    color: var(--text);
    background: var(--soft);
}

.admin-sidebar__brand strong,
.admin-sidebar__brand span {
    display: block;
}

.admin-sidebar nav {
    display: grid;
    gap: 16px;
}

.admin-nav-group {
    display: grid;
    gap: 4px;
}

.admin-nav-group small {
    display: block;
    padding: 0 10px 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-sidebar nav a,
.admin-sidebar__footer a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: var(--radius);
    color: var(--muted);
    font-weight: 600;
}

.admin-sidebar nav a.is-active {
    color: var(--white);
    background: var(--purple);
}

.admin-sidebar__footer {
    display: grid;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.admin-content {
    display: grid;
    gap: 22px;
    align-self: start;
    min-width: 0;
    padding: 24px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.admin-topbar span {
    color: var(--orange);
    font-weight: 650;
}

.admin-topbar h1 {
    margin: 6px 0 0;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 650;
    line-height: 1.12;
}

.admin-topbar__meta {
    min-width: 170px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--soft);
    text-align: right;
}

.admin-topbar__meta strong,
.admin-topbar__meta small {
    display: block;
}

.admin-topbar__meta strong {
    font-size: 26px;
    font-weight: 650;
    line-height: 1;
}

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

.admin-kpi-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-kpi-grid article,
.admin-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.admin-kpi-grid article {
    padding: 20px;
}

.admin-kpi-grid span,
.admin-kpi-grid small {
    display: block;
    color: var(--muted);
    font-weight: 500;
}

.admin-kpi-grid strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 30px;
    font-weight: 650;
    line-height: 1;
}

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

.admin-card {
    padding: 26px;
}

.admin-card h2 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 650;
}

.admin-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-card__head h2 {
    margin: 0;
}

.admin-metric-list,
.admin-message-list {
    display: grid;
    gap: 12px;
}

.admin-metric-list div,
.admin-message-list article {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.admin-metric-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-metric-list strong,
.admin-message-list strong,
.admin-table strong {
    font-weight: 650;
}

.admin-metric-list span,
.admin-message-list span {
    color: var(--muted);
}

.admin-message-list strong,
.admin-message-list span,
.admin-message-list p {
    display: block;
}

.admin-message-list p {
    margin: 8px 0 12px;
}

@media (max-width: 1100px) {
    .hero__grid,
    .detail-layout,
    .form-hero,
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        min-height: 360px;
    }

    .teacher-grid,
    .footer-links,
    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .listing-layout {
        grid-template-columns: 1fr;
    }

    .filters-card,
    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 820px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        left: 14px;
        right: 14px;
        display: none;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        color: var(--text);
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: grid;
        gap: 16px;
    }

    .nav-links a.is-active::after,
    .nav-links small {
        display: none;
    }

    .hero {
        min-height: 0;
        padding: 112px 0 110px;
        clip-path: none;
    }

    .hero::after {
        display: none;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-search,
    .search-panel form,
    .stats-grid,
    .feature-grid,
    .footer-top,
    .dashboard-grid,
    .admin-stat-grid,
    .admin-two-col,
    .admin-form-grid,
    .auth-forms,
    .ticket-actions,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-grid .admin-wide,
    .admin-inline-form textarea {
        grid-column: auto;
    }

    .admin-layout,
    .admin-grid-2,
    .admin-kpi-grid,
    .admin-kpi-grid--compact {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        min-height: auto;
        max-height: none;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-content {
        padding: 18px;
    }

    .hero-search label + label {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 8px;
    }

    .feature-grid {
        gap: 0;
    }

    .category-grid,
    .stories-grid,
    .teacher-grid,
    .teacher-grid--three,
    .location-grid,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .listing-hero,
    .dashboard-head,
    .admin-topbar,
    .admin-panel-head,
    .admin-card__head,
    .community-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .tutor-row,
    .profile-card,
    .intro-split,
    .gallery {
        grid-template-columns: 1fr;
    }

    .tutor-row__media img {
        height: 240px;
    }

    .profile-card__avatar {
        width: 100%;
        height: 280px;
    }

    .profile-heading,
    .tutor-row__top,
    .footer-bottom .container {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-price,
    .tutor-price {
        justify-items: start;
    }

    .teach-table {
        grid-template-columns: 1fr;
    }

    .gallery img:first-child {
        grid-row: auto;
        height: 220px;
    }

    .gallery .cover-placeholder:first-child {
        grid-row: auto;
        height: 220px;
    }

    .footer-bottom nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .brand {
        font-size: 22px;
    }

    .section {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero__visual {
        display: none;
    }

    .service-modes {
        grid-template-columns: 1fr;
    }

    .tutor-row__actions {
        flex-direction: column;
    }

    .tabs a {
        min-width: 0;
        flex: 1;
        text-align: center;
    }

    .form-hero > div,
    .auth-panel,
    .dashboard-head,
    .admin-panel,
    .admin-card,
    .admin-topbar,
    .application-form {
        padding: 24px;
    }

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

    .application-form.is-stepped .teacher-stepper {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-actions [data-step-prev] {
        margin-right: 0;
    }
}
