.mramor-page {
    --mramor-ink: #17191a;
    --mramor-muted: #5d6669;
    --mramor-line: #d6dcde;
    --mramor-soft: #f3f5f5;
    --mramor-red: #93443f;
    --mramor-green: #476b58;
    color: var(--mramor-ink);
    overflow: hidden;
}

@media (min-width: 576px) and (max-width: 767.98px) {
    main.main.container,
    main.main.container-sm {
        max-width: 100%;
    }
}

.mramor-page *,
.mramor-page *::before,
.mramor-page *::after {
    box-sizing: border-box;
    letter-spacing: 0;
}

.mramor-page h1,
.mramor-page h2,
.mramor-page p,
.mramor-page figure,
.mramor-page ul {
    margin: 0;
}

.mramor-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.mramor-section {
    padding: 38px 0;
}

.mramor-section h2 {
    margin-bottom: 20px;
    color: var(--mramor-ink);
    font-size: 34px;
    line-height: 1.16;
    text-align: center;
}

.mramor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 216px;
    min-height: 58px;
    padding: 14px 24px;
    border: 1px solid var(--mramor-red);
    border-radius: 4px;
    background: var(--mramor-red);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.mramor-page a.mramor-button,
.mramor-page a.mramor-button:link,
.mramor-page a.mramor-button:visited,
.mramor-page a.mramor-button:active {
    color: #fff !important;
    text-decoration: none !important;
}

.mramor-button:hover,
.mramor-button:focus-visible {
    border-color: #71312d;
    background: #71312d;
    color: #fff;
}

.mramor-button--outline {
    background: #fff;
    color: var(--mramor-red);
}

.mramor-page a.mramor-button--outline,
.mramor-page a.mramor-button--outline:link,
.mramor-page a.mramor-button--outline:visited {
    color: var(--mramor-red) !important;
}

.mramor-page a.mramor-button--outline:hover,
.mramor-page a.mramor-button--outline:focus-visible,
.mramor-page a.mramor-button--outline:active {
    color: #fff !important;
}

.mramor-icon {
    display: inline-grid;
    flex: none;
    place-items: center;
    color: var(--mramor-ink);
    line-height: 1;
}

.mramor-icon > svg,
.mramor-icon > img,
.mramor-icon > i {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mramor-icon > img {
    flex: none;
}

.mramor-icon--hero {
    width: 34px;
    height: 34px;
}

.mramor-icon--feature {
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
}

.mramor-icon--consultation {
    width: 38px;
    height: 38px;
    color: var(--mramor-red);
}

.mramor-icon--benefit {
    position: absolute;
    top: 25px;
    left: 20px;
    width: 28px;
    height: 28px;
    color: var(--mramor-green);
}

.mramor-icon--product {
    width: 17px;
    height: 17px;
    color: currentColor;
}

.mramor-hero {
    min-height: 510px;
    display: flex;
    align-items: center;
    padding: 44px 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .99) 0%, rgba(255, 255, 255, .94) 36%, rgba(255, 255, 255, .38) 66%, rgba(255, 255, 255, .08) 100%),
        url("img/hero_back.webp") calc(50% + clamp(220px, 20vw, 380px)) center / cover no-repeat;
}

.mramor-hero__content {
    max-width: 670px;
}

.mramor-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 16px;
    padding: 7px 16px;
    border-radius: 4px;
    background: #b59663;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.mramor-hero h1 {
    max-width: 640px;
    margin-bottom: 15px;
    color: #121314;
    font-size: 45px;
    font-weight: 700;
    line-height: 1.08;
}

.mramor-hero p {
    max-width: 470px;
    margin-bottom: 23px;
    color: #303638;
    font-size: 18px;
    line-height: 1.42;
}

.mramor-hero__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: min(100%, 760px);
    padding: 0;
    list-style: none;
}

.mramor-hero .mramor-button {
    margin-top: 42px;
}

.mramor-hero__facts li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    min-height: 48px;
    padding: 2px 6px 2px 0;
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.mramor-slab img,
.mramor-color img,
.mramor-application-grid img {
    display: block;
    max-width: 100%;
}

.mramor-construction__layout {
    display: grid;
    grid-template-columns: minmax(480px, 1.08fr) minmax(330px, .92fr);
    gap: 34px;
    align-items: center;
}

.mramor-construction__visual {
    position: relative;
    min-height: 286px;
    display: flex;
    align-items: flex-start;
}

