/* ==========================================================================
   Homepage sections
   ========================================================================== */

@keyframes ordo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ordo-pulse { 0% { transform: scale(0.55); opacity: 0.65; } 100% { transform: scale(2); opacity: 0; } }
@keyframes ordo-spin { to { transform: rotate(360deg); } }
@keyframes ordo-grow { 0%, 100% { width: var(--w0); } 50% { width: var(--w1); } }
@keyframes ordo-blink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
@keyframes ordo-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes ordo-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.section {
    padding-top: 44px;
    padding-bottom: 56px;
    scroll-margin-top: 88px;
}

.section--panel {
    background: var(--panel);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.section-heading__eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
}

.section-heading__eyebrow--violet {
    color: var(--purple);
}

.section-heading__title {
    font-size: 30px;
    font-weight: 800;
    color: var(--text);
}

.section-heading__title--lg {
    font-size: 38px;
    line-height: 1.1;
    text-wrap: balance;
}

.section-heading__sub {
    font-size: 15px;
    color: var(--text-2);
    font-weight: 500;
    max-width: 640px;
}

.section-heading--flush {
    margin-bottom: 0;
}

.section-heading--center {
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 28px;
}

.section-heading--center .section-heading__sub {
    max-width: 520px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
}

.hero__blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero__blobs span {
    position: absolute;
    border-radius: 50%;
}

.hero__blobs span:nth-child(1) {
    top: -60px;
    left: -40px;
    width: 220px;
    height: 220px;
    background: rgba(46, 144, 217, 0.06);
}

.hero__blobs span:nth-child(2) {
    top: 60px;
    right: -90px;
    width: 240px;
    height: 240px;
    background: rgba(124, 58, 237, 0.05);
}

.hero__inner {
    position: relative;
    z-index: 1;
    padding: 44px var(--gutter) 40px;
    max-width: var(--container);
    margin: 0 auto;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hero__badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tag-bg);
    color: var(--blue);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 15px;
    border-radius: 30px;
}

.hero__badge .msi {
    font-size: 19px;
}

.hero__title {
    font-size: 52px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.06;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.hero__accent {
    background: linear-gradient(90deg, #2E90D9, #7C3AED, #0E9C9C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__text {
    font-size: 17px;
    color: var(--text-2);
    font-weight: 500;
    line-height: 1.55;
    max-width: 540px;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 2px;
    margin-bottom: 20px;
}

/* animated illustration */
.hero__art {
    position: relative;
    height: 440px;
}

.hero__art-blob {
    position: absolute;
    border-radius: 50%;
}

.hero__art-blob--tr {
    top: -70px;
    right: -50px;
    width: 220px;
    height: 220px;
    background: rgba(46, 144, 217, 0.08);
}

.hero__art-blob--bl {
    bottom: -60px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: rgba(124, 58, 237, 0.08);
}

.hero__avatar-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar {
    position: relative;
    width: 130px;
    height: 130px;
}

.avatar__ping {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(46, 144, 217, 0.35);
    animation: ordo-pulse 2.8s ease-out infinite;
}

.avatar__ping--delayed {
    animation-delay: 1.4s;
}

.avatar__face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(160deg, #BFE1F7, #8FC3E9);
    box-shadow: 0 20px 40px -14px rgba(46, 144, 217, 0.6);
}

.avatar__face svg {
    display: block;
    width: 100%;
    height: 100%;
}

.avatar__orbit {
    position: absolute;
    inset: -26px;
    border: 2px dashed var(--card-border);
    border-radius: 50%;
    animation: ordo-spin 26s linear infinite;
}

.avatar__orbit span {
    position: absolute;
    left: 50%;
    margin-left: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.avatar__orbit span:nth-child(1) {
    top: -9px;
    background: var(--blue);
}

.avatar__orbit span:nth-child(2) {
    bottom: -9px;
    background: var(--purple);
}

.hero-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--panel);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 11px 14px;
    box-shadow: 0 16px 34px -20px rgba(38, 55, 74, 0.5);
    animation: ordo-float 4s ease-in-out infinite;
}

.hero-chip__body {
    display: flex;
    flex-direction: column;
}

.hero-chip__label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

.hero-chip__value {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
}

.hero-chip .icon-tile {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.hero-chip .msi {
    font-size: 19px;
}

.hero-chip--attendance { top: 34px; left: 28px; }
.hero-chip--clubs { top: 96px; right: 26px; animation-duration: 4.6s; animation-delay: 0.6s; }
.hero-chip--lessons { top: 196px; right: 22px; animation-duration: 4.8s; animation-delay: 0.3s; }
.hero-chip--meals { bottom: 170px; left: 22px; animation-duration: 5s; animation-delay: 1s; }
.hero-chip--chat { bottom: 34px; right: 30px; animation-duration: 4.3s; animation-delay: 1.6s; }

.hero-progress {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 0;
    transform: translateY(-14px);
    background: var(--panel);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 13px 15px;
    box-shadow: 0 16px 34px -20px rgba(38, 55, 74, 0.5);
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.hero-progress__title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--muted);
    text-transform: uppercase;
}

.hero-progress__row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hero-progress__head {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-2);
}

