/* lato-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Lato";
    font-style: normal;
    font-weight: 400;
    src: url("assets/fonts/lato-v25-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Lato";
    font-style: normal;
    font-weight: 700;
    src: url("assets/fonts/lato-v25-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    --color-gray: #dfdfdf;
    --color-blue: #3c46a3;
    --blend-in: 0.3s;
    --building-animation: 1.5s;
    --scale-transition: 300ms;
}

/* 
* {
     outline: 1px solid #f00 !important;
} */

*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

html {
    scroll-behavior: smooth;
    font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
        "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
        "Helvetica Neue", sans-serif;
    text-rendering: optimizeLegibility;
    text-rendering: geometricPrecision;
    -webkit-backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    hyphenate-limit-chars: auto 5 5;
}

body {
    box-sizing: border-box;
    background-color: white;

    @media only screen and (min-width: 1000px) {
        background-color: var(--color-gray);
    }
}

img {
    width: 100%;
    height: auto;
    display: block;
}

main {
    min-height: 100vh;
}

.content {
    background-color: var(--color-gray);
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    width: auto;
    overflow: hidden;

    @media only screen and (min-width: 1000px) {
        margin: 0 33px;
        flex-flow: row nowrap;
        align-items: center;
    }

    @media only screen and (min-width: 1500px) {
        margin: 0 76px;
    }

    @media only screen and (min-width: 1920px) {
        max-width: 1728px;
        margin: 0 auto;
    }
}

