/* ASM General */
.h1-marginBot {
    margin-bottom: 44px;
}

/* ASM Buttons */
.asm-button {
    padding: 21px 27px;
    font-size: 20px;
}
.asm-button .button_inner {
    gap: 12px;
}
.asm-button svg {
    transition: .2s;
}
.asm-button:hover svg[fill="#F08400"] {
    fill: #005D9F;
}
.asm-button.button_orange:hover {
    background-color: #005D9F;
    border-color: #005D9F;
    color: #FFFFFF;
}

/* ASM Top Page */
.asm-hero .top-page-img {
    height: 720px;
    padding: 60px 0;
}
.asm-hero .top-page-img-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}
.asm-hero .top-page-img .content-block {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
}

.asm-hero-mob {
    display: none;
}

/* ASM Materials */
.asm-materials__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin: 40px 0 0 0;
}

.asm-materials__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.asm-materials__item-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.asm-materials__item-spoiler {
    display: none;
    padding: 16px 0 0 0;
}

.asm-materials__item-spoiler > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: .2s;
}

.asm-materials__item-spoiler ul {
    list-style: disc;
    padding-left: 27px;
}

.asm-materials__item-plate {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px 20px;
    background-color: #EBF3FF;
}

.asm-materials__item-plate h3 {
    white-space: nowrap;
}

.asm-materials__item-plate h3 span {
    text-transform: lowercase;
    font-weight: 700;
}

.asm-materials__item-plate p {
    flex: 1;
}

.asm-materials__item-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 16px;
}

.asm-materials__item.open .js-asm-materials-spoiler svg {
    transform: rotate(180deg);
}

/* ASM Objects */
.asm-objects {
    display: flex;
    flex-direction: column;
    padding: 60px 0;
    background-color: #EBF3FF;
    /* clip-path: inset(0); */
    clip-path: none;
    min-height: 940px;
    scroll-margin: 0;
}

body.fixed-menu .asm-objects {
    scroll-margin: 92px;
}

.asm-objects > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.asm-objects__content {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: stretch;
}
.asm-objects__left {
    position: relative;
    z-index: 1;
}
.asm-objects__right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.asm-objects__left > h2 {
    display: none;
}

.asm-objects__map-wrapper {
    position: sticky;
    top: 40px;
    height: 820px;
}

body.fixed-menu .asm-objects__map-wrapper {
    top: 120px;
}

.asm-objects__map {
    position: absolute;
    top: 0;
    right: 0;
    /* width: 1448px; */
    width: 75vw;
    max-width: 1448px;
    min-width: 0;
    height: auto;
}
.asm-objects__svg {
    display: block;
    width: 100%;
    height: auto;
}

.asm-region {
    fill: #005D9F;
    transition: fill .2s, opacity .2s;
}
.asm-region[data-region-code] {
    cursor: pointer;
}
.asm-region.is-active {
    fill: #F08400;
    opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
    .asm-region.is-hovered {
        opacity: 0.8;
    }
    .asm-region.is-active.is-hovered {
        fill: #F08400;
        opacity: 1;
    }
}

.asm-pin {
    pointer-events: none;
    user-select: none;
}
.asm-pin__circle {
    fill: #F08400;
    stroke: transparent;
    stroke-width: 4;
    transition: fill .2s, stroke .2s;
}
.asm-pin__count {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    fill: #FFFFFF;
    transition: fill .2s;
}

.asm-pin.is-hovered .asm-pin__circle {
    stroke: #FFFFFF;
}

.asm-pin.is-active .asm-pin__circle {
    fill: #FFFFFF;
    stroke: #005D9F;
}
.asm-pin.is-active .asm-pin__count {
    fill: #F08400;
}

