:root {
    --color-page: #fbfbfb;
    --color-ink: #1b1b1b;
    --color-muted: #565656;
    --color-soft: #f3f3f3;
    --color-line: #e4e7e9;
    --color-blue: #110b79;
    --radius-lg: 16px;
    --radius-md: 10px;
    --container: 1736px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-page);
    color: var(--color-ink);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 0;
}

body.is-menu-open {
    overflow: hidden;
}

button,
input,
textarea {
    font: inherit;
    letter-spacing: 0;
}

button,
a {
    color: inherit;
}

a {
    text-decoration: none;
}

img,
video {
    display: block;
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
    overflow: hidden;
}

.container {
    width: min(calc(100% - 184px), var(--container));
    margin: 0 auto;
}

.section {
    padding: 68px 0;
}

.section-title {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.section-lead {
    max-width: 880px;
    margin: 28px auto 0;
    color: var(--color-muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
}

.button {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 28px;
    padding: 12px 36px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    flex-shrink: 0;
    white-space: nowrap;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--dark {
    background: var(--color-ink);
    color: #fff;
}

.site-header {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    width: min(calc(100% - 176px), var(--container));
    min-height: 92px;
    align-items: center;
    gap: 32px;
    margin: 0 auto;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: var(--color-blue);
    font-weight: 600;
    line-height: 1;
}

.brand__logo {
    width: 60px;
    height: 60px;
}

.brand__name {
    white-space: nowrap;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 64px;
    font-size: 16px;
    font-weight: 500;
}

.site-nav a,
.footer-nav a {
    transition: color .2s ease;
}

.site-nav a:hover,
.footer-nav a:hover {
    color: var(--color-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 38px;
}

.header-phone {
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
}

.hero {
    position: relative;
    min-height: 742px;
    padding-top: 86px;
}

.hero::after {
    position: absolute;
    right: -120px;
    top: 220px;
    width: 960px;
    height: 700px;
    background: radial-gradient(ellipse at center, rgba(225, 225, 225, .95) 0%, rgba(251, 251, 251, 0) 68%);
    content: "";
    pointer-events: none;
}

.hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(420px, 680px) minmax(520px, 1fr);
    align-items: center;
    gap: 70px;
}

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

.hero h1 {
    max-width: 690px;
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.hero p {
    margin: 28px 0 58px;
    color: var(--color-muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 278px);
    gap: 20px;
    width: 874px;
    margin-top: 93px;
}

.benefit-card {
    min-height: 147px;
    margin: 0;
    border-radius: var(--radius-lg);
    background: var(--color-soft);
    padding: 31px 27px 25px;
}

.benefit-card img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 20px;
}

.benefit-card span {
    display: block;
    max-width: 196px;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.hero-slider {
    position: relative;
    height: 541px;
}

.hero-slider__track,
.about-slider__track {
    position: relative;
}

.hero-slide,
.about-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .65s ease;
}

.hero-slide.is-active,
.about-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    display: block;
    width: auto;
    max-width: min(100%, 760px);
    max-height: 541px;
    height: auto;
    margin-left: auto;
    object-fit: contain;
    filter: drop-shadow(0 24px 16px rgba(0, 0, 0, .1));
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.slider-dots button {
    width: 6px;
    height: 6px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: #b8b8b8;
    cursor: pointer;
}

.slider-dots button.is-active {
    background: var(--color-blue);
}

.hero-slider > .hero-dots {
    position: absolute;
    right: 44px;
    bottom: 42px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
}

.hero-dots button {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.hero-dots button.is-active {
    background: var(--color-blue);
    box-shadow: 0 0 0 2px rgba(45, 123, 255, .18);
    transform: scale(1.15);
}

.services {
    background: #fff;
}

.services-layout {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 28px;
    margin-top: 78px;
}

.services-tabs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-tab {
    position: relative;
    display: grid;
    grid-template-columns: 118px 1fr;
    width: 100%;
    min-height: 100px;
    align-items: center;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--color-soft);
    padding: 0 18px 0 0;
    cursor: pointer;
    text-align: left;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.service-tab.is-active {
    background: #ececec;
}

.service-tab:focus-visible {
    outline: 2px solid rgba(17, 11, 121, .35);
    outline-offset: 4px;
    color: var(--color-blue);
}

@media (hover: hover) and (pointer: fine) {
    .service-tab:hover {
        background:
            radial-gradient(ellipse at 55% 50%, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .86) 46%, rgba(240, 240, 240, .98) 78%),
            var(--color-soft);
        box-shadow: inset 0 0 46px rgba(255, 255, 255, .95);
        color: var(--color-blue);
    }

    .service-tab:hover span {
        color: var(--color-blue);
    }
}

.service-tab img {
    position: relative;
    left: -32px;
    width: 146px;
    height: 96px;
    object-fit: contain;
    transform: rotate(4deg);
}

.service-tab span {
    color: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.1;
    transition: color .2s ease;
}

.services-panels {
    min-width: 0;
    min-height: 700px;
}

.service-panel {
    display: none;
    grid-template-columns: minmax(300px, 520px) 1fr;
    gap: 28px;
    min-height: 700px;
    border-radius: var(--radius-lg);
    background: var(--color-soft);
    padding: 20px;
}

.service-panel.is-active {
    display: grid;
}

.service-panel__media {
    min-height: 280px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #ddd;
}

.service-panel__media img,
.service-panel__media video {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.service-panel__text {
    padding: 10px 10px 0 0;
}

.service-panel__text h3 {
    margin: 0 0 18px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.service-panel__text h4 {
    margin: 0 0 28px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.25;
}

.service-panel__text p, .service-panel__text ul, .service-panel__text span {
    max-width: 660px;
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.34;
    text-align: justify;
}

.products-slider {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 14px;
}

.products-slider.is-static {
    grid-template-columns: minmax(0, 1fr);
}

.products-slider.is-static .products-arrow {
    display: none;
}

.products-slider__viewport {
    min-width: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.products-slider__viewport::-webkit-scrollbar {
    display: none;
}

.products-slider__track {
    display: flex;
    gap: 20px;
}

.product-card {
    display: block;
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 210px;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.product-card img {
    width: 100%;
    aspect-ratio: 1.32;
    border-radius: var(--radius-md);
    object-fit: cover;
    transition: filter .25s ease;
}

.product-card span {
    display: block;
    margin-top: 14px;
    color: var(--color-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.1;
    transition: color .2s ease;
}

.products-arrow {
    position: relative;
    --arrow-icon-size: 26px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--color-ink);
    color: #fff;
    cursor: pointer;
}

.products-arrow::before,
.orders-arrow::before,
.slider-arrow::before,
.gallery-lightbox__arrow::before {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--arrow-icon-size);
    height: var(--arrow-icon-size);
    border: 0;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 12H4M11 5l-7 7 7 7' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 12H4M11 5l-7 7 7 7' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.products-arrow--next::before,
.orders-arrow--next::before,
.slider-arrow--next::before,
.gallery-lightbox__arrow--next::before {
    transform: translate(-50%, -50%) rotate(180deg);
}

.products-arrow:disabled {
    cursor: default;
    opacity: .35;
}

.orders-carousel {
    width: min(calc(100% - 184px), var(--container));
    margin: 100px auto 0;
}

.orders-carousel__viewport {
    width: 100%;
    overflow: hidden;
}

.orders-carousel__track {
    display: flex;
    transition: transform .65s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.orders-masonry-slide {
    display: grid;
    flex: 0 0 100%;
    grid-template-columns: 1.015fr 1fr 1.015fr 1fr;
    grid-template-rows: 223px 277px 231px;
    gap: 20px;
}

.orders-masonry__item {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #eee;
}

.orders-masonry__item:nth-child(8n + 1),
.orders-masonry__item:nth-child(8n + 5) {
    grid-row: 1 / span 2;
}

.orders-masonry__item:nth-child(8n + 2),
.orders-masonry__item:nth-child(8n + 6) {
    grid-row: 3;
}

.orders-masonry__item:nth-child(8n + 3),
.orders-masonry__item:nth-child(8n + 7) {
    grid-row: 1;
}

.orders-masonry__item:nth-child(8n + 4),
.orders-masonry__item:nth-child(8n + 8) {
    grid-row: 2 / span 2;
}

.orders-masonry__item:nth-child(8n + 1),
.orders-masonry__item:nth-child(8n + 2) {
    grid-column: 1;
}

.orders-masonry__item:nth-child(8n + 3),
.orders-masonry__item:nth-child(8n + 4) {
    grid-column: 2;
}

.orders-masonry__item:nth-child(8n + 5),
.orders-masonry__item:nth-child(8n + 6) {
    grid-column: 3;
}

.orders-masonry__item:nth-child(8n + 7),
.orders-masonry__item:nth-child(8n + 8) {
    grid-column: 4;
}

.orders-masonry__item img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    transition: filter .28s ease;
}

@media (hover: hover) and (pointer: fine) {
    .product-card img {
        filter: grayscale(.18) saturate(.82) contrast(.99);
    }

    .product-card:hover img {
        filter: grayscale(0) saturate(1.06) contrast(1);
    }

    .product-card:hover span {
        color: var(--color-blue);
    }

    .products-arrow,
    .orders-arrow,
    .slider-arrow,
    .gallery-lightbox__close,
    .gallery-lightbox__arrow {
        transition: background-color .2s ease, transform .2s ease, opacity .2s ease;
    }

    .products-arrow:not(:disabled):hover,
    .orders-arrow:hover,
    .slider-arrow:hover {
        background: var(--color-blue);
    }

    .products-arrow:not(:disabled):hover,
    .orders-arrow:hover,
    .slider-arrow:hover,
    .gallery-lightbox__close:hover,
    .gallery-lightbox__arrow:hover {
        transform: translateY(-1px);
    }

    .orders-masonry__item img {
        filter: grayscale(.18) saturate(.82) contrast(.99);
    }

    .orders-masonry__item:hover img {
        filter: grayscale(0) saturate(1.06) contrast(1);
    }
}

.orders-carousel__controls {
    position: relative;
    height: 30px;
    margin-top: 100px;
}

.orders-arrow {
    position: absolute;
    top: 0;
    --arrow-icon-size: 24px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: var(--color-ink);
    color: #fff;
    cursor: pointer;
}

.orders-arrow--prev {
    left: 0;
}

.orders-arrow--next {
    right: 0;
}

.orders-dots {
    position: absolute;
    top: 10px;
    left: 50%;
    min-width: 90px;
    height: 10px;
    align-items: center;
    gap: 30px;
    margin-top: 0;
    transform: translateX(-50%);
}

.orders-dots button {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
}

.orders-more {
    display: none;
}

.orders-carousel.is-static .orders-carousel__controls,
.orders-carousel.is-static .orders-more {
    display: none;
}

.contact-card {
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse at 28% 26%, rgba(217, 217, 217, .9), rgba(242, 242, 242, .96) 56%),
        #eee;
    padding: 68px 86px 96px 90px;
}

.section-heading {
    margin-bottom: 64px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 510px) minmax(0, 492px) minmax(0, 510px);
    align-items: start;
    gap: 24px;
}

.contact-form-shell {
    min-width: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-success {
    display: grid;
    min-height: 418px;
    align-items: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .72);
    padding: 42px;
}

.contact-success p {
    max-width: 390px;
    margin: 0;
    color: var(--color-ink);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.18;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--color-ink);
    font-size: 16px;
    font-weight: 500;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field input {
    height: 50px;
    padding: 0 15px;
}

.field textarea {
    min-height: 100px;
    resize: vertical;
    padding: 14px 15px;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(17, 11, 121, .08);
}

.field span,
.field-error,
.form-message {
    color: #b42318;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.agreement {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 14px;
    align-items: center;
    color: var(--color-muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
}

.agreement input {
    position: relative;
    display: grid;
    width: 24px;
    height: 24px;
    margin: 0;
    flex: 0 0 24px;
    -webkit-appearance: none;
    appearance: none;
    place-items: center;
    border: 1px solid #dfe3e6;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.agreement input::after {
    width: 16px;
    height: 16px;
    border-radius: 6px;
    background: var(--color-blue);
    content: "";
    transform: scale(0);
    transition: transform .16s ease;
}

.agreement input:checked::after {
    transform: scale(1);
}

.agreement input:focus-visible {
    border-color: rgba(17, 11, 121, .45);
    box-shadow: 0 0 0 4px rgba(17, 11, 121, .1);
}

.agreement a {
    text-decoration: underline;
}

.form-actions {
    display: grid;
    grid-template-columns: minmax(180px, 210px) minmax(210px, 1fr);
    gap: 20px;
}

.file-button {
    position: relative;
    display: inline-flex;
    width: 100%;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #afafaf;
    border-radius: 28px;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

.file-button span {
    white-space: nowrap;
}

.file-button::before {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background: url("../images/icons/file.svg") center / contain no-repeat;
    content: "";
}

.file-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.file-list {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    min-width: 0;
}

.file-list[hidden] {
    display: none;
}

.file-chip {
    display: inline-flex;
    max-width: 170px;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

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

.file-chip__remove {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.file-chip__remove::before,
.file-chip__remove::after {
    position: absolute;
    left: 3px;
    top: 7px;
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
}

.file-chip__remove::before {
    transform: rotate(45deg);
}

.file-chip__remove::after {
    transform: rotate(-45deg);
}

.file-upload-error {
    color: #f04438;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.file-server-error {
    grid-column: 1 / -1;
}

.contact-visual {
    height: 418px;
    min-height: 418px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #d9d9d9;
}

.contact-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.steps-list {
    display: flex;
    height: 418px;
    min-height: 418px;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    margin: 0;
    border-radius: var(--radius-lg);
    background: #d9d9d9;
    padding: 39px 48px 39px 40px;
    list-style: none;
}

.steps-list li {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    min-height: 40px;
    padding: 0;
    color: var(--color-muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
}

.steps-list li::before {
    position: static;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--color-ink);
    content: counter(step);
    counter-increment: step;
    transform: none;
}

.steps-list {
    counter-reset: step;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(420px, 748px) minmax(500px, 1fr);
    gap: 88px;
    align-items: start;
    margin-top: 94px;
}

.about-slider {
    position: relative;
}

.about-slider__track {
    min-height: 524px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ddd;
}

.about-slide img {
    width: 100%;
    height: 524px;
    object-fit: cover;
}

.about-slider__controls {
    position: relative;
    height: 30px;
    margin-top: 35px;
}

.slider-arrow {
    position: absolute;
    top: 0;
    --arrow-icon-size: 24px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: var(--color-ink);
    color: #fff;
    cursor: pointer;
}

.slider-arrow--prev {
    left: 0;
}

.slider-arrow--next {
    right: 0;
}

.about-dots {
    position: absolute;
    top: 10px;
    left: 50%;
    min-width: 90px;
    height: 10px;
    align-items: center;
    gap: 30px;
    margin-top: 0;
    transform: translateX(-50%);
}

.about-dots button {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
}

.about-copy {
    display: flex;
    flex-direction: column;
    gap: 54px;
}

.about-copy h3 {
    margin: 0 0 34px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.about-copy p {
    margin: 0;
    color: var(--color-muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
}

.site-footer {
    margin-top: 42px;
    background: #eee;
    overflow: hidden;
}

.footer-grid {
    position: relative;
    display: grid;
    grid-template-areas:
        "brand . . contacts"
        "nav privacy year dev";
    grid-template-columns: minmax(170px, 1fr) minmax(270px, auto) minmax(70px, auto) minmax(230px, auto);
    grid-template-rows: minmax(120px, 1fr) auto;
    min-height: 348px;
    align-items: start;
    gap: 28px 36px;
    padding: 60px 0 44px;
}

.footer-grid > :not(.footer-watermark) {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.footer-brand {
    grid-area: brand;
    gap: 0;
}

.footer-brand img {
    width: 50px;
    height: 50px;
}

.footer-brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.footer-nav {
    grid-area: nav;
    display: flex;
    flex-direction: column;
    align-self: end;
    gap: 19px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
}

.footer-nav a,
.footer-contacts a {
    white-space: nowrap;
}

.footer-privacy {
    grid-area: privacy;
    align-self: end;
    justify-self: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

.footer-year {
    grid-area: year;
    align-self: end;
    justify-self: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
}

.footer-contacts {
    grid-area: contacts;
    display: flex;
    flex-direction: column;
    justify-self: end;
    gap: 20px;
    align-items: flex-end;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
}

.footer-dev {
    grid-area: dev;
    align-self: end;
    justify-self: end;
    font-family: "Circe", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    text-align: right;
    text-decoration: underline;
    white-space: nowrap;
}

.footer-watermark {
    position: absolute;
    top: 26px;
    left: 50%;
    z-index: 0;
    color: #e5e5e5;
    font-size: clamp(136px, 11.5vw, 200px);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
}

body.is-gallery-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 24px;
    background: rgba(0, 0, 0, .82);
    padding: 48px 56px;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox__figure {
    min-width: 0;
    max-width: 1240px;
    margin: 0 auto;
}

.gallery-lightbox__figure img {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    margin: 0 auto;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.gallery-lightbox__figure figcaption {
    min-height: 22px;
    margin-top: 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
}

.gallery-lightbox__close,
.gallery-lightbox__arrow {
    position: relative;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.gallery-lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
}

.gallery-lightbox__close::before,
.gallery-lightbox__close::after {
    position: absolute;
    left: 13px;
    top: 21px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-ink);
    content: "";
}

.gallery-lightbox__close::before {
    transform: rotate(45deg);
}

.gallery-lightbox__close::after {
    transform: rotate(-45deg);
}

.gallery-lightbox__arrow {
    --arrow-icon-size: 32px;
    width: 54px;
    height: 54px;
    color: var(--color-ink);
}

.flash-stack {
    position: fixed;
    right: 24px;
    top: 24px;
    z-index: 1200;
    display: grid;
    width: min(420px, calc(100vw - 48px));
    gap: 12px;
    pointer-events: none;
}

.flash-stack:empty {
    display: none;
}

.flash-message {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 64px;
    width: 100%;
    border-radius: var(--radius-md);
    background: #4f4f51;
    color: #fff;
    padding: 16px 56px 16px 20px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, .18);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    pointer-events: auto;
    transition: opacity .2s ease, transform .2s ease;
}

.flash-message::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--color-accent);
}

.flash-message__text {
    display: block;
}

.flash-message__close {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 28px;
    height: 28px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.flash-message__close::before,
.flash-message__close::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 13px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .78);
}

.flash-message__close::before {
    transform: rotate(45deg);
}

.flash-message__close::after {
    transform: rotate(-45deg);
}

.flash-message__close:hover::before,
.flash-message__close:hover::after {
    background: #fff;
}

.flash-message.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.flash-message--error {
    background: #b42318;
}

.flash-message--error::before,
.flash-message--validate::before {
    background: #ffb4ab;
}

.flash-message--warning::before {
    background: #ffc857;
}

.flash-message--info::before {
    background: #8ed1fc;
}

@media (min-width: 1280px) and (max-width: 1599px) {
    .container,
    .site-header,
    .orders-carousel {
        width: min(calc(100% - 48px), var(--container));
    }

    .site-header {
        gap: 24px;
    }

    .site-nav {
        gap: clamp(30px, 3vw, 46px);
    }

    .header-actions {
        gap: 24px;
    }

    .header-actions .button {
        padding-right: 28px;
        padding-left: 28px;
    }

    .hero__grid {
        grid-template-columns: minmax(390px, 620px) minmax(500px, 1fr);
        gap: 48px;
    }

    .contact-card {
        padding: 60px 52px 84px;
    }

    .contact-grid {
        grid-template-columns: minmax(410px, 1fr) minmax(300px, .78fr) minmax(420px, 1fr);
        gap: 18px;
    }

    .contact-form {
        gap: 28px;
    }

    .contact-visual,
    .steps-list {
        height: 422px;
        min-height: 422px;
    }

    .form-actions {
        grid-template-columns: minmax(184px, 196px) minmax(202px, 1fr);
        gap: 16px;
    }

    .file-button {
        gap: 8px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .form-actions .button {
        min-width: 202px;
        padding-right: 26px;
        padding-left: 26px;
        font-size: 15px;
    }

    .steps-list {
        padding-right: 32px;
        padding-left: 32px;
    }

    .steps-list li {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 22px;
        padding: 0;
        font-size: 15px;
    }

    .steps-list li::before {
        width: 38px;
        height: 38px;
    }

    .footer-watermark {
        font-size: clamp(152px, 12vw, 200px);
    }
}

@media (max-width: 1279px) {
    .container,
    .site-header {
        width: min(calc(100% - 40px), 1100px);
    }

    .orders-carousel {
        width: min(calc(100% - 40px), 1100px);
    }

    .site-nav {
        gap: 34px;
    }

    .header-actions {
        gap: 18px;
    }

    .hero__grid,
    .services-layout,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .services-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .services-panels,
    .service-panel {
        min-height: 0;
    }

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

    .steps-list {
        grid-column: 1 / -1;
        display: grid;
        height: auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 24px;
        min-height: 0;
        border-radius: 0;
        background: transparent;
        padding: 0;
    }

    .footer-grid {
        grid-template-columns: minmax(160px, .8fr) minmax(220px, 1fr) minmax(44px, auto) minmax(209px, auto);
        gap: 20px;
        min-height: 330px;
        padding: 56px 0 40px;
    }

    .footer-nav,
    .footer-privacy,
    .footer-year,
    .footer-contacts,
    .footer-dev {
        font-size: 15px;
    }

    .footer-watermark {
        top: 32px;
        font-size: clamp(110px, 14vw, 156px);
    }
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .container,
    .site-header {
        width: min(calc(100% - 20px), 402px);
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .section-lead {
        margin-top: 22px;
        font-size: 14px;
    }

    .site-header {
        min-height: 79px;
        grid-template-columns: 1fr auto 1fr;
        gap: 12px;
    }

    .brand {
        grid-column: 1 / 3;
        gap: 12px;
    }

    .brand__logo {
        width: 30px;
        height: 30px;
        order: 2;
    }

    .brand__name {
        order: 1;
        font-size: 12px;
    }

    .menu-toggle {
        position: relative;
        z-index: 30;
        display: flex;
        width: 48px;
        height: 48px;
        grid-column: 3;
        align-items: center;
        justify-content: center;
        justify-self: end;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        position: absolute;
        width: 24px;
        height: 2px;
        border-radius: 2px;
        background: var(--color-ink);
        transition: transform .2s ease;
    }

    .menu-toggle span:first-child {
        transform: translateY(-5px);
    }

    .menu-toggle span:last-child {
        transform: translateY(5px);
    }

    body.is-menu-open .menu-toggle span:first-child {
        transform: rotate(45deg);
    }

    body.is-menu-open .menu-toggle span:last-child {
        transform: rotate(-45deg);
    }

    .site-nav {
        position: fixed;
        inset: 0;
        z-index: 25;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        background: rgba(251, 251, 251, .98);
        font-size: 18px;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    body.is-menu-open .site-nav {
        opacity: 1;
        pointer-events: auto;
    }

    .header-actions {
        display: none;
    }

    .button {
        width: 100%;
        min-height: 40px;
        padding: 11px 22px;
        font-size: 14px;
    }

    .hero {
        min-height: auto;
        padding-top: 18px;
        text-align: center;
    }

    .hero::after {
        left: 50%;
        right: auto;
        top: -480px;
        width: 1144px;
        height: 1133px;
        transform: translateX(-50%);
    }

    .hero__grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 28px;
    }

    .hero__content {
        align-items: center;
        width: 100%;
    }

    .hero h1 {
        max-width: 375px;
        font-size: 24px;
        text-align: center;
    }

    .hero p {
        max-width: 381px;
        margin: 24px 0 28px;
        font-size: 14px;
    }

    .hero-slider {
        height: auto;
        min-height: 0;
        width: 100%;
    }

    .hero-slide img {
        width: auto;
        max-width: 100%;
        max-height: 340px;
        height: auto;
        margin: 0 auto;
    }

    .hero-slider .hero-dots {
        right: 22px;
        bottom: 24px;
        display: flex;
        gap: 10px;
    }

    .benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 20px;
        margin-top: 74px;
    }

    .benefit-card {
        min-height: 147px;
        padding: 18px;
        text-align: left;
    }

    .benefit-card img {
        width: 32px;
        height: 32px;
        margin-bottom: 28px;
    }

    .benefit-card span {
        font-size: 14px;
    }

    .services {
        padding-top: 40px;
    }

    .services-layout {
        display: block;
        margin-top: 36px;
    }

    .services-tabs {
        display: flex;
        flex-direction: row;
        width: calc(100% + 20px);
        gap: 6px;
        overflow-x: auto;
        padding: 20px 10px 20px 0;
        scrollbar-width: none;
    }

    .services-tabs::-webkit-scrollbar {
        display: none;
    }

    .service-tab {
        min-width: 156px;
        min-height: 60px;
        grid-template-columns: 58px 1fr;
        border-radius: var(--radius-lg);
    }

    .service-tab img {
        left: -24px;
        width: 86px;
        height: 60px;
    }

    .service-tab span {
        font-size: 12px;
    }

    .service-panel,
    .service-panel.is-active {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 12px;
    }

    .service-panel__media,
    .service-panel__media img,
    .service-panel__media video {
        min-height: 150px;
        height: 150px;
    }

    .service-panel__text {
        padding: 0;
    }

    .service-panel__text h3 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .service-panel__text h4 {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .service-panel__text p {
        font-size: 12px;
        text-align: justify;
    }

    .products-slider {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
        gap: 10px;
    }

    .products-slider__track {
        gap: 10px;
    }

    .product-card {
        flex-basis: min(46%, 156px);
        min-width: 134px;
    }

    .product-card img {
        aspect-ratio: 1.04;
    }

    .product-card span {
        font-size: 12px;
        margin-top: 10px;
    }

    .products-arrow {
        --arrow-icon-size: 24px;
        width: 30px;
        height: 30px;
    }

    .orders-carousel {
        width: min(calc(100% - 22px), 380px);
        margin-top: 40px;
    }

    .orders-carousel.is-mobile-feed .orders-carousel__viewport {
        overflow: visible;
    }

    .orders-carousel.is-mobile-feed .orders-carousel__track {
        display: block;
        transform: none !important;
        transition: none;
        will-change: auto;
    }

    .orders-masonry-slide {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: 48px 60px 50px;
        gap: 4px;
    }

    .orders-carousel.is-mobile-feed .orders-masonry-slide {
        display: none;
        margin-top: 4px;
    }

    .orders-carousel.is-mobile-feed .orders-masonry-slide.is-revealed {
        display: grid;
    }

    .orders-carousel.is-mobile-feed .orders-masonry-slide.is-revealed:first-child {
        margin-top: 0;
    }

    .orders-masonry__item {
        border-radius: var(--radius-md);
    }

    .orders-carousel__controls {
        display: none;
    }

    .orders-more {
        display: flex;
        min-height: 39px;
        margin: 40px auto 0;
        padding: 11px 22px;
        font-size: 14px;
    }

    .orders-more[hidden] {
        display: none;
    }

    .contact-card {
        padding: 20px 13px 50px;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .contact-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .contact-form {
        width: 100%;
    }

    .field input {
        height: 50px;
    }

    .form-actions {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .file-button {
        width: 100%;
        min-height: 40px;
        justify-content: center;
    }

    .file-list {
        gap: 10px 16px;
    }

    .file-chip {
        max-width: calc(50% - 8px);
        font-size: 13px;
    }

    .file-upload-error {
        font-size: 13px;
    }

    .contact-visual {
        width: 100%;
        height: 339px;
        min-height: 339px;
    }

    .contact-visual img {
        height: 339px;
    }

    .steps-list {
        display: flex;
        height: auto;
        flex-direction: column;
        gap: 20px;
        width: 230px;
        margin: 0 auto;
    }

    .steps-list li {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        align-items: center;
        gap: 30px;
        min-height: 40px;
        padding: 0;
        font-size: 14px;
        white-space: normal;
    }

    .about-grid {
        display: flex;
        flex-direction: column;
        gap: 86px;
        margin-top: 40px;
    }

    .about-slider__track {
        min-height: 356px;
    }

    .about-slide img {
        height: 356px;
    }

    .about-slider__controls {
        margin-top: 25px;
    }

    .about-dots {
        top: 13px;
        min-width: 85px;
        height: 5px;
        gap: 35px;
    }

    .about-dots button {
        width: 5px;
        height: 5px;
        flex-basis: 5px;
    }

    .about-slider .slider-arrow--prev {
        left: 30px;
    }

    .about-copy {
        gap: 54px;
    }

    .about-copy h3 {
        margin-bottom: 34px;
        font-size: 24px;
        text-align: center;
    }

    .about-copy p {
        font-size: 14px;
    }

    .site-footer {
        margin-top: 0;
    }

    .footer-grid {
        grid-template-areas:
            "brand"
            "nav"
            "contacts"
            "privacy"
            "year"
            "dev";
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        justify-items: center;
        min-height: 0;
        gap: 0;
        padding: 30px 0 54px;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        gap: 13px;
        justify-self: center;
    }

    .footer-brand span {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .footer-nav {
        position: relative;
        width: 100%;
        align-items: center;
        gap: 19px;
        margin-top: 54px;
    }

    .footer-contacts {
        align-items: center;
        justify-self: center;
        margin-top: 56px;
    }

    .footer-privacy {
        justify-self: center;
        margin-top: 56px;
        font-size: 12px;
        white-space: nowrap;
    }

    .footer-year {
        justify-self: center;
        margin-top: 56px;
    }

    .footer-dev {
        justify-self: center;
        margin-top: 58px;
        text-align: center;
        white-space: nowrap;
    }

    .footer-watermark {
        display: none;
    }

    .gallery-lightbox {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 8px;
        padding: 54px 10px 34px;
    }

    .gallery-lightbox__figure img {
        max-height: calc(100vh - 150px);
    }

    .gallery-lightbox__figure figcaption {
        margin-top: 14px;
        font-size: 13px;
    }

    .gallery-lightbox__close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }

    .gallery-lightbox__close::before,
    .gallery-lightbox__close::after {
        left: 11px;
        top: 18px;
        width: 16px;
    }

    .gallery-lightbox__arrow {
        --arrow-icon-size: 26px;
        width: 40px;
        height: 40px;
    }

    .flash-stack {
        right: 12px;
        left: 12px;
        top: 12px;
        width: auto;
    }

    .flash-message {
        min-height: 60px;
        padding: 14px 50px 14px 18px;
    }
}