.header__img {
    position: absolute;
    display: block;
    background: url("assets/icons/xsundblieba-logo-mobile.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    max-height: 100px;
    z-index: 1;

    @media only screen and (min-width: 1000px) {
        background: url("assets/icons/xsundblieba-logo-desktop.svg");
        background-size: contain;
        background-repeat: no-repeat;
        max-height: 200px;
        top: 0;
        left: 0;
    }
}

.header__logo {
    position: absolute;
    top: 11px;
    left: 9px;

    @media only screen and (min-width: 1000px) {
        top: 23px;
        left: 19px;
    }
}

.header__logo img {
    height: 100%;
    width: 100%;
    max-width: 120px;

    @media only screen and (min-width: 1000px) {
        max-width: 240px;
    }
}

.content__main {
    order: 1;
    margin: -126px 30px 0;
    z-index: 2;

    @media only screen and (min-width: 1000px) {
        margin: 0;
        position: absolute;
        left: 0;
        bottom: 77px;
    }
}

.content__main-icon {
    display: block;
    background: url("assets/icons/cross-icon.svg");
    background-size: contain;
    width: 62px;
    height: 62px;
    margin-bottom: 15px;

    @media only screen and (min-width: 1000px) {
        width: 124px;
        height: 124px;
        margin-bottom: 32px;
    }
}

.content__main-title {
    margin-bottom: 15px;

    @media only screen and (min-width: 1000px) {
        margin-bottom: 20px;
    }
}

.content__main-title h1 {
    font-size: 22px;
    color: var(--color-blue);

    @media only screen and (min-width: 1000px) {
        font-size: 37px;
    }
}

.content__main-description {
    font-size: 16px;
    font-family: "Lato";
    font-weight: 600;
    margin-bottom: 10px;

    @media only screen and (min-width: 1000px) {
        margin-bottom: 0;
        font-size: 27px;
        max-width: 420px;
    }
}

.content__legend {
    order: 1;
    font-size: 16px;
    margin: 0 30px;
    padding-bottom: 30px;

    @media only screen and (min-width: 1000px) {
        margin: 0;
        padding: 0;
        position: absolute;
        bottom: 77px;
        right: 0;
        z-index: 2;
        font-size: 21px;
    }
}

.content__legend-first {
    margin-bottom: 8px;

    @media only screen and (min-width: 1000px) {
        margin-bottom: 6px;
    }
}

.content__legend-first::before,
.content__legend-second::before {
    content: "";
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    width: 19px;
    height: 19px;
    transform: translateY(4px);
    margin-right: 4px;

    @media only screen and (min-width: 1000px) {
        transform: translateY(5px);
        margin-right: 10px;
        width: 26px;
        height: 26px;
    }
}

.content__legend-first::before {
    background: url("assets/icons/check-icon.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

.content__legend-second::before {
    background: url("assets/icons/s-icon.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

.map {
    position: relative;
    display: block;
    background: url("assets/icons/map-mobile.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: 50%;
    width: 100%;
    height: auto;
    aspect-ratio: 375/521;
    margin-top: 100px;

    @media only screen and (min-width: 1000px) {
        background: url("assets/icons/map-desktop.svg");
        max-width: 900px;
        max-height: 900px;
        aspect-ratio: 1/1;
        background-size: contain;
        background-position-x: unset;
        margin-top: 120px;
        margin-bottom: 80px;
    }

    @media only screen and (min-width: 1500px) {
        margin: 120px;
    }
}

.map__item-static,
.map__item {
    position: absolute;
}

.map__item button {
    background: transparent;
    border: none;
    color: black;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    pointer-events: auto;
    transition: scale var(--scale-transition) ease-in-out;
}

.map__item-icon svg {
    width: 40px;
    height: 41px;

    @media only screen and (min-width: 1000px) {
        width: 48px;
        height: 50px;
    }
}

.map__item-icon--big svg {
    width: 50px;
    height: 51px;

    @media only screen and (min-width: 1000px) {
        width: 62px;
        height: 64px;
    }
}

/* #map-5-line {
    position: absolute;
    left: 25px;
    top: 46px;
    content: "";
    background: url("assets/icons/line-icon-mobile.svg");
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
    transition: left var(--scale-transition) ease-in-out;
    pointer-events: none;
    z-index: 1;

    @media only screen and (min-width: 1000px) {
        background: url("assets/icons/line-icon.svg");
        background-repeat: no-repeat;
        background-size: cover;
        left: 31px;
        top: 58px;
    }
} */

/* #map-5:has(button[aria-expanded="true"]) #map-5-line {
    left: 14px;

    @media only screen and (min-width: 1000px) {
        left: 17px;
    }
} */

/* #map-5:hover #map-5-line {
    @media only screen and (min-width: 1000px) {
        left: 17px;
    }
} */

/* .map__prevent-hover:hover ~ #map-5-line {
    left: 31px !important;
} */

.map__item-icon--dot {
    display: inline-block;
}

.map__item-icon--dot svg {
    width: 14px;
    height: 14px;
}

.map__item-title {
    font-family: "Lato";
    display: inline-block;
    padding-bottom: 4px;
    transform: translateY(8px);
    font-weight: 600;
    font-size: 16px;

    @media only screen and (min-width: 1000px) {
        font-size: 19px;
        padding-left: 7px;
        padding-bottom: 0;
    }
}

.map__item-title:hover {
    cursor: pointer;
}

.map__item-icon:hover {
    cursor: pointer;
}

.map__item button:hover {
    @media only screen and (min-width: 1000px) {
        scale: 1.2;
    }
}

.map__item button[aria-expanded="true"] {
    scale: 1.2;
}

.map__item-title--big {
    transform: translateY(12px);
}

.map__item-title--dot {
    transform: translateY(1px);
}

.map__prevent-hover {
    position: absolute;
    right: 0;
    top: 0;
    width: calc(100% - 40px);
    height: 23px;
    z-index: 100;

    @media only screen and (min-width: 1000px) {
        width: calc(100% - 48px);
    }
}

.map__item button:hover ~ .map__prevent-hover {
    @media only screen and (min-width: 1000px) {
        scale: 1.2;
    }
}

#map-1 svg,
#map-3 svg,
#map-5 svg,
#map-7 svg {
    animation: move-up var(--building-animation) infinite ease-in-out;
    transform-origin: 50% 50%;
}

#map-2 svg,
#map-4 svg,
#map-6 svg {
    animation: move-down var(--building-animation) infinite ease-in-out;
    transform-origin: 50% 50%;
}

#map-1 {
    top: 16%;
    left: 30%;
    z-index: 8;

    @media only screen and (min-width: 400px) {
        top: 16%;
        left: 32%;
    }

    @media only screen and (min-width: 600px) {
        top: 16%;
        left: 36%;
    }

    @media only screen and (min-width: 1000px) {
        top: 11%;
        left: 41%;
    }
}

#map-2 {
    top: 25%;
    left: 31%;
    z-index: 7;

    @media only screen and (min-width: 400px) {
        top: 25%;
        left: 33%;
    }

    @media only screen and (min-width: 600px) {
        top: 25%;
        left: 37%;
    }

    @media only screen and (min-width: 1000px) {
        top: 20%;
        left: 42%;
    }
}

#map-3 {
    top: 31.3%;
    left: 20.5%;
    z-index: 6;

    @media only screen and (min-width: 400px) {
        top: 31.3%;
        left: 22.5%;
    }

    @media only screen and (min-width: 600px) {
        top: 31.3%;
        left: 26.5%;
    }

    @media only screen and (min-width: 1000px) {
        top: 25.5%;
        left: 37.5%;
    }
}

#map-4 {
    top: 40%;
    left: 27.5%;
    z-index: 5;

    @media only screen and (min-width: 400px) {
        top: 40%;
        left: 29.5%;
    }

    @media only screen and (min-width: 600px) {
        top: 40%;
        left: 33.5%;
    }

    @media only screen and (min-width: 1000px) {
        top: 32%;
        left: 40.5%;
    }
}

