:root {
    --black: #111111;
    --ink: #1b1b1b;
    --gray: #6f6f6f;
    --line: #e3e1dd;
    --muted: #f4f2ef;
    --white: #ffffff;
    --error: #e5674f;
    --radius: 2px;
    --container: 1320px;
    --gutter: 40px;
    --header: 68px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --fast: .3s;
    --slow: .5s;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--fast) var(--ease), opacity var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

h1,
h2,
h3,
p {
    margin: 0;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.eyebrow {
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 30px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform .15s var(--ease), opacity var(--fast) var(--ease);
}

.btn:active {
    transform: scale(.98);
}

.btn--sm {
    min-height: 42px;
    padding: 0 20px;
    font-size: 14px;
}

.btn--dark {
    background: var(--black);
    color: var(--white);
}

.btn--ghost {
    border-color: var(--line);
    background: var(--white);
}

.btn--light {
    background: var(--white);
    color: var(--black);
}

.btn__icon {
    transition: transform var(--fast) var(--ease);
}

.btn:disabled {
    opacity: .6;
    cursor: default;
    transform: none;
}

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--header);
    border-bottom: 1px solid transparent;
    transition: border-color var(--fast) var(--ease);
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
}

.header.is-scrolled {
    border-bottom-color: var(--line);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.logo {
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -.01em;
}

.logo--footer {
    font-size: 20px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
}

.nav a {
    position: relative;
    padding: 6px 0;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--slow) var(--ease);
}

.nav__phone {
    display: none;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__phone {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.burger {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.burger span {
    position: absolute;
    left: 9px;
    right: 9px;
    height: 1.5px;
    background: var(--black);
    transition: transform var(--fast) var(--ease), top var(--fast) var(--ease);
}

.burger span:first-child {
    top: 16px;
}

.burger span:last-child {
    top: 23px;
}

.burger[aria-expanded="true"] span:first-child {
    top: 19.5px;
    transform: rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
    top: 19.5px;
    transform: rotate(-45deg);
}

.hero {
    padding-top: var(--header);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - var(--header));
    padding-top: 40px;
    padding-bottom: 60px;
}

.hero__title {
    font-size: clamp(42px, 5.6vw, 82px);
    line-height: 1.02;
    font-weight: 400;
    letter-spacing: -.03em;
}

.hero__text {
    max-width: 520px;
    margin-top: 32px;
    font-size: 18px;
    color: var(--gray);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 44px;
}

.hero__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--muted);
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 30%;
    animation: heroZoom 1.6s var(--ease) both;
}

.hero__badge {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 18px 24px;
    background: var(--white);
}

.hero__badge-label {
    font-size: 12px;
    color: var(--gray);
}

.hero__badge-name {
    font-size: 16px;
    font-weight: 500;
}

@keyframes heroZoom {
    from {
        transform: scale(1.08);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.section {
    padding: 120px 0;
}

.section--dark {
    background: var(--black);
    color: var(--white);
}

.section--muted {
    background: var(--muted);
}

.section__head {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 64px;
}

.section__title {
    font-size: clamp(32px, 4.2vw, 56px);
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -.025em;
}

.section__lead {
    font-size: 17px;
    color: var(--gray);
    max-width: 520px;
}

.section--dark .section__lead {
    color: #a3a3a3;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.service {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 300px;
    padding: 36px 32px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    isolation: isolate;
}

.service::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--black);
    opacity: 0;
    transition: opacity .6s var(--ease);
}

.service__num {
    font-size: 14px;
    color: var(--gray);
    transition: color .6s var(--ease);
}

.service__title {
    margin-top: auto;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 400;
    transition: color .6s var(--ease), transform .6s var(--ease);
}

.service__text {
    font-size: 15px;
    color: var(--gray);
    transition: color .6s var(--ease), transform .6s var(--ease);
}

.advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 40px;
}

.advantage {
    padding-top: 28px;
    border-top: 1px solid #333;
}

