.gallery_v2 {
    --gallery-v2-gap: 24px;
    --gallery-v2-border: #D9D9D9;
    --gallery-v2-muted: #616161;
    --gallery-v2-text: #0A0A0A;
    --gallery-v2-accent: #FF6600;
    font-family: EvrazSans, system-ui, sans-serif;
}

.gallery_v2__counter {
    margin-bottom: 0;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    line-height: 26px;
    letter-spacing: 0;
    leading-trim: cap-height;
    color: var(--gallery-v2-text);
}

.gallery_v2__list-toolbar .gallery_v2__counter.gallery_count {
    font-size: 20px;
    line-height: 26px;
    padding-top: 32px;
}

.gallery_v2__list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.gallery_v2__map-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 48px;
    border: none;
    border-radius: 0;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0;
    leading-trim: cap-height;
    text-align: center;
    background: none;
    cursor: pointer;
    position: relative;
    margin-top: 32px;
    padding: 11px 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.gallery_v2__map-toggle span.openmap,
.gallery_v2__map-toggle span.hidemap {
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 26px;
}

.gallery_v2__map-toggle span.openmap {
    display: none;
}

.gallery_v2__map-toggle.is-collapsed span.openmap {
    display: inline-flex;
}

.gallery_v2__map-toggle span.hidemap {
    display: inline-flex;
}

.gallery_v2__map-toggle.is-collapsed span.hidemap {
    display: none;
}

.gallery_v2__map-toggle span.openmap:before,
.gallery_v2__map-toggle span.hidemap:before {
    content: "";
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-image: url(/local/include/gallery_v2/img/collapse.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.section--gallery h1.gallery_v2__page-title {
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 900;
    font-style: normal;
    font-size: 40px;
    line-height: 20px;
    letter-spacing: 1%;
    leading-trim: cap-height;
    margin: 0;
    margin-bottom: 0;
    padding-top: 32px;
    padding-bottom: 42px;
    color: var(--gallery-v2-text);
    text-align: left;
}

.gallery_v2__map-shell {
    margin-bottom: var(--gallery-v2-gap);
}

.gallery_v2__map-shell.is-collapsed {
    display: none !important;
}

#gallery_v2_map.callback__map-map {
    height: 450px !important;
}

@media (min-width: 768px) {
    #gallery_v2_map.callback__map-map {
        height: 450px !important;
    }
}

@media (max-width: 991.5px) {
    .gallery_v2__map-shell.map_gallery {
        display: none;
        padding-top: 32px;
        padding-bottom: 32px;
        min-height: 400px;
    }

    #gallery_v2_map.callback__map-map {
        height: calc(100vh - 120px) !important;
        min-height: 400px;
    }
}

.gallery_v2 .gallery_v2__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-bottom: var(--gallery-v2-gap);
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.gallery_v2__grid[hidden] {
    display: none !important;
}

.gallery_v2__grid-item {
    margin: 0;
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 0;
}

