@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,500,600,700,900&display=swap&subset=cyrillic,cyrillic-ext');

:root {
    --promo-offset: 0px;
}

/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
}

body {
    height: 100%;
    overflow: hidden;
}

a {
    text-decoration: none;
}

/* Общие классы */
.shadow {
    box-shadow: 0 0 0 1px rgba(89, 105, 128, .1), 0 1px 3px 0 rgba(89, 105, 128, .1), 0 1px 2px 0 rgba(0, 0, 0, .05);
    border-radius: 8px;
}

.grey {
    opacity: 0.5;
    letter-spacing: unset;
}

.hidden {
    display: none;
}

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

.unactive:before {
    content: "";
    background: black;
    opacity: 0.4;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
}

/* Кнопки */
.button {
    background: #AE5DFA;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.05rem;
    padding: 12.5px 25px;
    cursor: pointer;
    transition: 0.2s ease-in;
}

.button:hover {
    background: rgb(147, 74, 214);
    box-shadow: 0 1px 3px 4px rgba(89, 105, 128, .1), 0 1px 2px 0 rgba(0, 0, 0, .05);
}

.coffeebox {
    background: #000;
    padding: 10px 15px;
    color: white !important;
    border-radius: 50px;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Элементы форм */
textarea {
    box-shadow: 0 0 0 1px rgba(89, 105, 128, .1), 0 1px 3px 0 rgba(89, 105, 128, .1), 0 1px 2px 0 rgba(0, 0, 0, .05);
    border-radius: 8px;
    border: none;
    display: block;
    width: calc(100% - 30px);
    padding: 15px;
    margin-bottom: 15px;
}

form label {
    margin-bottom: 5px;
    display: block;
}

form input {
    background: #f6f6f6;
    width: 100%;
    border: none;
    font-family: 'Montserrat', sans-serif;
    box-shadow: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 12px;
    -webkit-appearance: none;
}

form textarea {
    background: #f6f6f6;
    width: 100%;
    border: none;
    font-family: 'Montserrat', sans-serif;
    box-shadow: none;
    height: 120px;
    font-size: 14px;
    -webkit-appearance: none;
}

/* Контент и макет */
#content {
    max-width: 1100px;
    margin: auto;
}

/* Карта */
#map {
    height: calc(100vh);
}

#map {
    width: 100vw;
    height: calc(100vh - var(--promo-offset));
}

