@import 'sgrid/settings';
@import 'sgrid/grid';
@import 'sgrid/helpers';
@import 'variables';
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-padding-top: calc(var(--size7) + 24px);
    scrollbar-color: var(--a_background) var(--m_extra_background);
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    padding-top: var(--size7);
    background: var(--m_background);
    color: var(--m_text_color);
    font-family: var(--font_main_regular);
    font-size: var(--text_size1);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

body.has-dialog {
    overflow: hidden;
}

body.has-menu {
    overflow: hidden;
}

::selection {
    background: var(--a_background);
    color: var(--a_text_color);
}

img {
    display: block;
    max-width: 100%;
    object-fit: cover;
}

svg {
    flex-shrink: 0;
}

button, input, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border-radius: var(--radius2);
}

a {
    color: inherit;
    text-underline-offset: .2em;
}

button:disabled {
    cursor: wait;
    opacity: .65;
}

:focus-visible {
    outline: 3px solid var(--m_accent_color);
    outline-offset: 5px;
}

.hero :focus-visible, .process :focus-visible, .site-footer :focus-visible, .contact-cta :focus-visible {
    outline-color: var(--text_inverse);
}

h1, h2, h3, p {
    margin: 0;
}

h1, h2, h3 {
    font-family: var(--font_main_bold);
    font-weight: 800;
    color: var(--m_title_color);
    overflow-wrap: anywhere;
}

h1 {
    font-size: var(--title_size1);
    line-height: 1.18;
    letter-spacing: -.015em;
}

h2 {
    font-size: var(--title_size2);
    line-height: var(--lheight1);
    letter-spacing: -.02em;
}

h3 {
    font-size: var(--title_size3);
    line-height: 1.25;
}

.section {
    padding-block: var(--gap_bold);
}

.section-label {
    margin-bottom: 24px;
    color: var(--m_accent_color);
    font-size: var(--text_size2);
    font-weight: 800;
    line-height: 1.4;
}

.section-intro {
    margin-top: 22px;
    max-width: 1140px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    min-height: 64px;
    padding: 18px 22px;
    border: 1px solid transparent;
    background: var(--m_button_color);
    color: var(--m_button_text);
    text-decoration: none;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 800;
    transition: background-color 160ms ease, transform 160ms var(--ease_out);
}

.button--dark {
    background: var(--h_button_color);
    color: var(--h_button_text);
    border-color: #848582;
}

.button:active, .text-button:active {
    transform: scale(.97);
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border: 0;
    color: inherit;
    background: transparent;
    font-size: 19px;
    font-weight: 800;
    text-decoration: none;
    transition: color 160ms ease, transform 160ms var(--ease_out);
}

.skip-link {
    position: fixed;
    left: 20px;
    top: 12px;
    z-index: 10;
    transform: translateY(-180%);
    padding: 12px;
    background: var(--a_background);
    color: var(--text_inverse);
}

.skip-link:focus {
    transform: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

// The user approved a fixed header; body and anchors reserve its height.
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 2;
    background: var(--h_background);
    color: var(--h_text_color);
}