.advantage__icon {
    display: block;
    width: 34px;
    height: 34px;
    margin-bottom: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.advantage__title {
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 12px;
}

.advantage__text {
    color: #a3a3a3;
    font-size: 15px;
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.step {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid var(--line);
}

.step__num {
    font-size: 15px;
    color: var(--gray);
}

.step__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.step__title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 400;
}

.step__text {
    color: var(--gray);
}

.about__text {
    display: grid;
    gap: 14px;
    max-width: 520px;
    color: var(--gray);
    font-size: 17px;
}

.works {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.work {
    position: relative;
    display: block;
    aspect-ratio: 9 / 14;
    overflow: hidden;
    background: #ddd;
    color: var(--white);
}

.work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.work::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55) 100%);
    pointer-events: none;
}

.work__play {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--black);
    transition: transform var(--slow) var(--ease), background var(--slow) var(--ease);
}

.work__play svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.work__caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 1;
    font-size: 15px;
    font-weight: 500;
}

.about__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #d9d6d0;
}

.objects {
    display: flex;
    align-items: center;
    gap: 16px 24px;
    flex-wrap: wrap;
}

.objects__label {
    font-size: 13px;
    color: var(--gray);
}

.objects__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.objects__list li {
    padding: 8px 14px;
    border: 1px solid #d9d6d0;
    border-radius: 40px;
    font-size: 14px;
    background: var(--white);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
}

.link-arrow__icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
}

.link-arrow__arrow {
    transition: transform var(--fast) var(--ease);
}

.faq {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

.faq__aside {
    position: sticky;
    top: calc(var(--header) + 32px);
    display: grid;
    gap: 20px;
    align-content: start;
}

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

.faq__item {
    border-bottom: 1px solid var(--line);
}

.faq__item summary {
    position: relative;
    padding: 26px 48px 26px 0;
    font-size: 20px;
    cursor: pointer;
    list-style: none;
    transition: opacity var(--fast) var(--ease);
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::before,
.faq__item summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 16px;
    height: 1.5px;
    background: var(--black);
    transition: transform var(--slow) var(--ease);
}

.faq__item summary::after {
    transform: rotate(90deg);
}

.faq__item.is-open summary::after {
    transform: rotate(0);
}

.faq__item.is-open summary::before {
    transform: rotate(180deg);
}

.faq__content {
    overflow: hidden;
}

.faq__content p {
    padding: 0 48px 28px 0;
    color: var(--gray);
}

.request__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.request .section__lead {
    margin-top: 24px;
}

.request__phone {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
    padding-bottom: 6px;
    font-size: 28px;
    border-bottom: 1px solid #444;
}

.request__phone svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linejoin: round;
}

.form {
    display: grid;
    gap: 22px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.field {
    display: grid;
    gap: 8px;
}

.field__label {
    font-size: 13px;
    color: #a3a3a3;
}

.field__input {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid #3a3a3a;
    border-radius: var(--radius);
    background: transparent;
    color: var(--white);
    font-size: 16px;
    outline: none;
    transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}

.field__input--area {
    resize: none;
    min-height: 110px;
}

.field__input::placeholder {
    color: #6c6c6c;
}

.field__input:focus,
.field__input:focus-visible {
    border-color: var(--white);
    outline: none;
}

.field__input.is-invalid {
    border-color: var(--error);
}

.select {
    position: relative;
}

.select__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    cursor: pointer;
}

.select__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select__arrow {
    flex-shrink: 0;
    transition: transform var(--slow) var(--ease);
}

.select.is-open .select__arrow {
    transform: rotate(180deg);
}

.select.is-open .select__button {
    border-color: var(--white);
}

.select__list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 5;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #1c1c1c;
    border: 1px solid #3a3a3a;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility var(--fast);
    max-height: 320px;
    overflow-y: auto;
    outline: none;
    color-scheme: dark;
    scrollbar-width: thin;
    scrollbar-color: #4a4a4a transparent;
}

.select__list::-webkit-scrollbar {
    width: 8px;
}

.select__list::-webkit-scrollbar-track {
    background: transparent;
}

.select__list::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border: 2px solid #1c1c1c;
    border-radius: 8px;
}

