:root {
    --bg: #f7f7f5;
    --bg-alt: #efefec;
    /* Лёгкий оттенок между «обычными» секциями — чуть заметнее соседние --bg / --bg-alt */
    --bg-band: #f3f3f0;
    --surface: #ffffff;
    --text: #101828;
    --muted: #475467;
    --accent: #1b325f;
    --violet: #7b5cff;
    --border: rgba(16, 24, 40, 0.14);
    --section-divider: rgba(16, 24, 40, 0.13);
    --section-divider-soft: rgba(255, 255, 255, 0.65);
    --creative-line: rgba(58, 137, 201, 0.42);
    /* Один бокс для всех роботов (как эталон у «Проекты» / #cases) */
    --divider-robot-size: clamp(168px, 31vw, 296px);
    --header-h: 92px;
    --content-inset-left: clamp(48px, 12vw, 168px);
}

html {
    scroll-padding-top: calc(var(--header-h) + 12px);
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

main {
    overflow-x: hidden;
    max-width: 100%;
}

@supports (overflow: clip) {
    html,
    body,
    main {
        overflow-x: clip;
    }
}

::selection {
    background: rgba(58, 137, 201, 0.22);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

main .container {
    padding-left: var(--content-inset-left);
    padding-right: var(--content-inset-left);
}

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(247, 247, 245, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    overflow: visible;
    transition: transform 0.26s ease, background-color 0.2s ease;
}

.header.header--hidden {
    transform: translateY(-100%);
}

.header__content {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    overflow: visible;
}

.logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    overflow: visible;
    margin-left: clamp(-8px, -1.1vw, -16px);
}

.logo__img {
    display: block;
    height: clamp(44px, 7vw, 58px);
    width: auto;
    transform: scale(1.32);
    transform-origin: left center;
}

.header__phone-inline {
    display: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: clamp(-8px, -1.1vw, -16px);
}

.nav__link,
.nav__contacts a {
    color: var(--muted);
    font-size: 1.08rem;
    transition: color 0.2s ease;
}

.nav__link {
    padding: 2px 0;
    font-weight: 500;
}

.nav__link:hover {
    color: var(--text);
}

.nav__link:focus-visible,
.nav__phone:focus-visible,
.menu-toggle:focus-visible {
    outline: 2px solid rgba(58, 137, 201, 0.65);
    outline-offset: 2px;
}

.nav__link:hover,
.nav__contacts a:hover {
    color: var(--text);
}

.nav__contacts {
    display: flex;
    gap: 12px;
    margin-left: 8px;
    padding-left: 14px;
    border-left: 1px solid var(--border);
}

.nav__phone,
.header__phone-inline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 10px 16px;
    border: 1px solid rgba(16, 24, 40, 0.1);
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 8px 18px rgba(27, 50, 95, 0.28);
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.22);
    background-image:
        repeating-linear-gradient(
            118deg,
            rgba(255, 255, 255, 0) 0px 130px,
            rgba(58, 137, 201, 0.14) 145px,
            rgba(255, 255, 255, 0.48) 160px,
            rgba(58, 137, 201, 0.3) 178px,
            rgba(255, 255, 255, 0) 220px 260px
        ),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    background-size: 260px 100%, 100% 100%;
    background-position: 0 0, 0 0;
    animation: phone-sheen 3.6s linear infinite;
    transition:
        border-color 0.24s ease,
        background 0.24s ease,
        color 0.24s ease,
        box-shadow 0.24s ease,
        transform 0.24s ease;
}

.nav__phone:hover,
.header__phone-inline:hover {
    background: #162b54;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 22px rgba(27, 50, 95, 0.34);
    transform: translateY(-1px);
    animation-duration: 2.6s;
}

@keyframes phone-sheen {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: -260px 0, 0 0;
    }
}

.nav__phone::before,
.header__phone-inline::before {
    content: "✆";
    color: #3a89c9;
    font-size: 0.95em;
    line-height: 1;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 6px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: var(--text);
}