.header-inner {
    min-height: 90px;
    margin-inline: auto;
    width: calc(100% - 120px);
    max-width: 1320px;
    gap: 24px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    text-decoration: none;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.messengers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.messenger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.messenger-icon img {
    width: 100%;
    height: 100%;
}

.site-header .messengers {
    order: 1;
}

.site-header .menu-toggle, .header-cta {
    order: 2;
}

.main-nav a {
    padding-block: 14px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.header-cta {
    min-height: 50px;
    padding: 12px 16px;
    font-size: 14px;
}

.menu-toggle {
    display: none;
}

.nav-cta {
    display: none;
}

// Homepage composition measured from the 466 px reference.
.hero {
    display: flex;
    background: var(--surface_hero);
    color: var(--text_inverse);
    min-height: 710px;
}

.hero-copy {
    position: relative;
    flex: 0 0 51.6%;
    padding: 102px 38px 60px unquote('max(32px, calc((100vw - 1256px) / 2))');
}

.hero h1 {
    color: var(--text_inverse);
}

.hero h1 span {
    color: var(--accent_light);
}

.hero-copy > p {
    max-width: 560px;
    margin-top: 32px;
    font-size: var(--text_size3);
    line-height: 1.45;
}

.hero-actions {
    margin-top: 64px;
    gap: 36px;
}

.hero .button {
    font-size: 19px;
}

.hero .text-button {
    font-size: 18px;
}

.hero-note {
    position: absolute;
    bottom: 18px;
    right: 36px;
    font-size: 11px;
    letter-spacing: .14em;
}

.hero-image {
    flex: 0 0 48.4%;
    width: 48.4%;
    height: 710px;
    object-position: center 56%;
}

.manifesto {
    padding: 48px 20px;
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--a_background);
    text-align: center;
}

.manifesto h2 {
    color: var(--text_inverse);
    font-size: 56px;
    line-height: 1.23;
    letter-spacing: .015em;
}

.services {
    padding-bottom: 80px;
}

.service-grid {
    margin-top: 80px;
}

.service-card {
    position: relative;
    min-height: 368px;
    padding: 25px 28px 20px;
    background: var(--m_extra_background);
}

.service-card--dark {
    background: var(--surface_dark);
    color: var(--text_inverse);
}

.service-card--accent {
    background: var(--a_background);
    color: var(--text_inverse);
}

.service-card h3 {
    max-width: 67%;
    margin-top: 48px;
    margin-bottom: 52px;
    font-size: 28px;
}

.service-card--dark h3, .service-card--accent h3 {
    color: var(--text_inverse);
}

.service-card p {
    max-width: 58%;
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 30px;
}

.service-card img {
    position: absolute;
    top: 46px;
    right: 28px;
    width: 34%;
    height: 220px;
}

.card-link {
    display: flex;
    gap: 12px;
    align-items: center;
    border-top: 1px solid currentColor;
    padding-top: 10px;
    margin-top: auto;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

.card-link::after {
    content: '';
    position: absolute;
    inset: 0;
}

.audience {
    background: var(--m_extra_background);
    padding-block: 80px 30px;
}

.audience h2 {
    font-size: 56px;
}

.audience-grid {
    margin-top: 34px;
}

.audience-card {
    display: flex;
    min-height: 146px;
    justify-content: space-between;
    background: var(--m_background);
    overflow: hidden;
}

.audience-card > div {
    padding: 20px;
}

.audience-card h3 {
    font-size: 19px;
}

.audience-card p {
    margin-top: 24px;
    font-size: 15px;
    max-width: 260px;
}

.audience-card img {
    width: 30%;
    flex-shrink: 0;
    height: auto;
}

.audience-card--dark {
    color: var(--text_inverse);
    background: var(--surface_dark);
}

.audience-card--dark h3 {
    color: var(--text_inverse);
}

.technology-materials {
    background: var(--m_extra_background);
}

.technologies {
    min-height: 900px;
    padding: 56px 88px 70px unquote('max(32px, calc((100vw - 1256px) / 2))');
    background: #242827;
    color: var(--text_inverse);
}

.technologies > .section-label {
    color: var(--text_inverse);
    font-size: 16px;
    margin-bottom: 112px;
    letter-spacing: 0;
}

.technology {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    border-top: 1px solid #82837e;
    padding-top: 32px;
    padding-bottom: 30px;
}

.technology > div {
    flex: 1;
    min-width: 0;
}

.technology h3 {
    color: var(--text_inverse);
    font-size: clamp(70px, 8.9vw, 128px);
    line-height: 1;
    letter-spacing: -.02em;
}

.technology:first-of-type h3 {
    color: var(--accent_light);
}

.technology p {
    font-size: 20px;
    line-height: 1.35;
    margin-top: 14px;
}

.technology img {
    width: 190px;
    height: 175px;
    flex-shrink: 0;
}

.materials {
    padding: 108px unquote('max(32px, calc((100vw - 1256px) / 2))') 64px 84px;
}

.materials h2 {
    font-size: 62px;
}

.materials h2 span {
    color: var(--m_accent_color);
    font-size: 44px;
    letter-spacing: .01em;
}

.materials > p {
    font-size: 21px;
    line-height: 1.5;
    margin-top: 28px;
}

.material-list {
    margin-block: 100px 62px;
    gap: 28px;
}

.material-list > div {
    position: relative;
    min-height: 88px;
    border-top: 1px solid var(--m_border_color);
    padding-top: 12px;
    padding-right: 80px;
}

.material-list dt {
    font-weight: 800;
    font-size: 23px;
}

.material-list dd {
    margin: 4px 0 0;
    font-size: 13px;
}

.material-list img {
    position: absolute;
    top: 10px;
    right: 0;
    width: 76px;
    height: 64px;
}

.materials .text-button {
    font-size: 17px;
}

.advantages {
    padding-block: 82px 76px;
}

.advantages h2 span {
    color: var(--m_accent_color);
}

.advantages-grid {
    margin-top: 64px;
}

.advantage {
    border-top: 1px solid var(--m_border_color);
    padding-top: 14px;
}

.advantage h3 {
    font-size: 21px;
}

.advantage p {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.4;
}

.process {
    background: var(--surface_dark);
    color: var(--text_inverse);
    padding-block: 80px 110px;
}

.process h2 {
    color: var(--text_inverse);
    font-size: 58px;
}

.process-grid {
    list-style: none;
    padding: 0;
    margin-top: 120px;
}

.process-card {
    background: var(--surface_card);
    min-height: 220px;
    padding: 20px;
}

.step-number {
    font-size: 31px;
    font-weight: 800;
    color: var(--accent_light);
    line-height: 1.2;
}

.process-card h3 {
    font-size: 25px;
    color: var(--text_inverse);
    margin-top: 26px;
}

.process-card p {
    font-size: 16px;
    margin-top: 12px;
}

.contact-cta {
    background: var(--a_background);
    color: var(--text_inverse);
    padding-block: 100px 52px;
}

.contact-cta h2 {
    color: var(--text_inverse);
    font-size: 64px;
}

.contact-cta > .wrapper > p {
    margin-top: 80px;
    font-size: 21px;
    line-height: 1.5;
    max-width: 1210px;
}

.cta-bottom {
    margin-top: 68px;
    padding-top: 28px;
    border-top: 1px solid #e8aea8;
    gap: 28px;
    align-items: flex-start;
}

.cta-bottom p {
    max-width: 900px;
    font-size: 17px;
    padding-top: 8px;
}

.cta-bottom .button {
    min-width: 290px;
    justify-content: space-between;
}

.site-footer {
    background: var(--f_background);
    color: var(--f_text_color);
    padding-block: 35px 28px;
}

.footer-main {
    gap: 20px;
}

.wordmark {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    font-weight: 800;
    font-size: 29px;
    text-decoration: none;
}

.footer-caption {
    font-size: 14px;
    font-weight: 800;
}

.footer-details {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #4a4d4a;
    color: var(--f_extra_text_color);
    font-size: 13px;
    gap: 16px;
}

.footer-contacts {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

// Inner pages inherit the homepage's materials and geometry.
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 32px 0;
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--m_accent_color);
}

.service-hero {
    display: flex;
    background: var(--surface_dark);
    color: var(--text_inverse);
}

.service-hero-copy {
    padding: 70px 60px 80px unquote('max(32px, calc((100vw - 1256px) / 2))');
    width: 58%;
}

.service-hero h1 {
    color: var(--text_inverse);
    font-size: clamp(42px, 5.2vw, 75px);
    overflow-wrap: anywhere;
}

.service-hero .service-title--prototyping {
    font-size: clamp(32px, 4.1vw, 59px);
    overflow-wrap: normal;
}

.service-hero .section-label {
    color: var(--accent_light);
}

.service-hero-copy > p:not(.section-label) {
    max-width: 650px;
    margin-block: 32px 46px;
    font-size: 23px;
}

.service-hero-image {
    width: 42%;
    min-height: 530px;
    max-height: 700px;
}

.service-lead h2 {
    max-width: 1040px;
}

.service-lead .section-intro {
    max-width: 920px;
    font-size: 22px;
    line-height: 1.7;
    margin-top: 34px;
}

.use-cases {
    margin-top: 60px;
}

.use-case {
    padding-top: 22px;
    border-top: 1px solid var(--m_border_color);
}

.use-case h3 {
    font-size: 25px;
}

.use-case p {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.6;
}

.deliverables {
    background: var(--m_extra_background);
}

.deliverables h2 {
    margin-bottom: 50px;
}

.deliverables ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.deliverables li {
    display: flex;
    gap: 24px;
    padding-block: 22px;
    border-top: 1px solid var(--m_border_color);
    font-size: 22px;
}

.deliverables li::before {
    content: '/';
    color: var(--m_accent_color);
    font-weight: 800;
}

.faq h2 {
    margin-bottom: 50px;
}

.faq details {
    border-top: 1px solid var(--m_border_color);
}

.faq details:last-child {
    border-bottom: 1px solid var(--m_border_color);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    cursor: pointer;
    padding-block: 26px;
    font-size: 24px;
    font-weight: 800;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '+';
    font-size: 32px;
    font-weight: 400;
}

.faq details[open] summary::after {
    content: '−';
}

.faq details p {
    max-width: 900px;
    margin-bottom: 28px;
    font-size: 19px;
    line-height: 1.7;
}

.related {
    background: var(--m_extra_background);
}

.related .service-grid {
    margin-top: 52px;
}

.related .service-card {
    min-height: 290px;
}

.related .service-card h3 {
    max-width: 100%;
    margin-block: 40px 24px;
    font-size: 24px;
}

.related .service-card p {
    max-width: 100%;
}

.policy {
    padding-top: 30px;
    padding-bottom: 100px;
}

.policy h1 {
    font-size: clamp(23px, 6.5vw, 68px);
    max-width: 1100px;
    overflow-wrap: normal;
}

.policy-note {
    padding: 24px;
    background: var(--m_extra_background);
    margin-block: 40px;
    max-width: 950px;
}

.policy section {
    max-width: 920px;
    margin-top: 42px;
}

.policy h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.policy p {
    line-height: 1.7;
}

// Native dialog provides focus containment and an inert background.
.order-dialog {
    width: unquote('min(760px, calc(100% - 24px))');
    max-width: none;
    max-height: calc(var(--viewport_height, 100vh) - 24px);
    padding: 0;
    border: 0;
    background: var(--m_background);
    color: var(--m_text_color);
    overscroll-behavior: contain;
}

.order-dialog::backdrop {
    background: var(--popup_bg);
}

.dialog-inner {
    position: relative;
    padding: 28px;
}

.dialog-close {
    position: absolute;
    right: 14px;
    top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    color: var(--m_text_color);
}

.order-dialog h2 {
    font-size: 34px;
    margin-bottom: 10px;
    padding-right: 36px;
}

#order-intro {
    font-size: 12px;
}