.select__list::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.select.is-open .select__list {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.select__option {
    padding: 12px 12px;
    font-size: 15px;
    color: #d0d0d0;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.select__option.is-active {
    background: #2b2b2b;
    color: var(--white);
}

.select__option[aria-selected="true"] {
    color: var(--white);
}

.field--hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.check {
    position: relative;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 13px;
    color: #a3a3a3;
    cursor: pointer;
}

.check__input {
    position: absolute;
    width: 20px;
    height: 20px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.check__box {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: -1px;
    border: 1px solid #555;
    border-radius: var(--radius);
    transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.check__box svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--black);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16;
    stroke-dashoffset: 16;
    transition: stroke-dashoffset var(--fast) var(--ease);
}

.check__input:checked + .check__box {
    background: var(--white);
    border-color: var(--white);
}

.check__input:checked + .check__box svg {
    stroke-dashoffset: 0;
}

.check__input:focus-visible + .check__box {
    outline: 1px solid var(--white);
    outline-offset: 3px;
}

.check a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, .4);
    transition: text-decoration-color var(--fast) var(--ease);
}

.check.is-invalid .check__box {
    border-color: var(--error);
}

.check.is-invalid .check__text {
    color: var(--error);
}

.form__submit {
    justify-self: start;
    min-width: 280px;
    padding: 0 48px;
}

.form__status {
    min-height: 22px;
    font-size: 14px;
}

.form__status.is-ok {
    color: #8fd19e;
}

.form__status.is-error {
    color: var(--error);
}

.footer {
    padding: 72px 0 36px;
    background: #0b0b0b;
    color: var(--white);
    border-top: 1px solid #222;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    padding-bottom: 48px;
}