.gallery_v2__card {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    background: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 12px;
    padding: 24px;
    box-shadow: none;
    transition: box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.gallery_v2__card.is-liked {
    box-shadow: 0 5px 35px 0 #00000033;
}

.gallery_v2__card.is-liked .gallery_v2__callback-text {
    color: #FF6600;
}

.gallery_v2__card.is-liked .gallery_v2__btn {
    background: #999999;
    color: #FFFFFF;
    border-color: #999999;
}

.gallery_v2__card-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery_v2__card-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.gallery_v2__card-title {
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: var(--evraz-weight-medium, 500);
    font-style: normal;
    font-size: 20px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: normal;
    color: #2C2C2C;
    margin: 0;
    min-height: 52px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery_v2__card-title-link {
    text-decoration: none;
    color: #2C2C2C;
    background: none;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.gallery_v2__card-title-link:hover,
.gallery_v2__card-title-link:focus,
.gallery_v2__card-title-link:focus-visible,
.gallery_v2__card-title-link:active,
.gallery_v2__card-title-link:visited {
    color: #2C2C2C;
    text-decoration: none;
    background: none;
    outline: none;
    box-shadow: none;
    opacity: 1;
}

.gallery_v2__card-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.gallery_v2__card-montage {
    display: inline-flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
}

.gallery_v2__card-montage-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
}

.gallery_v2__card-montage-text {
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: normal;
    color: #2C2C2C;
    display: inline-flex;
    align-items: center;
}

.gallery_v2__card-props {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 24px;
    row-gap: 0;
    align-content: end;
    align-items: center;
    height: 73px;
    min-height: 73px;
    max-height: 73px;
    padding: 0;
    overflow: hidden;
}

.gallery_v2__card-prop-label {
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: normal;
    color: #999999;
}

.gallery_v2__card-prop-value {
    min-width: 0;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: normal;
    color: #2C2C2C;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery_v2__card-actions {
    margin-top: auto;
    padding: 0;
    min-height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.gallery_v2__prop-row {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    align-self: stretch;
}

.gallery_v2__card-props .gallery_v2__prop-row {
    margin-top: 0;
}

.gallery_v2__prop-row--wide {
    align-items: flex-start;
}

.gallery_v2__prop-row-label,
.gallery_v2__prop-row-value {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gallery_v2__prop-row-label {
    color: var(--gallery-v2-muted);
    padding-right: 4px;
}

.gallery_v2__prop-row-value {
    color: var(--gallery-v2-text);
    padding-left: 4px;
    text-align: right;
}

.gallery_v2__prop-row--wide .gallery_v2__prop-row-label {
    flex: 3;
}

.gallery_v2__prop-row--wide .gallery_v2__prop-row-value {
    flex: 7;
    text-align: left;
}

.gallery_v2__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto;
    height: 44px;
    border: 1px solid #424242;
    border-width: 1px;
    border-radius: 3px;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: normal;
    background: #FFFFFF;
    color: #2C2C2C;
    padding: 0 24px;
    cursor: pointer;
}

.gallery_v2__callback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.gallery_v2__callback-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
}

.gallery_v2__callback-text {
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: normal;
    color: #2C2C2C;
    display: inline-flex;
    align-items: center;
}

.gallery_v2.gallery_v2__detail {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 24px;
}

.gallery_v2__detail-bottom {
    display: flex;
    flex-direction: column;
    gap: 64px;
    width: 100%;
    margin-top: 64px;
}

.gallery_v2__detail-bottom .gallery_v2__detail-form-section,
.gallery_v2__detail-bottom .gallery_v2__detail-map-section,
.gallery_v2__detail-bottom .gallery_v2__configurations {
    margin-top: 0;
}

/* Примеры конфигураций (карточки каталога kartochki-zdanij) */
.gallery_v2__configurations {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    min-width: 0;
}

.gallery_v2__configurations-title {
    margin: 0;
    padding: 0;
    text-align: left;
    text-transform: none !important;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 28px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: 0;
    color: #2C2C2C;
}

.gallery_v2__configurations.building--list .gallery-list_block {
    margin: 0;
}

.gallery_v2__configurations-track {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    margin: 0;
}

.gallery_v2__configurations-track::-webkit-scrollbar {
    height: 6px;
}

.gallery_v2__configurations-track::-webkit-scrollbar-thumb {
    background: #d9d9d9;
    border-radius: 3px;
}

.gallery_v2__configurations-item {
    flex: 0 0 420px;
    width: 420px;
    max-width: 420px;
    min-width: 0;
    scroll-snap-align: start;
}

.gallery_v2__configurations.building--list .gallery-item-wrap {
    position: relative;
    margin-bottom: 0;
    width: 100%;
}

.gallery_v2__configurations.building--list .gallery-item-wrap:hover {
    position: relative;
    z-index: auto;
    width: 100%;
}

.gallery_v2__configurations.building--list .gallery-list {
    border: 1px solid #F5F5F5;
    border-radius: 4px;
    padding: 20px;
    background-color: #fff;
    margin-bottom: 0;
    height: 100%;
    box-sizing: border-box;
}

.gallery_v2__configurations.building--list .gallery-list__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    white-space: normal;
    min-height: 48px;
    max-height: 48px;
    padding: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.4px;
    color: #0A0A0A;
}

.gallery_v2__configurations.building--list .gallery-list-properties,
.gallery_v2__configurations.building--list .gallery-list-more-properties {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    margin-top: 25px;
}

.gallery_v2__configurations.building--list .gallery-list-more-properties {
    display: flex;
    border-top: 1px solid #EDEDED;
    padding-top: 19px;
}

.gallery_v2__configurations.building--list .gallery-list-properties .prop-item,
.gallery_v2__configurations.building--list .gallery-list-more-properties .prop-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    align-self: stretch;
    width: 100%;
}