.form-preview-note {
    font-size: 12px;
    margin-top: 8px;
}

#order-form {
    gap: 14px 20px;
    margin-top: 20px;
}

.form-field {
    min-width: 0;
}

.form-field--wide, #order-form > .button, .form-status {
    grid-column: unquote('1 / -1');
}

.form-field > label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 6px;
}

.form-field input:not([type='checkbox']), .form-field textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #82847f;
    background: var(--text_inverse);
    color: var(--surface_hero);
    padding: 9px 10px;
    border-radius: 0;
    caret-color: var(--m_accent_color);
    font-size: 16px;
}

.form-field textarea {
    resize: none;
    min-height: 72px;
}

.form-field input[type='file'] {
    font-size: 13px;
    padding: 6px;
}

input::file-selector-button {
    padding: 7px 10px;
    margin-right: 10px;
    border: 0;
    background: var(--surface_dark);
    color: var(--text_inverse);
    font: inherit;
    cursor: pointer;
}

.form-field input[aria-invalid='true'], .form-field textarea[aria-invalid='true'] {
    border-color: #a5362d;
    border-width: 2px;
}

.field-hint, .optional {
    font-size: 12px;
    font-weight: 400;
}

.field-hint {
    margin-top: 5px;
}

.field-error {
    font-size: 13px;
    color: #9b2d24;
    margin-top: 6px;
}

