.pergoly-page .klassicheskie-hero__background {
    background-image: url("../images/hero-pergoly-hq.webp");
    background-position: center 48%;
}

.pergoly-page .klassicheskie-hero__background::after {
    background: linear-gradient(90deg, rgba(39, 31, 25, .78) 0%, rgba(56, 45, 36, .62) 48%, rgba(56, 45, 36, .26) 100%);
}

.pergoly-page .klassicheskie-hero__content {
    width: min(850px, 72%);
}

.pergoly-page .klassicheskie-hero h1 {
    max-width: 850px;
    font-size: clamp(46px, 5vw, 70px);
}

.pergoly-page #pergoly-types {
    scroll-margin-top: 120px;
}

.pergoly-page .pergoly-stats {
    padding: 36px 0 10px;
    background: #f6f5f3;
}

.pergoly-page .pergoly-stats .landing-trust {
    padding-bottom: 24px;
}

.pergoly-page .pergoly-stats .landing-trust__item:last-child {
    grid-column: auto;
}

.pergoly-page .pergoly-quiz .quiz {
    padding-top: 48px;
    padding-bottom: 76px;
}

.pergoly-page .pergoly-quiz .quiz-header {
    height: auto;
    margin-bottom: 22px;
}

.pergoly-page .klassicheskie-type__media {
    height: 320px;
}

.pergoly-page .pergoly-type__media--contain {
    padding: 22px;
    background: #eee7de;
}

.pergoly-page .pergoly-type__media--contain img {
    object-fit: contain;
}

.pergoly-page .klassicheskie-type {
    border: 0;
    box-shadow: 0 16px 46px rgba(61, 46, 33, .07);
}

.pergoly-page .klassicheskie-type__actions {
    grid-template-columns: 1fr;
}

.pergoly-page #pergoly-types .klassicheskie-type__actions button {
    border: 1px solid #ddd6ce;
    background: #fff;
    color: #282624;
    box-shadow: none;
}

@media (hover: hover) {
    .pergoly-page #pergoly-types .klassicheskie-type__actions button:hover {
        border-color: #b2773e;
        color: #8f5d2e;
        background: #fff;
    }
}

.pergoly-page .klassicheskie-audience {
    background: #2f2c29;
}

.pergoly-page .pergoly-task-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.pergoly-page .pergoly-task-grid article {
    min-height: 0;
    padding: 32px;
    border-radius: 28px;
    background: #45413d;
}

.pergoly-page .pergoly-task-grid h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 29px;
    font-weight: 600;
    line-height: 1.08;
}

.pergoly-page .pergoly-task-grid p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 16px;
    line-height: 1.55;
}

.pergoly-page .index-portfolio-card__image img {
    object-position: center center;
}

.pergoly-page .klassicheskie-comparison__card--accent {
    background: #e8d8c5;
}

.pergoly-page .klassicheskie-control {
    background: #665b52;
}

.pergoly-page .klassicheskie-control__grid article {
    min-height: 0;
}

.pergoly-page .klassicheskie-control__grid h3 {
    margin-top: 0;
}

.pergoly-page .klassicheskie-faq__list summary {
    display: block;
    list-style: none;
}

.pergoly-page .klassicheskie-faq__list summary::marker {
    content: "";
}

.pergoly-page .klassicheskie-faq__list summary::-webkit-details-marker {
    display: none;
}

.pergoly-page .pergoly-estimate {
    padding: 96px 0;
    background: #f4f1ed;
}

.pergoly-page .pergoly-estimate__card {
    padding: clamp(32px, 5vw, 72px);
    border-radius: 34px;
    background: #e8dccd;
}

.pergoly-page .pergoly-estimate__card h2 {
    max-width: 820px;
    margin: 0 0 20px;
    color: #242220;
    font-size: clamp(42px, 5vw, 70px);
    font-weight: 600;
    line-height: 1;
}

.pergoly-page .pergoly-estimate__card > div:first-child > p {
    max-width: 680px;
    margin: 0;
    color: #716b65;
    font-size: 19px;
    line-height: 1.5;
}

