/* =========================================
   STANKI-M — ГЕОГРАФИЯ ДОСТАВКИ
   ========================================= */

.stm-geo-page {
    --stm-geo-blue: #001b72;
    --stm-geo-accent: #315cff;
    --stm-geo-text: #17264b;
    --stm-geo-muted: #71809e;
    --stm-geo-border: #e1e8f5;
    --stm-geo-bg: #f3f6ff;
    width: 100%;
    max-width: 100%;
    color: var(--stm-geo-text);
    box-sizing: border-box;
}

.stm-geo-page *,
.stm-geo-page *::before,
.stm-geo-page *::after {
    box-sizing: border-box;
}

.stm-geo-page [hidden] {
    display: none !important;
}

/* Вступительный блок */

.stm-geo-page__intro {
    margin: 0 0 28px;
}

.stm-geo-page__eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--stm-geo-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.stm-geo-page__title {
    margin: 0 0 12px;
    color: var(--stm-geo-blue);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.2;
}

.stm-geo-page__description {
    margin: 0;
    color: var(--stm-geo-muted);
    font-size: 16px;
    line-height: 1.65;
}

/* Поиск */

.stm-geo-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    margin: 0 0 10px;
    padding: 0 52px 0 48px;
    background: #fff;
    border: 1px solid var(--stm-geo-border);
    border-radius: 13px;
    box-shadow: 0 4px 18px rgba(0, 27, 114, .045);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.stm-geo-search:focus-within {
    border-color: var(--stm-geo-accent);
    box-shadow: 0 0 0 3px rgba(49, 92, 255, .09);
}

.stm-geo-search__icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-53%);
    color: var(--stm-geo-accent);
    font-size: 27px;
    line-height: 1;
}

.stm-geo-search__input {
    width: 100%;
    min-width: 0;
    height: 54px;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--stm-geo-text);
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    font-size: 15px;
}

.stm-geo-search__input::placeholder {
    color: #9aa6bd;
    opacity: 1;
}

.stm-geo-search__clear {
    position: absolute;
    top: 50%;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    transform: translateY(-50%);
    color: #71809e;
    background: #f0f3fa;
    border: 0;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
}

.stm-geo-search__clear.is-visible {
    opacity: 1;
    visibility: visible;
}

.stm-geo-search__clear:hover {
    color: #fff;
    background: var(--stm-geo-blue);
}

.stm-geo-search__status {
    min-height: 20px;
    margin: 0 0 22px;
    color: var(--stm-geo-muted);
    font-size: 13px;
}

/* Заголовки разделов */

.stm-geo-page__section {
    margin-top: 32px;
}

.stm-geo-page__heading {
    position: relative;
    margin: 0 0 18px;
    padding-left: 15px;
    color: var(--stm-geo-blue);
    font-size: 22px;
    font-weight: 750;
    line-height: 1.35;
}

.stm-geo-page__heading::before {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 0;
    width: 4px;
    content: "";
    background: var(--stm-geo-accent);
    border-radius: 4px;
}

/* Страны */

.stm-geo__countries {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(190px, 1fr) );
    gap: 14px;
    width: 100%;
}

.stm-geo__country {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 70px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--stm-geo-border);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 27, 114, .045);
    transition: border-color .2s ease, box-shadow .2s ease,
                transform .2s ease, background-color .2s ease;
}

.stm-geo__country:hover {
    transform: translateY(-2px);
    background: #f8faff;
    border-color: var(--stm-geo-accent);
    box-shadow: 0 7px 20px rgba(0, 27, 114, .10);
}

.stm-geo__country-code {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 36px;
    color: var(--stm-geo-blue);
    background: #f0f4ff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
}

.stm-geo__country-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.stm-geo__country-name {
    color: var(--stm-geo-text);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
}

.stm-geo__country-note {
    color: var(--stm-geo-muted);
    font-size: 12px;
    line-height: 1.3;
}

/* Федеральные округа */

.stm-geo__districts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.stm-geo__district {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--stm-geo-border);
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(0, 27, 114, .035);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.stm-geo__district[open] {
    border-color: #c5d2f5;
    box-shadow: 0 5px 18px rgba(0, 27, 114, .065);
}

.stm-geo__district-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 66px;
    padding: 13px 19px;
    color: var(--stm-geo-blue);
    cursor: pointer;
    list-style: none;
    transition: background .2s ease;
}

.stm-geo__district-summary::-webkit-details-marker {
    display: none;
}

.stm-geo__district-summary::marker {
    display: none;
    content: "";
}

.stm-geo__district-summary:hover {
    background: #f8faff;
}

.stm-geo__district-number {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #fff;
    background: linear-gradient(135deg, #001b72, #315cff);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
}

.stm-geo__district-name {
    flex: 1;
    min-width: 0;
    color: var(--stm-geo-blue);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.stm-geo__district-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 26px;
    padding: 0 8px;
    color: #52658e;
    background: #f0f4ff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.stm-geo__arrow {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #71809e;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.stm-geo__district[open] .stm-geo__arrow {
    transform: rotate(180deg);
}

/* Регионы и города */

.stm-geo__regions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
    padding: 17px 19px 20px;
    background: #f8faff;
    border-top: 1px solid #edf1fa;
}