@media (min-width: 961px) {
    :root {
        --divider-robot-size: clamp(220px, 22vw, 400px);
    }

    .header__content {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: nowrap;
    }

    .logo {
        order: 1;
        margin-left: 0;
    }

    .nav {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-right: 0;
        white-space: nowrap;
    }

    .header__phone-inline {
        display: inline-flex;
        order: 3;
        margin-left: 0;
        margin-right: 0;
        padding: 10px 16px;
        font-size: 1.02rem;
        z-index: 2;
    }

    .nav__contacts {
        display: none;
    }
}

main section + section {
    border-top: none;
    box-shadow: none;
}

.section#about::after,
.section#services::after,
.section#cases::after,
.section#contacts::after {
    content: "";
    position: absolute;
    bottom: 0;
    z-index: 25;
    box-sizing: border-box;
    width: var(--divider-robot-size);
    height: var(--divider-robot-size);
    max-width: min(var(--divider-robot-size), 92vw);
    max-height: min(var(--divider-robot-size), 92vw);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    pointer-events: none;
    transform: translate(-50%, 16%);
    filter:
        drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
        drop-shadow(0 3px 10px rgba(16, 24, 40, 0.35))
        drop-shadow(0 1px 3px rgba(16, 24, 40, 0.25));
}

.section#about::after {
    left: clamp(56px, 14%, calc(100% - 56px));
    background-image: url("../photo/about.png");
    transform: translate(-50%, calc(16% + 8px)) scale(1.06);
}

.section#services::after {
    left: clamp(56px, 76%, calc(100% - 56px));
    background-image: url("../photo/uslugi.png");
    transform: translate(-50%, 16%) scale(1.06);
}

.section#cases::after {
    left: clamp(56px, 44%, calc(100% - 56px));
    background-image: url("../photo/projects.png");
    bottom: 0;
    transform: translate(-50%, calc(11% + 7px)) scale(1.06);
}

.section#contacts::after {
    left: clamp(56px, 82%, calc(100% - 56px));
    background-image: url("../photo/contact.png");
    transform: translate(-50%, calc(10.5% + 3px)) scale(1.36);
}

@media (max-width: 640px) {
    .section#about::after {
        left: clamp(48px, 12%, calc(100% - 48px));
        transform: translate(-50%, calc(16% - 29px)) scale(1.06);
    }

    .section#services::after {
        left: clamp(48px, 78%, calc(100% - 48px));
    }

    .section#cases::after {
        left: 34px;
    }

    .section#contacts::after {
        left: clamp(18px, 66%, calc(100% - 100));
    }
}

.section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    box-sizing: border-box;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    padding-top: max(clamp(56px, 9vh, 120px), env(safe-area-inset-top, 0px));
    padding-bottom: max(clamp(56px, 9vh, 120px), env(safe-area-inset-bottom, 0px));
}

.section--alt {
    background: linear-gradient(
        180deg,
        var(--bg) 0%,
        var(--bg-alt) 16%,
        var(--bg-alt) 84%,
        var(--bg) 100%
    );
}

/*
 * Только overflow: hidden — без полосы прокрутки у секции (сочетание overflow-x:hidden
 * и overflow-y:visible даёт вычисленный overflow-y:auto и скролл «внутри блока»).
 * Доп. нижний паддинг — место под робота целиком внутри секции при bottom: 0 и transform.
 */
#services {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-bottom: calc(
        max(clamp(56px, 9vh, 120px), env(safe-area-inset-bottom, 0px)) + clamp(48px, 11vw, 112px)
    );
}

.services-bg-stack {
    position: absolute;
    left: 0;
    right: 0;
    top: -10%;
    height: 120%;
    z-index: 0;
    transform: translate3d(0, var(--services-parallax-y, 0px), 0);
    will-change: transform;
    pointer-events: none;
}

.services-bg-layer {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.65s ease;
    z-index: 0;
}

.services-bg-layer.is-visible {
    opacity: 1;
    z-index: 1;
}

#services[data-bg="modeling"]::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10%;
    height: 120%;
    z-index: 2;
    background: linear-gradient(
        105deg,
        rgba(239, 239, 236, 0.94) 0%,
        rgba(239, 239, 236, 0.72) 42%,
        rgba(239, 239, 236, 0.35) 72%,
        transparent 100%
    );
    pointer-events: none;
}

