* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

html {
    background: #030507;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    background:
        linear-gradient(
            180deg,
            rgba(2, 5, 8, 0.62) 0%,
            rgba(2, 5, 8, 0.72) 48%,
            rgba(1, 3, 5, 0.95) 100%
        ),
        url("../hero-bg-new.webp") center center / cover no-repeat fixed;
    background-color: #030507;
    color: #fff;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(
            ellipse at center 42%,
            rgba(255, 255, 255, 0.025) 0%,
            transparent 48%
        ),
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.16),
            transparent 30%,
            transparent 70%,
            rgba(0, 0, 0, 0.16)
        );
}

.region-page {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
}

.region-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.region-logo {
    width: 390px;
    max-width: 70vw;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto 27px;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.55));
}

.region-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(25px, 2.2vw, 30px);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.4px;
}

.region-subtitle {
    margin: 13px 0 0;
    color: #91a0b1;
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.5;
    font-weight: 400;
}

.region-cards {
    width: 100%;
    max-width: 470px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 45px;
}

.region-card {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 208px;
    padding: 27px 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    text-decoration: none;

    background:
        linear-gradient(
            145deg,
            rgba(25, 27, 30, 0.92),
            rgba(17, 19, 22, 0.92)
        );

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;

    overflow: hidden;
    isolation: isolate;
}

.region-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255, 255, 255, 0.045),
            transparent 62%
        );
}

.region-card:hover {
    transform: translateY(-4px);
    border-color: rgba(218, 168, 54, 0.5);

    background:
        linear-gradient(
            145deg,
            rgba(29, 31, 34, 0.96),
            rgba(18, 20, 23, 0.96)
        );

    box-shadow:
        0 24px 52px rgba(0, 0, 0, 0.46),
        0 0 0 1px rgba(218, 168, 54, 0.05);
}

.region-card:active {
    transform: translateY(-1px);
}

.region-card-flag {
    width: 62px;
    height: 41px;
    margin: 0 auto 16px;
    display: block;
    object-fit: cover;
    border-radius: 1px;
    flex-shrink: 0;

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.35);
}

.region-card-code {
    margin: 0 0 6px;
    color: #7f8996;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 1px;
}

.region-card-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(20px, 1.65vw, 23px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.25px;
}

.region-card-city {
    position: relative;
    margin-top: 10px;
    padding-left: 19px;

    color: #9aa4b1;
    font-size: clamp(14px, 1.15vw, 16px);
    line-height: 1.4;
    font-weight: 400;
}

.region-card-city::before {
    content: "";
    position: absolute;

    left: 1px;
    top: 50%;

    width: 10px;
    height: 10px;

    transform: translateY(-65%) rotate(-45deg);

    border: 1.6px solid #8d98a5;
    border-radius: 50% 50% 50% 0;

    background: transparent;
}

.region-card-city::after {
    content: "";
    position: absolute;

    left: 4.5px;
    top: 50%;

    width: 3px;
    height: 3px;

    transform: translateY(-85%);

    background: #8d98a5;
    border-radius: 50%;
}

.region-card-description {
    margin-top: 10px;
    color: #727d89;
    font-size: clamp(12px, 1vw, 14px);
    line-height: 1.4;
    font-weight: 400;
}

.region-card-arrow {
    position: absolute;
    right: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: #555f6b;
    font-size: 24px;
    line-height: 1;
    font-weight: 300;

    transition:
        color 0.22s ease,
        transform 0.22s ease;
}

.region-card:hover .region-card-arrow {
    color: rgba(218, 168, 54, 0.9);
    transform: translate(3px, -50%);
}

.region-footer {
    margin-top: 46px;
    color: #465260;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.region-footer p {
    margin: 0;
}

.region-page a {
    -webkit-tap-highlight-color: transparent;
}

/* 1400px и меньше */

@media (max-width: 1400px) {
    .region-logo {
        width: 370px;
    }

    .region-cards {
        max-width: 480px;
    }
}

/* Планшеты и небольшие ноутбуки */

@media (max-width: 900px) {
    .region-page {
        padding: 35px 22px;
    }

    .region-container {
        max-width: 700px;
    }

    .region-logo {
        width: 340px;
        max-width: 70vw;
        margin-bottom: 24px;
    }

    .region-cards {
        max-width: 470px;
        gap: 18px;
        margin-top: 38px;
    }

    .region-card {
        min-height: 200px;
        padding: 25px 25px;
    }

    .region-card-flag {
        width: 58px;
        height: 38px;
    }
}

/* Мобильные */