.gallery_v2__configurations.building--list .prop-item-sep {
    flex-grow: 1;
    border-bottom: 1px dashed #EDEDED;
    height: 1px;
    margin-bottom: 1px;
}

.gallery_v2__configurations.building--list .prop-item-title,
.gallery_v2__configurations.building--list .prop-value {
    font-size: 14px;
    line-height: 10px;
    letter-spacing: 0.14px;
}

.gallery_v2__configurations.building--list .prop-item-title {
    color: #616161;
}

.gallery_v2__configurations.building--list .prop-value {
    color: #0A0A0A;
    padding-left: 4px;
}

.gallery_v2__configurations.building--list .gallery-list-price {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.gallery_v2__configurations.building--list .price-building-value {
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    color: #0A0A0A;
}

.gallery_v2__configurations.building--list .price-building-value--old {
    color: #616161;
    text-decoration: line-through;
    font-size: 16px;
}

.gallery_v2__configurations.building--list .price-building-square-value {
    color: #616161;
    font-size: 14px;
    line-height: 20px;
}

.gallery_v2__configurations.building--list .detail-button {
    width: 100%;
}

.gallery_v2__configurations.building--list .detail-button a {
    text-decoration: none;
    display: flex;
    padding: 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    border-radius: 4px;
    border: 1px solid #EE7717;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #EE7717;
}

.gallery_v2__configurations.building--list .detail-button a:hover {
    background-color: #FFF3EA;
}

.gallery_v2__configurations.building--list .img-wrapper-building-block {
    margin: 0 auto 20px;
    position: relative;
    width: 100%;
    height: 210px;
    padding-top: 0;
}

.gallery_v2__configurations.building--list .gallery_v2__configuration-images {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.gallery_v2__configurations.building--list .gallery_v2__configuration-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    object-fit: contain;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease-in-out;
}

.gallery_v2__configurations.building--list .gallery_v2__configuration-image._active {
    opacity: 1;
}

.gallery_v2__configurations.building--list .section-kartochki-zdanij-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    right: -1px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    z-index: 2;
}

.gallery_v2__configurations.building--list .section-kartochki-zdanij-wrapper__item {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    min-height: 100%;
    background-color: transparent;
    cursor: pointer;
}

.gallery_v2__configurations.building--list .section-kartochki-zdanij-wrapper__item-nav {
    display: block;
    position: relative;
    flex: 1 1 auto;
    width: calc(100% - 2px);
    min-height: 0;
    margin: 0 1px;
}