.form-field .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--m_accent_color);
}

#order-form > .button {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    font-size: 16px;
}

.form-status {
    padding: 8px;
    background: var(--m_extra_background);
    font-size: 12px;
}

@include media(md) {
    .form-field--message, .form-field--file {
        grid-column: auto;
    }
    .form-field textarea {
        min-height: 112px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .button:hover {
        background: var(--m_button_hover);
    }
    .button--dark:hover {
        background: #353b38;
    }
    .main-nav a:hover, .text-button:hover {
        color: var(--accent_light);
    }
    .main-nav a:hover {
        color: var(--m_accent_color);
    }
    .card-link:hover {
        text-decoration: underline;
    }
    .dialog-close:hover {
        background: var(--m_extra_background);
    }
}

@include media(xl, max) {
    .header-inner {
        width: calc(100% - 64px);
    }
    .main-nav {
        gap: 16px;
    }
    .hero-copy {
        padding-top: 82px;
    }
    .hero {
        min-height: 650px;
    }
    .hero-image {
        height: 650px;
    }
    .hero-copy > p {
        font-size: 21px;
    }
    .hero-actions {
        gap: 20px;
        margin-top: 44px;
    }
    .hero .button {
        font-size: 16px;
    }
    .hero .text-button {
        font-size: 16px;
    }
    .technologies {
        padding-right: 48px;
    }
    .materials {
        padding-left: 48px;
    }
    .technology img {
        width: 36%;
        height: 160px;
    }
    .material-list {
        gap: 20px;
    }
    .material-list dt {
        font-size: 19px;
    }
    .material-list dd {
        font-size: 12px;
    }
    .materials h2 {
        font-size: 52px;
    }
    .materials h2 span {
        font-size: 36px;
    }
    .cta-bottom p {
        max-width: 65%;
    }
}

@include media(lg, max) {
    :root {
        --gap_bold: 72px;
        --gap_semi: 52px;
        --text_size1: 18px;
        --size7: 78px;
    }
    .header-inner {
        width: calc(100% - 40px);
        min-height: 78px;
    }
    .main-nav {
        gap: 16px;
    }
    .main-nav a {
        font-size: 12px;
    }
    .header-cta {
        font-size: 12px;
        padding: 10px 12px;
    }
    .hero {
        min-height: 600px;
    }
    .hero-copy {
        padding: 68px 28px 60px 24px;
    }
    .hero-image {
        height: 600px;
    }
    .hero-copy > p {
        font-size: 19px;
    }
    .hero-actions {
        gap: 12px;
        margin-top: 32px;
    }
    .hero .button {
        font-size: 14px;
        padding-inline: 16px;
        min-height: 54px;
    }
    .hero .text-button {
        font-size: 14px;
    }
    .manifesto {
        min-height: 180px;
    }
    .manifesto h2 {
        font-size: 44px;
    }
    .service-grid {
        margin-top: 50px;
    }
    .service-card {
        min-height: 330px;
        padding-inline: 22px;
    }
    .service-card h3 {
        font-size: 23px;
        margin-top: 38px;
        margin-bottom: 38px;
        max-width: 100%;
    }
    .service-card p {
        font-size: 15px;
        overflow-wrap: anywhere;
    }
    .service-card img {
        right: 22px;
        height: 140px;
        top: 140px;
        width: 32%;
    }
    .audience h2 {
        font-size: 44px;
    }
    .audience-card h3 {
        font-size: 17px;
    }
    .audience-card p {
        font-size: 14px;
    }
    .technologies {
        min-height: 780px;
        padding: 48px 30px 40px 24px;
    }
    .technologies > .section-label {
        margin-bottom: 88px;
    }
    .technology {
        gap: 20px;
    }
    .technology p {
        font-size: 17px;
    }
    .technology img {
        height: 145px;
    }
    .materials {
        padding: 94px 24px 48px 30px;
    }
    .materials h2 {
        font-size: 44px;
    }
    .materials h2 span {
        font-size: 29px;
    }
    .materials > p {
        font-size: 17px;
    }
    .material-list {
        margin-block: 60px 40px;
        gap: 18px;
    }
    .material-list > div {
        padding-right: 55px;
    }
    .material-list img {
        width: 50px;
        height: 50px;
    }
    .material-list dd {
        font-size: 11px;
    }
    .process h2 {
        font-size: 44px;
    }
    .process-grid {
        margin-top: 64px;
    }
    .process-card {
        min-height: 200px;
    }
    .contact-cta h2 {
        font-size: 52px;
    }
    .contact-cta > .wrapper > p {
        margin-top: 52px;
        font-size: 19px;
    }
    .cta-bottom p {
        max-width: 54%;
    }
    .wordmark {
        font-size: 23px;
    }
    .footer-caption {
        font-size: 12px;
    }
    .service-hero-copy {
        padding: 48px 32px 58px 24px;
        width: 58%;
    }
    .service-hero-copy > p:not(.section-label) {
        font-size: 20px;
    }
    .service-hero-image {
        min-height: 490px;
    }
}

@include media(md, max) {
    :root {
        --title_size1: clamp(42px, 7.8vw, 58px);
        --title_size2: 36px;
        --gap_bold: 56px;
    }
    :root {
        --size7: 72px;
    }
    html {
        scroll-padding-top: calc(var(--size7) + 16px);
    }
    .header-inner {
        min-height: 72px;
        gap: 16px;
    }
    .hero {
        flex-direction: column;
    }
    .hero-copy {
        padding: 54px 20px 58px;
        width: 100%;
    }
    .hero-copy h1 {
        max-width: 620px;
    }
    .hero h1 {
        font-size: clamp(30px, 9.5vw, 58px);
    }
    .hero-copy > p {
        max-width: 540px;
        font-size: 18px;
        margin-top: 24px;
    }
    .hero-actions {
        margin-top: 32px;
        gap: 24px;
    }
    .hero-note {
        bottom: 16px;
        right: 20px;
        font-size: 11px;
    }
    .hero-image {
        width: 100%;
        height: clamp(320px, 85vw, 560px);
        flex: auto;
        object-position: center 55%;
    }
    .manifesto {
        min-height: 164px;
        padding: 34px 20px;
    }
    .manifesto h2 {
        font-size: 34px;
    }
    .section-label {
        font-size: 12px;
        margin-bottom: 18px;
    }
    .service-grid {
        margin-top: 36px;
    }
    .service-card {
        min-height: 330px;
    }
    .service-card h3 {
        margin-top: 40px;
        font-size: 25px;
    }
    .service-card p {
        max-width: 59%;
        font-size: 16px;
    }
    .service-card img {
        width: 31%;
        height: 195px;
    }
    .audience {
        padding-block: 56px 40px;
    }
    .audience h2 {
        font-size: 36px;
    }
    .audience-card {
        min-height: 142px;
    }
    .audience-card h3 {
        font-size: 17px;
    }
    .audience-card p {
        margin-top: 18px;
    }
    .audience-card > div {
        padding: 18px;
    }
    .audience-card img {
        width: 32%;
    }
    .technologies {
        padding: 46px 20px;
        min-height: 0;
    }
    .technologies > .section-label {
        font-size: 12px;
        margin-bottom: 44px;
    }
    .technology {
        gap: 32px;
        padding-block: 24px;
    }
    .technology h3 {
        font-size: 88px;
    }
    .technology p {
        font-size: 18px;
        max-width: 330px;
    }
    .technology img {
        width: 34%;
        height: 160px;
    }
    .materials {
        padding: 54px 20px;
    }
    .materials h2 {
        font-size: 44px;
    }
    .materials h2 span {
        font-size: 31px;
    }
    .materials > p {
        max-width: 540px;
        font-size: 18px;
    }
    .material-list {
        margin-block: 44px 30px;
        gap: 22px;
    }
    .material-list > div {
        min-height: 85px;
        padding-right: 66px;
    }
    .material-list img {
        width: 60px;
        height: 60px;
    }
    .material-list dt {
        font-size: 22px;
    }
    .material-list dd {
        font-size: 12px;
    }
    .advantages {
        padding-block: 56px;
    }
    .advantages h2 {
        font-size: 34px;
    }
    .advantages-grid {
        margin-top: 40px;
    }
    .advantage h3 {
        font-size: 20px;
    }
    .advantage p {
        font-size: 16px;
    }
    .process {
        padding-block: 56px;
    }
    .process h2 {
        font-size: 36px;
    }
    .process-grid {
        margin-top: 40px;
    }
    .process-card {
        min-height: 180px;
    }
    .process-card h3 {
        font-size: 22px;
        margin-top: 20px;
    }
    .process-card p {
        font-size: 15px;
    }
    .contact-cta {
        padding-block: 56px 40px;
    }
    .contact-cta h2 {
        font-size: 36px;
    }
    .contact-cta > .wrapper > p {
        font-size: 18px;
        margin-top: 36px;
    }
    .cta-bottom {
        margin-top: 36px;
    }
    .cta-bottom p {
        max-width: 100%;
        font-size: 16px;
    }
    .cta-bottom .button {
        min-width: 260px;
    }
    .footer-main {
        flex-direction: column;
        align-items: flex-start;
    }
    .wordmark {
        font-size: 23px;
    }
    .footer-caption {
        font-size: 11px;
    }
    .footer-details {
        flex-direction: column;
        gap: 24px;
    }
    .footer-contacts {
        gap: 12px 24px;
    }
    .footer-contacts > span {
        width: 100%;
    }
    .service-hero {
        flex-direction: column;
    }
    .service-hero-copy {
        width: 100%;
        padding: 50px 20px;
    }
    .service-hero-image {
        width: 100%;
        min-height: 0;
        height: 360px;
    }
    .service-hero-copy > p:not(.section-label) {
        font-size: 19px;
    }
    .service-hero .service-title--prototyping {
        font-size: clamp(27px, 7.7vw, 48px);
    }
    .service-lead .section-intro {
        font-size: 18px;
    }
    .use-cases {
        margin-top: 38px;
    }
    .use-case h3 {
        font-size: 23px;
    }
    .deliverables li {
        font-size: 18px;
    }
    .faq summary {
        font-size: 20px;
    }
    .faq details p {
        font-size: 17px;
    }
    .related .service-card {
        min-height: 260px;
    }
    .related .service-card h3 {
        font-size: 25px;
    }
    .policy h2 {
        font-size: 26px;
    }
    .policy-note {
        padding: 20px;
    }
    .dialog-inner {
        padding: 22px 18px;
    }
    .order-dialog h2 {
        font-size: 29px;
    }
    #order-form {
        gap: 12px;
        margin-top: 16px;
    }
    .form-field > label {
        font-size: 12px;
    }
    .form-field .checkbox-label {
        font-size: 12px;
    }
}