.mapboxgl-ctrl-group:not(:empty) {
    box-shadow: 0 0 0 0px #000 !important;
    background: none;
    position: absolute;
    right: calc(50vw - 188px);
    bottom: calc(160px + var(--tg-safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    padding: 0;
    margin: 0 !important;
}

.mapboxgl-ctrl-group>button {
    border-radius: 30px;
    display: flex !important;
    align-items: center;
    width: 188px !important;
    height: 38px !important;
    background-color: #000 !important;
    color: #fff !important;
}

.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate::before {
    background-image: url("/images/navigation.svg") !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
    width: 45px !important;
    color: #fff !important;
    fill: #fff !important;
}

.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate::after {
    content: "Показать рядом";
    display: block;
    font-family: 'Montserrat', sans-serif;
    color: white;
    position: relative;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.mapboxgl-ctrl-icon .mapboxgl-ctrl-geolocate,
.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate:hover,
.mapboxgl-ctrl-icon.mapboxgl-ctrl-geolocate:focus,
.mapboxgl-ctrl-group>button:focus:only-child {
    border-radius: 30px !important;
}

.mapboxgl-ctrl-attrib.mapboxgl-compact::after {
    filter: invert(1);
    background-color: black;
}

/* Места */
#places {
    width: 100vw;
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(48px + var(--tg-safe-area-inset-bottom, 0px));
    height: 110px;
    box-sizing: content-box;
    z-index: 2;
}

.places {
    overflow-x: scroll;
    overflow-y: visible;
    display: flex;
    height: 100%;
    position: relative;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 12px;
    padding-left: calc(50vw - 500px);
    box-sizing: content-box;
}

.place {
    background: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    transition: 0.2s ease-in;
    width: 420px;
    overflow: hidden;
    height: 110px;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    -webkit-box-shadow: 2px 4px 13px 4px rgba(0, 0, 0, 0.42);
    -moz-box-shadow: 2px 4px 13px 4px rgba(0, 0, 0, 0.42);
    box-shadow: 2px 4px 13px 4px rgba(0, 0, 0, 0.42);
}

.place a {
    display: flex;
    align-items: center;
}

.place h3 {
    line-height: 1.5;
    font-size: 1.4rem;
    font-family: 'Montserrat', sans-serif;
    color: #000 !important;
}

.place p {
    font-weight: 400;
}

.place-popup * {
    box-sizing: content-box;
}

.place-marker {
    font-family: 'Montserrat', sans-serif;
    border-radius: none !important;
    font-size: 1.05rem;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0.05rem;
    padding: 11.5px 15px;
    margin: 0 !important;
    overflow: hidden;
    display: flex;
    box-shadow: none !important;
}

.place-marker .thumb {
    height: 75px;
    width: 75px;
    transform: scale(1.20);
    object-fit: cover;
    margin-right: 25px;
    margin-left: -5px;
}

.adress {
    opacity: 0.7;
    font-size: 1rem !important;
    margin-bottom: 0;
}

/* Изображения */
.image-container {
    box-sizing: content-box;
    height: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
}

.image-container .thumb {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.thumb {
    min-height: 55px;
    width: 140px;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    object-fit: cover;
}

/* Контейнеры контента */
.content-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    flex: 1;
}

.content-container .description,
.content-container .adress {
    font-weight: 400;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.content-container .adress {
    margin-top: unset;
    margin: 0;
}

/* Навигация */
nav {
    position: fixed;
    left: 0;
    top: var(--promo-offset);
    width: 100vw;
    height: 65px;
    background: white;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    box-shadow: 0 1px 3px 3px rgba(89, 105, 128, .07), 0 1px 2px 0 rgba(0, 0, 0, .05);
}

nav * {
    box-sizing: content-box;
}

nav h1>* {
    display: inline-block;
}

nav h1 span>* {
    display: inline-block;
    color: slategrey;
    margin-left: 5px;
    font-weight: 300;
    font-size: 1rem;
}

nav span {
    margin-left: 10px;
}

nav .links {
    display: flex;
    align-items: center;
    margin-top: 0;
}

nav .links a {
    color: #39A9DF;
    text-decoration: underline;
    display: flex;
    text-transform: uppercase;
    align-items: center;
    margin-right: 25px;
}

nav .container {
    width: 90vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
}

nav .container .left {
    display: flex;
}

nav .container .links a {
    text-transform: none;
    text-decoration: none;
    color: black;
    font-weight: 700;
    margin: 0 10px;
    text-transform: uppercase;
}

nav .container .button {
    color: black;
    background: white;
    border: 1px solid #000;
    font-weight: 600;
    padding: 10px;
    font-size: 1rem;
}

nav .container .right {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav .add-place {
    background: #000;
    color: white;
    border-radius: 9999px;
    height: 38px;
    max-height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    outline: none;
    border: none;
    padding: 0px 20px;
    gap: 8px;
    font-weight: 500;
    font-family: Montserrat, sans-serif;
    color: white;
    position: relative;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

nav .add-place .mobile {
    display: none;
}

nav .add-place .desktop {
    display: block;
}

nav .add-place:hover {
    background: #000;
    color: white;
    opacity: 0.8;
}

nav .add-place:active {
    opacity: 0.6;
}

nav .add-place .plus-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

nav .question {
    background: transparent;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    outline: none;
    /* -webkit-box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.25);
    box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.25); */
}

nav .question:hover {
    opacity: 0.8;
}

nav .question:active {
    opacity: 0.6;
}


/* Меню */
.burger {
    width: 40px;
    padding: 9px;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-flow: column;
    cursor: pointer;
    background-color: white;
    border-radius: 9999px;
    gap: 3px;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    border: 1px solid #dfdfdf;
    -webkit-box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.25);
    box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.25);
}

.burger>span {
    height: 2px;
    width: 100%;
    background: #000;
    transition: 0.3s;
    margin: 0;
}

.menu-open .burger>span {
    /* transform: rotate(45deg) translateX(5.5px); */
}

.menu-open .burger>span:last-child {
    /* transform: rotate(-45deg) translateX(5.5px); */
}

.menu-open nav {
    box-shadow: none;
}

.mobile {
    display: none;
}

menu {
    position: fixed;
    width: 100vw;
    right: 0;
    top: var(--promo-offset);
    z-index: 100;
    background: #ffffff;
    height: calc(100vh - var(--promo-offset));
    /* transform: translate(100vw); */
    box-shadow: 0 1px 3px 3px rgba(89, 105, 128, .07), 0 1px 2px 0 rgba(0, 0, 0, .05);
    transition: 0.3s cubic-bezier(0.31, 0.06, 0.32, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}

menu>div {
    width: 420px;
    padding: 25px;
}

menu p {
    margin-bottom: 35px;
    font-size: 1.8rem;
}

menu p a {
    color: #000;
    text-transform: uppercase;
    font-weight: 600;
}

.menu-open menu {
    transform: translate(0);
    opacity: 1;
    pointer-events: auto;
}

.about .controls,
menu .controls {
    position: absolute !important;
    height: 65px;
    display: flex;
    margin-bottom: 10px;
    position: fixed;
    background: white;
    width: 100vw;
    left: 0;
    top: 0px;
    z-index: 10;
    justify-content: space-between;
    align-items: center;
    padding-left: calc(50vw - 500px);
    border-bottom: 1px solid #ebebeb;
    padding-right: calc(50vw - 500px);
    box-sizing: border-box;
}

.about .controls .close,
menu .controls .close {
    position: relative;
    /* left: -2px;
    top: -2px;
    top: 8px; */
    overflow: hidden;
    width: 100px;
    left: 0;
}

.about .controls .close span,
menu .controls .close span {
    left: -10px;
    top: 14px;
    height: 1.5px;
}

.about .controls .close:after,
menu .controls .close:after {
    content: "Назад";
    position: relative;
    display: block;
    font-size: 1.3rem;
    margin-top: 5px;
    margin-left: -20px;
}

menu .add-place {
    background: #000;
    color: white;
    padding: 10px 20px;
    border-radius: 9999px;
    height: 54px;
    font-size: 17px;
    font-weight: 400;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 6px;
}

menu .add-place:hover {
    background: #000;
    color: white;
    opacity: 0.8;
}

menu .add-place:active {
    opacity: 0.6;
}

menu .add-place .plus-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* Кнопка закрытия */
.close {
    height: 25px;
    width: 25px;
    justify-content: space-between;
    align-items: center;
    display: flex;
    flex-flow: column;
    cursor: pointer;
    right: 16px;
}

.close>span {
    height: 2px;
    width: 16px;
    position: absolute;
    top: 12px;
    background: #000;
    transform: rotate(45deg);
}

.close>span:last-child {
    transform: rotate(-45deg);
}

/* Выбранное место */
#selectedPlace {
    display: none;
    background: white;
    position: fixed;
    top: 0;
    border-top: 1px solid;
    border-color: #ebebeb;
    left: 0;
    width: 100vw;
    overflow-y: scroll;
    height: 100vh;
    height: 100dvh;
    align-items: start;
    justify-content: center;
    z-index: 100;
}

#selectedPlace.open {
    display: flex;
    border-top: 0;
    transform: translateY(0);
    overflow-y: scroll;
    max-height: unset !important;
    z-index: 101;
}

#selectedPlace>*>div {
    position: relative;
}

#selectedPlace .tag {
    padding: 8px 12px;
    font-size: 12px;
    background: #EDEDED;
    border-radius: 50px;
    /* text-transform: capitalize; */
}

