.page-markizy-pergoly {
    --mp-ink: #25221f;
    --mp-muted: #77716b;
    --mp-warm: #b97835;
    --mp-sand: #eee0cf;
    --mp-paper: #f7f5f2;
    overflow: hidden;
    color: var(--mp-ink);
    background: var(--mp-paper);
}

.page-markizy-pergoly .container {
    width: min(100% - 48px, 1440px);
    margin-inline: auto;
}

.page-markizy-pergoly section:not(.mp-hero):not(.mp-stats) {
    scroll-margin-top: 120px;
}

.mp-quiz {
    padding: 40px 0;
    background: var(--mp-paper);
}

.mp-quiz .quiz--landing {
    padding-top: 0;
    padding-bottom: 0;
}

.mp-hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    color: #fff;
    background: #403b35;
}

.mp-hero__background,
.mp-hero__overlay {
    position: absolute;
    inset: 0;
}

.mp-hero__background {
    z-index: -2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.mp-hero__background img {
    width: 100%;
    height: 100%;
    min-width: 0;
    object-fit: cover;
}

.mp-hero__background img:first-child {
    object-position: 52% 45%;
}

.mp-hero__background img:nth-child(2) {
    object-position: 50% 52%;
}

.mp-hero__overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(28, 25, 22, .86) 0%, rgba(28, 25, 22, .66) 48%, rgba(28, 25, 22, .24) 78%, rgba(28, 25, 22, .42) 100%),
        linear-gradient(0deg, rgba(28, 25, 22, .52), transparent 60%);
}

.mp-hero__inner {
    padding-top: 180px;
    padding-bottom: 72px;
}

.mp-hero__content {
    max-width: 900px;
}

.mp-hero .breadcrumbs {
    margin-bottom: 44px;
}

.mp-hero .breadcrumbs__link,
.mp-hero .breadcrumbs__current {
    color: rgba(255, 255, 255, .8);
}

.mp-hero__cities,
.mp-hero__facts,
.mp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.mp-hero__cities {
    margin-bottom: 20px;
}

.mp-hero__cities span {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    background: rgba(37, 34, 31, .24);
    backdrop-filter: blur(12px);
    font-size: 15px;
}

.mp-hero h1 {
    max-width: 880px;
    margin: 0;
    color: #fff;
    font-size: clamp(50px, 5.1vw, 78px);
    font-weight: 650;
    line-height: .98;
    letter-spacing: -.045em;
}

.mp-hero__content > p {
    max-width: 730px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(19px, 1.45vw, 24px);
    line-height: 1.45;
}

.mp-hero__facts {
    margin-top: 24px;
    color: rgba(255, 255, 255, .86);
    font-size: 16px;
}

.mp-hero__facts span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mp-hero__facts span::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e4b476;
    content: "";
}

.mp-hero__actions {
    margin-top: 34px;
}

.mp-hero .btn-dark,
.mp-hero .btn-glass,
.mp-product .btn-dark {
    min-height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border: 0;
    border-radius: 18px;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

.mp-hero .btn-dark {
    color: #25221f;
    background: #fff;
}

.mp-hero .btn-glass {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(12px);
}

.mp-hero__phone {
    display: inline-block;
    margin-top: 26px;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
}

.mp-stats {
    position: relative;
    z-index: 3;
}

.mp-stats .landing-trust {
    padding-top: 40px;
}

.mp-heading {
    max-width: 920px;
    margin-bottom: 28px;
}

.mp-heading h2,
.mp-product__copy h2,
.mp-contacts h2 {
    margin: 0;
    font-size: clamp(38px, 4.3vw, 64px);
    font-weight: 650;
    line-height: 1.03;
    letter-spacing: -.04em;
}

.mp-heading p,
.mp-product__copy > p {
    margin: 16px 0 0;
    color: var(--mp-muted);
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.5;
}

.mp-heading--light h2,
.mp-heading--light p {
    color: #fff;
}

.mp-heading--light p {
    color: rgba(255, 255, 255, .68);
}

.mp-solutions.catalog {
    padding-block: 40px;
    background: var(--mp-paper);
}

.mp-solutions .catalog__header {
    max-width: 920px;
    margin-inline: auto;
    margin-bottom: 28px;
    text-align: center;
}

.mp-solutions .catalog__title {
    font-size: clamp(40px, 4.5vw, 68px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.mp-solutions .catalog__subtitle {
    max-width: 820px;
    margin: 16px auto 0;
}

.mp-solutions__grid.catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.mp-solution-card.catalog-item {
    min-width: 0;
    border-radius: 32px;
    overflow: hidden;
    background: #fff;
    color: var(--mp-ink);
}

.mp-solution-card .catalog-item__image {
    height: 390px;
}

.mp-solution-card .catalog-item__content {
    padding: 26px 28px 28px;
}

.mp-solution-card__label,
.mp-eyebrow,
.mp-scenarios article > span,
.mp-contacts article > span {
    display: block;
    margin-bottom: 10px;
    color: var(--mp-warm);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mp-solution-card__action {
    display: inline-block;
    margin-top: 18px;
    color: var(--mp-warm);
    font-size: 16px;
    font-weight: 650;
}

.mp-scenarios {
    background: #2e2b28;
    color: #fff;
}

.mp-scenarios__grid,
.mp-advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.mp-scenarios article,
.mp-advantages article {
    min-height: 220px;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .08);
}

.mp-scenarios h3,
.mp-advantages h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 1.8vw, 29px);
    line-height: 1.12;
}

.mp-scenarios article p,
.mp-advantages article p {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: 16px;
    line-height: 1.48;
}

.mp-product {
    background: var(--mp-paper);
}

.mp-product--accent {
    background: #eee6dc;
}

.mp-product__grid {
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    align-items: center;
    gap: clamp(34px, 6vw, 92px);
}

.mp-product__grid--reverse {
    grid-template-columns: 1.14fr .86fr;
}

.mp-product__grid--reverse .mp-product__copy {
    order: 2;
}

.mp-product__copy ul {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.mp-product__copy li {
    position: relative;
    padding-left: 22px;
    color: #5f5953;
    font-size: 17px;
    line-height: 1.4;
}

.mp-product__copy li::before {
    position: absolute;
    top: .62em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mp-warm);
    content: "";
}

.mp-product__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 30px;
}