.gallery_v2__configurations.building--list .section-kartochki-zdanij-wrapper__item-nav:before {
    content: "";
    display: block;
    height: 2px;
    background-color: #cdcdcd;
    transition: background-color .2s ease-in-out;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.gallery_v2__configurations.building--list .section-kartochki-zdanij-wrapper__item._active .section-kartochki-zdanij-wrapper__item-nav:before {
    background-color: #FF6600;
}

.gallery_v2__configurations.building--list a {
    text-decoration: none;
    color: inherit;
}

.gallery_v2__detail-map-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.gallery_v2__detail-map-block {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.gallery_v2__detail-map-section-bottom {
    margin-bottom: 120px;
}

.gallery_v2__similar-projects {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    min-width: 0;
}

.gallery_v2__similar-projects-title {
    margin: 0;
    padding: 0;
    text-align: left;
    text-transform: none !important;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 28px;
    line-height: 26px;
    letter-spacing: 0;
    color: #2C2C2C;
}

.gallery_v2__similar-track {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.gallery_v2__similar-track::-webkit-scrollbar {
    height: 6px;
}

.gallery_v2__similar-track::-webkit-scrollbar-thumb {
    background: #d9d9d9;
    border-radius: 3px;
}

.gallery_v2__similar-item {
    flex: 0 0 308px;
    width: 308px;
    max-width: 308px;
    min-width: 0;
    scroll-snap-align: start;
    list-style: none;
}

.gallery_v2__similar-projects .gallery_v2__similar-balloon.esb-yandex-map__balloon {
    box-sizing: border-box;
    width: 100%;
    max-width: 308px;
    height: 100%;
    padding: 14px 16px;
    border: 1px solid #D9D9D9;
    border-radius: 12px;
    box-shadow: none;
    background: #FFFFFF;
}

.gallery_v2__similar-projects .gallery_v2__similar-balloon .esb-yandex-map__balloon-image {
    width: 276px;
    max-width: 100%;
    height: 140.93px;
    margin: 0;
    border-radius: 0;
    overflow: visible;
}

.gallery_v2__similar-projects .gallery_v2__similar-balloon .esb-yandex-map__balloon-image a {
    display: block;
    width: 276px;
    max-width: 100%;
    height: 140.93px;
}

.gallery_v2__similar-projects .gallery_v2__similar-balloon .esb-yandex-map__balloon-image img {
    width: 276px;
    max-width: 100%;
    height: 140.93px;
    object-fit: cover;
    border-radius: 0;
}

.gallery_v2__similar-projects .gallery_v2__similar-balloon .esb-yandex-map__balloon-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    color: #2C2C2C;
}

.gallery_v2__similar-projects .gallery_v2__similar-params {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.gallery_v2__similar-projects .gallery_v2__similar-param-dimensions.esb-yandex-map__balloon-param-value,
.gallery_v2__similar-projects .gallery_v2__similar-param-square.esb-yandex-map__balloon-param-value {
    display: block;
    -webkit-box-orient: unset;
    -webkit-line-clamp: unset;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.gallery_v2__similar-projects .gallery_v2__similar-param-location.esb-yandex-map__balloon-param-value {
    display: block;
    -webkit-box-orient: unset;
    -webkit-line-clamp: unset;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery_v2__similar-projects .gallery_v2__similar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    height: 40px;
    padding: 0 24px;
    border: 1px solid #424242;
    border-radius: 3px;
    align-self: flex-start;
    margin-top: 0;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: 0;
    color: #2C2C2C;
    background: #FFFFFF;
    text-decoration: none;
    text-transform: none;
}

.gallery_v2__similar-projects .gallery_v2__similar-btn:hover,
.gallery_v2__similar-projects .gallery_v2__similar-btn:focus {
    background: #FFFFFF;
    border-color: #424242;
    color: #2C2C2C;
    text-decoration: none;
}

.gallery_v2__detail-map-title {
    margin: 0;
    padding: 0;
    text-align: left;
    text-transform: none !important;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 28px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: 0;
    color: #2C2C2C;
}

.gallery_v2__detail-map-section .gallery_v2__detail-map-shell,
.gallery_v2__detail-map-section .esb-yandex-map {
    width: 100%;
}

.gallery_v2__detail-map-shell {
    margin-top: 0;
}

#gallery_v2_detail_map.gallery_v2__detail-map {
    width: 100% !important;
    height: 450px !important;
}

.gallery_v2__detail-hero {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.gallery_v2__title {
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 900;
    font-style: normal;
    font-size: 40px;
    leading-trim: cap-height;
    line-height: 20px;
    letter-spacing: 0.01em;
    color: #2C2C2C;
    margin-top: 36px;
}

.gallery_v2__subtitle {
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 40px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: 0.01em;
    color: #2C2C2C;
    margin: 0;
}

.gallery_v2__photo-viewer {
    display: flex;
    gap: 40px;
    margin-bottom: 24px;
}

.gallery_v2__photo-thumbs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 110px;
    flex-shrink: 0;
}

.gallery_v2__photo-thumb {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    width: 110px;
    height: 63px;
    flex-shrink: 0;
    overflow: hidden;
}

.gallery_v2__photo-thumb img {
    width: 110px;
    height: 63px;
    object-fit: cover;
    display: block;
}

.gallery_v2__photo-thumb--active {
    opacity: 1;
    outline: 1px solid var(--gallery-v2-accent);
}

.gallery_v2__photo-main {
    flex: 1;
    min-width: 0;
}

.gallery_v2__photo-main-img {
    width: 1000px;
    height: 600px;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

.gallery_v2__detail-layout {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.gallery_v2__detail-column {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.gallery_v2__props-panel {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.gallery_v2__content-blocks {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.gallery_v2__detail .gallery_v2__meta-summary,
.gallery_v2__detail .gallery_v2__props-group-items {
    display: grid;
    column-gap: 24px;
    align-items: start;
}

.gallery_v2__detail .gallery_v2__meta-summary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    row-gap: 24px;
}

.gallery_v2__detail .gallery_v2__props-group-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2px;
}

.gallery_v2__detail .gallery_v2__meta-summary .gallery_v2__prop-row,
.gallery_v2__detail .gallery_v2__props-group-items .gallery_v2__prop-row {
    display: contents;
    margin-top: 0;
}

.gallery_v2__detail .gallery_v2__prop-row-label,
.gallery_v2__detail .gallery_v2__prop-row-value {
    padding: 0;
    text-align: left;
    align-items: flex-start;
}

.gallery_v2__props-group {
    display: flex;
    flex-direction: column;
    gap: 32px;
    border-top: 1px solid var(--gallery-v2-border);
    padding-top: 32px;
}

.gallery_v2__section-title {
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 24px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: 0;
    color: #2C2C2C;
}

.gallery_v2__section-title--group {
    margin: 0;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: 0;
    color: #2C2C2C;
}

.gallery_v2__content-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gallery_v2__content-block.description-block {
    gap: 26px;
}

.gallery_v2__content-block.description-block:has(.gallery_v2__content-list) {
    gap: 32px;
}

.gallery_v2__content-block.description-block.review-block {
    gap: 26px;
}

.gallery_v2__review-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
    width: 649px;
    max-width: 100%;
    min-height: 228px;
    padding: 32px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #D9D9D9;
    opacity: 1;
}

.gallery_v2__review-card-layout {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.gallery_v2__review-card-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.gallery_v2__review-card-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.gallery_v2__review-video {
    flex-shrink: 0;
    box-sizing: border-box;
    width: 200px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background: #000000;
}

.gallery_v2__review-video-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.gallery_v2__review-author {
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: 0;
    color: #999999;
}

.gallery_v2 .gallery_v2__review-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 200px;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    margin: 0;
    padding: 0 24px;
    border: 1px solid #424242;
    border-radius: 3px;
    background: #FFFFFF;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
    color: #2C2C2C;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    overflow: hidden;
    vertical-align: top;
}

.gallery_v2 .gallery_v2__review-more-btn:hover,
.gallery_v2 .gallery_v2__review-more-btn:focus {
    color: #2C2C2C;
    background: #FFFFFF;
    border-color: #424242;
}

.gallery_v2__content-blocks .gallery_v2__section-title {
    margin: 0;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 24px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: 0;
    color: #2C2C2C;
}

.gallery_v2__content-text,
.gallery_v2__content-list {
    margin: 0;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: 0;
    color: #2C2C2C;
}

.gallery_v2__content-text.gallery_v2__review-author {
    color: #999999;
}

.gallery_v2__content-text p {
    margin: 0 0 16px;
}

.gallery_v2__content-text p:last-child {
    margin-bottom: 0;
}

.gallery_v2__content-list {
    padding-left: 24px;
    list-style: disc;
}

.gallery_v2__content-list li {
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
}

.gallery_v2__content-list li + li {
    margin-top: 8px;
}

.gallery_v2__content-list li p {
    margin: 0 0 16px;
}

.gallery_v2__content-list li p:last-child {
    margin-bottom: 0;
}

.gallery_v2 .gallery_v2__prop-row-label,
.gallery_v2 .gallery_v2__prop-row-value {
    background-color: transparent;
}

.gallery_v2__detail .gallery_v2__prop-row-label,
.gallery_v2__detail .gallery_v2__prop-row-value {
    background-color: transparent;
}

.gallery_v2 .gallery_v2__prop-row-label,
.gallery_v2 .gallery_v2__prop-row-value {
    font-size: 14px;
}

.gallery_v2__detail .gallery_v2__prop-row-label {
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    leading-trim: cap-height;
    line-height: 28px;
    letter-spacing: 0;
    color: #999999;
}

.gallery_v2__detail .gallery_v2__prop-row-value-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.gallery_v2__map-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    padding: 0;
    border: none;
    background: none;
    text-decoration: none;
    cursor: pointer;
}

.gallery_v2__map-link-icon {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.gallery_v2__map-link-text {
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    leading-trim: cap-height;
    line-height: 28px;
    letter-spacing: 0;
    color: #2C2C2C;
}

.gallery_v2__map-link:hover .gallery_v2__map-link-text,
.gallery_v2__map-link:focus .gallery_v2__map-link-text {
    color: #2C2C2C;
    text-decoration: underline;
}

.gallery_v2__detail .gallery_v2__prop-row-value {
    min-width: 0;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    leading-trim: cap-height;
    line-height: 28px;
    letter-spacing: 0;
    color: #2C2C2C;
}

@media (min-width: 768px) {
    .gallery_v2__detail-layout {
        flex-direction: row;
        gap: 36px;
    }

    .gallery_v2__detail-column {
        flex: 1;
    }

    .gallery_v2__card-actions {
        flex-direction: row;
    }
}

@media (max-width: 991.5px) {
    .gallery_v2 .gallery_v2__grid {
        grid-template-columns: 1fr;
    }

    .gallery_v2__photo-viewer {
        flex-direction: column;
    }

    .gallery_v2__photo-thumbs {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }

    .gallery_v2__photo-thumb {
        flex: 0 0 110px;
        width: 110px;
        height: 63px;
    }

    .gallery_v2__photo-main-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1000 / 600;
    }

    .gallery_v2__card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery_v2__callback {
        justify-content: center;
    }
}

.gallery_v2__filter-sidebar .bx-filter-block {
    height: auto !important;
    overflow: visible;
}

.gallery_v2__filter-sidebar .bx-filter-parameters-box {
    overflow: visible;
}

/* Detail feedback form (scoped overrides for calculation-building) */
.gallery_v2__detail-form-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.gallery_v2__detail-form-title {
    margin: 0;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 24px;
    line-height: 26px;
    letter-spacing: 0;
    color: #2C2C2C;
}

.gallery_v2__detail-form-section #building_calculation.section {
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.gallery_v2__detail-form-section .container-xxl,
.gallery_v2__detail-form-section .row,
.gallery_v2__detail-form-section .col-12 {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.gallery_v2__detail-form-section .section__title.section__title_h2 {
    display: none;
}

.gallery_v2__detail-form-section .calculation-building,
.gallery_v2__detail-form-section .calculation-building__wrapper {
    width: 100%;
    max-width: 100%;
}

.gallery_v2__detail-form-section .calculation-building__wrapper {
    box-sizing: border-box;
    padding: 32px;
    border: 1px solid var(--gallery-v2-border);
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: none;
}

.gallery_v2__detail-form-section .calculation-building__form {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.gallery_v2__detail-form-params,
.gallery_v2__detail-form-contacts,
.gallery_v2__detail-form-submit {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gallery_v2__detail-form-section .captcha-container {
    margin: 0;
}

.gallery_v2__detail-form-submit .calculation-building__footer {
    margin: 0;
}

.gallery_v2__detail-form-contacts .calculation-building__second-title,
.gallery_v2__detail-form-contacts .calculation-building__second {
    margin: 0;
}

.gallery_v2__detail-form-params .calculation-building__first-title {
    margin: 0;
}

.gallery_v2__detail-form-params .calculation-building__first {
    margin: 0;
}

.gallery_v2__detail-form-params .calculation-building__file {
    margin: 0;
}

.gallery_v2__detail-form-section .calculation-building__title {
    margin: 0;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 28px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: 0;
    color: #2C2C2C;
}

.gallery_v2__detail-form-section .calculation-building__first-title,
.gallery_v2__detail-form-section .calculation-building__second-title {
    margin: 0;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: 0;
    color: #2C2C2C;
}

.gallery_v2__detail-form-section .calculation-building__first {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 42px;
    margin: 0;
}

.gallery_v2__detail-form-section .calculation-building__first .form__line-icon--location {
    grid-column: span 2;
}

.gallery_v2__detail-form-section .calculation-building__second {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 42px;
    margin: 0;
}

.gallery_v2__detail-form-section .calculation-building__file {
    margin: 0;
}

.gallery_v2__detail-form-section .form__line {
    margin: 0;
}

.gallery_v2__detail-form-section .calculation-building__first .form__line.form__line-icon,
.gallery_v2__detail-form-section .calculation-building__second .form__line.form__line-icon {
    box-sizing: border-box;
    height: 42px;
    padding: 10px;
    border-bottom: 1px solid #D9D9D9;
}

.gallery_v2__detail-form-section .form__line-icon::before {
    display: none;
}

.gallery_v2__detail-form-section .calculation-building__first .form__line-icon label,
.gallery_v2__detail-form-section .calculation-building__second .form__line-icon label {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.gallery_v2__detail-form-section .form__line-icon input {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #2C2C2C;
    appearance: none;
    -webkit-appearance: none;
}

.gallery_v2__detail-form-section .form__line-icon input::placeholder {
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: 0;
    color: #999999;
    opacity: 1;
}

.gallery_v2__detail-form-section .gallery_v2__file-field {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
}

.gallery_v2__detail-form-section .calculation-building__file .gallery_v2__file-upload {
    display: block;
    flex: 0 0 auto;
    width: auto !important;
    max-width: none !important;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    text-align: left !important;
    color: #2C2C2C !important;
    cursor: pointer;
}

.gallery_v2__detail-form-section .calculation-building__file .gallery_v2__file-upload-inner {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center !important;
    gap: 8px;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0;
    background: none !important;
    background-image: none !important;
}

.gallery_v2__detail-form-section .calculation-building__file .gallery_v2__file-upload-icon {
    flex-shrink: 0;
    display: block;
    width: 24px;
    height: 24px;
    margin: 0;
}

.gallery_v2__detail-form-section .calculation-building__file .gallery_v2__file-upload-text {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0;
    background: none !important;
    background-image: none !important;
    white-space: nowrap;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: 0;
    color: #2C2C2C !important;
    text-decoration: underline;
    text-decoration-style: solid;
    text-underline-offset: 0;
    text-decoration-thickness: 1px;
}

.gallery_v2__detail-form-section .calculation-building__file .gallery_v2__file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.gallery_v2__detail-form-section .gallery_v2__file-status {
    flex: 0 1 auto;
    min-width: 0;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: 0;
    color: #999999 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery_v2__detail-form-section .form-body,
.gallery_v2__detail-form-section .form-body .licence_block,
.gallery_v2__detail-form-section .form-body .subscribe_block {
    margin: 0;
}

.gallery_v2__detail-form-section .licence_block input[type="checkbox"],
.gallery_v2__detail-form-section .subscribe_block input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 1px solid #cbcbcb !important;
    border-radius: 4px;
    background-color: #ffffff !important;
    background-image: none;
    box-shadow: inset 0 0 0 0 transparent;
    cursor: pointer;
    vertical-align: middle;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.gallery_v2__detail-form-section .licence_block input[type="checkbox"]:checked,
.gallery_v2__detail-form-section .subscribe_block input[type="checkbox"]:checked {
    border-color: #f57c00 !important;
    background-color: #f57c00 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' fill='none' viewBox='0 0 10 8'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.35' d='M1 3.89 3.364 6.254 9 1'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px auto;
    box-shadow: none;
}

.gallery_v2__detail-form-section .licence_block input[type="checkbox"]:focus-visible,
.gallery_v2__detail-form-section .subscribe_block input[type="checkbox"]:focus-visible {
    outline: 2px solid #f57c00;
    outline-offset: 2px;
}

.gallery_v2__detail-form-section .licence_block {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.gallery_v2__detail-form-section .subscribe_block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.gallery_v2__detail-form-section .licence_block label,
.gallery_v2__detail-form-section .subscribe_block label {
    margin: 0;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: 0;
    color: #2C2C2C !important;
}

.gallery_v2__detail-form-section .licence_block label a,
.gallery_v2__detail-form-section .subscribe_block label a {
    color: #2C2C2C;
    text-decoration: underline;
}

.gallery_v2__detail-form-section .subscribe_block {
    margin-top: 16px !important;
}

.gallery_v2__detail-form-section .calculation-building__footer {
    margin: 0;
    padding: 0;
}

.gallery_v2__detail-form-section .calculation-building__footer .btn.btn__main.btn__main-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    width: 200px;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    margin: 0;
    padding: 0 24px;
    border: 1px solid #424242;
    border-radius: 3px;
    background: #FFFFFF;
    font-family: EvrazSans, system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    leading-trim: cap-height;
    line-height: 26px;
    letter-spacing: 0;
    text-transform: none !important;
    color: #2C2C2C !important;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.gallery_v2__detail-form-section .calculation-building__footer .btn.btn__main.btn__main-primary::before,
.gallery_v2__detail-form-section .calculation-building__footer .btn.btn__main.btn__main-primary i {
    display: none;
}

.gallery_v2__detail-form-section .calculation-building__footer .btn.btn__main.btn__main-primary:hover,
.gallery_v2__detail-form-section .calculation-building__footer .btn.btn__main.btn__main-primary:focus {
    background: #FFFFFF;
    border-color: #424242;
    text-transform: none !important;
    color: #2C2C2C !important;
}

.gallery_v2__detail-form-section .form__result.form__ajax-result {
    margin: 0;
    font-family: EvrazSans, system-ui, sans-serif;
    font-size: 16px;
    line-height: 26px;
    color: #2C2C2C;
}

@media (max-width: 991.5px) {
    .gallery_v2__detail-form-section .calculation-building__first,
    .gallery_v2__detail-form-section .calculation-building__second {
        grid-template-columns: 1fr;
    }

    .gallery_v2__detail-form-section .calculation-building__first .form__line-icon--location {
        grid-column: span 1;
    }

    .gallery_v2__detail-form-section .calculation-building__wrapper {
        padding: 24px 20px;
    }

    .gallery_v2__similar-item {
        flex: 0 0 min(308px, calc(100vw - 48px));
        width: min(308px, calc(100vw - 48px));
        max-width: min(308px, calc(100vw - 48px));
    }
}

/* gallery_test: фильтры и формы — EvrazSans (перебивает custom.css / bx-filter) */
.section--gallery .filter_btn,
.section--gallery .filter_btn__text,
.section--gallery .filterSearch,
.section--gallery .filter-search input,
.section--gallery .show-list_gallery,
.section--gallery .show-map_gallery,
.section--gallery .filtertitle,
.section--gallery .gallery_tags,
.section--gallery .gallery_tag,
.section--gallery .gallery_clear-tag,
.section--gallery .mobile_filter_tags,
.section--gallery #modef,
.section--gallery #modef a,
.section--gallery .gallery_v2__filter-btn,
.section--gallery .gallery_v2__filter-tags,
.gallery_v2__filter-sidebar,
.gallery_v2__filter-sidebar .bx-filter,
.gallery_v2__filter-sidebar .show-more_filter,
.gallery_v2__filter-sidebar .bx-filter-parameters-box-title span,
.gallery_v2__filter-sidebar .bx-filter-param-text,
.gallery_v2__filter-sidebar .filter-search input,
.gallery_v2__filter-sidebar .bx-filter-input-container input,
.gallery_v2__filter-sidebar .bx-left .bx-filter-input-container:before,
.gallery_v2__filter-sidebar .bx-right .bx-filter-input-container:before,
.gallery_v2__filter-offcanvas .filtertitle {
    font-family: EvrazSans, system-ui, sans-serif;
}

.gallery_v2__detail-form-section .calculation-building,
.gallery_v2__detail-form-section .calculation-building input,
.gallery_v2__detail-form-section .calculation-building textarea,
.gallery_v2__detail-form-section .calculation-building select,
.gallery_v2__detail-form-section .calculation-building button,
.gallery_v2__detail-form-section .calculation-building label,
.gallery_v2__detail-form-section .calculation-building .form__body,
.gallery_v2__detail-form-section .form-body,
.gallery_v2__detail-form-section .form__footer,
.gallery_v2__detail-form-section .form__result {
    font-family: EvrazSans, system-ui, sans-serif !important;
}

body:has(.section--gallery) [data-popup="callback2"] .popup__box-title,
body:has(.section--gallery) [data-popup="callback2"] .popup__box-description,
body:has(.section--gallery) [data-popup="callback2"] input,
body:has(.section--gallery) [data-popup="callback2"] label,
body:has(.section--gallery) [data-popup="callback2"] button,
body:has(.section--gallery) [data-popup="callback2"] .form__line {
    font-family: EvrazSans, system-ui, sans-serif !important;
}