#selectedPlace .tag:first-letter {
    text-transform: capitalize;
}

#selectedPlace .staffhunter {
    background: #D4FF29;
    color: black;
    font-weight: 600;
}

.create-route-minimap-button {
    width: fit-content;
    position: absolute;
    bottom: 52px;
    background-color: black;
    opacity: 1;
    color: white !important;
    text-decoration: unset;
    padding: 8px 12px;
    box-sizing: border-box;
    border-radius: 999999px;
    font-family: Montserrat, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.3s ease-in;
    text-transform: uppercase;
    z-index: 22;
    cursor: pointer;
    left: 50%;
    transform: translateX(-50%);
}

/* Попап места */
.place-popup {
    max-width: 1000px;
    background: white;
    padding-top: 83px;
    display: grid;
    grid-column-gap: 20px;
    grid-template-columns: 1fr 1fr;
}

.place-popup .controls {
    position: absolute !important;
    height: 65px;
    display: flex;
    margin-bottom: 10px;
    position: fixed;
    background: white;
    width: 100vw;
    left: 0;
    top: 0px;
    z-index: 10;
    justify-content: space-between;
    align-items: center;
    padding-left: calc(50vw - 500px);
    border-bottom: 1px solid #ebebeb;
    padding-right: calc(50vw - 500px);
    box-sizing: border-box;
}

