* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #EFEFEF;
    font-weight: 200;
    overflow-x: hidden;
    min-height: 100%;
}

.wrapper {
    display: flex;
    height: 100vh;
    flex-direction: column;
}

.header {
    background: #171717;
    padding: 20px 50px;
    z-index: 5;
    min-height: 110px;
}

.header-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    width: 100%;
}

.headerTitle {
    font-size: 24px;
    font-weight: 200;
    color: white;
    text-decoration: none;
    grid-column: 1;
    justify-self: start;
}

.headerTitle span {
    font-weight: 400;
}

.header-logo-center {
    width: 250px;
    grid-column: 2;
    justify-self: center;
    align-self: start;
    margin: 15px 0 0;
}

.header-logo-right {
    grid-column: 3;
    justify-self: end;
}

.main {
    flex-grow: 1;
    position: relative;
    display: flex;
}

.map-container {
    width: 100%;
    flex-grow: 1;
    min-height: 0;
}

.geo-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.custom-zoom-control {
    position: absolute;
    right: 50px;
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.zoom-button {
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border: 2px solid #808080;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Левая нижняя панель */
.left-panel {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 20px;
    background: #fff;
    z-index: 100;
    border-radius: 0 20px 0 0;
}

.left-panel-content {
    display: flex;

    gap: 20px;
}

.left-panel-text {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 200;
    color: #000000;
    cursor: default;
}

.left-panel-button {
    background: #FF6C0E;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 200;
    cursor: pointer;
    box-shadow: 0px 5px 20px 0px #FF9D00 inset;
    max-width: 141px;
}

/* Правая верхняя статистика */
.right-stats {
    pointer-events: none;
    user-select: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 24px;
    cursor: default;
    background: #fff;
    padding: 30px;
    transform: scale(.6);
    transform-origin: right top;
    border-radius: 0 0 0 20px;
}

.stats-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
}

.big-number {
    font-size: 80px;
    font-weight: 700;
    color: #FF6C0E;
}

.stat-label {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
}

.stat-note {
    font-size: 18px;
    font-weight: 400;
    color: #000000;
}

.stat-divider {
    width: 2px;
    height: 160px;
    background: #000000;
}

.custom-popup {
    margin: auto;
    background: white;
    padding: 75px 52px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
}

.custom-popup-overlay {
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1001;
}

.close-icon {
    width: 20px;
    height: 20px;
}

.baloon-logo {
    margin-bottom: 25px;
}

.baloon-container {
    padding: 0;
}

.baloon-logo {
    width: 500px;
}

.baloon-divider {
    height: 1px;
    background: #171717;
    margin: 0;
    width: 500px;
}

.baloon-content {
    padding: 25px 10px 0 10px;
    max-width: 500px;
}

.baloon-info {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 500;
    color: #171717;
}
.baloon-info a {
    color: #171717;
    text-decoration: none;
}

.baloon-info a:hover {
    text-decoration: underline;
}

.baloon-link {
    color: #000000;
    font-weight: 500;
    text-decoration: none;
}

.print {
    color: white;
    text-decoration: none;
}


@media (max-width: 900px) {
    .custom-zoom-control {
        top: 210px;
    }
    .custom-popup {
        position: relative;
        padding: 0;
        max-width: 100%;
        box-shadow: none;
    }
    .custom-popup-overlay {
        background: #fff;
    }

    .custom-popup .baloon-container {
        width: 100%;
        max-width: 310px;
        margin: 0 auto;
    }

    .custom-popup .baloon-logo {
        max-width: 310px;
        margin: 0 auto 30px auto;
    }

    .custom-popup .baloon-divider {
        width: 310px;
    }

    .custom-popup .baloon-content {
        padding: 30px 0 0 0;
    }

    .custom-popup .baloon-header {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .popup-close {
        /*top: 25px;*/
        /*right: 25px;*/
        top: -60px;
        right: -10px;

    }

    .left-panel-text {
        font-size: 15px;
    }

    .left-panel {
        max-width: 100%;
        bottom: 50px;
    }
    .left-panel-content {
        display: flex;
        /*flex-direction: column-reverse;*/
    }

    .header {
        padding: 28px 20px 22px 20px;
    }

    .header-container {
        /*grid-template-columns: 1fr;*/
        /*grid-template-rows: auto auto;*/
        /*gap: 20px;*/
        /*justify-items: center;*/
    }

    .headerTitle {
        /*grid-column: 1;*/
        /*grid-row: 2;*/
        /*text-align: center;*/
        /*font-size: 24px;*/
        /*justify-self: center;*/
        /*width: 100%;*/
    }

    .header-logo-center {
        /*grid-column: 1;*/
        /*grid-row: 1;*/
        /*justify-self: start;*/
        /*width: 150px;*/
    }

    .header-logo-right {
        /*grid-column: 1;*/
        /*grid-row: 1;*/
        /*justify-self: end;*/
        /*width: 150px;*/
    }

    .right-stats {
        gap: 10px;
        min-width: 100%;
    }

    /*.stats-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }*/

    .big-number {
        font-size: 60px;
    }

    .stat-block {
        text-align: start;
    }

    .stat-label {
        font-size: 15px;
    }

    .stat-note {
        font-size: 14px;
        width: auto;
    }

    .stat-divider {
        width: 1px;
        height: 90px;
    }
}

.header_top {
    display: flex;
    justify-content: flex-end;
}

.header_right {
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.header_data {
    display: flex;
    gap: 14px;
}

.header_number {
    color: #ff6c0e;
    font-size: 36px;
    font-weight: bold;
}
.header_divider {
    width: 1px;
    background: #fff;
}
.header_stat {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
}

.header_info {
    font-size: 8px;
}

@media (max-width: 780px) {
    .custom-zoom-control {
        display: none;
    }
    .header {
        min-height: auto;
    }
    .header-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
        justify-items: center;
    }
    .headerTitle {
        grid-column: span 2;
        grid-row: 2;
        text-align: center;
        font-size: 24px;
        justify-self: center;
        width: 100%;
    }
    .headerTitle br {
        display: none;
    }
    .header-logo-center {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        width: 150px;
        margin: 0;
    }

    .header-logo-right {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        width: 150px;
    }
}

@media (max-width: 500px) {
    .left-panel {
        width: 100%;
        border-radius: 0;
    }
}

.email-list div {
    margin: 0 0 10px 0;
}

.email-list div:last-child {
    margin: 0;
}