.hero-progress__track {
    height: 7px;
    border-radius: 5px;
    background: var(--row-border);
    overflow: hidden;
}

.hero-progress__fill {
    height: 100%;
    border-radius: 5px;
    animation: ordo-grow 5s ease-in-out infinite;
}

.hero-progress__fill--blue {
    background: var(--blue);
}

.hero-progress__fill--purple {
    background: var(--purple);
    animation-duration: 6s;
    animation-delay: 0.5s;
}

.hero-progress__value--blue {
    color: var(--blue);
}

.hero-progress__value--purple {
    color: var(--purple);
}

/* ==========================================================================
   Audience switch
   ========================================================================== */

.audience-bar {
    background: var(--panel);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    margin-top: 18px;
}

.audience-bar__inner {
    display: flex;
    justify-content: center;
    padding-top: 22px;
    padding-bottom: 22px;
}

.segmented {
    display: inline-flex;
    background: var(--seg-bg);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    padding: 5px;
    gap: 5px;
}

.segmented__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
}

.segmented__btn .msi {
    font-size: 19px;
}

.segmented__btn.is-active {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.6);
}

/* ==========================================================================
   Child development
   ========================================================================== */

.dev-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: stretch;
}

.dev-child {
    background: var(--seg-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dev-child__portrait {
    position: relative;
    height: 230px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(160deg, #EAF3FB, #DCE9F7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dev-child__portrait .avatar {
    width: 150px;
    height: 150px;
}

.dev-child__portrait .avatar__ping {
    width: 150px;
    height: 150px;
    inset: auto;
    position: absolute;
}

.dev-child__summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--row-border);
}

.dev-child__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-transform: uppercase;
}