.asm-objects__hint {
    position: absolute;
    z-index: 2;
    transform: translate(0, calc(-100% - var(--asm-hint-pin-offset, 48px)));
    padding: 4px 12px;
    background: #FFFFFF;
    color: #787F91;
    font-size: 16px;
    line-height: 1.25;
    white-space: nowrap;
    pointer-events: none;
}
.asm-objects__hint.is-mirrored {
    transform: translate(-100%, calc(-100% - var(--asm-hint-pin-offset, 48px)));
}
.asm-objects__hint::after {
    content: "";
    position: absolute;
    left: 0;
    top: calc(100% - 1px);
    width: 14px;
    height: 14px;
    background: #FFFFFF;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}
.asm-objects__hint.is-mirrored::after {
    left: auto;
    right: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.asm-objects__hint-name {
    font-weight: 700;
}

.asm-objects__filter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.asm-objects__filter .select-without-name {
    width: 100%;
    margin-bottom: 0;
}

.asm-objects__filter .select-without-name:nth-child(1) {
    z-index: 2 !important;
}
.asm-objects__filter .select-without-name:nth-child(2) {
    z-index: 1 !important;
}

.asm-objects__filter .select-without-name__select {
    width: 100%;
    margin: 0;
}

.asm-objects__filter .select-without-name__select li.disabled {
    background-color: transparent;
    color: #AAAAAA;
}

.asm-objects__filter .jq-selectbox__select {
    width: 100%;
}

.asm-objects__filter select {
    opacity: 0;
}

.asm-objects__filter .button {
    grid-column: 1 / -1;
    text-align: center;
    z-index: 0;
}

.asm-objects__filter-result {
    display: none;
    grid-column: 1 / -1;
    justify-content: space-between;
    color: #000000;
    font-size: 18px;
    line-height: 1.33;
}

.asm-objects__filter-reset {
    display: none;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    color: #000000;
    transition: opacity .2s;
}
@media (hover: hover) and (pointer: fine) {
    .asm-objects__filter-reset:hover {
        opacity: 0.5;
    }
}

.asm-objects__item {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding: 16px 20px;
    background-color: #FFFFFF !important;
    cursor: pointer;
}

.asm-objects__item-station {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color .2s;
    gap: 16px;
}

.asm-objects__item-station svg {
    flex-shrink: 0;
    transition: transform .2s;
}

@media (hover: hover) and (pointer: fine) {
    .asm-objects__item:hover .asm-objects__item-station {
        color: #F08400;
    }
    .asm-objects__item:hover .asm-objects__item-station svg {
        transform: translateX(8px);
    }
}

.asm-objects__item-price {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.asm-objects__item-price-item {
    display: flex;
    gap: 8px;
    font-weight: 700;
    line-height: 1.6;
}

.asm-objects__item-price-item span:last-child {
    padding: 0 8px;
    background-color: #F08400;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.77;
}

.asm-objects__numbers {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.asm-objects__numbers-item {
    width: calc((100% - 60px) / 2);
}

.asm-objects__numbers-item span {
    display: block;
}

.asm-objects__numbers-item span:first-child {
    font-size: 144px;
    font-weight: 700;
    line-height: 1.1;
}

.asm-objects__detail {
    position: relative;
    display: none;
    padding: 40px;
    background-color: #FFFFFF;
}

.asm-objects__detail-close {
    position: absolute;
    top: 40px;
    right: 40px;
    display: block;
    width: 32px;
    height: 32px;
}

.asm-objects__detail-title {
    padding-right: 48px;
    hyphens: auto;
}

.asm-objects__detail-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
}

.asm-objects__detail-section {
    margin-top: 30px;
}

.asm-objects__detail-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding: 16px 20px;
    background-color: #EBF3FF;
}

.asm-objects__detail-price span:last-child {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.33;
}

.asm-objects__detail-shipments {
    margin-top: 48px;
}

.asm-objects__detail-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.asm-objects__detail .spoiler {
    margin-top: 30px;
}

/* ASM Projects */
.asm-projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin: 40px 0 0 0;
}

.asm-projects__item h5 {
    margin-top: 8px;
}
.asm-projects__item h5:first-of-type {
    margin-top: 16px;
}

@media (max-width: 1599px) {
    .asm-objects__map {
        width: 85vw;
    }
}

@media (max-width: 1439px) {
    .asm-objects__numbers-item span:first-child {
        font-size: 120px;
    }
    .asm-objects__numbers-item span:last-child {
        font-size: 24px;
        line-height: 1.33;
    }
}

@media (max-width: 1365px) {
    .asm-objects__map {
        width: 95vw;
    }
}

@media (max-width: 1279px) {
    .asm-hero .top-page-img {
        height: 540px;
    }
    .asm-hero .top-page-img-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .asm-projects {
        gap: 30px;
    }

    .asm-materials__list {
        gap: 30px;
    }

    .asm-objects {
        min-height: auto;
        padding: 40px 0;
    }
    .asm-objects__content {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .asm-objects__left > h2 {
        display: block;
    }
    .asm-objects__right {
        margin-top: 60px;
        scroll-margin: 60px;
    }
    body.fixed-menu .asm-objects__right {
        scroll-margin: 152px;
    }
    .asm-objects__map-wrapper {
        position: static;
        height: auto;
    }
    .asm-objects__map {
        position: relative;
        top: auto;
        left: auto;
        width: 85%;
    }
    .asm-objects__list > h2 {
        display: none;
    }

    .asm-objects__numbers {
        margin-top: 60px;
    }
}

@media (max-width: 1023px) {
    .ash-slug-materials .button {
        padding: 16px 20px;
        font-size: 17px;
    }

    .asm-hero .top-page-img-content {
        display: none;
    }
    .asm-hero-mob {
        display: block;
        margin-bottom: -40px;
    }

    body.fixed-menu .asm-objects {
        scroll-margin: 70px;
    }
    body.fixed-menu .asm-objects__right {
        scroll-margin: 130px;
    }

    .asm-materials__list {
        grid-template-columns: 1fr;
    }
    .asm-materials__item {
        flex-direction: row;
    }
    .asm-materials__item img {
        width: calc((100% - (16px * 2)) / 3);
    }
}

@media (max-width: 767px) {
    .asm-projects {
        grid-template-columns: 1fr;
        gap: 60px;
        margin: 30px 0 0 0;
    }
    .asm-objects__right {
        margin-top: 30px;
    }
    body.fixed-menu .asm-objects__right {
        scroll-margin: 100px;
    }
    .asm-objects__hint {
        font-size: 14px;
    }
    .asm-objects__filter {
        grid-template-columns: 1fr;
    }
    .asm-objects__filter-result {
        font-size: 16px;
    }
    .asm-objects__numbers {
        gap: 30px;
        margin-top: 30px;
    }
    .asm-objects__numbers-item {
        width: auto;
    }
    .asm-objects__numbers-item span:first-child {
        font-size: 80px;
    }
    .asm-objects__numbers-item span:last-child {
        font-size: 20px;
    }
    .asm-objects__item-price-item span:last-child {
        font-size: 14px;
    }
    .asm-objects__detail {
        padding: 20px;
    }
    .asm-objects__detail-close {
        top: 20px;
        right: 20px;
    }
    .asm-objects__detail-subtitle {
        font-size: 16px;
    }
    .asm-objects__detail-section {
        margin-top: 20px;
    }
    .asm-objects__detail-price {
        padding: 10px 12px;
    }
    .asm-objects__detail-price span:last-child {
        font-size: 20px;
    }
    .asm-objects__detail-shipments {
        margin-top: 24px;
    }
    
    .asm-materials__list {
        gap: 60px;
    }
    .asm-materials__item {
        flex-direction: column;
    }
    .asm-materials__item img {
        width: 100%;
    }

    .asm-objects__map {
        width: 200%;
        transform: translateX(-50%);
    }
}