#services[data-bg="printing"]::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10%;
    height: 120%;
    z-index: 2;
    background: linear-gradient(
        105deg,
        rgba(239, 239, 236, 0.95) 0%,
        rgba(239, 239, 236, 0.78) 38%,
        rgba(239, 239, 236, 0.42) 68%,
        transparent 100%
    );
    pointer-events: none;
}

#services[data-bg="engineering"]::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10%;
    height: 120%;
    z-index: 2;
    background: linear-gradient(
        105deg,
        rgba(239, 239, 236, 0.95) 0%,
        rgba(239, 239, 236, 0.78) 40%,
        rgba(239, 239, 236, 0.4) 70%,
        transparent 100%
    );
    pointer-events: none;
}

#services[data-bg]::before {
    transform: none;
    will-change: auto;
}

#services .container {
    position: relative;
    z-index: 3;
}

#services .card--service {
    cursor: pointer;
    border-radius: 12px;
    margin: 0;
    padding: 20px 20px 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(16, 24, 40, 0.08);
    box-shadow: 0 4px 20px rgba(16, 24, 40, 0.07);
    transform: translate3d(0, 0, 0);
    transition:
        background-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.28s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

#services .card--service::before {
    background: rgba(16, 24, 40, 0.1);
    margin-bottom: 16px;
    transform-origin: 0 50%;
    transition:
        background-color 0.28s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

#services .card--service h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.3;
    letter-spacing: -0.005em;
    transition: color 0.25s ease;
}

#services .card--service .card__head {
    display: flex;
    align-items: center;
    min-height: 42px;
    margin-bottom: 10px;
}

#services .card--service .card__desc {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.72;
    color: #344054;
}

#services .card--service:hover,
#services .card--service:focus-visible {
    background: #fff;
    border-color: rgba(27, 50, 95, 0.22);
    box-shadow:
        0 14px 36px rgba(16, 24, 40, 0.12),
        0 4px 12px rgba(58, 137, 201, 0.08);
    transform: translate3d(0, -6px, 0);
}

#services .card--service:hover::before,
#services .card--service:focus-visible::before {
    background: linear-gradient(
        90deg,
        rgba(58, 137, 201, 0.85) 0%,
        rgba(27, 50, 95, 0.55) 100%
    );
    transform: scaleX(1.04);
}

#services .card--service:hover h3,
#services .card--service:focus-visible h3 {
    color: #1b325f;
}

#services .card--service:focus-visible {
    outline: 2px solid rgba(27, 50, 95, 0.45);
    outline-offset: 2px;
}

@keyframes service-card-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#services.is-inview .card--service {
    animation: service-card-in 0.52s cubic-bezier(0.25, 1, 0.35, 1) backwards;
}

#services.is-inview .card--service:nth-child(1) {
    animation-delay: 0.04s;
}

#services.is-inview .card--service:nth-child(2) {
    animation-delay: 0.11s;
}

#services.is-inview .card--service:nth-child(3) {
    animation-delay: 0.18s;
}

.section--about {
    overflow: visible;
    background-color: var(--bg);
    isolation: isolate;
}