.dev-child__score {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.dev-child__value {
    font-size: 40px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.dev-child__delta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 700;
    color: var(--success);
}

.dev-child__delta .msi {
    font-size: 17px;
}

.dev-child__note {
    font-size: 13px;
    color: var(--text-2);
    font-weight: 500;
    line-height: 1.5;
    margin-top: 4px;
}

.skill-list {
    background: var(--panel);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.skill {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.skill__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--tag-bg);
    color: var(--accent-fg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill__icon .msi {
    font-size: 22px;
}

.skill__name {
    flex: 1;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}

.skill__value {
    font-weight: 800;
    font-size: 16px;
    color: var(--accent-fg);
}

.skill__track {
    height: 10px;
    border-radius: 6px;
    background: var(--row-border);
    overflow: hidden;
}

.skill__fill {
    height: 100%;
    border-radius: 6px;
    background: var(--accent-fg);
}

/* ==========================================================================
   Catalogue (organizations / clubs / courses)
   ========================================================================== */

.catalog__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.catalog__head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.catalog__toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.view-toggle {
    display: flex;
    align-items: center;
    height: 46px;
    background: var(--seg-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 4px;
}

.view-toggle__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    border: none;
    border-radius: 9px;
    padding: 0 16px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    background: transparent;
    color: var(--text-2);
}

.view-toggle__btn .msi {
    font-size: 19px;
}

.view-toggle__btn.is-active {
    background: var(--blue);
    color: #fff;
}

.chips {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.chips--inline {
    flex: 1;
    min-width: 240px;
    margin-bottom: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 14px;
    border-radius: 11px;
    cursor: pointer;
    border: 1px solid var(--card-border);
    background: var(--panel);
    color: var(--text-2);
}

.chip .msi {
    font-size: 18px;
}

.chip__count {
    opacity: 0.6;
    font-weight: 700;
}

.chip.is-active {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

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

.card-grid--tight {
    gap: 18px;
}

.empty-state {
    padding: 40px 0;
    text-align: center;
    color: var(--muted);
    font-weight: 600;
    font-size: 15px;
}

/* organization card */
.org-card {
    background: var(--panel);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 24px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.org-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
}

.org-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.org-card__title {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.org-card__name {
    font-weight: 800;
    font-size: 19px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.org-card__address {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    color: var(--muted);
    font-weight: 600;
}

.org-card__address .msi {
    font-size: 17px;
    color: var(--blue);
}

.org-card__desc {
    font-size: 13.5px;
    color: var(--text-2);
    font-weight: 500;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.org-card__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--row-border);
}

.org-card__meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.org-card__meta-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--muted);
    text-transform: uppercase;
}

.org-card__meta-value {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.org-card__meta-value .msi {
    font-size: 17px;
    color: var(--muted);
}

.org-card__actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--row-border);
}

/* club & course cards */
.club-card {
    background: var(--seg-bg);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.club-card:hover,
.course-card:hover,
.press-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: var(--card-hover-shadow);
}

.club-card__body {
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
}

.club-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.club-card__title {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.club-card__name {
    font-weight: 800;
    font-size: 16px;
    color: var(--text);
}

.club-card__address {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
}

.club-card__address .msi {
    font-size: 16px;
}

.club-card__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.club-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 11px;
    border-top: 1px solid var(--row-border);
}

.price {
    display: flex;
    flex-direction: column;
}

.price__label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.price__value {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}

.rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.rail::-webkit-scrollbar {
    display: none;
}

.rail .club-card {
    flex: 0 0 300px;
}

.rail--courses {
    gap: 22px;
}

.rail--courses .course-card {
    flex: 0 0 340px;
}

.course-card {
    background: var(--panel);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.course-card__cover {
    position: relative;
    height: 170px;
    background: var(--img-bg);
}

.course-card__cover .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    pointer-events: none;
}

.course-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.course-card__name {
    font-weight: 800;
    font-size: 17px;
    color: var(--text);
    line-height: 1.25;
}

.course-card__desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-2);
    font-weight: 500;
    flex: 1;
}

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

/* map view */
.map-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 18px;
    height: 560px;
}

.map-list {
    background: var(--panel);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-row {
    display: flex;
    gap: 13px;
    padding: 12px;
    border-radius: 13px;
    cursor: pointer;
    border: 1px solid transparent;
}

.map-row:hover {
    background: var(--hover-row);
}

.map-row__pin {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--type-bg);
    color: var(--type-fg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
}

.map-row__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.map-row__name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}

.map-row__address {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-row__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
}

.map-row__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-2);
}

.map-row__rating .msi {
    font-size: 14px;
    color: #FFC53D;
}

.map-row__price {
    color: var(--text);
}

.map-canvas {
    position: relative;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    background: var(--img-bg);
}

.map-canvas__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
}

.map-canvas__placeholder .msi {
    font-size: 20px;
}

.map-canvas__pins {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.map-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-pin__badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--panel);
    border: 1px solid var(--card-border);
    box-shadow: 0 6px 16px -6px rgba(20, 30, 40, 0.4);
    border-radius: 20px;
    padding: 5px 10px 5px 6px;
}

.map-pin__label {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--type-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
}

.map-pin__price {
    font-weight: 700;
    font-size: 12px;
    color: var(--text);
}

.map-pin__stem {
    width: 2px;
    height: 12px;
    background: var(--type-color);
}

/* ==========================================================================
   Director features
   ========================================================================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.feature-card {
    background: var(--panel);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--tag-bg);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card__icon .msi {
    font-size: 24px;
}

.feature-card__title {
    font-weight: 800;
    font-size: 16px;
    color: var(--text);
}

.feature-card__text {
    font-size: 14px;
    color: var(--text-2);
    font-weight: 500;
    line-height: 1.5;
}

/* ==========================================================================
   Cabinets
   ========================================================================== */

.cabinets {
    background: var(--page-bg);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.cabinet-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: start;
}

.cabinet-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cabinet-btn {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    border: 1px solid var(--card-border);
    background: var(--panel);
    border-radius: 14px;
    padding: 11px 14px;
    cursor: pointer;
    font-family: inherit;
}