#map-5 {
    top: 44%;
    left: 13%;
    z-index: 4;

    @media only screen and (min-width: 400px) {
        top: 44%;
        left: 15%;
    }

    @media only screen and (min-width: 600px) {
        top: 44%;
        left: 19%;
    }

    @media only screen and (min-width: 1000px) {
        top: 36%;
        left: 28%;
    }
}

#map-6 {
    top: 54%;
    left: 23.2%;
    z-index: 3;

    @media only screen and (min-width: 400px) {
        top: 54%;
        left: 25.2%;
    }

    @media only screen and (min-width: 600px) {
        top: 54%;
        left: 29.2%;
    }

    @media only screen and (min-width: 1000px) {
        top: 43%;
        left: 36%;
    }
}

#map-7 {
    top: 63%;
    left: 33.5%;
    z-index: 2;

    @media only screen and (min-width: 400px) {
        top: 63%;
        left: 35.5%;
    }

    @media only screen and (min-width: 600px) {
        top: 63%;
        left: 39.5%;
    }

    @media only screen and (min-width: 1000px) {
        top: 52%;
        left: 45%;
    }
}

#map-8 {
    top: 73.3%;
    left: 45%;
    z-index: 4;

    @media only screen and (min-width: 400px) {
        top: 73.3%;
        left: 47%;
    }

    @media only screen and (min-width: 600px) {
        top: 73.3%;
        left: 51%;
    }

    @media only screen and (min-width: 1000px) {
        top: 62.3%;
        left: 53%;
    }
}

.info__item-text {
    position: fixed;
    background-color: white;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 31px 27px 35px;
    border-radius: 3px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--blend-in) ease-in-out,
        visibility var(--blend-in) ease-in-out;
    box-shadow: 3px 3px 4px 0 rgba(0, 0, 0, 0.25);
    width: auto;
    hyphens: auto;
    z-index: 10;

    @media only screen and (min-width: 1450px) {
        position: absolute;
        padding: 36px 35px 35px;
        max-width: 483px;
        top: 65px;
        bottom: unset;
        left: unset;
        right: -5%;
    }

    /* @media only screen and (min-width: 1350px) {
        right: -10%;
    }

    @media only screen and (min-width: 1350px) {
        right: -20%;
    } */

    @media only screen and (min-width: 1650px) {
        right: -30%;
    }
}

.info__item-text-wrapper {
    max-height: 164px;
    overflow-y: scroll;
    scrollbar-gutter: stable both-edges;

    @media only screen and (min-width: 1000px) {
        max-height: 273px;
    }
}

.info__item-text button {
    position: absolute;
    right: 20px;
    top: 20px;
    border: none;
    background: url("assets/icons/x-icon.svg");
    background-repeat: no-repeat;
    display: block;
    height: 18px;
    width: 18px;
    cursor: pointer;
}

.info__item-text button[hidden] {
    background: unset;
}

.info__item-text-title {
    display: inline-block;
    font-size: 17px;
    font-weight: 700;
    border: 1px solid black;
    border-radius: 15px;
    margin: 0 23px 7px 0;
    padding: 0 11px 2px;

    @media only screen and (min-width: 1000px) {
        font-size: 22px;
    }
}

.info__item-text-info--wrapper {
    display: flex;
    gap: 9px;
    font-size: 17px;

    @media only screen and (min-width: 1000px) {
        gap: 11px;
        font-size: 22px;
    }
}

.info__item-icon {
    display: block;
    width: 19px;
    height: 19px;
    flex-shrink: 0;

    @media only screen and (min-width: 1000px) {
        width: 26px;
        height: 26px;
    }
}

.info__item-icon--top {
    background: url("assets/icons/check-icon.svg");
    background-repeat: no-repeat;
    background-size: contain;
}

.info__item-icon--bottom {
    background: url("assets/icons/s-icon.svg");
    background-repeat: no-repeat;
    background-size: contain;
}

.info__item-text-info--1 {
    margin-bottom: 10px;
}

.info__item-text-info--2 {
    font-weight: 700;
}

.info__item-text.is-visible {
    @media only screen and (min-width: 1450px) {
        opacity: 1;
        visibility: visible;
    }
}

.info__item-text.is-clicked {
    opacity: 1;
    visibility: visible;
}

@keyframes move-windows-right {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(2deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes move-windows-left {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-2deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes move-up {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes move-down {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(3px);
    }

    100% {
        transform: translateY(0);
    }
}
