html, body {
    height: 100vh;
}

/* Цвет информационных маркеров */
#markers .button {
    background: transparent;
    width: 194px;
    height: 47px;
    border-radius: 0;
}

#markers .button.Пленка{
    background-image: url("../icon_1.svg");
}

#markers .button.УШМ{
    background-image: url("../icon_2.svg");
}

#markers .button.Пипетка{
    background-image: url("../icon_3.svg");
}

#markers .button.Щит{
    background-image: url("../icon_6.svg");
}

#markers .button.Солнце{
    background-image: url("../icon_5.svg");
}

#markers .button.Дождь{
    background-image: url("../icon_7.svg");
}

#markers .button.Тормозной_диск{
    background-image: url("../icon_8.svg");
}

#markers .button.Колесный_диск{
    background-image: url("../icon_9.svg");
}

#markers .button.map{
    background-image: url("../icon_map.svg");
}

#markers .button.list{
    background-image: url("../icon_list.svg");
}

#markers .button.Кофе{
    background-image: url("../icon_10.svg");
}


#markers .marker .title{
    pointer-events: none;
}

#markers .marker {
    height: 47px;
    width: 194px;
    margin-left: -97px;
    margin-top: -23px;
}


/* Цвет полосы загрузки */
#control-panel .progress-bar .value {
    /*background: #f6e50a;*/
}

#tour-player {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}


.modal-content {
    min-height: 60px !important;
}


.modal .modal-header .modal-title {
    line-height: normal;
    font-size: 32px;
    font-family: "Comfortaa", sans-serif;
    font-weight: 700;
}

.modal .modal-content p {
    /*margin-bottom: 3em;*/
    line-height: 1.5;
}

div.links a {
    /*    round rect*/
    background-color: #483166;
    border: none
    font-weight: 400;
    color: white;
    text-decoration: none;
    /*text-transform: uppercase;*/
    transition: all 0.3s ease;
    padding: 8px 40px;
    letter-spacing: var(--ls-large);
    margin-top: 0.5em;
    display: inline-block;
    color: white;
    border-radius: 16px;
}

div.links a:hover {
    background-color: #483166 !important;
    color: #fff !important;
}

div.links a:active {
    background-color: var(--active-color);
}


.modal button {
    background-color: white;
    border-radius: 64px;
    padding: 12px 32px;
    color: black;
    border-color: var(--primary-color);
    text-decoration: none;
    border-width: 5px;
    border-style: solid;
    margin-top: 20px;
    font-size: 20px;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
}

.modal button:hover {
    background-color: var(--primary-color);
    color: white;
}

.modal .hello {
    font-size: 18px;
    line-height: 1.5;
}

.modal-content {
    padding-right: 60px;
}


@media (min-width: 600px) {
    .guide {
        margin-right: -30px;
    }

    .modal {
        min-width: 450px !important;
    }
}

.modal-container {
    z-index: 5 !important;
}


@media (orientation: portrait) {
    /*.menu .map {*/
    /*  width: auto;*/
    /*  height: calc(100vh - 60px);*/
    /*}*/
    .ui-buttons {
        width: 90vw;
        height: 90vh;
    }

    .menu .map img,
    .menu .map svg {
        z-index: 1;
    }

    .logo {
        display: none;
    }
}

@media (orientation: landscape) {
    /*.menu .map {*/
    /*  width: 90vw;*/
    /*}*/
    .menu .map img,
        /*.menu .map svg {*/
        /*  height: 100%;*/
        /*  width: auto !important;*/
        /*  z-index: 1;*/
        /*}*/

    .menu .map .map-markers {
        height: 100%;
        width: 100%;
    }
}


@media screen and (max-width: 600px) {
    .menu .map .map-titles {
        display: none !important;
    }
}

@media screen and (max-height: 600px) {
    .menu .map .map-titles {
        display: none !important;
    }
}

.modal-container .modal {
    max-width: 600px !important;
    background: white;
    box-shadow: 0 2px 4px rgb(0 0 0 / 30%), 0 2px 32px rgb(0 0 0 / 30%);
}

.modal-container .modal-header {
    background: transparent !important;
}

.modal-container {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
}

/* ─────────────────────────────────────────────────────────────────────────
   Причёсывание карточки услуги — ABZ, 09.2026.
   Плагин modal подключает свой modal.css из JS, то есть ПОЗЖЕ этого файла.
   Поэтому вес селекторов поднят повтором класса (.modal.modal): контейнер
   модалок уходит в body, а не в #tour-player — Modal создаётся без tour.
   ───────────────────────────────────────────────────────────────────────── */

@font-face {
    font-family: "GothamPro";
    src: url("../assets/fonts/GothamPro-Regular.woff") format("woff");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "GothamPro";
    src: url("../assets/fonts/GothamPro-Bold.woff") format("woff");
    font-weight: 700;
    font-display: swap;
}

:root {
    --abz: #903ab0;
    --abz-hover: #ad66c9;
    --abz-ink: #181818;
    --abz-ease: cubic-bezier(.22, 1, .36, 1);
}