@include media(sm, minmax, md) {
    .service-card {
        min-height: 400px;
    }
    .service-card h3 {
        max-width: 100%;
        margin-top: 160px;
        margin-bottom: 20px;
        font-size: 23px;
    }
    .service-card img {
        height: 132px;
        width: 60%;
        top: 44px;
        left: 22px;
    }
    .service-card p {
        max-width: 100%;
    }
}

@include media(sm, max) {
    .header-inner {
        width: calc(100% - 24px);
        gap: 8px;
    }
    .brand-name {
        font-size: 14px;
    }
    .site-header .messengers {
        gap: 4px;
    }
    .site-header .messenger-icon {
        width: 28px;
        height: 28px;
    }
    .menu-toggle [data-menu-label] {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .hero .button {
        font-size: 14px;
    }
    .hero-actions {
        gap: 18px;
    }
    .hero .text-button {
        font-size: 13px;
    }
    .service-card h3 {
        font-size: 22px;
        max-width: 100%;
    }
    .service-card {
        min-height: 332px;
    }
    .service-card img {
        width: 30%;
        height: 145px;
        top: 140px;
    }
    .service-card p {
        font-size: 15px;
    }
    .audience-card {
        min-height: 135px;
    }
    .audience-card h3 {
        font-size: 19px;
    }
    .technology {
        gap: 20px;
    }
    .technology h3 {
        font-size: 68px;
    }
    .technology p {
        font-size: 16px;
    }
    .technology img {
        width: 30%;
        height: 145px;
    }
    .material-list {
        gap: 14px;
    }
    .material-list > div {
        padding-right: 52px;
    }
    .material-list img {
        width: 46px;
        height: 52px;
    }
    .material-list dt {
        font-size: 20px;
    }
    .material-list dd {
        font-size: 11px;
    }
    .contact-cta h2 {
        font-size: 32px;
    }
    .wordmark {
        font-size: 20px;
        gap: 8px;
    }
    .process-card {
        min-height: 165px;
    }
    .service-hero h1 {
        font-size: 41px;
    }
}

@include media(lg, max) {
    .brand-mark {
        margin-right: auto;
        gap: 8px;
    }
    .brand-name {
        font-size: clamp(15px, 4.2vw, 19px);
    }
    .header-cta {
        display: none;
    }
    .menu-toggle {
        display: inline-flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 8px 4px;
        font-size: 14px;
        font-weight: 800;
        border: 0;
        background: transparent;
    }
    .menu-lines {
        position: relative;
        width: 20px;
        height: 12px;
        border-top: 2px solid;
        border-bottom: 2px solid;
    }
    .main-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        padding: 20px;
        height: calc(var(--viewport_height, 100vh) - var(--size7));
        max-height: calc(var(--viewport_height, 100vh) - var(--size7));
        overflow: auto;
        background: var(--h_background);
        border-top: 1px solid var(--m_border_color);
    }
    .main-nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .main-nav a {
        padding: 16px 4px;
        font-size: 20px;
        border-bottom: 1px solid var(--m_border_color);
    }
    .nav-cta {
        display: inline-flex;
        margin-top: 20px;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        animation: none !important;
    }
    .button:active, .text-button:active {
        transform: none;
    }
}