.place-popup .controls .close {
    position: relative;
    /* left: -2px;
    top: -2px;
    top: 8px; */
    overflow: hidden;
    width: 100px;
    left: 0;
}

.place-popup .controls .close span {
    left: -8px;
    top: 14px;
    height: 1.5px;
}

.place-popup .controls .close:after {
    content: "Назад";
    position: relative;
    display: block;
    font-size: 1.3rem;
    margin-top: 5px;
    margin-left: -20px;
}

.place-popup .swiper {
    grid-column: 1;
    grid-row: 2;
    max-width: 100vw;
    max-height: 500px;
}

.place-popup .swiper-thumbs {
    grid-column: 1;
    grid-row: 3;
}

.place-popup .description {
    grid-row: 2;
    margin-bottom: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 0;
    gap: 12px;
    padding-bottom: 38px;
}

#selectedPlace .place-popup h3 {
    margin: 0;
}

.place-popup img {
    height: calc(100vw - 30px);
    width: 100%;
    object-fit: cover;
    max-width: 600px;
    max-height: 600px;
}

.place-popup h3 {
    margin: 7px 0;
    font-size: 1.4rem;
}

.place-popup .links {
    margin-bottom: 0;
}

.place-popup .links a {
    color: black !important;
    width: fit-content;
    box-sizing: content-box;
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
}

.place-popup .links a>img {
    width: 14px;
    height: 14px;
}

.place-popup .links img {
    width: 20px;
    height: 20px;
}

.place-popup p,
.place-popup .links a {
    font-weight: 400;
    opacity: 1;
    line-height: 1.31;
    font-size: 1.2rem !important;
}

.place-popup #minimap-container {
    grid-row: 3;
    margin-top: 34px;
    grid-column: 1 / span 3;
}

.place-popup #minimap-container h3 {
    font-weight: 500;
}

/* Дополнительные элементы */
#minimap {
    height: 300px;
    margin-top: 10px;
    width: 100%;
    border-radius: 10px;
}

.class-label {
    width: 50px;
    height: 20px;
    border: 1px solid #eb3a44;
    border-radius: 5px;
    background: #fee1d7;
    text-align: center;
    line-height: 20px;
    font-weight: bold;
    font-size: 14px;
    color: #eb3a44;
}

.flag-icon {
    height: 20px !important;
    width: 20px !important;
    position: absolute;
    object-fit: contain !important;
    top: 0;
    right: -20px;
    cursor: pointer;
}

.directAd {
    padding: 5px;
    height: 90px;
}

.directAd>img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Ссылки */
.inst_menu {
    color: #d30b25;
}

.telegram_logo {
    height: 20px;
    width: 20px;
    margin-right: 10px;
}