/* Подложка: раньше на десктопе просто мигала — теперь плавно проявляется */
.modal-container.modal-container {
    background: rgba(15, 8, 20, .42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity .28s var(--abz-ease);
    /* overflow-y: scroll в modal.css держал полосу прокрутки всегда —
       справа поверх панорамы висела белая полоска */
    overflow-y: auto;
    scrollbar-width: none;
}
.modal-container.modal-container::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* display:none в modal.css убивал любую анимацию на десктопе.
   Держим карточку в потоке и прячем видимостью — тогда переход отрабатывает. */
.modal.modal {
    font-family: "GothamPro", Helvetica, Arial, sans-serif;
    color: var(--abz-ink);
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
    transition: transform .34s var(--abz-ease), opacity .24s ease, visibility .24s;
}
.modal.modal:not(.opened) {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    --scale: .94 !important;
    --offsetY: 26 !important;
}
.modal.modal.opened {
    visibility: visible;
    opacity: 1;
}

/* Заголовок услуги */
.modal.modal .modal-header .modal-title {
    font-family: "GothamPro", Helvetica, Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--abz-ink);
}
/* Фирменная черта под заголовком — вырастает при открытии */
.modal.modal .modal-header {
    padding-bottom: 18px;
}
.modal.modal .modal-header:before {
    content: "";
    position: absolute;
    left: var(--padding);
    bottom: 8px;
    height: 3px;
    width: 0;
    border-radius: 2px;
    background: var(--abz);
    transition: width .5s .12s var(--abz-ease);
}
.modal.modal.opened .modal-header:before {
    width: 56px;
}

.modal.modal .modal-content {
    font-size: 16px;
    line-height: 1.62;
    color: #33313a;
}

/* Кнопка «Узнать больше». В исходнике здесь потерялась точка с запятой после
   border: none, из-за чего часть правил ниже не применялась вовсе. */
.modal.modal div.links {
    margin-top: 22px;
}
.modal.modal div.links a {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    background: var(--abz);
    border: none;
    border-radius: 14px;
    padding: 13px 28px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .01em;
    transition: background .2s ease, transform .2s var(--abz-ease), box-shadow .2s ease;
}
.modal.modal div.links a:after {
    content: "→";
    transition: transform .2s var(--abz-ease);
}
.modal.modal div.links a:hover {
    background: var(--abz-hover) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(144, 58, 176, .35);
}
.modal.modal div.links a:hover:after {
    transform: translateX(4px);
}
.modal.modal div.links a:active {
    transform: translateY(0);
}

/* Фото в карточке (assets/img/) */
.modal.modal .slider {
    margin: 0 0 18px;
    border-radius: 12px;
    overflow: hidden;
}
.modal.modal .popup-img {
    display: block;
    width: 100%;
    height: auto;
}

.modal.modal .modal-close {
    opacity: .45;
    transition: opacity .2s ease, transform .2s var(--abz-ease);
}
.modal.modal .modal-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
    .modal.modal,
    .modal-container.modal-container,
    .modal.modal .modal-header:before,
    .modal.modal div.links a {
        transition: none !important;
    }
}


/* ─── Метки услуг: белая иконка, фирменный ореол и мягкая пульсация ────────
   Иконки (icon_*.svg) перекрашены из бирюзы в белый — на светлой стене и на
   тёмном боксе одинаково читаются, а цвет бренду задаёт свечение. */

#markers .button {
    filter: drop-shadow(0 0 7px rgba(144, 58, 176, .95))
            drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
    animation: abz-pulse 2.6s ease-in-out infinite;
    transition: transform .22s cubic-bezier(.22, 1, .36, 1), filter .22s ease;
    cursor: pointer;
}

/* Пульсация сдвинута по фазе у соседних меток — иначе они мигают строем */
#markers .marker:nth-child(2n) .button { animation-delay: -.9s; }
#markers .marker:nth-child(3n) .button { animation-delay: -1.7s; }

#markers .button:hover {
    animation-play-state: paused;
    transform: scale(1.12);
    filter: drop-shadow(0 0 14px rgba(173, 102, 201, 1))
            drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
}

@keyframes abz-pulse {
    0%, 100% { transform: scale(1);     opacity: .88; }
    50%      { transform: scale(1.055); opacity: 1; }
}

#markers .marker .title {
    font-family: "GothamPro", Helvetica, Arial, sans-serif;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
}

@media (prefers-reduced-motion: reduce) {
    #markers .button { animation: none; }
}

/* ─── Метка-подпись (icon = text) ─────────────────────────────────────────
   Первый заход был подчёркиванием прямо под надписями на вывеске — и он
   провалился: подчёркивание рисуется в пикселях экрана, а надпись на фото
   меняет размер при зуме, поэтому линия уезжала. Теперь это самостоятельная
   плашка: она читается на любом масштабе и ни к чему не привязана пиксельно. */

#markers .marker:has(.button.text) {
    height: 30px;
    margin-top: -15px;
}

#markers .button.text {
    display: none;
}

#markers .marker:has(.button.text) .title {
    position: static !important;
    left: auto !important;
    opacity: 1 !important;
    font-size: 14px !important;
    text-align: center;
}

#markers .marker:has(.button.text) .title span {
    background: rgba(144, 58, 176, .92);
    color: #fff;
    font-family: "GothamPro", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    padding: 6px 14px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .45);
    cursor: pointer;
    pointer-events: auto;
    transition: background .2s ease, transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease;
}

/* белый «носик» всплывашки от плеера здесь не нужен */
#markers .marker:has(.button.text) .title span:before {
    display: none !important;
}

#markers .marker:has(.button.text) .title span:hover {
    background: rgba(173, 102, 201, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(144, 58, 176, .6);
}

/* ─── Список услуг в карточке (карточка таблички у входа) ───────────────── */

.modal.modal .modal-content ul {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal.modal .modal-content ul li {
    margin: 0;
}

.modal.modal .modal-content ul li a {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 12px;
    background: #f4eef7;
    color: #6d2a86;
    font-weight: 700;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.modal.modal .modal-content ul li a:hover {
    background: #903ab0;
    color: #fff;
    transform: translateY(-1px);
}
