/*
Theme Name: Design
Theme URI: #
Author: #
Author URI: #
*/
:root {
    --page-width: 1920px;
    --content-width: 1440px;
    --page-min-height: 865px;
    --container-padding: 98px;
    --container-padding-wide: 130px;

    --color-bg: #303030;
    --color-text: #ffffff;
    --color-text-muted: #919191;
    --color-dark: #000000;
    --color-light: #ffffff;
    --color-overlay: rgba(51, 77, 74, 0.58);
    --color-accent: #ffd700;
    --color-orange: #FFA500;
    --color-button-bg: #ffffff;
    --color-button-text: #303030;

    --font-main: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-logo: "Montserrat Subrayada", var(--font-main);

    --font-size-nav: 25px;
    --font-size-title: 80px;
    --font-size-body: 20px;
    --font-size-button: 22px;
    --font-size-section-title: 40px;

    --line-height-title: 1.125;
    --line-height-body: 1.75;
    --line-height-nav: 1.219;
    --line-height-button: 1.5909;

    --header-height: 100px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 160ms ease;
}

a:hover {
    color: var(--color-accent);
}

a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.page {
    min-height: var(--page-min-height);
}

.header {
    height: var(--header-height);
    border-bottom: 2px solid var(--color-text);
}

.header__inner {
    width: min(var(--content-width), 100%);
    height: 100%;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: 100px;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
}

.header__burger-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.header__burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 2px solid var(--color-text);
    background: transparent;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header__burger-lines {
    position: relative;
    width: 22px;
    height: 2px;
    background: var(--color-text);
}

.header__burger-lines::before,
.header__burger-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--color-text);
}

.header__burger-lines::before {
    top: -7px;
}

.header__burger-lines::after {
    top: 7px;
}

.logo {
    display: inline-flex;
    text-decoration: none;
    color: var(--color-text);
}

.logo__text {
    font-family: var(--font-logo);
    font-weight: 400;
    font-size: 25px;
    line-height: var(--line-height-nav);
    letter-spacing: 0;
    white-space: pre-line;
}

.nav {
    margin-left: 83px;
}

.nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 44px;
}

.nav__link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: var(--font-size-nav);
    line-height: var(--line-height-nav);
}

.header__icons {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__icon {
    width: 25px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header__icon {
    color: var(--color-text-muted);
}

.header__icon:hover {
    color: #ffffff;
}

.header__icon .social-icon,
.site-footer__icon .social-icon {
    display: inline-flex;
    width: 25px;
    height: 25px;
}

.header__icon .social-icon svg,
.site-footer__icon .social-icon svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
}

.header__icon .social-icon svg {
    fill: none;
}

.site-footer__icon {
    color: var(--color-text-muted);
}

.site-footer__icon:hover {
    color: #ffffff;
}

.main {
    width: 100%;
}

.hero {
    position: relative;
    min-height: calc(var(--page-min-height) - var(--header-height));
}

.hero__inner {
    position: relative;
    min-height: 765px;
    width: min(var(--content-width), 100%);
    margin: 0 auto;
    padding-top: 80px;
    padding-left: var(--container-padding);
    padding-right: 0;
}

.hero__content {
    width: 612px;
    position: relative;
    z-index: 1;
}

.hero__title {
    margin: 0 0 39px;
    width: 852px;
    font-weight: 500;
    font-size: var(--font-size-title);
    line-height: var(--line-height-title);
}

.hero__text {
    margin: 0 0 70px;
    font-weight: 400;
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.button--primary {
    width: 370px;
    height: 70px;
    background: var(--color-button-bg);
    color: var(--color-button-text);
    font-weight: 500;
    font-size: var(--font-size-button);
    line-height: var(--line-height-button);
}

.button--dark {
    width: 370px;
    height: 70px;
    background: var(--color-bg);
    color: var(--color-text);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.5909;
}

.button--primary:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 6px;
}

.hero__media {
    position: absolute;
    right: 0;
    top: 2px;
    width: 868px;
    height: 764px;
    overflow: hidden;
    z-index: 0;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 22px;
}

.section-title__text {
    margin: 0;
    font-weight: 400;
    font-size: var(--font-size-section-title);
    line-height: 0.875;
    white-space: nowrap;
}

.section-title__line {
    height: 2px;
    flex: 1 1 auto;
}

.section-title--light .section-title__text {
    color: var(--color-dark);
}

.section-title--light .section-title__line {
    background: var(--color-dark);
}

.section-title--dark .section-title__text {
    color: var(--color-light);
}

.section-title--dark .section-title__line {
    background: var(--color-light);
}

.section-title__line--vertical {
    width: 2px;
    height: 109px;
    flex: 0 0 auto;
}

.section-title__text--vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0;
}

/* One vertical column with a top line + flexible bottom line */
.section-title .section-title__line--vertical:last-child {
    height: auto;
    flex: 1 1 auto;
    min-height: 200px;
}

.about {
    background: var(--color-light);
    color: var(--color-dark);
}

.about__inner {
    position: relative;
    min-height: 713px;
    width: min(var(--content-width), 100%);
    margin: 0 auto;
    padding: 46px 100px 46px var(--container-padding);
    overflow: hidden;
}

.about__title {
    max-width: 1240px;
}

.about__lead {
    margin: 33px 0 26px;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.25;
    max-width: 520px;
}

.about__text {
    margin: 0;
    max-width: 728px;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
}

.about__stats {
    margin-top: 42px;
    display: flex;
    align-items: flex-start;
    gap: 64px;
    padding-left: 81px;
}

.stat__value {
    font-weight: 500;
    font-size: 40px;
    line-height: 0.75;
    text-align: center;
}

.stat__label {
    margin-top: 6px;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.25;
    text-align: center;
    max-width: 190px;
}

.about__decor {
    position: absolute;
    pointer-events: none;
    user-select: none;
}

.about__decor--top {
    width: 174px;
    height: auto;
    right: 320px;
    top: -2px;
}