.mp-product .btn-dark {
    min-width: 230px;
    color: #fff;
    background: var(--mp-ink);
}

.mp-product__actions a {
    color: var(--mp-ink);
    font-weight: 650;
}

.mp-product__media {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 34px;
    background: #d9d2ca;
}

.mp-product__media > img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.mp-product__caption {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-radius: 20px;
    color: #fff;
    background: rgba(37, 34, 31, .82);
    backdrop-filter: blur(10px);
}

.mp-product__caption strong {
    color: #efbd7c;
    font-size: 19px;
    white-space: nowrap;
}

.mp-product__caption span {
    color: rgba(255, 255, 255, .75);
}

.mp-choice {
    padding: 40px 0;
    background: #fff;
}

.mp-choice__layout {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    align-items: start;
    gap: clamp(34px, 6vw, 92px);
}

.mp-choice .mp-heading {
    max-width: 560px;
}

.mp-choice__content {
    display: grid;
    gap: 16px;
}

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

.mp-choice__grid article {
    padding: clamp(26px, 3vw, 40px);
    border-radius: 30px;
    background: var(--mp-paper);
}

.mp-choice__grid h3 {
    margin: 0;
    font-size: clamp(24px, 2vw, 30px);
    line-height: 1.15;
}

.mp-choice__grid p,
.mp-choice__note {
    color: var(--mp-muted);
    font-size: 16px;
    line-height: 1.55;
}

.mp-choice__grid p {
    margin: 18px 0 0;
}

.mp-choice__note {
    margin: 0;
    padding: 24px 28px;
    border-radius: 24px;
    background: var(--mp-sand);
}

.mp-advantages {
    position: relative;
    isolation: isolate;
    color: #fff;
    background: #38332f;
}

.mp-advantages__background {
    position: absolute;
    z-index: -2;
    inset: 0;
}

.mp-advantages__background::after {
    position: absolute;
    inset: 0;
    background: rgba(35, 31, 28, .84);
    content: "";
}

.mp-advantages__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-advantages article {
    min-height: 190px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
}

.mp-portfolio.index-portfolio {
    padding-block: 40px;
    background: var(--mp-paper);
}

.page-markizy-pergoly .mp-portfolio .index-portfolio__header {
    margin-bottom: 20px;
    text-align: left;
}

.page-markizy-pergoly .mp-portfolio .index-portfolio__title {
    font-size: clamp(42px, 4.7vw, 70px);
    line-height: 1;
    letter-spacing: -.045em;
}

.mp-portfolio__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.mp-portfolio__filters button {
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    color: var(--mp-ink);
    background: #e9e4de;
    font: inherit;
    cursor: pointer;
}

.mp-portfolio__filters button.is-active {
    color: #fff;
    background: var(--mp-ink);
}

.mp-portfolio__filters button:disabled {
    opacity: .48;
    cursor: not-allowed;
}

.mp-portfolio__note {
    margin: 0 0 24px;
    color: var(--mp-muted);
    font-size: 14px;
}

.page-markizy-pergoly .mp-portfolio__grid.index-portfolio__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.page-markizy-pergoly .mp-portfolio .index-portfolio-card {
    min-width: 0;
    border-radius: 28px;
}

.page-markizy-pergoly .mp-portfolio .index-portfolio-card__image {
    height: 340px;
}

.page-markizy-pergoly .mp-portfolio .index-portfolio-card__content {
    padding: 20px 22px 24px;
}

.mp-portfolio__empty {
    padding: 28px;
    border-radius: 22px;
    color: var(--mp-muted);
    background: #fff;
}