@media (max-height: 700px) {
    .dialog-inner {
        padding: 12px;
    }
    .order-dialog h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    #order-form {
        gap: 8px 12px;
        margin-top: 12px;
    }
    .form-field textarea {
        min-height: 56px;
        height: 56px;
    }
    .field-hint {
        font-size: 11px;
    }
    #order-form > .button {
        min-height: 44px;
        padding-block: 10px;
    }
}

.order-dialog .smart-captcha {
    min-height: 100px;
}

.form-success {
    padding-block: 24px;
}

.form-success h3 {
    margin-bottom: 12px;
}

.form-success .button {
    margin-top: 20px;
}

.policy {
    min-height: 50vh;
}

@media (max-height: 600px) {
    .dialog-inner {
        padding: 10px 12px;
    }
    .order-dialog h2 {
        font-size: 22px;
        margin-bottom: 0;
    }
    #order-intro {
        display: none;
    }
    #order-form {
        gap: 6px 12px;
        margin-top: 10px;
    }
    .form-field > label {
        font-size: 12px;
        margin-bottom: 3px;
    }
    .form-field textarea {
        min-height: 44px;
        height: 44px;
    }
    .form-field .checkbox-label {
        font-size: 11px;
        line-height: 1.3;
        gap: 8px;
    }
    .form-field--file .field-hint {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .order-dialog .smart-captcha {
        min-height: 80px;
    }
    .field-error {
        font-size: 11px;
        line-height: 1.2;
        margin-top: 3px;
    }
}