.about__decor--bottom {
    width: 677px;
    height: auto;
    right: -10px;
    bottom: 33px;
}

.projects {
    background: var(--color-bg);
    color: var(--color-text);
}

.projects__inner {
    width: min(var(--content-width), 100%);
    margin: 0 auto;
    padding: 62px 100px 67px var(--container-padding);
}

.projects__layout {
    display: grid;
    grid-template-columns: 155px 1fr;
    column-gap: 35px;
    align-items: start;
}

.projects__title {
    position: sticky;
    top: 20px;
    align-self: start;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    display: flex;
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 510px);
    gap: 41px 38px;
    justify-content: start;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: #222;
}

.project-card--wide {
    grid-column: 1 / -1;
}

.project-card__image {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.project-card__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 40px 24px;
    background: var(--color-overlay);
    min-height: 180px;
}

.project-card__title {
    margin: 0 0 8px;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.59;
}

.project-card__text {
    margin: 0 0 12px;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    max-width: 780px;
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
    width: 128px;
    height: 30px;
    text-decoration: none;
    color: var(--color-bg);
    background: var(--color-text);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.43;
}

.stages {
    background: var(--color-bg);
    color: var(--color-text);
}

.stages__inner {
    width: min(var(--content-width), 100%);
    margin: 0 auto;
    padding: 60px 100px 60px var(--container-padding);
}

.stages__layout {
    display: grid;
    grid-template-columns: 155px 1fr;
    column-gap: 62px;
    align-items: start;
}

.stages__title {
    /*position: sticky;*/
    top: 20px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    display: flex;
}

.stages__list {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-top: 10px;
}

.stage-card {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.stage-card__num {
    font-weight: 600;
    font-size: 70px;
    line-height: 0.5;
    color: #757575;
}

.stage-card__title {
    margin: 12px 0 10px;
    font-weight: 500;
    font-size: 50px;
    line-height: 0.7;
}

.stage-card__text {
    margin: 0;
    font-weight: 300;
    font-size: 12px;
    line-height: 1.83;
    max-width: 590px;
}

.stage-card__image {
    width: 300px;
    height: 337px;
    object-fit: cover;
}

.reviews {
    background: var(--color-light);
    color: var(--color-dark);
    overflow: hidden;
}

.reviews__inner {
    width: min(var(--content-width), 100%);
    margin: 0 auto;
    padding: 0;
    height: 815px;
    position: relative;
}

.reviews__title {
    position: absolute;
    left: 101px;
    top: 36px;
    width: 1240px;
    height: 35px;
    display: grid;
    grid-template-columns: 128px 22px 161px 28px 1fr;
    align-items: center;
    gap: 0;
}

.reviews__title .section-title__line {
    flex: none;
    width: auto;
    position: relative;
    z-index: 0;
}

.reviews__title .section-title__line:first-child {
    grid-column: 1;
}

.reviews__title .section-title__text {
    grid-column: 3;
    justify-self: center;
}

.reviews__title .section-title__line:last-child {
    grid-column: 5;
}

.reviews__title .section-title__text {
    position: relative;
    z-index: 1;
    background: var(--color-light);
    padding: 0 10px;
}

.reviews__title .section-title__line:last-child {
    width: 901px;
}

.reviews__title .section-title__text {
    width: 161px;
    height: 35px;
    font-size: 40px;
    line-height: 0.875;
}

.reviews__subtitle {
    position: absolute;
    left: 99px;
    top: 124px;
    width: 572px;
    height: 35px;
    margin: 0;
    font-weight: 600;
    font-size: 40px;
    line-height: 0.875;
}

.reviews__lead {
    position: absolute;
    left: 100px;
    top: 194px;
    width: 570px;
    height: 90px;
    margin: 0;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
}

.reviews__scene {
    position: relative;
    width: 1440px;
    height: 815px;
}

.reviews__bg {
    position: absolute;
    left: 101px;
    top: 324px;
    width: 718px;
    height: 410px;
    object-fit: cover;
    background: #d9d9d9;
}

.reviews__decor {
    position: absolute;
    left: 894px;
    top: -42px;
    width: 490px;
    height: 490px;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.reviews__swiper {
    position: absolute;
    left: 631px;
    top: 378px;
    width: 499px;
    height: 290px;
}

.reviews__swiper .swiper-wrapper {
    height: 100%;
}

.reviews__swiper .swiper-slide {
    height: 100%;
}

.reviews__nav {
    position: absolute;
    width: 18px;
    height: 30px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.reviews__nav--prev {
    left: 602px;
    top: 508px;
}

.reviews__nav--next {
    left: 1141px;
    top: 502px;
}

.reviews__nav img {
    width: 18px;
    height: 30px;
}

.review-card {
    border: 2px solid var(--color-dark);
    background: #f1f1f1;
}

.review-card--overlay {
    width: 499px;
    height: 290px;
    background: rgba(48, 48, 48, 0.9);
    border: 0;
    color: var(--color-text);
}

.review-card--overlay .review-card__date {
    color: var(--color-text);
}

.review-card--overlay .review-card__divider {
    background: var(--color-text);
}

.review-card--overlay .review-card__inner {
    padding: 18px 20px 18px 29px;
}

.review-card__inner {
    padding: 26px 26px 22px;
}

.review-card__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.review-card__name {
    font-weight: 600;
    font-size: 22px;
    line-height: 1.25;
}

.review-card__date {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.25;
    color: #4b4b4b;
}

.review-card__divider {
    height: 1px;
    background: var(--color-dark);
    margin: 12px 0 14px;
}

.review-card__text {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.43;
}

.feedback {
    background: var(--color-light);
    color: var(--color-dark);
}

.feedback__inner {
    width: min(var(--content-width), 100%);
    margin: 0 auto;
    padding: 80px 100px 80px var(--container-padding);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 640px;
    grid-template-areas:
    "title brand"
    "subtitle brand"
    "form photo";
    column-gap: 90px;
    row-gap: 18px;
    align-items: start;
}

.feedback__title {
    margin: 0;
    font-weight: 500;
    font-size: 40px;
    line-height: 0.875;
    grid-area: title;
}

.feedback__subtitle {
    margin: 0;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.5909;
    grid-area: subtitle;
}

.feedback-form {
    grid-area: form;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
    "nameLabel emailLabel"
    "nameInput emailInput"
    "phoneLabel phoneLabel"
    "phoneInput phoneInput"
    "messageLabel messageLabel"
    "messageInput messageInput"
    "consent consent"
    "submit submit";
    gap: 18px 40px;
    align-content: start;
}

.feedback-form .wpcf7-form-control-wrap {
    display: contents;
}

.feedback-form .wpcf7-form-control.wpcf7-acceptance,
.feedback-form .wpcf7-list-item {
    display: contents;
}

.feedback-form .wpcf7-response-output {
    grid-column: 1 / -1;
    margin: 12px 0 0;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.04);
}

.feedback-form .wpcf7-spinner {
    margin-left: 12px;
}

.feedback-form__label {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.9444;
    color: #383838;
}

.feedback-form__label--name {
    grid-area: nameLabel;
}

.feedback-form__label--phone {
    grid-area: phoneLabel;
}

.feedback-form__label--email {
    grid-area: emailLabel;
}

.feedback-form__label--message {
    grid-area: messageLabel;
}

.feedback-form__input,
.feedback-form__textarea {
    border: 0;
    outline: none;
    background: transparent;
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--color-dark);
    padding: 0;
    border-bottom: 1px solid var(--color-dark);
    width: 100%;
}

.feedback-form__input--name {
    grid-area: nameInput;
    height: 32px;
}

.feedback-form__input--email {
    grid-area: emailInput;
    height: 32px;
}

.feedback-form__input--phone {
    grid-area: phoneInput;
    height: 32px;
}

.feedback-form__textarea {
    grid-area: messageInput;
    height: 98px;
    resize: none;
}

.feedback-form__line {
    display: none;
}

.feedback-form__consent {
    grid-area: consent;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}

.feedback-form__checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.feedback-form__box {
    width: 20px;
    height: 20px;
    border: 1px solid #646464;
    border-radius: 2px;
    background: rgba(217, 217, 217, 0);
    flex: 0 0 auto;
}

.feedback-form__checkbox:checked + .feedback-form__box {
    background: #303030;
}

.feedback-form__consent.is-checked .feedback-form__box {
    background: #303030;
}

.feedback-form__consent-text {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.9444;
    color: var(--color-dark);
}

.feedback-form__submit {
    grid-area: submit;
    margin-top: 12px;
}

.feedback__brand {
    grid-area: brand;
    justify-self: end;
    text-align: right;
}

.feedback__brand-title {
    font-family: var(--font-logo);
    font-weight: 400;
    font-size: 50px;
    line-height: 1.219;
    color: var(--color-bg);
}

.feedback__brand-subtitle {
    margin-top: 6px;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.219;
    color: var(--color-dark);
}

.feedback__photo {
    grid-area: photo;
    width: 100%;
    max-width: 640px;
    height: 394px;
    object-fit: cover;
}

@media (max-width: 1200px) {
    .feedback__inner {
        grid-template-columns: 1fr;
        grid-template-areas:
      "brand"
      "title"
      "subtitle"
      "photo"
      "form";
        column-gap: 0;
        row-gap: 18px;
    }

    .feedback__brand {
        justify-self: start;
        text-align: left;
    }

    .feedback__photo {
        max-width: 100%;
    }
}



.site-footer {
    background: var(--color-bg);
    color: var(--color-text);
}

.site-footer__inner {
    width: min(var(--content-width), 100%);
    margin: 0 auto;
    padding: 50px 100px 60px var(--container-padding);
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr) minmax(0, 360px);
    grid-template-areas:
    "logo nav contacts"
    "social nav contacts";
    grid-template-rows: auto auto;
    gap: 40px;
    align-items: start;
}