.inst {
    height: 16px;
    width: 16px;
    object-fit: contain;
    margin-right: 5px;
    vertical-align: middle;
    display: inline-block;
}

span .link {
    margin: 0 10px;
    text-decoration: underline;
}

.logo2025 {
    height: 23px;
    padding: 7.5px 0;
    margin-right: 20px;
    margin-top: 6px;
}

.logo2025.mobile {
    display: none;
}

.logo2025:not(.mobile) {
    display: block;
}

/* Поделиться */
.place-popup .share-link {
    margin-right: 25px;
    position: relative;
    display: inline-block;
    background: #DADADA;
    padding: 8px 10px;
    padding-left: 38px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 12px !important;
    font-weight: 500;
}

.share-link.copied:before {
    background: url("/images/checkmark.svg") no-repeat;
    background-size: 80%;
    background-position: center;
    filter: invert(1);
}

.share-link:before {
    content: "";
    width: 16px;
    height: 16px;
    left: 12px;
    background: url("/images/copy.svg");
    position: absolute;
    display: inline-block;
}

.share-link:after {
    display: none;
}

/* Instagram вставка */
.instagram p {
    text-decoration: underline;
    font-size: 1.2rem;
}

.instagram span {
    display: block;
}

/* Awards ссылка */
#awards_link {
    background: white;
    position: fixed;
    top: 60px;
    width: 200px;
    z-index: 9999;
    right: 10px;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    justify-content: center;
    transition: 0.3s ease-in;
    box-shadow: 0 1px 3px 3px rgba(89, 105, 128, .07), 0 1px 2px 0 rgba(0, 0, 0, .05);
}

#awards_link.open {
    opacity: 1;
    visibility: visible;
}

#awards_link>* {
    position: relative;
}

#awards_link h3 {
    color: #FF5733;
    text-align: center;
    font-weight: 900;
}

#awards_link p {
    padding: 0px;
    margin: 10px 0;
    text-align: center;
    position: relative;
}

#awards_link a {
    background: #FF5733 !important;
    color: white;
    padding: 8px 20px;
    margin: auto;
    width: calc(100% - 40px);
    border-radius: 5px;
    display: inline-block !important;
}

/* Формы и Popups */
#report,
#add_place {
    position: fixed;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    top: 0;
    z-index: 102;
    background: #00000061;
    display: none;
}

#report.open,
#add_place.open {
    display: flex;
}

#report form,
#add_place form {
    background: white;
    position: relative;
    padding: 15px 18px;
    height: auto;
    border-radius: 8px;
    width: calc(100% - 30px);
    max-width: 640px;
    max-height: 90dvh;
    overflow-y: scroll;
}

#report h2,
#add_place h2 {
    font-size: 1.5rem;
}

#report .close,
#add_place .close {
    top: 12px;
    right: 12px;
    position: absolute;
}

#report p {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
}

#add_place p {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #808080;
}

#report .statuses,
.tags {
    margin: 0;
    display: flex;
    color: black !important;
    flex-wrap: wrap;
    grid-gap: 7px;
    margin-bottom: 12px;
}

#report .statuses p,
.tags p {
    background: #f1f1f1;
    border-radius: 50px;
    padding: 8px 12px;
    font-size: 12px;
    margin: 0;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-drag: none;
}

#add_place .tags p {
    margin: 0 !important;
    color: black;
}

#report .statuses p.checked,
.tags p.checked {
    background: black;
    color: white !important;
}

#report .statuses p.checked:before,
.tags p.checked:before {
    content: "";
    height: 8px;
    width: 12px;
    background: url(/images/checkmark-white.svg) no-repeat;
    background-size: contain;
    display: inline-block;
    margin-right: 8px;
}

#report button,
#add_place button {
    width: 100%;
    --webkit-appearance: none;
    padding: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border: none;
    font-size: 1rem;
    border-radius: 6px;
    color: black;
    margin-top: 12px;
}

#report button.selected,
#add_place button {
    background: black;
    color: white;
}

/* Popup */
#popup {
    display: none;
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: center;
    z-index: 100;
    background: rgba(0, 0, 0, 0.3);
}