.section--about::before {
    content: "";
    position: absolute;
    inset: -32px;
    z-index: 0;
    background-image: url("../photo/2.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right bottom;
    filter: blur(5px);
    transform: translate3d(0, var(--about-parallax-y, 0px), 0);
    will-change: transform;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(
        180deg,
        transparent 0,
        rgb(0, 0, 0) min(180px, 28vh)
    );
    mask-image: linear-gradient(
        180deg,
        transparent 0,
        rgb(0, 0, 0) min(180px, 28vh)
    );
}

.section--about .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(1120px, 92%);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section--about .section__eyebrow,
.section--about h2,
.section--about .container > p {
    margin-left: auto;
    margin-right: auto;
}

.section--about .section__eyebrow {
    color: var(--muted);
}

.section--about h2 {
    color: var(--text);
}

.section--about .container > p:not(.section__eyebrow) {
    color: #1d2939;
}

.about-copy {
    font-size: clamp(1.02rem, 1.25vw, 1.14rem);
    line-height: 1.9;
    letter-spacing: 0.005em;
    max-width: 78ch;
    text-wrap: pretty;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    padding-top: clamp(28px, 6vh, 56px);
    padding-bottom: max(clamp(28px, 6vh, 56px), env(safe-area-inset-bottom, 0px));
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    background-color: var(--bg);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12%;
    height: 124%;
    z-index: 0;
    background-image: url("../photo/1.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right center;
    transform: translate3d(0, var(--hero-parallax-y, 0px), 0);
    will-change: transform;
    pointer-events: none;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            rgba(247, 247, 245, 0) 0%,
            rgba(247, 247, 245, 0) 48%,
            rgba(247, 247, 245, 0.38) 78%,
            var(--bg) 100%
        ),
        linear-gradient(
            90deg,
            rgba(247, 247, 245, 0.97) 0%,
            rgba(247, 247, 245, 0.82) 38%,
            rgba(247, 247, 245, 0.35) 62%,
            transparent 85%
        );
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero__content,
.section .container > p,
.section .container > h2,
.section .container > ul,
.section .container > .cards {
    max-width: 860px;
}

main section .container > h2,
main section .container > p,
main section .container > ul,
main section .container > .cards {
    margin-left: auto;
    margin-right: auto;
}

.hero__tag,
.section__eyebrow {
    margin: 0 0 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
}

h1 {
    margin: 0 0 14px;
    font-size: clamp(2.05rem, 4vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    max-width: 900px;
}

h2 {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

p,
.cases-list,
.card p {
    color: var(--muted);
}

.hero__text {
    margin: 0;
    font-size: 1.05rem;
    max-width: 760px;
}

.hero__meta {
    margin: 14px 0 0;
    font-size: 0.9rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(16, 24, 40, 0.1);
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-align: center;
    box-shadow: 0 8px 18px rgba(27, 50, 95, 0.28);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.btn:hover {
    background: #162b54;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 22px rgba(27, 50, 95, 0.34);
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 2px solid rgba(58, 137, 201, 0.65);
    outline-offset: 3px;
}

.btn__icon {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
}

.section--cases {
    background: linear-gradient(
        180deg,
        var(--bg-alt) 0%,
        var(--bg-band) 24%,
        var(--bg-band) 76%,
        var(--bg-alt) 100%
    );
}

.section--cases .container {
    text-align: center;
}

.section--cases .section__eyebrow,
.section--cases .container > h2 {
    margin-left: auto;
    margin-right: auto;
}

.section--cases .cases-list {
    display: inline-block;
    margin: 0 auto;
    padding-left: 22px;
    text-align: left;
}

.cases-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 26px auto 0;
}

.cases-actions .btn {
    margin-top: 0;
}

.btn--telegram {
    background: #229ed9;
    color: #fff;
    box-shadow: 0 2px 12px rgba(34, 158, 217, 0.35);
}

.btn--telegram:hover {
    background: #1f8fc5;
    box-shadow: 0 4px 18px rgba(34, 158, 217, 0.45);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
    letter-spacing: normal;
}

.btn--outline:hover {
    background: rgba(16, 24, 40, 0.04);
    border-color: rgba(16, 24, 40, 0.22);
}

.services-actions {
    margin: 18px 0 0;
}

.services-pricing-btn {
    display: none;
}

.cards {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.card {
    padding: 0;
    border: 0;
    background: transparent;
}

.card h3 {
    margin: 0;
    font-size: 1.06rem;
}

.card p {
    margin: 10px 0 0;
}

.card::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: var(--border);
    margin-bottom: 16px;
}

.pricing-note {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(16, 24, 40, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
}

.pricing-note__lead {
    margin: 0 0 8px;
    color: #1d2939;
    font-weight: 600;
}

.pricing-note__list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 6px;
}

.pricing-note__list li {
    color: #475467;
    line-height: 1.65;
}

.cases-list {
    margin: 0;
    padding-left: 22px;
}

.cases-list li + li {
    margin-top: 10px;
}

.contacts-intro {
    text-align: center;
    margin-bottom: clamp(8px, 2vw, 14px);
}

.contacts-intro .section__eyebrow {
    margin-bottom: 12px;
}

.contacts-intro h2 {
    margin: 0 auto 0;
    max-width: 860px;
}

.contacts-intro__rule {
    width: 48px;
    height: 3px;
    margin: 14px auto 16px;
    border-radius: 3px;
    background: linear-gradient(
        90deg,
        var(--accent),
        rgba(58, 137, 201, 0.85)
    );
}

.contacts-intro__lead {
    margin: 0 auto;
    max-width: 560px;
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.5;
}

.contacts-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
    gap: clamp(28px, 5vw, 48px);
    align-items: start;
    width: 100%;
    margin-top: clamp(22px, 4vw, 40px);
}

.contacts-section__info,
.contacts-section__form {
    min-width: 0;
}

.contacts-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contacts-mini-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 2px 16px rgba(16, 24, 40, 0.05);
    border: 1px solid var(--border);
}

.contacts-mini-card__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(27, 50, 95, 0.08);
    color: var(--accent);
}

.contacts-mini-card__title {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
}

.contacts-mini-card__value {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.45;
    color: #344054;
    word-break: break-word;
}

.contacts-mini-card__value a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(27, 50, 95, 0.28);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contacts-mini-card__value a:hover {
    color: var(--text);
    border-bottom-color: rgba(16, 24, 40, 0.35);
}

.contacts-panel {
    border-radius: 14px;
    padding: clamp(18px, 3vw, 24px);
    background: var(--surface);
    box-shadow: 0 2px 20px rgba(16, 24, 40, 0.06);
    border: 1px solid var(--border);
}

.contacts-actions-panel__text {
    margin: 0;
    font-size: 1rem;
    color: var(--muted);
}

.contacts-actions {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.contacts-action-btn {
    width: 100%;
    margin-top: 0;
}

#contacts .contact-form {
    margin-top: 0;
    max-width: none;
    width: 100%;
}

.contact-form--panel .contact-form__grid .contact-form__field {
    margin-top: 0;
}

.contact-form--panel .contact-form__grid + .contact-form__field {
    margin-top: 12px;
}

#contacts .contact-form--panel textarea {
    min-height: 72px;
    padding: 10px 12px;
    font-size: 0.94rem;
    border-radius: 10px;
}

