:root {
    color-scheme: light;
    --navy-950: #06111e;
    --ink: #0a1728;
    --muted: #526173;
    --surface: #fff;
    --surface-soft: #f5f8fc;
    --line: #dce6f0;
    --blue: #0879e5;
    --blue-dark: #0567c7;
    --blue-light: #eaf4ff;
    --shadow: 0 18px 50px rgba(13, 42, 72, 0.1);
    --radius: 0.75rem;
    --container: 75rem;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    line-height: 1.5;
}

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

html {
    scroll-padding-top: 4.5rem;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    min-width: 20rem;
    margin: 0;
    overflow-x: clip;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }

svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.container {
    width: min(calc(100% - 3rem), var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--surface);
    background: var(--blue);
    border-radius: 0.35rem;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
    outline: 3px solid #54adff;
    outline-offset: 4px;
}

.site-header {
    position: absolute;
    z-index: 20;
    inset: 0 0 auto;
    color: var(--surface);
    background: linear-gradient(to bottom, rgba(3, 13, 24, 0.78), transparent);
}

.header-inner {
    display: flex;
    min-height: 4.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    flex: none;
    color: var(--surface);
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    text-decoration: none;
}

.logo span { color: #2c99ff; }

.main-navigation {
    display: flex;
    align-self: stretch;
    align-items: center;
    gap: clamp(1rem, 2.1vw, 2rem);
}

.main-navigation a {
    position: relative;
    display: grid;
    height: 100%;
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 160ms ease;
}

.main-navigation a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--blue);
    content: "";
    transform: scaleX(0);
    transition: transform 160ms ease;
}

.main-navigation a:hover, .main-navigation a.is-active { color: var(--surface); }
.main-navigation a.is-active::after { transform: scaleX(1); }
.menu-toggle { display: none; }

.hero {
    position: relative;
    isolation: isolate;
    min-height: 43rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--surface);
    background-color: var(--navy-950);
    background-image:
        linear-gradient(90deg, rgba(4, 15, 28, 0.96) 0%, rgba(4, 15, 28, 0.82) 38%, rgba(4, 15, 28, 0.13) 74%),
        linear-gradient(0deg, rgba(4, 15, 28, 0.36), transparent 48%),
        url("../images/hero-code-v1-2DbhBY_.webp");
    background-position: center;
    background-size: cover;
}

.hero::after {
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: 9rem;
    background: linear-gradient(transparent, rgba(2, 11, 20, 0.42));
    content: "";
    pointer-events: none;
}

.hero-content { padding-block: 8.75rem 5.6rem; }

