/* ==========================================================================
   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, #A3D65C, #8cc04b, #5E8F1B);
    -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: 12px;
    padding: 4px;
    gap: 4px;
}

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

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

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

/* ==========================================================================
   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;
}

.catalog__select {
    height: 46px;
    box-sizing: border-box;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    outline: none;
}

.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(--panel);
    color: var(--text);
    box-shadow: 0 2px 6px rgba(38, 55, 74, 0.12);
}

.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__clubs {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 16px;
    border-top: 1px solid var(--row-border);
}

.org-card__clubs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.org-card__clubs-list .tag {
    font-size: 12.5px;
    padding: 5px 11px;
}

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

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

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

.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--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;
}

/* On the white band the card needs the tinted fill to stay readable. */
.section--panel .course-card {
    background: var(--seg-bg);
    border-color: var(--panel-border);
}

.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;
    min-height: 420px;
    z-index: 0;
    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;
}

/* Метку рисует Leaflet: свои inset/position он ставит сам, наше дело — вид. */
.map-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content !important;
    transform: translate(-50%, -100%);
}

.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;
}

/* "Управляйте детским садом" (directors) — green eyebrow and icons. */
#directors .section-heading__eyebrow,
#directors .feature-card__icon {
    color: var(--green);
}

/* Green eyebrows: platform cabinets, press, FAQ. */
#cabinets .section-heading__eyebrow,
#press .section-heading__eyebrow,
.faq__eyebrow {
    color: var(--green);
}

.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, #C7E39C 0%, #ACD777 50%, #90C64E 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: linear-gradient(135deg, #A3D65C, #8cc04b, #5E8F1B);
    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(--green);
}

.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 {
        grid-template-columns: 1fr;
    }

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

/* ==========================================================================
   Login modal
   ========================================================================== */

.login-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-modal[hidden] { display: none; }
.login-modal__overlay { position: absolute; inset: 0; background: rgba(20, 30, 40, 0.5); }
.login-modal__panel { position: relative; z-index: 1; width: 440px; max-width: 100%; max-height: calc(100vh - 48px); background: var(--panel); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(20, 30, 40, 0.55); display: flex; flex-direction: column; }