.policy .content {
    max-width: 950px;
    margin-top: 32px;
}

.policy .content h2 {
    margin-top: 32px;
}

.policy .content p + p {
    margin-top: 18px;
}

@media (max-height: 600px) {
    .form-field--message, .form-field--file {
        grid-column: auto;
    }
    .form-field input[type='file'] {
        font-size: 11px;
        min-height: 44px;
        padding: 4px;
    }
    input::file-selector-button {
        padding: 7px 4px;
        margin-right: 4px;
    }
}

.text-image h2 {
    margin-bottom: 28px;
}

.text-image .content p + p {
    margin-top: 18px;
}

.cookie-notice {
    position: fixed;
    z-index: 3;
    left: 20px;
    bottom: 20px;
    width: unquote('min(520px, calc(100% - 40px))');
    padding: 24px;
    max-height: calc(var(--viewport_height, 100vh) - var(--size7) - 40px);
    overflow: auto;
    border: 1px solid var(--m_border_color);
    background: var(--h_background);
    color: var(--h_text_color);
    font-size: var(--text_size2);
    line-height: 1.5;
}

.cookie-notice-actions {
    gap: var(--gap_regular);
    margin-top: var(--gap_regular);
}

.cookie-notice .button {
    min-height: 44px;
    padding: 10px 20px;
    font-size: var(--text_size2);
}

.cookie-notice h2 {
    margin-bottom: var(--gap_light);
    font-size: 24px;
    line-height: 1.2;
}

.cookie-notice-policy {
    display: inline-block;
    margin-top: var(--gap_light);
}

.cookie-settings {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: .2em;
    text-align: left;
}

.footer-legal {
    gap: var(--gap_light);
}

body.has-menu .cookie-notice,
body.has-dialog .cookie-notice {
    visibility: hidden;
}

html[data-input-modality='pointer'] .form-field input:focus,
html[data-input-modality='pointer'] .form-field textarea:focus {
    outline: none;
    box-shadow: none;
}

.error-home {
    margin-top: var(--gap_medium);
}