#popup.active {
    transform: none;
    display: flex !important;
}

#popup .content {
    position: relative;
    padding: 20px;
    background: white;
    width: 85vw;
    border-radius: 15px;
    max-width: 600px;
}

#popup .content p {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

#popup .content a {
    color: black !important;
    font-weight: 500;
    text-decoration: underline;
}

#popup .content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Реклама */
#ad {
    position: fixed;
    bottom: 5px;
    height: 90px;
    text-align: right;
    margin-left: 25px;
    width: 300px;
    border-radius: 7px;
    left: calc(100% - 315px);
    z-index: 10;
}

#ad>img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#ad_mobile {
    display: none;
}

/* Маркер на карте */
.marker {
    display: flex;
}

.marker span {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background: #000 !important;
    display: inline-block;
}

.marker p {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 5px;
    height: 0px;
}

::-webkit-scrollbar-thumb {
    background-color: #000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #000;
}

.filters-container {
    position: absolute;
    top: calc(var(--promo-offset) + 65px);
    left: calc(50vw - 500px);
    right: calc(50vw - 500px);
    height: 50px;
    z-index: 5;
    display: flex;
    gap: 8px;
    height: auto;
    justify-content: center;
    /* align-items: center; */
    flex-wrap: wrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-item {
    position: relative;
    background: white;
    padding: 8px 12px;
    border-radius: 500px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.35);
    -webkit-box-shadow: 0 1.5px 1.5px 1px rgba(0, 0, 0, 0.42);
    -moz-box-shadow: 0 1.5px 1.5px 1px rgba(0, 0, 0, 0.42);
    box-shadow: 0 1.5px 1.5px 1px rgba(0, 0, 0, 0.42);
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
}

.filter-item:first-letter,
.filter-item *:first-letter,
.filter-item.selected *:first-letter {
    text-transform: capitalize;
}