#contacts .contact-form--panel input:not([type="checkbox"]) {
    padding: 9px 12px;
    font-size: 0.94rem;
    border-radius: 10px;
}

#contacts .contact-form .form-alert {
    margin-top: 0;
    margin-bottom: 12px;
    padding: 8px 12px;
    font-size: 0.88rem;
}

#contacts .contact-form--panel .contact-form__field {
    gap: 6px;
}

#contacts .contact-form--panel .contact-form__field span {
    font-size: 0.82rem;
}

#contacts .contact-form--panel .contact-form__grid {
    gap: 10px;
}

.contact-form__consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    font-size: 0.84rem;
    line-height: 1.42;
    color: var(--muted);
}

.contact-form__consent-row input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
    cursor: pointer;
}

.contact-form__consent-copy {
    cursor: default;
}

.contact-form__agreement-link {
    display: inline;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.contact-form__agreement-link:hover {
    color: var(--text);
}

.btn.btn--contact-submit {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(16, 24, 40, 0.1);
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 18px rgba(27, 50, 95, 0.28);
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.btn.btn--contact-submit:hover {
    background: #162b54;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 22px rgba(27, 50, 95, 0.34);
}

.btn.btn--contact-submit:active {
    transform: translateY(1px);
}

.btn--contact-submit__icon {
    flex-shrink: 0;
}

.modal-doc {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 28px);
    visibility: hidden;
    opacity: 0;
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;
}

.modal-doc.is-open {
    visibility: visible;
    opacity: 1;
}

.modal-doc__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, 0.48);
    cursor: pointer;
}

.modal-doc__dialog {
    position: relative;
    width: min(100%, 560px);
    max-height: min(85vh, 720px);
    overflow: auto;
    padding: 26px 28px 28px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.22);
}

.modal-doc__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.modal-doc__close:hover {
    background: rgba(16, 24, 40, 0.06);
    color: var(--text);
}