.mramor-slab {
    position: relative;
    width: min(61%, 390px);
    padding: 18px 18px 24px;
    border-radius: 0;
    background: transparent;
}

.mramor-slab img {
    width: 100%;
    filter: drop-shadow(0 16px 15px rgba(23, 25, 26, .18));
    mix-blend-mode: multiply;
}

.mramor-slab__pin {
    position: absolute;
    z-index: 1;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--mramor-red);
    box-shadow: 0 0 0 1px rgba(23, 25, 26, .26);
    transform: translateY(-50%);
}

.mramor-slab__pin--top {
    top: 68px;
    right: 48%;
}

.mramor-slab__pin--base {
    top: 192px;
    right: 22%;
}

.mramor-layer {
    position: absolute;
    right: 0;
    width: 40%;
    padding-left: 60px;
    font-size: 13px;
}

.mramor-layer::before {
    position: absolute;
    top: 14px;
    left: -31%;
    width: calc(31% + 60px);
    border-top: 1px solid #737a7d;
    content: "";
}

.mramor-layer--top {
    top: 54px;
}

.mramor-layer--top::before {
    left: -61%;
    width: calc(61% + 60px);
}

.mramor-layer--base {
    top: 178px;
}

.mramor-layer strong,
.mramor-feature strong,
.mramor-benefit strong {
    color: var(--mramor-ink);
}

.mramor-layer strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.25;
}

.mramor-layer span,
.mramor-feature > span:not(.mramor-icon),
.mramor-benefit > span:not(.mramor-icon) {
    color: var(--mramor-muted);
    line-height: 1.45;
}

.mramor-construction__copy h2 {
    margin-bottom: 17px;
    text-align: left;
}

.mramor-construction__copy p {
    margin-bottom: 18px;
    color: var(--mramor-muted);
    font-size: 16px;
    line-height: 1.55;
}

.mramor-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--mramor-line);
    border-radius: 6px;
    background: var(--mramor-soft);
}

.mramor-feature {
    position: relative;
    min-height: 118px;
    padding: 18px 12px 14px;
    border: 0;
    border-left: 1px solid var(--mramor-line);
    background: transparent;
    text-align: center;
}

.mramor-feature:first-child {
    border-left: 0;
}

.mramor-feature strong,
.mramor-feature > span:not(.mramor-icon),
.mramor-benefit strong,
.mramor-benefit > span:not(.mramor-icon) {
    display: block;
}

.mramor-feature strong {
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.25;
}

.mramor-feature > span:not(.mramor-icon) {
    font-size: 12px;
}

.mramor-macro__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.mramor-macro__item {
    min-width: 0;
    text-align: center;
}

.mramor-macro__preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(23, 25, 26, .12);
    border-radius: 6px;
    background: #fff;
    cursor: zoom-in;
}

.mramor-macro__preview > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.mramor-macro__preview:hover > img {
    transform: scale(1.025);
}

.mramor-macro__preview:focus-visible {
    outline: 3px solid rgba(147, 68, 63, .35);
    outline-offset: 3px;
}

.mramor-macro__item figcaption {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.mramor-macro__zoom {
    position: absolute;
    right: 9px;
    bottom: 9px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--mramor-ink);
    box-shadow: 0 2px 10px rgba(23, 25, 26, .2);
    pointer-events: none;
}

.mramor-macro__zoom svg {
    width: 17px;
    height: 17px;
}

.mramor-macro__lens {
    position: absolute;
    z-index: 2;
    width: 126px;
    height: 126px;
    display: none;
    border: 3px solid #fff;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-size: 360%;
    box-shadow: 0 6px 24px rgba(23, 25, 26, .3);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

@media (hover: hover) and (pointer: fine) {
    .mramor-macro__preview:hover .mramor-macro__lens {
        display: block;
    }
}

.mramor-lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 52px 72px 44px;
    overflow: hidden;
    border: 0;
    background: rgba(15, 16, 17, .96);
    color: #fff;
}