@media (max-width: 700px) {
    body {
        background:
            linear-gradient(
                180deg,
                rgba(2, 5, 8, 0.67) 0%,
                rgba(2, 5, 8, 0.77) 50%,
                rgba(1, 3, 5, 0.96) 100%
            ),
            url("../hero-bg-new.webp") center center / cover no-repeat;
    }

    .region-page {
        min-height: 100svh;
        padding: 30px 18px;
    }

    .region-container {
        max-width: 620px;
    }

    .region-logo {
        width: 320px;
        max-width: 84vw;
        margin-bottom: 23px;
    }

    .region-title {
        font-size: 27px;
    }

    .region-subtitle {
        margin-top: 11px;
        font-size: 15px;
    }

    .region-cards {
        width: 100%;
        max-width: 470px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-top: 36px;
    }

    .region-card {
        min-height: 190px;
        padding: 24px 18px;
        border-radius: 15px;
    }

    .region-card-flag {
        width: 56px;
        height: 37px;
        margin-bottom: 13px;
    }

    .region-card-code {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .region-card-title {
        font-size: 20px;
    }

    .region-card-city {
        margin-top: 8px;
        padding-left: 18px;
        font-size: 14px;
    }

    .region-card-city::before {
        width: 9px;
        height: 12px;
        border-width: 1.5px;
    }

    .region-card-city::after {
        left: 4px;
        width: 3px;
        height: 3px;
    }

    .region-card-description {
        margin-top: 8px;
        font-size: 12px;
    }

    .region-card-arrow {
        right: 10px;
        font-size: 21px;
    }

    .region-footer {
        margin-top: 34px;
        font-size: 12px;
    }
}

/* Телефоны */

@media (max-width: 520px) {
    .region-page {
        padding: 26px 14px;
    }

    .region-logo {
        width: 285px;
        max-width: 88vw;
        margin-bottom: 20px;
    }

    .region-title {
        font-size: 24px;
        letter-spacing: -0.3px;
    }

    .region-subtitle {
        max-width: 350px;
        font-size: 13px;
    }

    .region-cards {
        max-width: 430px;
        gap: 12px;
        margin-top: 30px;
    }

    .region-card {
        min-height: 178px;
        padding: 21px 12px;
        border-radius: 14px;
    }

    .region-card-flag {
        width: 50px;
        height: 33px;
        margin-bottom: 12px;
    }

    .region-card-code {
        font-size: 10px;
        margin-bottom: 5px;
    }

    .region-card-title {
        font-size: 18px;
    }

    .region-card-city {
        margin-top: 7px;
        padding-left: 17px;
        font-size: 12px;
    }

    .region-card-description {
        margin-top: 7px;
        font-size: 10.5px;
    }

    .region-card-arrow {
        right: 8px;
        font-size: 19px;
    }

    .region-footer {
        margin-top: 27px;
        font-size: 11px;
    }
}

/* Маленькие телефоны */

@media (max-width: 380px) {
    .region-page {
        padding: 22px 10px;
    }

    .region-logo {
        width: 245px;
        margin-bottom: 18px;
    }

    .region-title {
        font-size: 21px;
    }

    .region-subtitle {
        font-size: 12px;
    }

    .region-cards {
        gap: 9px;
        margin-top: 26px;
    }

    .region-card {
        min-height: 164px;
        padding: 18px 8px;
        border-radius: 12px;
    }

    .region-card-flag {
        width: 46px;
        height: 30px;
        margin-bottom: 10px;
    }

    .region-card-code {
        font-size: 9px;
    }

    .region-card-title {
        font-size: 16px;
    }

    .region-card-city {
        padding-left: 15px;
        font-size: 11px;
    }

    .region-card-city::before {
        width: 8px;
        height: 11px;
    }

    .region-card-city::after {
        left: 3.5px;
        width: 2.5px;
        height: 2.5px;
    }

    .region-card-description {
        font-size: 9.5px;
    }

    .region-card-arrow {
        display: none;
    }

    .region-footer {
        margin-top: 24px;
        font-size: 10px;
    }
}

/* Очень маленькая высота экрана */

@media (max-height: 700px) and (min-width: 701px) {
    .region-page {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .region-logo {
        width: 320px;
        margin-bottom: 18px;
    }

    .region-title {
        font-size: 26px;
    }

    .region-subtitle {
        margin-top: 8px;
    }

    .region-cards {
        margin-top: 27px;
    }

    .region-card {
        min-height: 180px;
    }

    .region-footer {
        margin-top: 25px;
    }
}

/* Горизонтальный телефон */

@media (max-height: 520px) and (orientation: landscape) {
    .region-page {
        align-items: flex-start;
        padding: 25px 20px;
    }

    .region-logo {
        width: 230px;
        margin-bottom: 14px;
    }

    .region-title {
        font-size: 22px;
    }

    .region-subtitle {
        margin-top: 6px;
        font-size: 12px;
    }

    .region-cards {
        margin-top: 20px;
        max-width: 420px;
        gap: 12px;
    }

    .region-card {
        min-height: 145px;
        padding: 16px;
    }

    .region-card-flag {
        width: 44px;
        height: 29px;
        margin-bottom: 8px;
    }

    .region-card-title {
        font-size: 17px;
    }

    .region-card-city {
        margin-top: 5px;
        font-size: 11px;
    }

    .region-card-description {
        margin-top: 5px;
        font-size: 10px;
    }

    .region-footer {
        margin-top: 18px;
        font-size: 10px;
    }
}