.page-markizy-pergoly .how-we-work {
    padding-block: 40px;
}

.page-markizy-pergoly .how-we-work__title {
    font-size: clamp(40px, 4.4vw, 66px);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.mp-contacts {
    background: #eadac7;
}

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

.mp-contacts article {
    min-height: 250px;
    padding: 34px;
    border-radius: 30px;
    color: #fff;
    background: var(--mp-ink);
}

.mp-contacts article h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(25px, 2.2vw, 34px);
}

.mp-contacts article p {
    max-width: 520px;
    margin: 18px 0;
    color: rgba(255, 255, 255, .7);
    font-size: 18px;
    line-height: 1.45;
}

.mp-contacts article a {
    color: #fff;
    font-size: 23px;
    font-weight: 650;
    text-decoration: none;
}

.page-markizy-pergoly .mp-faq .klassicheskie-faq__list summary::after,
.page-markizy-pergoly .mp-faq .klassicheskie-faq__list summary::marker {
    display: none;
    content: "";
}

.page-markizy-pergoly .mp-faq .klassicheskie-faq__list details {
    border-radius: 24px;
}

.mp-lead {
    background: #2e2b28;
}

.mp-lead .landing-calculation__grid {
    align-items: start;
}

.mp-lead .landing-calculation__intro h2,
.mp-lead .landing-calculation__description,
.mp-lead__contacts,
.mp-lead__contacts a,
.mp-lead__contacts p {
    color: #fff;
}

.mp-lead__contacts {
    margin-top: 28px;
}

.mp-lead__contacts > div + div {
    margin-top: 18px;
}

.mp-lead__contacts span {
    display: block;
    margin-bottom: 6px;
    color: #dfae71;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mp-lead__contacts a,
.mp-lead__contacts p {
    margin: 0;
    font-size: 19px;
    text-decoration: none;
}

.mp-lead .landing-calculation__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mp-lead .landing-calculation__consent,
.mp-lead .landing-calculation__message,
.mp-lead .btn-white {
    grid-column: 1 / -1;
}

@media (max-width: 1120px) {
    .mp-scenarios__grid,
    .mp-advantages__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-markizy-pergoly .mp-portfolio__grid.index-portfolio__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mp-product__grid,
    .mp-product__grid--reverse {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .mp-choice__layout {
        grid-template-columns: .8fr 1.2fr;
        gap: 36px;
    }
}

@media (max-width: 800px) {
    .page-markizy-pergoly .container {
        width: min(100% - 28px, 1440px);
    }

    .mp-hero {
        min-height: 680px;
    }

    .mp-hero__background {
        grid-template-columns: 1fr;
    }

    .mp-hero__background img:nth-child(2) {
        display: none;
    }

    .mp-hero__overlay {
        background: linear-gradient(90deg, rgba(27, 24, 22, .87), rgba(27, 24, 22, .43));
    }

    .mp-hero__inner {
        padding-top: 150px;
        padding-bottom: 52px;
    }

    .mp-hero .breadcrumbs {
        margin-bottom: 32px;
    }

    .mp-solutions__grid.catalog__grid,
    .mp-product__grid,
    .mp-product__grid--reverse,
    .mp-choice__layout,
    .mp-choice__grid,
    .mp-contacts__grid,
    .mp-lead .landing-calculation__form {
        grid-template-columns: 1fr;
    }

    .mp-product__grid--reverse .mp-product__copy {
        order: initial;
    }

    .mp-product__media,
    .mp-product__media > img {
        min-height: 390px;
    }

    .mp-product__media {
        order: -1;
    }

    .mp-product__caption {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .mp-lead .landing-calculation__consent,
    .mp-lead .landing-calculation__message,
    .mp-lead .btn-white {
        grid-column: auto;
    }
}

@media (max-width: 580px) {
    .mp-hero h1 {
        font-size: 44px;
    }

    .mp-hero__content > p {
        font-size: 18px;
    }

    .mp-hero__actions > * {
        width: 100%;
    }

    .mp-solutions .catalog__title,
    .mp-heading h2,
    .mp-product__copy h2,
    .mp-contacts h2,
    .page-markizy-pergoly .mp-portfolio .index-portfolio__title,
    .page-markizy-pergoly .how-we-work__title {
        font-size: 38px;
    }

    .mp-solution-card .catalog-item__image {
        height: 280px;
    }

    .mp-scenarios__grid,
    .mp-advantages__grid,
    .page-markizy-pergoly .mp-portfolio__grid.index-portfolio__grid {
        grid-template-columns: 1fr;
    }

    .mp-scenarios article,
    .mp-advantages article {
        min-height: 0;
        padding: 24px;
    }

    .mp-product__media,
    .mp-product__media > img {
        min-height: 320px;
    }

    .page-markizy-pergoly .mp-portfolio .index-portfolio-card__image {
        height: 310px;
    }

    .mp-contacts article {
        min-height: 0;
        padding: 26px;
    }
}