.filter-item.selected {
    background: black;
    color: white;
    border: 1px solid black;
    align-items: center;
    justify-content: center;
    gap: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.filter-item.selected::before {
    content: "";
    background: url("/images/checkmark-white.svg") no-repeat;
    width: 12px;
    height: 9px;
    background-size: contain;
}

.about {
    display: none;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    padding: 20px;
    overflow-y: scroll;
    padding-left: calc(50vw - 500px);
    padding-right: calc(50vw - 500px);
    justify-content: center;
    align-items: center;
}

.about.open {
    display: flex;
}

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

.about .title {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.about .text {
    font-size: 1.1rem;
}

.desktop-only {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.swiper-pagination {
    background-color: #000000c2 !important;
    right: 20px !important;
    bottom: 20px !important;
    left: unset !important;
    width: auto !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    padding: 5px 10px;
    color: white !important;
    font-style: italic;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 600px) {
    .desktop-only {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .places {
        padding-left: 32px;
        padding-right: 32px;
    }

    /* nav .container .links,
    nav .container .button {
        display: none;
    } */

    nav .container .button {
        position: absolute;
        right: 70px;
    }

    nav .container .links {
        display: none;
    }

    nav .container .mobile {
        display: flex !important;
    }

    #report,
    #add_place {
        height: unset;
    }

    #report form,
    #add_place form {
        height: 100dvh;
        width: 100vw;
        border-radius: 0;
        overflow-y: scroll;
        padding-top: 12px;
        max-height: 100dvh;
        padding-top: 68px;
    }

    #report h2,
    #add_place h2 {
        font-size: 5vw;
    }

    #report .close,
    #add_place .close {
        width: 34px;
        height: 34px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-box-shadow: 0px 1.5px 2px 1.1px rgba(0, 0, 0, 0.32);
        -moz-box-shadow: 0px 1.5px 2px 1.1px rgba(0, 0, 0, 0.32);
        box-shadow: 0px 1.5px 2px 1.1px rgba(0, 0, 0, 0.32);
        z-index: 10;
        top: 12px;
        left: 12px;
        right: unset;
    }

    #report .close>span,
    #add_place .close>span {
        height: 2px;
        width: 16px;
        position: absolute;
        top: unset;
        background: #000;
        transform: rotate(45deg);
    }

    #report .close>span:last-child,
    #add_place .close>span:last-child {
        transform: rotate(-45deg);
    }

    #report p,
    #add_place p {
        margin-top: 10px;
        margin-bottom: 10px;
        font-size: 3.4vw;
    }

    #report .statuses p {
        font-size: 12px;
    }

    #report textarea {
        font-size: 16px;
    }

    #report button,
    #add_place button {
        font-size: 3.8vw;
        margin-bottom: 32px;
    }

    #add_place .tags p {
        font-size: 3.2vw;
    }

    form label {
        font-size: 3.5vw;
    }

    .flag-icon {
        top: 10px;
        right: 0;
    }

    #selectedPlace .description {
        margin-bottom: 10px;
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
        padding-top: 24px;
    }

    .create-route-minimap-button {
        bottom: 44px;
    }

    .place-popup #minimap-container {
        margin-top: -10px;
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    .place-popup #minimap {
        width: 100%;
    }

    .grey {
        font-size: 3.6vw !important;
    }

    #selectedPlace .place-popup .get-route {
        font-size: 3.6vw !important;
    }

    .logo2025:not(.mobile) {
        display: none;
    }

    .logo2025.mobile {
        display: block !important;
    }

    menu {
        width: 100vw;
        top: var(--promo-offset);
        height: calc(100vh - var(--promo-offset));
        /* transform: translate(100vw); */
    }

    menu .controls {
        display: flex;
        padding-left: 18px;
        padding-right: 18px;
        width: 100vw;
        right: 0;
        left: 0;
        box-sizing: border-box;
    }

    .coffeebox {
        position: absolute;
        font-size: 3.5vw;
        right: 10vw;
        top: calc(100% + 2vw);
    }

    #awards_link {
        right: unset;
        left: 10px;
        width: 90vw;
        top: 57px;
    }

    #awards_link h3 {
        font-size: 5vw;
    }

    nav h1>span {
        display: none;
    }

    nav h1 {
        margin-right: 15px;
        font-size: 4vw;
    }

    nav .links {
        margin-left: 15px;
    }

    nav .links a {
        margin-right: 15px;
    }

    nav .add-place .mobile {
        display: block;
    }

    nav .add-place .desktop {
        display: none;
    }

    a.inst_link {
        display: none !important;
    }

    .share-link {
        display: none !important;
    }

    #map {
        height: calc(100vh - var(--promo-offset) - env(safe-area-inset-bottom));
        /* height: calc(100dvh - var(--promo-offset)); */
    }

    #selectedPlace {
        position: absolute;
        bottom: 15px;
        max-height: 25vh;
        z-index: 98;
        transform: translateY(0);
        transition: 0.3s cubic-bezier(0.86, 0, 0.07, 1);
        top: 0;
        background: #00000080;
        padding-top: 32px;
        height: 100dvh;
        backdrop-filter: blur(5px);
    }

    .about .controls,
    #selectedPlace .controls {
        display: flex;
        padding-left: 18px;
        padding-right: 18px;
        width: 100vw;
        right: 0;
        left: 0;
        box-sizing: border-box;
        background: transparent;
        border: none;
        top: 32px;
    }

    .about .controls .close,
    .place-popup .controls .close {
        width: 34px;
        height: 34px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-box-shadow: 0px 1.5px 2px 1.1px rgba(0, 0, 0, 0.32);
        -moz-box-shadow: 0px 1.5px 2px 1.1px rgba(0, 0, 0, 0.32);
        box-shadow: 0px 1.5px 2px 1.1px rgba(0, 0, 0, 0.32);
    }

    .about .controls .close>span,
    .place-popup .controls .close>span {
        transform: rotate(45deg);
        left: unset;
        top: unset;
        position: absolute;
    }

    .about .controls .close>span:last-child,
    .place-popup .controls .close>span:last-child {
        transform: rotate(-45deg);
    }

    .about .controls .close:after,
    .place-popup .controls .close:after {
        content: "";
    }

    .place-popup .links a {
        gap: 8px;
    }

    .place-popup .links a>img {
        width: 18px;
        height: 18px;
    }

    #selectedPlace .description .get-route {
        display: block;
    }

    #selectedPlace .place-popup {
        min-height: 100dvh;
        height: auto;
        overflow-y: unset;
        width: 100vw;
        display: flex;
        padding: 0px;
        flex-wrap: wrap;
        padding-top: 0px;
        align-content: flex-start;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        overflow: clip;
        background: white;
    }

    #selectedPlace .place-popup h3 {
        font-size: 1.5rem;
    }

    #selectedPlace .place-popup p,
    #selectedPlace .place-popup a {
        font-size: 1.5rem !important;
    }

    #selectedPlace .tag,
    #selectedPlace a.tag {
        padding: 10px 12px;
        font-size: 12px !important;
    }

    #selectedPlace .place-popup>*>img {
        height: calc(100vw - 30px);
        width: 100%;
        object-fit: cover;
        max-width: 400px;
        max-height: 100vh;
    }

    #selectedPlace>.place {
        width: calc(100vw - 40px + 4vw);
        margin: 5px;
        padding: 2vw 2vw;
        position: relative;
    }

    .close {}

    .place {
        max-width: calc(100vw - 64px);
        width: calc(100vw - 64px);
    }

    #ad_mobile {
        display: none !important;
        position: fixed;
        top: 65px;
        right: 0;
        left: 0;
        color: black;
        width: 100%;
        background: white;
        position: absolute;
        margin: 8px auto;
        width: 95vw;
        grid-template-columns: 13vw 1fr;
        z-index: 98;
        transform: translateY(-250px);
        transition: 0.3s cubic-bezier(0.86, 0, 0.07, 1);
        display: inline-block;
        box-sizing: border-box;
        max-height: 64px;
    }

    #ad_mobile .content-container {
        padding: 0 12px;
        justify-content: center;
        align-items: flex-start;
        display: flex;
    }

    #ad_mobile>a {
        display: block;
        color: black;
    }

    #ad_mobile h2 {
        font-size: 3.2vw;
        color: #000 !important;
    }

    .thepapers-logo {
        position: absolute;
        width: 65px;
        right: 10px;
        filter: grayscale(1);
        opacity: 0.3;
        bottom: 10px;
    }

    #ad_mobile p {
        font-size: 3vw;
    }

    #ad_mobile .underline {
        font-weight: 400;
        text-decoration: underline;
    }

    #ad_mobile.active {
        transform: none;
        display: grid !important;
    }

    .filters-container {
        max-width: 100vw;
        padding-left: 24px;
        padding-right: 24px;
        left: 0;
        right: 0;
        justify-content: flex-start;
        flex-wrap: unset;
        overflow-x: scroll;
        flex-grow: 1;
        flex-direction: row;
        white-space: nowrap;
        height: 44px;
        box-sizing: content-box;
        align-items: center;
    }

    .filter-item {
        padding: 10px 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        flex: 0 0 auto;
        min-width: max-content;
        max-height: 36px;
    }

    /* span in filter-item growth in width to fit */
    .filter-item span {
        flex-grow: 1;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .about {
        padding-left: 18px;
        padding-right: 18px;
    }

    .about .about-content {
        gap: 12px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 320px) {
    .place {
        align-items: center;
    }

    .thumb {
        height: 25vw;
        width: 25vw;
        object-fit: cover;
        border-radius: 4px;
        margin: 0px 0px;
        margin-left: 3px;
        margin-right: 20px;
    }

    .place a {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        width: fit-content;
    }

    .place h3 {
        font-size: 4.3vw;
    }
}

/* Для больших экранов */
@media (min-width: 600px) {
    #map {
        width: 100vw;
        height: calc(100vh - var(--promo-offset));
        /* height: calc(100dvh - 65px - var(--promo-offset)); */
    }
}