.site-footer__logo {
    grid-area: logo;
    text-decoration: none;
    color: var(--color-text);
}

.site-footer__logo-text {
    font-family: var(--font-logo);
    font-weight: 400;
    font-size: 40px;
    line-height: 1.219;
}

.site-footer__nav {
    grid-area: nav;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    gap: 18px 80px;
}

.site-footer__link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.219;
    position: static;
}

.site-footer__social {
    grid-area: social;
    display: flex;
    gap: 21px;
    align-self: end;
}

.site-footer__icon {
    color: var(--color-text-muted);
}

.site-footer__icon:hover {
    color: #ffffff;
}

.site-footer__contacts {
    grid-area: contacts;
    display: grid;
    gap: 22px;
}

.site-footer__label {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.2222;
    color: var(--color-text);
}

.site-footer__value {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.375;
    color: var(--color-text);
    text-decoration: none;
}

.site-footer__contact {
    display: grid;
    grid-template-columns: 90px 1fr;
    column-gap: 18px;
    align-items: center;
}


@media (max-width: 1024px) {
    :root {
        --container-padding: 24px;
    }

    .header__inner {
        padding-right: 24px;
        gap: 24px;
    }

    .nav {
        margin-left: 0;
    }

    .nav__list {
        gap: 18px;
        flex-wrap: wrap;
    }

    .hero__inner {
        padding-top: 48px;
    }

    .hero__title {
        width: auto;
        font-size: 56px;
    }

    .hero__content {
        width: min(640px, 100%);
    }

    .hero__media {
        width: 520px;
        height: 520px;
        top: 40px;
    }

    .projects__inner,
    .stages__inner,
    .reviews__inner,
    .contacts__inner {
        padding-right: 24px;
    }

    .projects__grid {
        grid-template-columns: 1fr;
    }

    .project-card--wide {
        grid-column: auto;
    }

    .stages__layout,
    .projects__layout {
        grid-template-columns: 1fr;
        row-gap: 28px;
    }

    .projects__title,
    .stages__title {
        position: static;
        justify-content: flex-start;
    }

    .section-title__text--vertical {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .section-title__line--vertical {
        width: auto;
        height: 2px;
        flex: 1 1 auto;
    }

    /* reset desktop vertical-stretch line on mobile */
    .section-title .section-title__line--vertical:last-child {
        min-height: 0;
        height: 2px;
        flex: 1 1 auto;
    }

    .stages__list {
        padding-top: 0;
    }

    .stage-card {
        grid-template-columns: 1fr;
    }

    .stage-card__image {
        width: 100%;
        height: 280px;
    }

    .reviews__controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .reviews__inner {
        height: auto;
        padding: 70px 24px 80px var(--container-padding);
    }

    .reviews__title,
    .reviews__subtitle,
    .reviews__lead {
        position: static;
        width: auto;
        height: auto;
    }

    .reviews__title {
        display: flex;
        max-width: 1240px;
        margin-bottom: 26px;
        gap: 22px;
    }

    .reviews__subtitle {
        margin: 0 0 10px;
        line-height: 1.25;
    }

    .reviews__lead {
        margin: 0 0 18px;
        max-width: 840px;
        line-height: 1.5;
    }

    .reviews__scene {
        width: 100%;
        height: auto;
    }

    .reviews__bg,
    .reviews__decor,
    .reviews__swiper {
        position: static;
    }

    .reviews__bg {
        width: 100%;
        height: 360px;
        margin-top: 18px;
    }

    .reviews__decor {
        width: 220px;
        height: 220px;
        margin-left: auto;
        margin-top: -110px;
    }

    .reviews__swiper {
        width: 100%;
        height: auto;
        margin-top: 18px;
    }

    .review-card--overlay {
        width: 100%;
        height: auto;
    }

    .reviews__nav {
        display: none;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        padding-right: 24px;
        gap: 28px;
    }

    .footer__social {
        justify-content: flex-start;
    }

    .feedback__inner {
        height: auto;
        padding: 70px 24px 80px var(--container-padding);
    }

    .feedback__title,
    .feedback__subtitle,
    .feedback-form,
    .feedback__brand,
    .feedback__photo {
        position: static;
        width: auto;
        height: auto;
    }

    .feedback-form {
        margin-top: 18px;
    }

    .feedback__brand {
        margin-top: 18px;
        text-align: left;
    }

    .feedback__brand-title,
    .feedback__brand-subtitle {
        position: static;
    }

    .feedback__photo {
        width: 100%;
        height: 320px;
        margin-top: 18px;
    }

    .site-footer__inner {
        height: auto;
        padding: 50px 24px 60px var(--container-padding);
    }

    .site-footer__logo,
    .site-footer__nav,
    .site-footer__social,
    .site-footer__contacts,
    .site-footer__link {
        position: static;
        width: auto;
        height: auto;
    }

    .site-footer__nav {
        margin-top: 24px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 24px;
    }

    .site-footer__contacts {
        margin-top: 24px;
    }

    .site-footer__social {
        margin-top: 18px;
    }
}

@media (max-width: 640px) {
    :root {
        --container-padding: 16px;
    }

    .header {
        height: auto;
    }

    .header__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        padding-left: 16px;
        padding-right: 16px;
        gap: 14px;
    }

    .header__burger {
        display: inline-flex;
        align-self: flex-end;
    }

    .nav {
        margin-left: 0;
        width: 100%;
        display: none;
        border-top: 2px solid rgba(255, 255, 255, 0.25);
        padding-top: 12px;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header__burger-toggle:checked ~ .nav {
        display: block;
    }

    .header__burger-toggle:checked ~ .header__icons {
        display: flex;
    }

    .header__burger-toggle:checked + .header__burger .header__burger-lines {
        background: transparent;
    }

    .header__burger-toggle:checked + .header__burger .header__burger-lines::before {
        top: 0;
        transform: rotate(45deg);
    }

    .header__burger-toggle:checked + .header__burger .header__burger-lines::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .header__icons {
        margin-left: 0;
        width: 100%;
        display: none;
        padding-top: 12px;
        border-top: 2px solid rgba(255, 255, 255, 0.25);
    }

    .nav__list {
        gap: 10px 16px;
    }

    .nav__link {
        font-size: 16px;
    }

    .hero__inner {
        padding: 28px 16px 0;
        min-height: auto;
    }

    .hero__title {
        font-size: 34px;
        line-height: 1.15;
        margin-bottom: 18px;
    }

    .hero__text {
        font-size: 16px;
        margin-bottom: 24px;
        line-height: 1.55;
    }

    .button--primary {
        width: 100%;
        max-width: 370px;
    }

    .hero__media {
        position: static;
        width: 100%;
        height: 320px;
        margin-top: 24px;
    }

    .about__inner {
        padding: 40px 16px;
    }

    .about__lead {
        font-size: 28px;
    }

    .about__text {
        font-size: 16px;
    }

    .about__stats {
        padding-left: 0;
        flex-direction: column;
        gap: 18px;
    }

    .about__decor {
        opacity: 0.2;
    }

    .projects__inner,
    .stages__inner,
    .reviews__inner,
    .contacts__inner {
        padding: 40px 16px;
    }

    .project-card__image {
        height: 260px;
    }

    .project-card__overlay {
        padding: 14px 16px 16px;
    }

    .stage-card__num {
        font-size: 48px;
    }

    .stage-card__title {
        font-size: 32px;
        line-height: 1;
    }

    .reviews__subtitle {
        font-size: 28px;
    }

    .reviews__bg {
        height: 260px;
    }

    .reviews__decor {
        width: 180px;
        height: 180px;
        margin-top: -90px;
    }

    .review-card--overlay .review-card__inner {
        padding: 16px;
    }

    .contacts__form-title {
        font-size: 28px;
    }

    .feedback__photo {
        height: 240px;
    }

    .site-footer__nav {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        padding: 40px 16px;
    }

    .footer__row {
        grid-template-columns: 80px 1fr;
    }
}

@media (min-width: 1600px) {
    :root {
        --container-padding: var(--container-padding-wide);
    }

    .header__inner {
        padding-right: var(--container-padding-wide);
    }

    .projects__inner,
    .stages__inner,
    .reviews__inner,
    .contacts__inner,
    .footer__inner {
        padding-right: var(--container-padding-wide);
    }

    .hero__media {
        right: -110px;
    }

    .about__decor--top {
        right: 380px;
    }

    .about__decor--bottom {
        right: -60px;
    }

    /* Keep the projects grid within the 1440 content container */
    .projects__layout {
        grid-template-columns: 155px 1fr;
        column-gap: 35px;
    }

    .projects__grid {
        grid-template-columns: repeat(2, 520px);
        gap: 44px 40px;
    }

    .project-card__image {
        height: 400px;
    }

    .stages__layout {
        grid-template-columns: 155px 1fr;
        column-gap: 80px;
    }

    .stages__list {
        gap: 56px;
    }

    .stage-card {
        grid-template-columns: 1fr 340px;
        gap: 44px;
    }

    .stage-card__text {
        max-width: 640px;
    }

    .stage-card__image {
        width: 340px;
        height: 360px;
    }
}
@media (max-width: 900px) {
    .reviews__decor, .reviews__bg {
        display: none;
    }
    .site-footer__inner {
        grid: none;
        display: block;
        padding: 40px 16px;
        text-align: left;
    }

    .site-footer__logo {
        display: block;
        text-align: center;
    }

    .site-footer__nav {
        display: block;
        margin-top: 18px;
    }

    .site-footer__contacts {
        display: block;
        margin-top: 18px;
    }

    .site-footer__label {
        color: var(--color-text-muted);
        margin-bottom: 2px;
    }

    .site-footer__label,
    .site-footer__value {
        display: block;
    }

    .site-footer__value {
        margin: 0 0 12px;
    }

    .site-footer__contact {
        display: block;
    }

    .site-footer__social {
        margin-top: 18px;
        justify-content: flex-start;
    }

    .site-footer__link {
        display: block;
        padding: 6px 0;
    }
}
.wpcf7-not-valid-tip {
    display: none;
}
a.logo:hover{
    color: var(--color-orange);
}
.button.button--primary.hero__cta:hover{
    color: #000000;
    background: var(--color-accent);
}
.feedback-form__submit:hover {
    color: #000000;
    background: var(--color-accent);
}

.project-page {
    background: var(--color-light);
    color: var(--color-dark);
}

.project-kitchen__inner {
    width: min(var(--content-width), 100%);
    margin: 0 auto;
    padding: 50px 100px 56px var(--container-padding);
}

.project-kitchen__section-title {
    width: min(1237px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 280px;
    align-items: center;
    gap: 18px;
}

.project-kitchen__line {
    height: 2px;
    background: var(--color-dark);
}

.project-kitchen__section-text {
    font-weight: 400;
    font-size: 25px;
    line-height: 1.4;
    color: var(--color-dark);
}

.project-kitchen__title {
    margin: 74px 0 30px 3px;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.1667;
    color: var(--color-dark);
}

.project-kitchen__text {
    width: min(1098px, 100%);
    margin-left: 0;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5556;
    color: var(--color-dark);
}

.project-kitchen__gallery {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, 344px);
    grid-template-rows: repeat(2, 160px);
    gap: 30px 40px;
}

.project-kitchen__img {
    width: 344px;
    height: 160px;
    object-fit: cover;
    background: #d9d9d9;
}


@media (max-width: 1024px) {
    :root {
        --container-padding: 24px;
    }

    .header__inner {
        padding-right: 24px;
        gap: 24px;
    }

    .nav {
        margin-left: 0;
    }

    .nav__list {
        gap: 18px;
        flex-wrap: wrap;
    }

    .hero__inner {
        padding-top: 48px;
    }

    .hero__title {
        width: auto;
        font-size: 56px;
    }

    .hero__content {
        width: min(640px, 100%);
    }

    .hero__media {
        width: 520px;
        height: 520px;
        top: 40px;
    }

    .projects__inner,
    .stages__inner,
    .reviews__inner,
    .contacts__inner {
        padding-right: 24px;
    }

    .projects__grid {
        grid-template-columns: 1fr;
    }

    .project-card--wide {
        grid-column: auto;
    }

    .stages__layout,
    .projects__layout {
        grid-template-columns: 1fr;
        row-gap: 28px;
    }

    .projects__title,
    .stages__title {
        position: static;
        justify-content: flex-start;
    }

    .section-title__text--vertical {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .section-title__line--vertical {
        width: auto;
        height: 2px;
        flex: 1 1 auto;
    }

    /* reset desktop vertical-stretch line on mobile */
    .section-title .section-title__line--vertical:last-child {
        min-height: 0;
        height: 2px;
        flex: 1 1 auto;
    }

    .stages__list {
        padding-top: 0;
    }

    .stage-card {
        grid-template-columns: 1fr;
    }

    .stage-card__image {
        width: 100%;
        height: 280px;
    }

    .reviews__controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .reviews__inner {
        height: auto;
        padding: 70px 24px 80px var(--container-padding);
    }

    .reviews__title,
    .reviews__subtitle,
    .reviews__lead {
        position: static;
        width: auto;
        height: auto;
    }

    .reviews__title {
        display: flex;
        max-width: 1240px;
        margin-bottom: 26px;
        gap: 22px;
    }

    .reviews__subtitle {
        margin: 0 0 10px;
        line-height: 1.25;
    }

    .reviews__lead {
        margin: 0 0 18px;
        max-width: 840px;
        line-height: 1.5;
    }

    .reviews__scene {
        width: 100%;
        height: auto;
    }

    .reviews__bg,
    .reviews__decor,
    .reviews__swiper {
        position: static;
    }

    .reviews__bg {
        width: 100%;
        height: 360px;
        margin-top: 18px;
    }

    .reviews__decor {
        width: 220px;
        height: 220px;
        margin-left: auto;
        margin-top: -110px;
    }

    .reviews__swiper {
        width: 100%;
        height: auto;
        margin-top: 18px;
    }

    .review-card--overlay {
        width: 100%;
        height: auto;
    }

    .reviews__nav {
        display: none;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        padding-right: 24px;
        gap: 28px;
    }

    .footer__social {
        justify-content: flex-start;
    }

    .feedback__inner {
        height: auto;
        padding: 70px 24px 80px var(--container-padding);
    }

    .feedback__title,
    .feedback__subtitle,
    .feedback-form,
    .feedback__brand,
    .feedback__photo {
        position: static;
        width: auto;
        height: auto;
    }

    .feedback-form {
        margin-top: 18px;
    }

    .feedback__brand {
        margin-top: 18px;
        text-align: left;
    }

    .feedback__brand-title,
    .feedback__brand-subtitle {
        position: static;
    }

    .feedback__photo {
        width: 100%;
        height: 320px;
        margin-top: 18px;
    }

    .site-footer__inner {
        height: auto;
        padding: 50px 24px 60px var(--container-padding);
    }

    .site-footer__logo,
    .site-footer__nav,
    .site-footer__social,
    .site-footer__contacts,
    .site-footer__link {
        position: static;
        width: auto;
        height: auto;
    }

    .site-footer__nav {
        margin-top: 24px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 24px;
    }

    .site-footer__contacts {
        margin-top: 24px;
    }

    .site-footer__social {
        margin-top: 18px;
    }

    .project-kitchen__inner {
        padding-right: 24px;
    }

    .project-kitchen__gallery {
        grid-template-columns: repeat(2, 344px);
        grid-template-rows: repeat(3, 160px);
        justify-content: start;
    }
}

@media (max-width: 640px) {
    :root {
        --container-padding: 16px;
    }

    .header {
        height: auto;
    }

    .header__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        padding-left: 16px;
        padding-right: 16px;
        gap: 14px;
    }

    .header__burger {
        display: inline-flex;
        align-self: flex-end;
    }

    .nav {
        margin-left: 0;
        width: 100%;
        display: none;
        border-top: 2px solid rgba(255, 255, 255, 0.25);
        padding-top: 12px;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header__burger-toggle:checked ~ .nav {
        display: block;
    }

    .header__burger-toggle:checked ~ .header__icons {
        display: flex;
    }

    .header__burger-toggle:checked + .header__burger .header__burger-lines {
        background: transparent;
    }

    .header__burger-toggle:checked + .header__burger .header__burger-lines::before {
        top: 0;
        transform: rotate(45deg);
    }

    .header__burger-toggle:checked + .header__burger .header__burger-lines::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .header__icons {
        margin-left: 0;
        width: 100%;
        display: none;
        padding-top: 12px;
        border-top: 2px solid rgba(255, 255, 255, 0.25);
    }

    .nav__list {
        gap: 10px 16px;
    }

    .nav__link {
        font-size: 16px;
    }

    .hero__inner {
        padding: 28px 16px 0;
        min-height: auto;
    }

    .hero__title {
        font-size: 34px;
        line-height: 1.15;
        margin-bottom: 18px;
    }

    .hero__text {
        font-size: 16px;
        margin-bottom: 24px;
        line-height: 1.55;
    }

    .button--primary {
        width: 100%;
        max-width: 370px;
    }

    .hero__media {
        position: static;
        width: 100%;
        height: 320px;
        margin-top: 24px;
    }

    .about__inner {
        padding: 40px 16px;
    }

    .about__lead {
        font-size: 28px;
    }

    .about__text {
        font-size: 16px;
    }

    .about__stats {
        padding-left: 0;
        flex-direction: column;
        gap: 18px;
    }

    .about__decor {
        opacity: 0.2;
    }

    .projects__inner,
    .stages__inner,
    .reviews__inner,
    .contacts__inner {
        padding: 40px 16px;
    }

    .project-card__image {
        height: 260px;
    }

    .project-card__overlay {
        padding: 14px 16px 16px;
    }

    .stage-card__num {
        font-size: 48px;
    }

    .stage-card__title {
        font-size: 32px;
        line-height: 1;
    }

    .reviews__subtitle {
        font-size: 28px;
    }

    .reviews__bg {
        height: 260px;
    }

    .reviews__decor {
        width: 180px;
        height: 180px;
        margin-top: -90px;
    }

    .review-card--overlay .review-card__inner {
        padding: 16px;
    }

    .contacts__form-title {
        font-size: 28px;
    }

    .feedback__photo {
        height: 240px;
    }

    .site-footer__nav {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        padding: 40px 16px;
    }

    .footer__row {
        grid-template-columns: 80px 1fr;
    }

    .project-kitchen__inner {
        padding: 64px 16px 40px;
    }

    .project-kitchen__section-title {
        grid-template-columns: 1fr auto 1fr;
    }

    .project-kitchen__title {
        margin-top: 36px;
        margin-left: 0;
        font-size: 26px;
    }

    .project-kitchen__gallery {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 16px;
    }

    .project-kitchen__img {
        width: 100%;
        height: 220px;
    }
}

@media (min-width: 1600px) {
    :root {
        --container-padding: var(--container-padding-wide);
    }

    .header__inner {
        padding-right: var(--container-padding-wide);
    }

    .projects__inner,
    .stages__inner,
    .reviews__inner,
    .contacts__inner,
    .footer__inner {
        padding-right: var(--container-padding-wide);
    }

    .hero__media {
        right: -110px;
    }

    .about__decor--top {
        right: 380px;
    }

    .about__decor--bottom {
        right: -60px;
    }

    /* Keep the projects grid within the 1440 content container */
    .projects__layout {
        grid-template-columns: 155px 1fr;
        column-gap: 35px;
    }

    .projects__grid {
        grid-template-columns: repeat(2, 520px);
        gap: 44px 40px;
    }

    .project-card__image {
        height: 400px;
    }

    .stages__layout {
        grid-template-columns: 155px 1fr;
        column-gap: 80px;
    }

    .stages__list {
        gap: 56px;
    }

    .stage-card {
        grid-template-columns: 1fr 340px;
        gap: 44px;
    }

    .stage-card__text {
        max-width: 640px;
    }

    .stage-card__image {
        width: 340px;
        height: 360px;
    }
}
@media (max-width: 900px) {
    .reviews__decor, .reviews__bg {
        display: none;
    }
    .site-footer__inner {
        grid: none;
        display: block;
        padding: 40px 16px;
        text-align: left;
    }

    .site-footer__logo {
        display: block;
        text-align: center;
    }

    .site-footer__nav {
        display: block;
        margin-top: 18px;
    }

    .site-footer__contacts {
        display: block;
        margin-top: 18px;
    }

    .site-footer__label {
        color: var(--color-text-muted);
        margin-bottom: 2px;
    }

    .site-footer__label,
    .site-footer__value {
        display: block;
    }

    .site-footer__value {
        margin: 0 0 12px;
    }

    .site-footer__contact {
        display: block;
    }

    .site-footer__social {
        margin-top: 18px;
        justify-content: flex-start;
    }

    .site-footer__link {
        display: block;
        padding: 6px 0;
    }
}
/* Reviews page */
.reviews-page {
    background: var(--color-light);
    color: var(--color-dark);
}

.reviews-grid {
    background: var(--color-light);
    color: var(--color-dark);
}

.reviews-grid__inner {
    width: min(var(--content-width), 100%);
    margin: 0 auto;
    padding: 80px 100px 70px var(--container-padding);
}

.reviews-grid__header {
    max-width: none;
}

.reviews-grid__title {
    width: 100%;
}

.reviews-grid__title .section-title__line {
    background: var(--color-dark);
}

.reviews-grid__lead {
    max-width: 980px;
    margin: 18px 0 0;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.75;
    color: var(--color-dark);
}

.reviews-grid__list {
    margin-top: 38px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.review-card--tile {
    height: 100%;
}

.review-card--tile .review-card__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-card--tile .review-card__text {
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-dark);
}


@media (max-width: 1024px) {
    :root {
        --container-padding: 24px;
    }

    .header__inner {
        padding-right: 24px;
        gap: 24px;
    }

    .nav {
        margin-left: 0;
    }

    .nav__list {
        gap: 18px;
        flex-wrap: wrap;
    }

    .hero__inner {
        padding-top: 48px;
    }

    .hero__title {
        width: auto;
        font-size: 56px;
    }

    .hero__content {
        width: min(640px, 100%);
    }

    .hero__media {
        width: 520px;
        height: 520px;
        top: 40px;
    }

    .projects__inner,
    .stages__inner,
    .reviews__inner,
    .contacts__inner {
        padding-right: 24px;
    }

    .projects__grid {
        grid-template-columns: 1fr;
    }

    .project-card--wide {
        grid-column: auto;
    }

    .stages__layout,
    .projects__layout {
        grid-template-columns: 1fr;
        row-gap: 28px;
    }

    .projects__title,
    .stages__title {
        position: static;
        justify-content: flex-start;
    }

    .section-title__text--vertical {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .section-title__line--vertical {
        width: auto;
        height: 2px;
        flex: 1 1 auto;
    }

    /* reset desktop vertical-stretch line on mobile */
    .section-title .section-title__line--vertical:last-child {
        min-height: 0;
        height: 2px;
        flex: 1 1 auto;
    }

    .stages__list {
        padding-top: 0;
    }

    .stage-card {
        grid-template-columns: 1fr;
    }

    .stage-card__image {
        width: 100%;
        height: 280px;
    }

    .reviews__controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .reviews__inner {
        height: auto;
        padding: 70px 24px 80px var(--container-padding);
    }

    .reviews__title,
    .reviews__subtitle,
    .reviews__lead {
        position: static;
        width: auto;
        height: auto;
    }

    .reviews__title {
        display: flex;
        max-width: 1240px;
        margin-bottom: 26px;
        gap: 22px;
    }

    .reviews__subtitle {
        margin: 0 0 10px;
        line-height: 1.25;
    }

    .reviews__lead {
        margin: 0 0 18px;
        max-width: 840px;
        line-height: 1.5;
    }

    .reviews__scene {
        width: 100%;
        height: auto;
    }

    .reviews__bg,
    .reviews__decor,
    .reviews__swiper {
        position: static;
    }

    .reviews__bg {
        width: 100%;
        height: 360px;
        margin-top: 18px;
    }

    .reviews__decor {
        width: 220px;
        height: 220px;
        margin-left: auto;
        margin-top: -110px;
    }

    .reviews__swiper {
        width: 100%;
        height: auto;
        margin-top: 18px;
    }

    .review-card--overlay {
        width: 100%;
        height: auto;
    }

    .reviews__nav {
        display: none;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        padding-right: 24px;
        gap: 28px;
    }

    .footer__social {
        justify-content: flex-start;
    }

    .feedback__inner {
        height: auto;
        padding: 70px 24px 80px var(--container-padding);
    }

    .feedback__title,
    .feedback__subtitle,
    .feedback-form,
    .feedback__brand,
    .feedback__photo {
        position: static;
        width: auto;
        height: auto;
    }

    .feedback-form {
        margin-top: 18px;
    }

    .feedback__brand {
        margin-top: 18px;
        text-align: left;
    }

    .feedback__brand-title,
    .feedback__brand-subtitle {
        position: static;
    }

    .feedback__photo {
        width: 100%;
        height: 320px;
        margin-top: 18px;
    }

    .site-footer__inner {
        height: auto;
        padding: 50px 24px 60px var(--container-padding);
    }

    .site-footer__logo,
    .site-footer__nav,
    .site-footer__social,
    .site-footer__contacts,
    .site-footer__link {
        position: static;
        width: auto;
        height: auto;
    }

    .site-footer__nav {
        margin-top: 24px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 24px;
    }

    .site-footer__contacts {
        margin-top: 24px;
    }

    .site-footer__social {
        margin-top: 18px;
    }

    .project-kitchen__inner {
        padding-right: 24px;
    }

    .project-kitchen__gallery {
        grid-template-columns: repeat(2, 344px);
        grid-template-rows: repeat(3, 160px);
        justify-content: start;
    }

    .reviews-grid__inner {
        padding-right: 24px;
    }

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

@media (max-width: 640px) {
    :root {
        --container-padding: 16px;
    }

    .header {
        height: auto;
    }

    .header__inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        padding-left: 16px;
        padding-right: 16px;
        gap: 14px;
    }

    .header__burger {
        display: inline-flex;
        align-self: flex-end;
    }

    .nav {
        margin-left: 0;
        width: 100%;
        display: none;
        border-top: 2px solid rgba(255, 255, 255, 0.25);
        padding-top: 12px;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header__burger-toggle:checked ~ .nav {
        display: block;
    }

    .header__burger-toggle:checked ~ .header__icons {
        display: flex;
    }

    .header__burger-toggle:checked + .header__burger .header__burger-lines {
        background: transparent;
    }

    .header__burger-toggle:checked + .header__burger .header__burger-lines::before {
        top: 0;
        transform: rotate(45deg);
    }

    .header__burger-toggle:checked + .header__burger .header__burger-lines::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .header__icons {
        margin-left: 0;
        width: 100%;
        display: none;
        padding-top: 12px;
        border-top: 2px solid rgba(255, 255, 255, 0.25);
    }

    .nav__list {
        gap: 10px 16px;
    }

    .nav__link {
        font-size: 16px;
    }

    .hero__inner {
        padding: 28px 16px 0;
        min-height: auto;
    }

    .hero__title {
        font-size: 34px;
        line-height: 1.15;
        margin-bottom: 18px;
    }

    .hero__text {
        font-size: 16px;
        margin-bottom: 24px;
        line-height: 1.55;
    }

    .button--primary {
        width: 100%;
        max-width: 370px;
    }

    .hero__media {
        position: static;
        width: 100%;
        height: 320px;
        margin-top: 24px;
    }

    .about__inner {
        padding: 40px 16px;
    }

    .about__lead {
        font-size: 28px;
    }

    .about__text {
        font-size: 16px;
    }

    .about__stats {
        padding-left: 0;
        flex-direction: column;
        gap: 18px;
    }

    .about__decor {
        opacity: 0.2;
    }

    .projects__inner,
    .stages__inner,
    .reviews__inner,
    .contacts__inner {
        padding: 40px 16px;
    }

    .project-card__image {
        height: 260px;
    }

    .project-card__overlay {
        padding: 14px 16px 16px;
    }

    .stage-card__num {
        font-size: 48px;
    }

    .stage-card__title {
        font-size: 32px;
        line-height: 1;
    }

    .reviews__subtitle {
        font-size: 28px;
    }

    .reviews__bg {
        height: 260px;
    }

    .reviews__decor {
        width: 180px;
        height: 180px;
        margin-top: -90px;
    }

    .review-card--overlay .review-card__inner {
        padding: 16px;
    }

    .contacts__form-title {
        font-size: 28px;
    }

    .feedback__photo {
        height: 240px;
    }

    .site-footer__nav {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        padding: 40px 16px;
    }

    .footer__row {
        grid-template-columns: 80px 1fr;
    }

    .project-kitchen__inner {
        padding: 64px 16px 40px;
    }

    .project-kitchen__section-title {
        grid-template-columns: 1fr auto 1fr;
    }

    .project-kitchen__title {
        margin-top: 36px;
        margin-left: 0;
        font-size: 26px;
    }

    .project-kitchen__gallery {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 16px;
    }

    .project-kitchen__img {
        width: 100%;
        height: 220px;
    }

    .reviews-grid__inner {
        padding: 64px 16px 50px;
    }

    .reviews-grid__list {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (min-width: 1600px) {
    :root {
        --container-padding: var(--container-padding-wide);
    }

    .header__inner {
        padding-right: var(--container-padding-wide);
    }

    .projects__inner,
    .stages__inner,
    .reviews__inner,
    .contacts__inner,
    .footer__inner {
        padding-right: var(--container-padding-wide);
    }

    .hero__media {
        right: -110px;
    }

    .about__decor--top {
        right: 380px;
    }

    .about__decor--bottom {
        right: -60px;
    }

    /* Keep the projects grid within the 1440 content container */
    .projects__layout {
        grid-template-columns: 155px 1fr;
        column-gap: 35px;
    }

    .projects__grid {
        grid-template-columns: repeat(2, 520px);
        gap: 44px 40px;
    }

    .project-card__image {
        height: 400px;
    }

    .stages__layout {
        grid-template-columns: 155px 1fr;
        column-gap: 80px;
    }

    .stages__list {
        gap: 56px;
    }

    .stage-card {
        grid-template-columns: 1fr 340px;
        gap: 44px;
    }

    .stage-card__text {
        max-width: 640px;
    }

    .stage-card__image {
        width: 340px;
        height: 360px;
    }
}
@media (max-width: 900px) {
    .reviews__decor, .reviews__bg {
        display: none;
    }
    .site-footer__inner {
        grid: none;
        display: block;
        padding: 40px 16px;
        text-align: left;
    }

    .site-footer__logo {
        display: block;
        text-align: center;
    }

    .site-footer__nav {
        display: block;
        margin-top: 18px;
    }

    .site-footer__contacts {
        display: block;
        margin-top: 18px;
    }

    .site-footer__label {
        color: var(--color-text-muted);
        margin-bottom: 2px;
    }

    .site-footer__label,
    .site-footer__value {
        display: block;
    }

    .site-footer__value {
        margin: 0 0 12px;
    }

    .site-footer__contact {
        display: block;
    }

    .site-footer__social {
        margin-top: 18px;
        justify-content: flex-start;
    }

    .site-footer__link {
        display: block;
        padding: 6px 0;
    }
}