.modal-doc__title {
    margin: 0 36px 16px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.modal-doc__body {
    font-size: 0.94rem;
    line-height: 1.55;
    color: #475467;
}

.modal-doc__body p {
    margin: 0 0 14px;
}

.modal-doc__body p:last-child {
    margin-bottom: 0;
}

.contact-form {
    margin-top: 28px;
    max-width: 860px;
}

.contact-form__hint {
    margin: 0 0 6px;
    max-width: 860px;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.45;
}

.contact-form__hint strong {
    color: var(--text);
    font-weight: 600;
}

.contact-form__hint--below-message {
    margin: 10px 0 16px;
}

#contacts .contact-form__hint--below-message {
    margin: 6px 0 0;
    font-size: 0.8rem;
    line-height: 1.38;
}

.contact-form__field--phone .contact-form__phone {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.contact-form__grid.contact-form__grid--stack {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    color: var(--text);
    font-weight: 500;
}

.contact-form__field span {
    font-size: 0.9rem;
    color: #344054;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(16, 24, 40, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    padding: 11px 14px;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(58, 137, 201, 0.8);
    box-shadow: 0 0 0 3px rgba(58, 137, 201, 0.2);
}

.contact-form__trap {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-alert {
    margin-top: 14px;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.93rem;
}

.form-alert--error {
    border: 1px solid rgba(215, 45, 45, 0.32);
    background: rgba(215, 45, 45, 0.08);
    color: #8f1f1f;
}

.form-alert--success {
    border: 1px solid rgba(10, 125, 70, 0.3);
    background: rgba(10, 125, 70, 0.1);
    color: #0c6b3f;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0 48px;
    color: var(--muted);
    font-size: 0.94rem;
    background: var(--bg-alt);
}

.footer__wide {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: max(clamp(18px, 3.2vw, 72px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(18px, 3.2vw, 72px), env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

.footer__grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, 0.95fr)
        minmax(0, 1.35fr)
        minmax(0, 1fr);
    gap: clamp(18px, 2.8vw, 44px);
    align-items: center;
}

.footer__col--contacts,
.footer__col--hours {
    text-align: left;
}

.footer__col--tagline {
    text-align: center;
    justify-self: center;
    width: 100%;
    max-width: 380px;
}

.footer__col--right {
    text-align: right;
}

.footer__block-label {
    margin: 0 0 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer__stack {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.93rem;
    line-height: 1.45;
    color: var(--text);
}

.footer__stack-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    color: var(--accent);
}

.footer__icon svg {
    display: block;
}

.footer__hours-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer__hours-text {
    margin: 0;
    flex: 1;
    font-size: 0.93rem;
    line-height: 1.45;
    color: var(--text);
}

.footer__link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(27, 50, 95, 0.22);
    transition:
        color 0.15s ease,
        border-color 0.15s ease;
}

.footer__link:hover {
    color: var(--text);
    border-bottom-color: rgba(16, 24, 40, 0.35);
}

.footer__tagline-wrap {
    padding: 0 6px;
}

.footer__tag-en {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgba(71, 84, 103, 0.72);
}

.footer__tag-en .footer__tag-lang {
    font-size: 0.6rem;
    opacity: 0.65;
    vertical-align: super;
}

.footer__tag-brand {
    font-variant-numeric: tabular-nums;
}

.footer__tag-lang {
    margin-left: 5px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    vertical-align: super;
}

.footer__tag-rule {
    width: 36px;
    height: 2px;
    margin: 11px auto 12px;
    border-radius: 2px;
    opacity: 0.55;
    background: linear-gradient(
        90deg,
        rgba(27, 50, 95, 0.55),
        rgba(58, 137, 201, 0.48)
    );
}

.footer__tag-ru {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.018em;
    line-height: 1.42;
    color: var(--text);
}

.footer__tag-ru .footer__tag-lang {
    vertical-align: baseline;
    margin-left: 6px;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--muted);
    opacity: 0.88;
}

.footer__copy {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--muted);
}

.footer__privacy {
    margin: 10px 0 0;
}

.footer__powered {
    margin: 12px 0 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--muted);
}

.footer__powered-prefix {
    color: var(--muted);
}