.mramor-lightbox[open] {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.mramor-lightbox::backdrop {
    background: rgba(15, 16, 17, .96);
}

.mramor-lightbox__figure {
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 14px;
    place-items: center;
}

.mramor-lightbox__figure img {
    width: min(100%, 1000px);
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.mramor-lightbox__figure figcaption {
    font-size: 16px;
    font-weight: 600;
}

.mramor-lightbox__close,
.mramor-lightbox__nav {
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
}

.mramor-lightbox__close:hover,
.mramor-lightbox__close:focus-visible,
.mramor-lightbox__nav:hover,
.mramor-lightbox__nav:focus-visible {
    background: rgba(255, 255, 255, .24);
    outline: none;
}

.mramor-lightbox__close {
    position: fixed;
    z-index: 2;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
}

.mramor-lightbox__nav {
    width: 48px;
    height: 48px;
}

.mramor-lightbox__nav svg,
.mramor-lightbox__close svg {
    width: 24px;
    height: 24px;
}

.mramor-lightbox__nav--prev {
    grid-column: 1;
    grid-row: 1;
}

.mramor-lightbox__figure {
    grid-column: 2;
    grid-row: 1;
}

.mramor-lightbox__nav--next {
    grid-column: 3;
    grid-row: 1;
}

.mramor-lightbox__count {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.mramor-lightbox-open {
    overflow: hidden;
}

.mramor-colors {
    padding-top: 20px;
}

.mramor-color-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.mramor-color {
    min-width: 0;
    text-align: center;
}

.mramor-color img {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 9px;
    border: 1px solid rgba(23, 25, 26, .08);
    border-radius: 6px;
    background: #fff;
    object-fit: cover;
}

.mramor-color figcaption {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.mramor-products {
    padding-top: 22px;
}

.mramor-products .mramor-products__lead {
    width: 100%;
    max-width: none;
    margin: -7px 0 24px;
    color: var(--mramor-muted);
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.mramor-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}

.mramor-product {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--mramor-line);
    border-radius: 8px;
    background: #fff;
}

.mramor-product__image {
    position: relative;
    aspect-ratio: 1.42;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 7px;
    background: #fff;
}

.mramor-product__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

.mramor-product__image:hover img {
    transform: scale(1.035);
}

.mramor-product--coming-soon .mramor-product__image:hover img {
    transform: none;
}

.mramor-product--coming-soon .mramor-product__image img {
    filter: blur(8px);
}

.mramor-product__badge {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    border-radius: 4px;
    background: var(--mramor-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.mramor-product h3 {
    margin: 0 0 12px;
    color: var(--mramor-ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.mramor-product h3 a,
.mramor-product__link {
    color: inherit;
    text-decoration: none;
}

.mramor-product h3 a:hover,
.mramor-product__link:hover,
.mramor-product h3 a:focus-visible,
.mramor-product__link:focus-visible {
    color: var(--mramor-red);
}

.mramor-product__sizes {
    min-height: 66px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-content: flex-start;
    margin-bottom: 14px;
}

.mramor-product__sizes span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid rgba(147, 68, 63, .22);
    border-radius: 4px;
    background: #f8f3f2;
    color: #71312d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.mramor-product__description {
    min-height: 42px;
    margin: 0 0 18px;
    color: var(--mramor-muted);
    font-size: 14px;
    line-height: 1.5;
}

.mramor-product__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: auto;
    color: var(--mramor-red);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.mramor-product__coming-soon {
    display: inline-flex;
    width: fit-content;
    margin-top: auto;
    color: var(--mramor-muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.mramor-applications {
    padding-top: 24px;
}

.mramor-applications h2 {
    text-align: left;
}

.mramor-application-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.mramor-application-grid figure {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #d7dad8;
}

.mramor-application-grid img {
    width: 100%;
    aspect-ratio: 1.42;
    object-fit: cover;
    transition: transform .3s ease;
}

.mramor-application-grid figure:hover img {
    transform: scale(1.08);
}

.mramor-application-grid figcaption {
    position: absolute;
    z-index: 1;
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.18;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, .95),
        0 2px 6px rgba(0, 0, 0, .75);
    -webkit-text-stroke: .25px rgba(0, 0, 0, .7);
}

.mramor-consultation {
    padding: 16px 0;
}

.mramor-consultation__layout {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 22px 28px;
    border: 1px solid var(--mramor-line);
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f7f5, #fff);
    box-shadow: 0 10px 28px rgba(23, 25, 26, .04);
}

.mramor-consultation__icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 2px solid var(--mramor-red);
    border-radius: 50%;
}

.mramor-consultation h2 {
    margin-bottom: 8px;
    font-size: 25px;
    text-align: left;
}

.mramor-consultation p {
    color: var(--mramor-muted);
    font-size: 15px;
    line-height: 1.45;
}

.mramor-benefits {
    padding: 18px 0 54px;
}

.mramor-benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--mramor-line);
    border-radius: 8px;
    overflow: hidden;
}

.mramor-benefit {
    position: relative;
    min-height: 104px;
    padding: 22px 18px 20px 62px;
    background: #fff;
}

.mramor-benefit + .mramor-benefit {
    border-left: 1px solid var(--mramor-line);
}

.mramor-benefit strong {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.28;
}

.mramor-benefit > span:not(.mramor-icon) {
    font-size: 13px;
}

@media (max-width: 1100px) {
    .mramor-hero {
        min-height: 0;
    }

    .mramor-construction__layout {
        grid-template-columns: 1fr;
    }

    .mramor-construction__visual {
        width: min(100%, 720px);
        min-height: 0;
        margin: 0 auto;
    }

    .mramor-color-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mramor-macro__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mramor-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mramor-application-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mramor-benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mramor-benefit:nth-child(3),
    .mramor-benefit:nth-child(4) {
        border-top: 1px solid var(--mramor-line);
    }

    .mramor-benefit:nth-child(3) {
        border-left: 0;
    }
}

@media (max-width: 760px) {
    .mramor-shell {
        width: min(100% - 28px, 560px);
    }

    .mramor-section {
        padding: 40px 0;
    }

    .mramor-section h2 {
        margin-bottom: 22px;
        font-size: 27px;
    }

    .mramor-hero {
        padding: 36px 0;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .9) 61%, rgba(255, 255, 255, .38) 100%),
            url("img/hero_back.webp") 62% center / cover no-repeat;
    }

    .mramor-kicker {
        margin-bottom: 16px;
        font-size: 13px;
    }

    .mramor-hero h1 {
        font-size: 32px;
        line-height: 1.12;
    }

    .mramor-hero p,
    .mramor-construction__copy p,
    .mramor-consultation p {
        font-size: 16px;
    }

    .mramor-hero__facts,
    .mramor-product-grid,
    .mramor-application-grid,
    .mramor-benefit-grid {
        grid-template-columns: 1fr;
    }

    .mramor-button {
        width: 100%;
    }

    .mramor-product__sizes,
    .mramor-product__description {
        min-height: 0;
    }

    .mramor-layer {
        position: static;
        width: auto;
        margin-top: 10px;
        padding: 13px 14px;
        border: 1px solid var(--mramor-line);
        border-radius: 6px;
        background: #fff;
    }

    .mramor-layer::before,
    .mramor-slab__pin {
        display: none;
    }

    .mramor-construction__visual {
        display: block;
    }

    .mramor-slab {
        width: 100%;
        padding: 0;
    }

    .mramor-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mramor-macro__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
    }

    .mramor-lightbox {
        padding: 58px 14px 24px;
    }

    .mramor-lightbox[open] {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 6px;
    }

    .mramor-lightbox__nav {
        width: 40px;
        height: 40px;
    }

    .mramor-feature {
        border-top: 1px solid var(--mramor-line);
    }

    .mramor-feature:nth-child(1),
    .mramor-feature:nth-child(2) {
        border-top: 0;
    }

    .mramor-feature:nth-child(odd) {
        border-left: 0;
    }

    .mramor-color-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .mramor-consultation__layout {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
    }

    .mramor-consultation__icon {
        margin: 0 auto;
    }

    .mramor-consultation h2 {
        font-size: 25px;
        text-align: center;
    }

    .mramor-benefit + .mramor-benefit,
    .mramor-benefit:nth-child(3),
    .mramor-benefit:nth-child(4) {
        border-top: 1px solid var(--mramor-line);
        border-left: 0;
    }
}

@media (max-width: 460px) {
    .mramor-feature-grid,
    .mramor-color-grid {
        grid-template-columns: 1fr;
    }

    .mramor-feature:nth-child(2) {
        border-top: 1px solid var(--mramor-line);
    }

    .mramor-feature {
        border-left: 0;
    }
}

.mramor-debug__panel {
    padding: 24px;
    border: 1px solid var(--mramor-line);
    border-radius: 6px;
    background: #fff;
}

.mramor-debug h2 {
    margin-bottom: 12px;
}

.mramor-debug p {
    margin-bottom: 16px;
    overflow-wrap: anywhere;
}

.mramor-debug pre {
    max-height: 70vh;
    margin: 0;
    padding: 16px;
    overflow: auto;
    border-radius: 6px;
    background: #f4f4f4;
    color: #202020;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-wrap;
}