.pergoly-page .pergoly-estimate__factors {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 44px 0 34px;
}

.pergoly-page .pergoly-estimate__factors article {
    min-height: 0;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .62);
}

.pergoly-page .pergoly-estimate__factors h3 {
    margin: 0 0 10px;
    color: #302d2a;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
}

.pergoly-page .pergoly-estimate__factors p {
    margin: 0;
    color: #716b65;
    font-size: 15px;
    line-height: 1.45;
}

.pergoly-page .landing-block--steps .how-we-work__step-item {
    border: 0;
    border-radius: 26px;
    background: rgba(255, 255, 255, .08);
    padding: 28px;
    max-width: none;
}

.pergoly-page .landing-block--steps .how-we-work__step-title,
.pergoly-page .landing-block--steps .how-we-work__step-description,
.pergoly-page .landing-block--steps .how-we-work__title {
    color: #fff;
}

.pergoly-page .landing-block--steps.how-we-work {
    min-height: 0;
    padding: 78px 0 64px;
}

.pergoly-page .landing-block--steps .how-we-work__steps-grid {
    gap: 18px;
    max-width: 1400px;
    margin-bottom: 44px;
}

.pergoly-page .landing-block--steps .how-we-work__step-content {
    gap: 12px;
}

.pergoly-page .landing-block--steps .how-we-work__step-title,
.pergoly-page .landing-block--steps .how-we-work__step-description,
.pergoly-page .landing-block--steps .how-we-work__step-description p {
    margin: 0;
}

@media (max-width: 1100px) {
    .pergoly-page .pergoly-task-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pergoly-page .pergoly-task-grid article:last-child {
        grid-column: 1 / -1;
    }

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

@media (max-width: 700px) {
    .pergoly-page .klassicheskie-hero__background {
        background-position: 58% center;
    }

    .pergoly-page .klassicheskie-hero__content {
        width: 100%;
    }

    .pergoly-page .klassicheskie-hero h1 {
        font-size: 37px;
    }

    .pergoly-page .pergoly-stats {
        padding-top: 24px;
    }

    .pergoly-page .pergoly-quiz .quiz {
        padding-top: 32px;
        padding-bottom: 52px;
    }

    .pergoly-page .pergoly-task-grid,
    .pergoly-page .pergoly-estimate__factors {
        grid-template-columns: 1fr;
    }

    .pergoly-page .pergoly-task-grid article:last-child {
        grid-column: auto;
    }

    .pergoly-page .pergoly-task-grid article {
        min-height: 0;
        padding: 28px;
        border-radius: 24px;
    }

    .pergoly-page .pergoly-task-grid h3 {
        font-size: 26px;
    }

    .pergoly-page .klassicheskie-type__media {
        height: 250px;
    }

    .pergoly-page .klassicheskie-production__visual img {
        aspect-ratio: 16 / 10;
    }

    .pergoly-page .klassicheskie-production__caption {
        position: absolute;
        border-radius: 16px;
    }

    .pergoly-page .pergoly-estimate {
        padding: 64px 0;
    }

    .pergoly-page .pergoly-estimate__card {
        border-radius: 26px;
    }

    .pergoly-page .pergoly-estimate__card h2 {
        font-size: 40px;
    }

    .pergoly-page .pergoly-estimate__factors article {
        min-height: 0;
        padding: 20px;
    }

    .pergoly-page .landing-block--steps.how-we-work {
        padding: 58px 0 48px;
    }

    .pergoly-page .landing-block--steps .how-we-work__title {
        margin-bottom: 30px;
        text-align: left;
    }

    .pergoly-page .landing-block--steps .how-we-work__steps-grid {
        align-items: stretch;
        gap: 14px;
        padding: 0 20px;
    }

    .pergoly-page .landing-block--steps .how-we-work__step-item {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: 16px;
        padding: 22px;
        text-align: left;
    }

    .pergoly-page .landing-block--steps .how-we-work__step-number {
        margin: 0;
    }

    .pergoly-page .landing-block--steps .how-we-work__step-content {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .pergoly-page .klassicheskie-hero h1 {
        font-size: 33px;
    }
}