.footer__powered-handle {
    display: inline-block;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    background: linear-gradient(135deg, var(--violet), #6046df);
    background-size: 100% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: none;
}

.footer__powered-handle:focus-visible {
    outline: 2px solid rgba(58, 137, 201, 0.65);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer__col--contacts,
    .footer__col--hours,
    .footer__col--tagline,
    .footer__col--right {
        text-align: center;
        justify-self: center;
        max-width: 28rem;
    }

    .footer__stack {
        align-items: center;
    }

    .footer__tag-rule {
        margin-left: auto;
        margin-right: auto;
    }

    .footer__powered {
        margin-top: 10px;
    }
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 140;
    display: none;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.22);
    backdrop-filter: blur(5px);
}

.cookie-banner.is-visible {
    display: grid;
}

.cookie-banner__text {
    margin: 0;
    font-size: 0.94rem;
    color: #344054;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-banner__btn {
    margin-top: 0;
}

@media (max-width: 960px) {
    :root {
        --content-inset-left: clamp(24px, 8vw, 56px);
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: var(--header-h);
        left: 4%;
        right: 4%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
    }

    .nav.is-open {
        display: flex;
    }

    .nav__contacts {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }

    .nav__link {
        width: 100%;
        border-radius: 0;
    }

    .nav__phone {
        width: 100%;
        text-align: left;
        padding: 6px 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        font-size: 1.12rem;
    }

    .section {
        min-height: calc(100vh - var(--header-h));
        min-height: calc(100svh - var(--header-h));
        padding-top: max(clamp(40px, 8vh, 72px), env(safe-area-inset-top, 0px));
        padding-bottom: max(clamp(40px, 8vh, 72px), env(safe-area-inset-bottom, 0px));
    }

    #services {
        padding-bottom: calc(
            max(clamp(40px, 8vh, 72px), env(safe-area-inset-bottom, 0px)) + clamp(40px, 10vw, 96px)
        );
    }

    .hero {
        align-items: center;
        min-height: calc(100vh - var(--header-h));
        min-height: calc(100svh - var(--header-h));
        padding-top: clamp(24px, 5vh, 40px);
        padding-bottom: max(clamp(24px, 5vh, 40px), env(safe-area-inset-bottom, 0px));
    }

    .hero::after {
        background-position: 70% center;
    }

    .hero::before {
        background:
            linear-gradient(
                180deg,
                rgba(247, 247, 245, 0) 0%,
                rgba(247, 247, 245, 0) 42%,
                rgba(247, 247, 245, 0.45) 82%,
                var(--bg) 100%
            ),
            linear-gradient(
                180deg,
                rgba(247, 247, 245, 0.96) 0%,
                rgba(247, 247, 245, 0.9) 45%,
                rgba(247, 247, 245, 0.75) 100%
            );
    }

    .section--about::before {
        background-position: 65% bottom;
    }

    .cards,
    .contact-form__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contacts-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }

}