.cabinet-btn__name {
    flex: 1;
    text-align: left;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}

.cabinet-btn__chevron {
    font-size: 22px;
    color: var(--muted);
}

.cabinet-btn.is-active {
    border-color: var(--blue);
    background: #F5F8FF;
}

[data-theme='dark'] .cabinet-btn.is-active {
    background: #182642;
}

.cabinet-btn.is-active .cabinet-btn__name,
.cabinet-btn.is-active .cabinet-btn__chevron {
    color: var(--blue);
}

.cabinet-panel {
    background: var(--panel);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
}

.cabinet-video {
    position: relative;
    height: 340px;
    background: var(--img-bg);
}

.cabinet-video__placeholder {
    position: absolute;
    inset: auto 0 22px;
    display: flex;
    justify-content: center;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
}

.cabinet-video__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.cabinet-video__play span {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(46, 144, 217, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px -10px rgba(46, 144, 217, 0.6);
}

.cabinet-video__play .msi {
    font-size: 38px;
    color: #fff;
    margin-left: 4px;
}

.cabinet-video__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 25, 34, 0.7);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
}

.cabinet-video__badge .msi {
    font-size: 15px;
}

.cabinet-panel__body {
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cabinet-panel__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.cabinet-panel__desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-2);
    font-weight: 500;
}

.cabinet-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.cabinet-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--text-2);
    font-weight: 500;
}

.cabinet-features .msi {
    flex: 0 0 auto;
    font-size: 20px;
    color: var(--success);
    margin-top: 1px;
}

.cabinet-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Demo request
   ========================================================================== */

.demo-card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--card-border);
    border-radius: 26px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    box-shadow: 0 34px 70px -40px rgba(38, 55, 74, 0.4);
}

.demo-card__blob {
    position: absolute;
    border-radius: 50%;
}

.demo-card__blob--1 {
    top: -80px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: rgba(46, 144, 217, 0.08);
}

.demo-card__blob--2 {
    bottom: -90px;
    left: 220px;
    width: 220px;
    height: 220px;
    background: rgba(14, 156, 156, 0.08);
}

.demo-card__info {
    position: relative;
    z-index: 2;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    justify-content: center;
}

.demo-card__badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tag-bg);
    color: var(--blue);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 15px;
    border-radius: 30px;
}

.demo-card__badge .msi {
    font-size: 19px;
}

.demo-card__title {
    font-size: 34px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    text-wrap: balance;
}

.demo-card__text {
    font-size: 16px;
    color: var(--text-2);
    font-weight: 500;
    line-height: 1.55;
    max-width: 440px;
}

.demo-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

.perk {
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--seg-bg);
    border: 1px solid var(--panel-border);
    border-radius: 13px;
    padding: 13px 15px;
}

.perk__text {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.demo-card__call {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
}

.demo-card__call .msi {
    font-size: 20px;
    color: var(--teal);
}

.demo-card__call a {
    color: var(--text);
    font-weight: 800;
}

.demo-form {
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: linear-gradient(160deg, #BFDFF7 0%, #9FD0F2 50%, #7FBFEC 100%);
    border-left: 1px solid var(--card-border);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;

    /* The gradient stays light in both themes, so the panel pins its text and
       field colours to the light palette instead of following the theme. */
    --text: #1F2E3D;
    --text-2: #5A6B7B;
    --muted: #93A1B0;
    --input-bg: #ffffff;
    --input-border: #E2E8EE;
    --tag-bg: #E7F5F5;
}

.demo-form__blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.demo-form__blob--1 {
    top: -70px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.35);
}

.demo-form__blob--2 {
    bottom: -60px;
    left: -40px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.22);
}

.demo-form__blob--3 {
    top: 120px;
    right: 40px;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.6);
}

.demo-form__body {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demo-form__title {
    font-weight: 800;
    font-size: 18px;
    color: var(--text);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-2);
}

.form-field .field {
    height: 48px;
    border-radius: 11px;
}

.form-field__error {
    font-size: 12.5px;
    font-weight: 600;
    color: #D83A54;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-top: 2px;
}

.checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox__box {
    font-size: 22px;
    color: var(--muted);
    flex: 0 0 auto;
}

.checkbox input:checked ~ .checkbox__box {
    color: var(--teal);
}

.checkbox__box::after {
    content: 'check_box_outline_blank';
}