.footer__contacts {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer__phone {
    font-size: 24px;
}

.footer__social {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #333;
    border-radius: 50%;
    transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.footer__social svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid #222;
    font-size: 13px;
    color: #777;
}

.dock {
    display: none;
}

.reveal {
    opacity: 0;
}

.reveal.is-visible {
    animation: revealIn .9s var(--ease) both;
}

@keyframes revealIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.page {
    padding: calc(var(--header) + 64px) 0 110px;
}

.page__head {
    max-width: 860px;
    margin-bottom: 56px;
}

.page__title {
    font-size: clamp(34px, 4.4vw, 58px);
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: 1.08;
}

.page__meta {
    margin-top: 20px;
    color: var(--gray);
    font-size: 15px;
}

.doc {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
    align-items: start;
}

.doc__toc {
    position: sticky;
    top: calc(var(--header) + 32px);
    display: grid;
    gap: 2px;
    padding: 0;
    margin: 0;
    list-style: none;
    counter-reset: toc;
    font-size: 14px;
}

.doc__toc a {
    display: block;
    padding: 7px 0;
    color: var(--gray);
}

.doc__body {
    max-width: 820px;
}

.doc__section {
    padding: 36px 0;
    border-top: 1px solid var(--line);
}

.doc__section:first-child {
    padding-top: 0;
    border-top: 0;
}

.doc__section h2 {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -.01em;
    margin-bottom: 18px;
}

.doc__section p,
.doc__section li {
    color: #444;
}

.doc__section p + p,
.doc__section p + ul,
.doc__section ul + p {
    margin-top: 12px;
}

.doc__section ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.doc__section li + li {
    margin-top: 6px;
}

.doc__card {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding: 24px;
    background: var(--muted);
}

.doc__card div {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    font-size: 15px;
}

.doc__card dt {
    color: var(--gray);
}

.doc__card dd {
    margin: 0;
}

@media (any-hover: hover) {
    .btn--dark:not(:disabled):hover {
        background: #333;
    }

    .btn--ghost:hover {
        border-color: var(--black);
    }

    .btn--light:not(:disabled):hover {
        background: #e4e2de;
    }

    .btn:hover .btn__icon {
        transform: translate(2px, -2px);
    }

    .nav a:hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }

    .header__phone:hover,
    .footer__bottom a:hover {
        opacity: .6;
    }

    .doc__toc a:hover {
        color: var(--black);
    }

    .logo:hover {
        opacity: .7;
    }

    .service:hover::before {
        opacity: 1;
    }

    .service:hover .service__num {
        color: #8a8a8a;
    }

    .service:hover .service__title {
        color: var(--white);
        transform: translateY(-4px);
    }

    .service:hover .service__text {
        color: #b9b9b9;
        transform: translateY(-4px);
    }

    .work:hover img {
        transform: scale(1.05);
    }

    .work:hover .work__play {
        transform: scale(1.1);
        background: var(--white);
    }

    .link-arrow:hover {
        opacity: .65;
    }

    .link-arrow:hover .link-arrow__arrow {
        transform: translate(2px, -2px);
    }

    .faq__item summary:hover {
        opacity: .6;
    }

    .request__phone:hover {
        border-color: var(--white);
    }

    .field__input:hover {
        border-color: #6a6a6a;
    }

    .field__input:focus:hover {
        border-color: var(--white);
    }

    .select__option:hover {
        background: #2b2b2b;
        color: var(--white);
    }

    .check:hover .check__box {
        border-color: #888;
    }

    .check a:hover {
        text-decoration-color: var(--white);
    }

    .footer__phone:hover {
        opacity: .7;
    }

    .footer__social:hover {
        background: var(--white);
        border-color: var(--white);
        color: var(--black);
    }

    .burger:hover span {
        background: #555;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal.is-visible,
    .hero__media img {
        opacity: 1;
        animation: none;
    }
}

@media (max-width: 1180px) {
    .nav {
        gap: 20px;
    }

    .header__phone {
        display: none;
    }
}

@media (max-width: 1000px) {
    :root {
        --gutter: 24px;
        --header: 60px;
    }

    .logo {
        font-size: 15px;
    }

    .burger {
        display: block;
    }

    .header__right .btn {
        display: none;
    }

    .nav {
        position: fixed;
        top: var(--header);
        left: 0;
        right: 0;
        height: calc(100vh - var(--header));
        height: calc(100dvh - var(--header));
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px var(--gutter) 40px;
        background: var(--white);
        border-top: 1px solid var(--line);
        font-size: 22px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility var(--fast);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav a {
        padding: 16px 0;
        border-bottom: 1px solid var(--line);
    }

    .nav a::after {
        display: none;
    }

    .nav__phone {
        display: block;
        margin-top: 16px;
        border-bottom: 0 !important;
        font-weight: 500;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 40px;
    }

    .hero__media {
        aspect-ratio: 1 / 1;
    }

    .section {
        padding: 80px 0;
    }

    .section__head {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 44px;
    }

    .services {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages {
        grid-template-columns: repeat(2, 1fr);
    }

    .step {
        grid-template-columns: 80px 1fr;
        gap: 20px;
    }

    .step__body {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .works {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq,
    .request__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .faq__aside {
        position: static;
    }

    .doc {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .doc__toc {
        position: static;
    }

    .footer {
        padding-bottom: 104px;
    }

    .page + .footer {
        padding-bottom: 36px;
    }

    .dock {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 40;
        display: block;
        transform: translateY(150%);
        transition: transform var(--slow) var(--ease);
    }

    .dock.is-visible {
        transform: none;
    }

    .dock__btn {
        width: 100%;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    }
}

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

    body {
        font-size: 15px;
    }

    .hero__inner {
        padding-top: 24px;
    }

    .hero__text {
        font-size: 16px;
        margin-top: 24px;
    }

    .hero__actions {
        margin-top: 32px;
    }

    .hero__actions .btn {
        flex: 1 1 100%;
    }

    .services,
    .advantages,
    .form__row {
        grid-template-columns: 1fr;
    }

    .service {
        min-height: 0;
        padding: 28px 22px;
    }

    .service__title {
        margin-top: 12px;
        font-size: 21px;
    }

    .advantages {
        gap: 36px;
    }

    .step {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 28px 0;
    }

    .step__title {
        font-size: 22px;
    }

    .about__text {
        font-size: 15px;
    }

    .works {
        gap: 10px;
    }

    .work__play {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
    }

    .work__caption {
        left: 12px;
        right: 12px;
        bottom: 12px;
        font-size: 13px;
    }

    .faq__item summary {
        font-size: 17px;
        padding: 22px 40px 22px 0;
    }

    .faq__content p {
        padding-right: 0;
    }

    .request__phone {
        font-size: 24px;
    }

    .form__submit {
        justify-self: stretch;
        min-width: 0;
    }

    .logo--footer {
        font-size: 18px;
    }

    .footer__phone {
        font-size: 20px;
    }

    .doc__card div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}