.stm-geo__item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e9eef8;
    border-radius: 8px;
    transition: border-color .2s ease, background .2s ease;
}

.stm-geo__item:hover {
    background: #f5f8ff;
    border-color: #cbd8fa;
}

.stm-geo__item-icon {
    flex: 0 0 15px;
    color: var(--stm-geo-accent);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

.stm-geo__item-name {
    min-width: 0;
    color: #26375f;
    font-size: 14px;
    font-weight: 550;
    line-height: 1.45;
}

.stm-geo__item--city .stm-geo__item-icon {
    color: #71809e;
}

.stm-geo__item--nested {
    margin-left: 18px;
    border-style: dashed;
}

/* Адаптивность */

@media (max-width: 700px) {
    .stm-geo-page__intro {
        margin-bottom: 22px;
    }

    .stm-geo-page__section {
        margin-top: 26px;
    }

    .stm-geo__regions {
        grid-template-columns: 1fr;
    }

    .stm-geo__item--nested {
        margin-left: 12px;
    }
}

@media (max-width: 600px) {
    .stm-geo__countries {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stm-geo__country {
        min-height: 62px;
        gap: 9px;
        padding: 10px;
        border-radius: 10px;
    }

    .stm-geo__country-code {
        flex-basis: 34px;
        width: 34px;
        height: 32px;
        font-size: 10px;
    }

    .stm-geo__country-name {
        font-size: 13px;
    }

    .stm-geo__country-note {
        font-size: 11px;
    }

    .stm-geo-page__heading {
        font-size: 19px;
    }

    .stm-geo__district-summary {
        min-height: 60px;
        gap: 10px;
        padding: 11px 12px;
    }

    .stm-geo__district-name {
        font-size: 14px;
    }

    .stm-geo__district-number {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .stm-geo__regions {
        padding: 12px;
    }

    .stm-geo-search {
        min-height: 52px;
        padding-left: 42px;
    }

    .stm-geo-search__input {
        height: 50px;
        font-size: 14px;
    }

    .stm-geo-search__icon {
        left: 13px;
    }
}

@media (max-width: 360px) {
    .stm-geo__countries {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   STANKI-M GEO — ОБНОВЛЁННЫЕ РЕГИОНЫ
   ========================================= */

.stm-geo-page__section-description {
    margin: -8px 0 18px;
    color: var(--stm-geo-muted);
    font-size: 14px;
    line-height: 1.6;
}

.stm-geo-page__section--regions .stm-geo-search {
    margin-top: 20px;
    margin-bottom: 8px;
}

.stm-geo__regions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px 18px;
    background: #f8faff;
    border-top: 1px solid #edf1fa;
}

.stm-geo__region {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5ebf7;
    border-radius: 9px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.stm-geo__region[open] {
    border-color: #c5d2f5;
    box-shadow: 0 3px 12px rgba(0, 27, 114, .045);
}

.stm-geo__region-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 14px;
    cursor: pointer;
    list-style: none;
}

.stm-geo__region-summary::-webkit-details-marker {
    display: none;
}

.stm-geo__region-summary::marker {
    display: none;
    content: "";
}

.stm-geo__region-summary:hover {
    background: #f8faff;
}

.stm-geo__region-name {
    flex: 1;
    min-width: 0;
    color: #26375f;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}

.stm-geo__region-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 27px;
    height: 24px;
    padding: 0 7px;
    color: #52658e;
    background: #f0f4ff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.stm-geo__region-arrow {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
}

.stm-geo__region[open] .stm-geo__region-arrow {
    transform: rotate(180deg);
}

.stm-geo__cities {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 10px;
    padding: 10px 14px 14px;
    background: #fbfcff;
    border-top: 1px solid #edf1fa;
}

.stm-geo__cities .stm-geo__item {
    min-width: 0;
    padding: 7px 9px;
    background: #fff;
    border: 1px solid #edf1f8;
    border-radius: 7px;
}

.stm-geo__cities .stm-geo__item-name {
    font-size: 13px;
    font-weight: 500;
}

.stm-geo__cities--empty {
    display: block;
    color: var(--stm-geo-muted);
    font-size: 13px;
}

.stm-geo__item--direct {
    background: #fff;
}

@media (max-width: 900px) {
    .stm-geo__cities {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .stm-geo-page__section-description {
        font-size: 13px;
    }

    .stm-geo__regions {
        padding: 10px;
    }

    .stm-geo__region-summary {
        min-height: 46px;
        gap: 8px;
        padding: 9px 10px;
    }

    .stm-geo__region-name {
        font-size: 13px;
    }

    .stm-geo__cities {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 9px;
    }
}