.login-modal__head { position: relative; overflow: hidden; padding: 26px 28px 22px; background: linear-gradient(135deg, #8cc04b, #5E8F1B); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.login-modal__blob { position: absolute; top: -50px; right: 20px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); pointer-events: none; }
.login-modal__head-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 5px; }
.login-modal__title { font-weight: 800; font-size: 21px; color: #fff; }
.login-modal__sub { font-size: 13.5px; color: rgba(255, 255, 255, 0.88); font-weight: 600; }
.login-modal__close { position: relative; z-index: 1; border: none; background: none; color: rgba(255, 255, 255, 0.85); cursor: pointer; padding: 0; line-height: 1; }
.login-modal__close:hover { color: #fff; }

.login-modal__body { padding: 24px 28px 26px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }

.login-tabs { display: flex; background: var(--seg-bg); border: 1px solid var(--panel-border); border-radius: 11px; padding: 4px; gap: 4px; }
.login-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; border: none; font-family: inherit; font-weight: 700; font-size: 13.5px; padding: 11px 12px; border-radius: 9px; cursor: pointer; background: transparent; color: var(--muted); }
.login-tab .msi { font-size: 18px; }
.login-tab.is-active { background: #8cc04b; color: #fff; box-shadow: 0 6px 14px -6px rgba(140, 192, 75, 0.6); }

.login-field { display: flex; flex-direction: column; gap: 7px; }
.login-field.is-hidden { display: none; }
.login-field label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.login-input { height: 48px; box-sizing: border-box; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 11px; padding: 0 14px; font-family: inherit; font-size: 14.5px; color: var(--text); outline: none; }
.login-input:focus { border-color: #2E90D9; }

.login-phone { display: flex; align-items: center; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 11px; padding: 0 6px 0 12px; height: 48px; box-sizing: border-box; }
.login-phone__code { appearance: none; background: transparent; border: none; height: 46px; font-family: inherit; font-size: 14.5px; font-weight: 700; color: var(--text); cursor: pointer; outline: none; padding-right: 4px; }
.login-phone__sep { width: 1px; height: 22px; background: var(--input-border); margin: 0 10px; }
.login-phone__num { flex: 1; border: none; outline: none; background: transparent; font-family: inherit; font-size: 14.5px; color: var(--text); }

.login-password { display: flex; align-items: center; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 11px; padding: 0 12px; height: 48px; box-sizing: border-box; }
.login-password__input { flex: 1; border: none; outline: none; background: transparent; font-family: inherit; font-size: 14.5px; color: var(--text); }
.login-password__toggle { border: none; background: none; color: var(--muted); cursor: pointer; padding: 0; display: flex; }

.login-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.login-check { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); font-weight: 600; cursor: pointer; }
.login-check input { width: 17px; height: 17px; accent-color: #8cc04b; }
.login-forgot { font-size: 13px; font-weight: 700; }

.login-submit { height: 50px; background: #8cc04b; color: #fff; border: none; border-radius: 12px; font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 12px 26px -10px rgba(140, 192, 75, 0.6); }
.login-submit:hover { background: #71A438; }

.login-divider { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); font-weight: 700; }
.login-divider span { flex: 1; height: 1px; background: var(--card-border); }

.login-demo { background: var(--seg-bg); border: 1px solid var(--panel-border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 11px; }
.login-demo__head { display: flex; align-items: center; gap: 10px; }
.login-demo__icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: var(--tag-bg); display: flex; align-items: center; justify-content: center; color: #2E90D9; }
.login-demo__note { font-size: 13.5px; color: var(--text-2); font-weight: 600; line-height: 1.4; }
.login-demo__cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; background: var(--panel); color: #2E90D9; border: 1px solid #B7D9F0; border-radius: 11px; font-weight: 700; font-size: 14px; cursor: pointer; }
.login-demo__cta:hover { background: #F4FAFE; color: #2E90D9; }

/* Country-code TomSelect: blend into the phone fields, name + code in the list */
.login-phone .ts-wrapper,
.field .ts-wrapper {
    flex: 0 0 auto;
    width: auto;
    min-height: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
}
.login-phone .ts-wrapper .ts-control,
.field .ts-wrapper .ts-control {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    min-height: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 22px 0 0 !important;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}
.login-phone .ts-wrapper .ts-control > .item,
.field .ts-wrapper .ts-control > .item { display: flex; align-items: center; }
.ts-dropdown { z-index: 300; }
.ts-phone { display: flex; align-items: center; gap: 9px; }
.ts-phone__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-phone__code { color: var(--muted); font-weight: 700; }

/* ==========================================================================
   Country offer (geo)
   ========================================================================== */

/* Токенам модалки заданы запасные значения: если её когда-нибудь покажут на
   странице без app.css, панель не должна остаться прозрачной — сквозь неё
   видно содержимое, и читать становится нечего. */
.geo-modal { position: fixed; inset: 0; z-index: 260; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(20, 30, 40, 0.5); }
.geo-modal[hidden] { display: none; }
.geo-modal__panel { position: relative; width: 520px; max-width: 100%; background: var(--panel, #ffffff); border-radius: 22px; border-top: 5px solid #8cc04b; box-shadow: 0 44px 90px -32px rgba(20, 30, 40, 0.55); padding: 30px 32px 26px; display: flex; flex-direction: column; gap: 20px; }

.geo-modal__close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border: none; border-radius: 10px; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted, #93A1B0); }
.geo-modal__close:hover { background: var(--tag-bg, #E7F5F5); }
.geo-modal__close .msi { font-size: 22px; }

.geo-modal__head { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding-right: 40px; }
.geo-modal__eyebrow { display: inline-flex; align-items: center; gap: 7px; background: rgba(140, 192, 75, 0.14); color: #6f9c2c; font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 11px; border-radius: 20px; }
.geo-modal__eyebrow .msi { font-size: 15px; }
.geo-modal__title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--text, #1F2E3D); }
.geo-modal__sub { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-2, #5A6B7B); }

.geo-modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.geo-option { display: flex; align-items: center; gap: 12px; padding: 14px 15px; border-radius: 14px; cursor: pointer; text-align: left; font-family: inherit; background: var(--panel, #ffffff); border: 1.5px solid var(--input-border, #E2E8EE); }
.geo-option.is-selected { background: rgba(140, 192, 75, 0.10); border-color: #8cc04b; }
.geo-option__flag { font-size: 22px; line-height: 1; }
.geo-option__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
.geo-option__label { font-size: 15px; font-weight: 700; color: var(--text, #1F2E3D); }
.geo-option__domain { font-size: 12px; font-weight: 600; color: var(--muted, #93A1B0); }
.geo-option__check { margin-left: auto; font-size: 20px; color: #8cc04b; display: none; }
.geo-option.is-selected .geo-option__check { display: inline-block; }

.geo-modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 6px; border-top: 1px solid var(--row-border, #F1F4F7); }
.geo-modal__stay { background: transparent; border: none; padding: 0; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--muted, #93A1B0); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.geo-modal__stay:hover { color: var(--text-2, #5A6B7B); }
.geo-modal__confirm { height: 44px; padding: 0 22px; background: #8cc04b; color: #fff; border: none; border-radius: 12px; font-family: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; box-shadow: 0 12px 26px -14px rgba(140, 192, 75, 0.9); }
.geo-modal__confirm:hover { background: #71A438; }

@media (max-width: 560px) {
    .geo-modal__panel { padding: 26px 20px 22px; }
    .geo-modal__grid { grid-template-columns: 1fr; }
}

/* demo confirmation */
.confirm-code { font-size: 20px; font-weight: 800; letter-spacing: 0.35em; height: 52px; }
.confirm-back { background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.confirm-back:hover { color: var(--text-2); }

.confirm-telegram { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 13px; background: var(--tag-bg); border: 1px solid var(--panel-border); color: var(--text); }
.confirm-telegram[hidden] { display: none; }
.confirm-telegram:hover { border-color: #2E90D9; color: var(--text); }
.confirm-telegram .msi { font-size: 22px; color: #2E90D9; }
.confirm-telegram__text { display: flex; flex-direction: column; gap: 2px; }
.confirm-telegram__label { font-size: 14px; font-weight: 800; }
.confirm-telegram__hint { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.confirm-telegram__go { margin-left: auto; }

.login-modal__panel--wide { width: 520px; }
.login-textarea { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.login-note { font-size: 12.5px; color: var(--muted); font-weight: 600; text-align: center; }

/* `.login-field` sets display:flex, which outranks the browser's [hidden] rule. */
.login-field[hidden],
.login-tabs[hidden],
.login-submit[hidden],
.login-note[hidden] { display: none; }

.login-error { color: #E8455E; font-size: 13.5px; font-weight: 600; background: rgba(232, 69, 94, 0.08); border-radius: 10px; padding: 10px 14px; }
.login-error[hidden] { display: none; }

/* Forgot-password view inside the login modal */
.login-forgot { background: none; border: none; padding: 0; cursor: pointer; color: #2E90D9; font-family: inherit; }
.login-forgot:hover { color: #1f6fab; }
.login-forgot-head { display: flex; flex-direction: column; gap: 4px; }
.login-forgot-head .login-modal__title { color: var(--text); }
.login-forgot-head .login-modal__sub { color: var(--text-2); font-size: 13.5px; }
.login-back { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: none; border: none; padding: 6px; cursor: pointer; color: var(--text-2); font-family: inherit; font-weight: 700; font-size: 13.5px; }
.login-back:hover { color: var(--text); }
.login-back .msi { font-size: 19px; }
.login-forgot-done { display: flex; align-items: center; gap: 11px; background: rgba(31, 157, 87, 0.10); color: #1F9D57; border-radius: 12px; padding: 14px 16px; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.login-forgot-done[hidden] { display: none; }
.login-forgot-done__icon { flex: 0 0 auto; display: flex; }
.login-forgot-done__icon .msi { font-size: 24px; }

/* Public password-reset page */
.auth-page { min-height: 72vh; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.auth-card { position: relative; overflow: hidden; width: 440px; max-width: 100%; background: var(--card); border: 1px solid var(--card-border); border-radius: 20px; box-shadow: 0 30px 70px -40px rgba(20, 30, 40, 0.5); padding: 34px 32px; display: flex; flex-direction: column; gap: 22px; }
.auth-card__blob { position: absolute; top: -60px; right: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(140, 192, 75, 0.20), transparent 70%); pointer-events: none; }
.auth-card__head { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.auth-card__icon { width: 60px; height: 60px; border-radius: 16px; background: rgba(140, 192, 75, 0.14); color: #71A438; display: flex; align-items: center; justify-content: center; }
.auth-card__icon .msi { font-size: 30px; }
.auth-card__title { font-weight: 800; font-size: 22px; color: var(--text); }
.auth-card__sub { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.auth-card__body { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-field label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.auth-field__error { color: #E8455E; font-size: 13px; font-weight: 600; }
.auth-input { height: 48px; box-sizing: border-box; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 11px; padding: 0 14px; font-family: inherit; font-size: 14.5px; color: var(--text); outline: none; }
.auth-input:focus { border-color: #2E90D9; }
.auth-input.is-invalid { border-color: #E8455E; }
.auth-submit { height: 50px; display: flex; align-items: center; justify-content: center; background: #8cc04b; color: #fff; border: none; border-radius: 12px; font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; box-shadow: 0 12px 26px -10px rgba(140, 192, 75, 0.6); }
.auth-submit:hover { background: #71A438; color: #fff; }

/* intl-tel-input — make the wrapped input match our other fields */
.iti { width: 100%; display: block; }
.iti-input {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 11px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--text);
    outline: none;
}
.iti-input:focus { border-color: #2E90D9; }
.iti__selected-flag { border-radius: 11px 0 0 11px; }
/* The country dropdown should sit above the modal and read in dark mode. */
.iti__country-list {
    z-index: 1200;
    background: var(--panel, #fff);
    color: var(--text);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 18px 40px -18px rgba(20, 30, 40, 0.45);
    max-height: 240px;
    overflow-y: auto;
    padding: 4px;
}
.iti__country { padding: 9px 12px; border-radius: 8px; }
.iti__country.iti__highlight,
.iti__country:hover { background: rgba(46, 144, 217, 0.12); }
.iti__country .iti__dial-code { color: var(--text-2); }
.iti__divider { border-bottom-color: var(--card-border); }

/* intl-tel-input validity feedback */
.iti-msg { font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.iti-msg--err { color: #E8455E; }
.iti-msg--ok { color: #1F9D57; }
.iti-input--invalid { border-color: #E8455E !important; }
.iti-input--valid { border-color: #1F9D57 !important; }

/* Карта реестра: тайлы OpenStreetMap внутри той же карточки. */
.map-canvas .leaflet-container { height: 100%; border-radius: 18px; font: inherit; background: var(--img-bg); }
.map-canvas .leaflet-popup-content { font-size: 13px; line-height: 1.5; }