@media (max-width: 640px) {
    :root {
        --divider-robot-size: clamp(230px, 56vw, 360px);
    }

    .section#about::after,
    .section#services::after,
    .section#cases::after,
    .section#contacts::after {
        z-index: 32;
    }

    #services {
        overflow: hidden;
        overflow-anchor: none;
        padding-bottom: max(clamp(6px, 2vh, 14px), env(safe-area-inset-bottom, 0px));
    }

    #services .services-bg-stack,
    #services[data-bg]::before {
        top: 0;
        height: 100%;
    }

    #services .services-bg-layer {
        background-size: cover;
    }

    #services[data-bg="modeling"] .services-bg-layer {
        background-position: calc(50% - 120px) center;
    }

    #services[data-bg="printing"] .services-bg-layer {
        background-position: calc(50% - 265px) center;
    }

    #services[data-bg="engineering"] .services-bg-layer {
        background-position: calc(50% - 265px) center;
    }

    .header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--bg);
    }

    .services-pricing-btn {
        display: inline-flex;
    }

    .services-actions {
        display: flex;
        justify-content: center;
    }

    .pricing-note {
        display: none;
    }

    #services .card--service,
    .pricing-note,
    .contacts-panel,
    .contacts-mini-card {
        background: #fff;
    }

    .nav {
        display: flex;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .section {
        min-height: auto;
        padding-top: max(clamp(30px, 7vh, 56px), env(safe-area-inset-top, 0px));
        padding-bottom: max(clamp(30px, 7vh, 56px), env(safe-area-inset-bottom, 0px));
    }

    .hero {
        min-height: calc(82vh - var(--header-h));
        min-height: calc(82svh - var(--header-h));
    }

    #about {
        min-height: 72vh;
        min-height: 72svh;
    }

    .hero::after {
        background-position: calc(100% + 216px) center;
    }

    .hero::before {
        background:
            linear-gradient(
                180deg,
                rgba(247, 247, 245, 0) 0%,
                rgba(247, 247, 245, 0) 52%,
                rgba(247, 247, 245, 0.26) 86%,
                rgba(247, 247, 245, 0.72) 100%
            ),
            linear-gradient(
                90deg,
                rgba(247, 247, 245, 0.88) 0%,
                rgba(247, 247, 245, 0.62) 34%,
                rgba(247, 247, 245, 0.2) 60%,
                transparent 82%
            );
    }

    .section--about::before {
        background-position: calc(100% + 344px) bottom;
        filter: blur(1.8px);
        opacity: 0.92;
    }

    .contacts-section__form {
        order: 1;
    }

    .contacts-section__info {
        order: 2;
    }

    .hero__tag,
    .section__eyebrow {
        font-size: 0.8rem;
    }

    h1 {
        font-size: clamp(2.15rem, 9.2vw, 2.7rem);
        line-height: 1.05;
    }

    h2 {
        font-size: clamp(1.7rem, 7.2vw, 2rem);
    }

    .hero__text,
    .about-copy,
    .card__desc,
    .contacts-intro__lead,
    .contact-form__field span,
    .contact-form__hint,
    .contacts-mini-card__value,
    .cases-list li,
    .section .container > p {
        font-size: 1.05rem;
    }

    .nav__link {
        font-size: 1.18rem;
        padding: 8px 0;
    }

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

    .nav__phone {
        width: auto;
        text-align: center;
        align-self: center;
        padding: 10px 16px;
        border: 1px solid rgba(16, 24, 40, 0.1);
        border-radius: 999px;
        background: var(--accent);
        color: #ffffff;
        box-shadow: 0 8px 18px rgba(27, 50, 95, 0.28);
    }

    .nav__phone,
    .nav__phone:visited,
    .nav__phone:hover,
    .nav__phone:active {
        color: #ffffff;
    }

    .nav__contacts a.nav__phone,
    .nav__contacts a.nav__phone:visited,
    .nav__contacts a.nav__phone:hover,
    .nav__contacts a.nav__phone:active {
        color: #ffffff;
    }

    .nav__phone:hover {
        background: #162b54;
        border-color: rgba(255, 255, 255, 0.18);
        box-shadow: 0 10px 22px rgba(27, 50, 95, 0.34);
    }

    .menu-toggle {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        padding: 3px;
    }

    .menu-toggle span {
        width: 19px;
        height: 2px;
        margin: 3px 0;
    }

    .header__content {
        position: relative;
        justify-content: center;
    }

    .logo {
        margin-left: 0;
        margin-right: 0;
    }

    .logo__img {
        height: 46px;
        transform: scale(1.12);
    }

    .header__phone-inline {
        display: none;
    }

    .nav__contacts {
        display: flex;
    }

    #services .card--service {
        padding: 14px 16px;
    }

    #services .card--service .card__head {
        min-height: auto;
        margin-bottom: 0;
    }

    #services .card--service .card__desc {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin-top: 0;
        will-change: max-height, opacity;
        transition: max-height 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, margin-top 0.22s ease;
    }

    #services .card--service.is-active .card__desc {
        max-height: 280px;
        opacity: 1;
        margin-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav__phone,
    .header__phone-inline {
        animation: none !important;
    }

    .footer__powered-handle {
        animation: none;
        background: linear-gradient(135deg, var(--violet), #6046df);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }

    .hero::after,
    .services-bg-stack,
    #services[data-bg]::before,
    .section--about::before {
        transform: none !important;
        will-change: auto;
    }

    .services-bg-layer {
        transition: opacity 0.05s linear !important;
    }

    #services.is-inview .card--service {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    #services .card--service:hover,
    #services .card--service:focus-visible {
        transform: none;
    }

    #services .card--service:hover::before,
    #services .card--service:focus-visible::before {
        transform: none;
    }
}