.checkbox input:checked ~ .checkbox__box::after {
    content: 'check_box';
}

.checkbox__text {
    font-size: 12.5px;
    color: var(--text-2);
    font-weight: 500;
    line-height: 1.45;
}

.demo-form__submit {
    margin-top: 4px;
    height: 50px;
    border-radius: 12px;
    font-size: 15px;
    background: var(--blue);
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.demo-form__submit:disabled {
    background: var(--input-border);
    color: var(--muted);
    cursor: not-allowed;
}

.demo-done {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 20px;
}

.demo-done__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--tag-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-done__icon .msi {
    font-size: 36px;
    color: var(--success);
}

.demo-done__title {
    font-weight: 800;
    font-size: 20px;
    color: var(--text);
}

.demo-done__text {
    font-size: 14px;
    color: var(--text-2);
    font-weight: 500;
    line-height: 1.5;
}

/* ==========================================================================
   Press
   ========================================================================== */

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

.press-card {
    background: var(--panel);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.press-card__cover {
    height: 150px;
    background: var(--img-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
}

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

.press-card__body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.press-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.press-card__outlet {
    font-weight: 800;
    font-size: 18px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.press-card__date {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
}

.press-card__quote {
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--text-2);
    font-weight: 500;
    flex: 1;
}

.press-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--teal);
}

.press-card__more .msi {
    font-size: 18px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    border-top: 1px solid var(--card-border);
}

.faq__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.faq__decor span:nth-child(1) { position: absolute; top: 40px; left: -70px; width: 180px; height: 180px; border-radius: 24px; transform: rotate(18deg); background: rgba(46, 144, 217, 0.06); }
.faq__decor span:nth-child(2) { position: absolute; bottom: 60px; right: -60px; width: 150px; height: 150px; border-radius: 50%; background: rgba(124, 58, 237, 0.05); }
.faq__decor span:nth-child(3) { position: absolute; top: 120px; right: 80px; width: 14px; height: 14px; border-radius: 50%; background: rgba(46, 144, 217, 0.35); }
.faq__decor span:nth-child(4) { position: absolute; bottom: 120px; left: 100px; width: 10px; height: 10px; border-radius: 50%; background: rgba(124, 58, 237, 0.35); }
.faq__decor span:nth-child(5) { position: absolute; top: 200px; left: 40px; width: 22px; height: 22px; border: 2px solid rgba(46, 144, 217, 0.18); border-radius: 6px; transform: rotate(12deg); }

.faq__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 56px var(--gutter);
    scroll-margin-top: 88px;
}

.faq__eyebrow {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
}

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

.faq__tabs-inner {
    display: flex;
    background: var(--seg-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.faq__tab {
    border: none;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 9px;
    cursor: pointer;
    background: transparent;
    color: var(--muted);
}

.faq__tab.is-active {
    background: var(--panel);
    color: var(--text);
    box-shadow: 0 2px 6px rgba(38, 55, 74, 0.12);
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--seg-bg);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    overflow: hidden;
}

.faq-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
}

.faq-item__question {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
}

.faq-item__chevron {
    font-size: 24px;
    color: var(--muted);
    flex: 0 0 auto;
    transition: transform 0.2s;
}

.faq-item.is-open .faq-item__chevron {
    transform: rotate(180deg);
}

.faq-item__answer {
    display: none;
    padding: 0 22px 20px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-2);
    font-weight: 500;
}

.faq-item.is-open .faq-item__answer {
    display: block;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1199px) {
    .card-grid,
    .press-grid,
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__art {
        display: none;
    }

    .hero__title {
        font-size: 38px;
    }

    .dev-grid,
    .cabinet-layout,
    .map-layout,
    .demo-card {
        grid-template-columns: 1fr;
    }

    .map-layout {
        height: auto;
    }

    .map-list {
        max-height: 320px;
    }

    .map-canvas {
        height: 360px;
    }

    .demo-form {
        border-left: none;
        border-top: 1px solid var(--card-border);
    }

    .demo-card__info {
        padding: 32px;
    }

    .section-heading__title--lg {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .card-grid,
    .press-grid,
    .feature-grid,
    .demo-perks,
    .org-card__meta {
        grid-template-columns: 1fr;
    }

    .catalog__head {
        flex-direction: column;
        align-items: stretch;
    }
}