.hero h1 {
    max-width: 45rem;
    margin: 0;
    font-size: clamp(2.55rem, 4.7vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.08;
    text-wrap: balance;
}

.hero h1 span { color: #2998ff; }

.hero-lead {
    max-width: 40rem;
    margin: 1.5rem 0 0;
    color: #c6d0da;
    font-size: 1.05rem;
    line-height: 1.75;
}

.hero-facts {
    display: flex;
    max-width: 44rem;
    margin: 2.2rem 0 2.15rem;
    padding: 0;
    gap: clamp(1.5rem, 4vw, 3.75rem);
    list-style: none;
}

.hero-facts li {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
    color: #b8c7d5;
    font-size: 0.85rem;
    line-height: 1.35;
}

.hero-facts svg {
    width: 1.8rem;
    height: 1.8rem;
    flex: none;
    color: #2899ff;
}

.hero-facts span { display: grid; }

.hero-facts strong {
    color: var(--surface);
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.72rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 0.28rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button svg {
    width: 1.15rem;
    height: 1.15rem;
}

.button-primary {
    color: var(--surface);
    background: var(--blue);
    box-shadow: 0 10px 30px rgba(8, 121, 229, 0.26);
}

.button-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.section {
    padding-block: 5.75rem;
    scroll-margin-top: 0;
}

.section-heading {
    margin-bottom: 2.6rem;
    text-align: center;
}

.eyebrow {
    margin: 0 0 0.35rem;
    color: var(--blue);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading h2, .site-footer h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.section-heading h2::after {
    display: block;
    width: 2.8rem;
    height: 2px;
    margin: 0.85rem auto 0;
    background: var(--blue);
    content: "";
}

.services {
    background: radial-gradient(circle at 50% 0, rgba(8, 121, 229, 0.06), transparent 22rem), var(--surface);
}

.situations {
    display: grid;
    margin-bottom: 2.5rem;
    padding: 1.65rem 1.8rem;
    grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 1.7fr);
    align-items: center;
    gap: 2rem;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.situations-title {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.situations-list {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
    list-style: none;
}

.situations-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #2c3949;
    font-size: 0.86rem;
    line-height: 1.5;
}

.situations-list svg {
    width: 1rem;
    height: 1rem;
    margin-top: 0.13rem;
    flex: none;
    color: var(--blue);
    stroke-width: 2.5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-card {
    min-width: 0;
    padding: 1.8rem 1.65rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 6px 24px rgba(12, 42, 72, 0.055);
    text-align: center;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card:hover {
    border-color: #b9d8f5;
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.icon-box, .project-icon, .process-icon {
    display: grid;
    place-items: center;
    color: var(--blue);
    background: var(--blue-light);
}

.icon-box {
    width: 3.4rem;
    height: 3.4rem;
    margin: 0 auto 1.15rem;
    border-radius: 0.65rem;
}

.icon-box svg { width: 2rem; height: 2rem; }

.service-card h3, .project-card h3, .process-title {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.service-card p {
    margin: 0.75rem auto 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.projects { background: var(--surface-soft); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.project-card {
    display: flex;
    min-width: 0;
    padding: 2rem;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid #e3eaf2;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-icon {
    width: 3.4rem;
    height: 3.4rem;
    flex: none;
    border-radius: 0.5rem;
}

.project-icon svg { width: 1.8rem; height: 1.8rem; }
.project-card h3 { font-size: 1.17rem; }

.project-tag {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.18rem 0.5rem;
    color: var(--blue-dark);
    background: var(--blue-light);
    border-radius: 0.28rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.check-list {
    display: grid;
    margin: 1.5rem 0;
    padding: 0;
    gap: 0.72rem;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #2c3949;
    font-size: 0.88rem;
}

.check-list svg {
    width: 1rem;
    height: 1rem;
    margin-top: 0.15rem;
    flex: none;
    color: var(--blue);
    stroke-width: 2.5;
}

.text-link {
    display: inline-flex;
    width: fit-content;
    margin-top: auto;
    align-items: center;
    gap: 0.45rem;
    color: var(--blue-dark);
    font-size: 0.87rem;
    font-weight: 700;
    text-decoration: none;
}

.text-link svg {
    width: 1rem;
    height: 1rem;
    transition: transform 160ms ease;
}

.text-link:hover svg { transform: translateX(0.2rem); }

.projects-note {
    width: fit-content;
    margin: 2rem auto 0;
    padding: 0.58rem 1rem;
    color: #234567;
    background: var(--surface);
    border: 1px solid #82baf0;
    border-radius: 0.3rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.technologies {
    padding-block: 4.5rem;
    background: var(--surface);
}

.technology-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.technology-group {
    padding: 1.5rem;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.technology-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.technology-list {
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    list-style: none;
}

.technology-list li {
    padding: 0.58rem 0.9rem;
    color: #223247;
    background: #f0f4f8;
    border: 1px solid transparent;
    border-radius: 0.38rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.cooperation {
    padding-top: 3.25rem;
    background: linear-gradient(to bottom, var(--surface), #f9fbfd);
}

.process {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
}

.process li {
    position: relative;
    padding-inline: 1rem;
    text-align: center;
}

.process li:not(:last-child)::after {
    position: absolute;
    top: 2.1rem;
    left: calc(50% + 3.5rem);
    width: calc(100% - 7rem);
    border-top: 2px dashed #c8d9e9;
    content: "";
}

.process-icon {
    width: 4.25rem;
    height: 4.25rem;
    margin: 0 auto 0.45rem;
    border-radius: 50%;
}

.process-icon svg { width: 2rem; height: 2rem; }

.process-number {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--muted);
    font-size: 0.74rem;
}

.process-title { font-size: 0.94rem; }

.process p:not(.process-title) {
    max-width: 14rem;
    margin: 0.55rem auto 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

.contact-section {
    color: var(--surface);
    background: radial-gradient(circle at 78% 15%, rgba(17, 112, 196, 0.22), transparent 24rem), var(--navy-950);
}

.contact-heading {
    max-width: 45rem;
    margin-bottom: 2.25rem;
}

.contact-heading h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.contact-heading > p:last-child {
    max-width: 40rem;
    margin: 1rem 0 0;
    color: #b6c4d1;
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(20rem, 2fr);
    align-items: start;
    gap: 1.5rem;
}

.contact-card {
    min-width: 0;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--ink);
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
    scroll-margin-top: 1.5rem;
}

.contact-card-heading {
    display: flex;
    margin-bottom: 1.65rem;
    align-items: center;
    gap: 1rem;
}

.contact-card-heading .icon-box {
    margin: 0;
    flex: none;
}

.contact-card-title {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.contact-card-heading p:not(.contact-card-title) {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.contact-form {
    position: relative;
    display: grid;
    gap: 1rem;
}

.form-fields-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-field {
    display: grid;
    min-width: 0;
    gap: 0.38rem;
}

.form-field label {
    width: fit-content;
    color: #243448;
    font-size: 0.84rem;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.8rem;
    color: var(--ink);
    background: #fbfdff;
    border: 1px solid #bfccda;
    border-radius: 0.35rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.form-field textarea {
    min-height: 9rem;
    resize: vertical;
}

.form-field input:hover,
.form-field textarea:hover {
    border-color: #7998b7;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
    outline: 0;
    border-color: var(--blue);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(8, 121, 229, 0.18);
}

.form-field.has-error input,
.form-field.has-error textarea {
    border-color: #c83434;
}

.form-errors {
    color: #a52323;
    font-size: 0.8rem;
}

.form-errors ul,
.contact-form > ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-form > ul {
    padding: 0.75rem 0.9rem;
    color: #8d1d1d;
    background: #fff0f0;
    border: 1px solid #e6a8a8;
    border-radius: 0.35rem;
    font-size: 0.84rem;
}

.contact-form .button {
    width: fit-content;
    margin-top: 0.15rem;
    cursor: pointer;
}

.privacy-note {
    margin: -0.25rem 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.contact-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.form-status:empty {
    display: none;
}

.form-notice {
    margin: 0 0 1rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid;
    border-radius: 0.35rem;
    font-size: 0.86rem;
}

.form-notice-success {
    color: #176336;
    background: #ecf9f1;
    border-color: #9bd0ad;
}

.form-notice-error {
    color: #842222;
    background: #fff0f0;
    border-color: #e3a2a2;
}

.form-notice a,
.form-notice .email-reveal {
    font-weight: 700;
}

.email-reveal {
    display: inline-flex;
    padding: 0;
    align-items: center;
    gap: inherit;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

.contact-direct {
    display: flex;
    margin-top: 2rem;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.5rem;
    color: #b6c4d1;
    font-size: 0.86rem;
    font-style: normal;
}

.contact-direct > span:first-child {
    color: var(--surface);
    font-weight: 700;
}

.contact-direct a,
.contact-direct .email-reveal,
.contact-direct > span:not(:first-child) {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.contact-direct a:hover,
.contact-direct .email-reveal:hover {
    color: var(--surface);
}

.contact-direct svg {
    width: 1.1rem;
    height: 1.1rem;
    color: #2998ff;
}

.site-footer {
    color: var(--surface);
    background: var(--navy-950);
}

.footer-main {
    display: grid;
    padding-block: 3.5rem;
    grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.75fr);
    gap: clamp(3rem, 8vw, 7rem);
}

.footer-pitch { max-width: 43rem; }

.footer-pitch > p:not(.eyebrow) {
    margin: 1rem 0 0;
    color: #b6c4d1;
    line-height: 1.7;
}

.footer-actions {
    display: flex;
    margin-top: 1.6rem;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.button-outline {
    color: var(--surface);
    border-color: #398bd4;
    background: transparent;
}

.button-outline:hover {
    border-color: #73b8f4;
    background: rgba(20, 115, 202, 0.12);
}

.contact-list {
    display: flex;
    padding-left: clamp(2rem, 4vw, 4rem);
    flex-direction: column;
    justify-content: center;
    gap: 1.1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    font-style: normal;
}

.contact-list > a, .contact-list > span, .contact-list > .email-reveal {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.85rem;
    color: #d6e0e9;
    font-size: 0.9rem;
    text-decoration: none;
}

.contact-list > a:hover, .contact-list > .email-reveal:hover { color: var(--surface); }

.contact-list svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
    color: #2998ff;
}

.footer-bottom {
    display: flex;
    padding-block: 1.25rem;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #8fa0af;
    font-size: 0.76rem;
}

.footer-bottom p { margin: 0; }

.footer-bottom a {
    color: #b7c5d1;
    text-decoration: none;
}

.site-header-inner {
    position: absolute;
    background: rgba(4, 15, 28, 0.94);
}

.inner-hero {
    padding-block: 8.5rem 5rem;
    color: var(--surface);
    background:
        radial-gradient(circle at 82% 30%, rgba(8, 121, 229, 0.3), transparent 25rem),
        linear-gradient(130deg, #06111e, #0a2036);
}

.inner-hero-short {
    padding-bottom: 4.25rem;
}

.inner-hero h1 {
    max-width: 54rem;
    margin: 0;
    font-size: clamp(2.35rem, 4.7vw, 4.25rem);
    letter-spacing: -0.055em;
    line-height: 1.08;
    text-wrap: balance;
}

.inner-lead {
    max-width: 49rem;
    margin: 1.4rem 0 0;
    color: #c2ced9;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.75;
}

.inner-hero .hero-actions {
    margin-top: 2rem;
}

.breadcrumbs {
    margin-bottom: 2.3rem;
}

.breadcrumbs ol {
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: #9eb1c2;
    font-size: 0.8rem;
    list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
    margin-left: 0.35rem;
    content: "/";
}

.breadcrumbs a {
    color: #c8d8e5;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--surface);
}

.content-section {
    background: var(--surface);
}

.content-layout,
.case-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.85fr);
    align-items: start;
    gap: clamp(2rem, 7vw, 6rem);
}

.content-layout h2,
.case-layout h2,
.result-section h2,
.service-links-section h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.content-intro,
.result-copy {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.8;
}

.content-card > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.75;
}

.content-card {
    padding: 2rem;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.content-card h2 {
    font-size: 1.35rem;
}

.content-card .check-list {
    margin-bottom: 0;
}

.process-section,
.result-section {
    background: var(--surface-soft);
}

.process-text .process-badge {
    display: grid;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    place-items: center;
    color: var(--surface);
    background: var(--blue);
    border-radius: 50%;
    font-weight: 800;
}

.process-text li:not(:last-child)::after {
    top: 1.5rem;
}

.related-section {
    padding-bottom: 2.5rem;
}

.chapters-section,
.showcases-section {
    background: var(--surface);
}

.chapters-section .narrow-container,
.case-story-section .narrow-container {
    display: grid;
    gap: 0;
}

.content-chapter {
    padding-block: clamp(2.4rem, 5vw, 4rem);
    border-bottom: 1px solid var(--line);
}

.content-chapter:first-child {
    padding-top: 0;
}

.content-chapter:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.content-chapter h2,
.showcase-card h2,
.showcase-promo h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.55rem, 2.7vw, 2.15rem);
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.content-chapter > p:not(.eyebrow),
.showcase-card > p,
.showcase-promo p {
    color: var(--muted);
    line-height: 1.8;
}

.chapter-points {
    margin-top: 1.5rem;
}

.case-story-section {
    background: var(--surface-soft);
}

.case-technologies {
    justify-content: center;
    margin-top: 2rem;
}

.showcases-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.showcase-card {
    padding: clamp(1.5rem, 3vw, 2.2rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.showcase-card h2 {
    margin-top: 0.85rem;
    font-size: 1.45rem;
}

.showcase-card .technology-list {
    margin-top: 1.5rem;
}

.showcase-promo {
    display: flex;
    margin-bottom: 3rem;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 6vw, 5rem);
}

.showcase-promo > div {
    max-width: 48rem;
}

.showcase-promo p:last-child {
    margin-bottom: 0;
}

.showcase-promo .button {
    flex: none;
}

.homepage-showcases {
    padding-block: 4rem;
    background: #eef5fc;
}

.homepage-showcases .showcase-promo {
    margin-bottom: 0;
}

.projects-grid-compact {
    max-width: 55rem;
    margin-inline: auto;
}

.projects-grid-compact .project-card h3,
.projects .project-card h2 {
    margin: 0.85rem 0 0;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.projects-grid-compact .project-card p,
.projects .project-card > p {
    color: var(--muted);
    line-height: 1.7;
}

.narrow-container {
    max-width: 50rem;
}

.faq-list {
    display: grid;
    gap: 0.85rem;
}

.faq-list details {
    padding: 1.1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0.55rem;
}

.faq-list summary {
    color: var(--ink);
    font-weight: 750;
    cursor: pointer;
}

.faq-list p {
    margin: 0.85rem 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.service-links-section {
    padding-block: 3.5rem;
    background: #eef5fc;
}

.service-links-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.55rem;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.link-grid a {
    display: flex;
    min-height: 3.6rem;
    padding: 0.8rem 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #123c63;
    background: var(--surface);
    border: 1px solid #cddfec;
    border-radius: 0.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.link-grid a:hover {
    border-color: #7cb6e9;
}

.case-check-list {
    margin-bottom: 0;
}

.case-check-list li {
    font-size: 1rem;
    line-height: 1.65;
}

.result-section {
    text-align: center;
}

.result-copy {
    font-size: 1.08rem;
}

.service-card .text-link {
    margin: 1rem auto 0;
}

.projects-note a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 960px) {
    .hero {
        min-height: 41rem;
        background-position: 58% center;
    }

    .hero h1 { max-width: 40rem; }
    .hero-lead { max-width: 34rem; }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .situations { grid-template-columns: 1fr; gap: 1.25rem; }
    .technology-groups { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .content-layout, .case-layout { grid-template-columns: 1fr; gap: 2rem; }
    .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .showcase-promo { align-items: flex-start; flex-direction: column; }

    .process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 3rem;
    }

    .process li:nth-child(2)::after { display: none; }
    .footer-main { gap: 3rem; }
}

@media (max-width: 719px) {
    .container { width: min(calc(100% - 2rem), var(--container)); }

    .site-header {
        position: absolute;
        background: rgba(4, 15, 28, 0.9);
    }

    .header-inner { min-height: 4.25rem; }

    .menu-toggle {
        position: relative;
        z-index: 2;
        display: inline-flex;
        min-width: 3.2rem;
        min-height: 2.75rem;
        padding: 0.5rem;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        color: var(--surface);
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 0.35rem;
        cursor: pointer;
    }

    .menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after {
        width: 1.25rem;
        height: 2px;
        display: block;
        background: currentColor;
        content: "";
        transition: transform 160ms ease, opacity 160ms ease;
    }

    .menu-toggle-lines { position: relative; }

    .menu-toggle-lines::before, .menu-toggle-lines::after {
        position: absolute;
        left: 0;
    }

    .menu-toggle-lines::before { top: -0.38rem; }
    .menu-toggle-lines::after { top: 0.38rem; }
    .menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }

    .menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
        top: 0;
        transform: rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .menu-toggle-label {
        font-size: 0.75rem;
        font-weight: 700;
    }

    .main-navigation {
        position: absolute;
        inset: 4.25rem 0 auto;
        display: grid;
        max-height: calc(100dvh - 4.25rem);
        padding: 0.75rem 1rem 1.25rem;
        overflow-y: auto;
        gap: 0;
        background: rgba(4, 15, 28, 0.98);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
    }

    .js .main-navigation {
        visibility: hidden;
        opacity: 0;
        transform: translateY(-0.75rem);
        transition: visibility 160ms, opacity 160ms ease, transform 160ms ease;
    }

    .js .menu-toggle[aria-expanded="true"] + .main-navigation {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .main-navigation a {
        min-height: 3.35rem;
        padding-inline: 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }

    .main-navigation a::after {
        top: 0.65rem;
        right: auto;
        bottom: 0.65rem;
        left: 0;
        width: 2px;
        height: auto;
        transform: scaleY(0);
    }

    .main-navigation a.is-active::after { transform: scaleY(1); }

    .hero {
        min-height: auto;
        background-image: linear-gradient(90deg, rgba(4, 15, 28, 0.98), rgba(4, 15, 28, 0.76)), url("../images/hero-code-v1-2DbhBY_.webp");
        background-position: 68% center;
    }

    .hero-content { padding-block: 7.8rem 4.5rem; }
    .hero h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
    .hero h1 br { display: none; }

    .hero-lead {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .hero-facts {
        display: grid;
        margin-block: 1.75rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .hero-facts li:last-child { grid-column: 1 / -1; }
    .section { padding-block: 4.25rem; }
    .section-heading { margin-bottom: 2rem; }

    .services-grid, .projects-grid, .process, .footer-main {
        grid-template-columns: 1fr;
    }

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

    .situations {
        padding: 1.35rem;
    }

    .situations-list { grid-template-columns: 1fr; }
    .service-card { padding: 1.5rem 1.25rem; }
    .project-card { padding: 1.35rem; }
    .project-header { align-items: flex-start; }
    .check-list li { line-height: 1.5; }
    .technologies { padding-block: 4rem; }
    .cooperation { padding-top: 2.5rem; }
    .process { gap: 0; }

    .process li {
        display: grid;
        min-height: 9.5rem;
        padding: 0 0 2.5rem 5.6rem;
        grid-template-columns: 1fr;
        text-align: left;
    }

    .process li:not(:last-child)::after, .process li:nth-child(2)::after {
        top: 4.55rem;
        bottom: 0;
        left: 2.1rem;
        display: block;
        width: 0;
        border-top: 0;
        border-left: 2px dashed #c8d9e9;
    }

    .process li:last-child {
        min-height: 0;
        padding-bottom: 0;
    }

    .process-icon {
        position: absolute;
        top: 0;
        left: 0;
        margin: 0;
    }

    .process-number { margin-bottom: 0.35rem; }

    .process p:not(.process-title) {
        max-width: none;
        margin: 0.45rem 0 0;
    }

    .footer-main { padding-block: 3.25rem; }

    .contact-list {
        padding: 2rem 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-left: 0;
    }

    .form-fields-two { grid-template-columns: 1fr; }
    .contact-card { scroll-margin-top: 0.75rem; }
    .link-grid { grid-template-columns: 1fr; }

    .inner-hero {
        padding-block: 7.5rem 4rem;
    }

    .process-text li {
        display: block;
        min-height: 0;
        padding: 0 0 2.5rem 4.6rem;
        text-align: left;
    }

    .process-text .process-badge {
        position: absolute;
        top: 0;
        left: 0;
        margin: 0;
    }

    .process-text li:not(:last-child)::after,
    .process-text li:nth-child(2)::after {
        top: 3.5rem;
        left: 1.5rem;
    }
}

@media (max-width: 420px) {
    .hero-facts { grid-template-columns: 1fr; }
    .hero-facts li:last-child { grid-column: auto; }
    .hero .button { width: 100%; }
    .hero-actions { display: grid; }
    .contact-form .button { width: 100%; }
    .footer-actions { display: grid; }
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
