/* Inter (SIL Open Font License 1.1, see /assets/fonts/LICENSE.txt), self-hosted */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/assets/fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
    --canvas: #f7f9f7;
    --surface: #ffffff;
    --ink: #123343;
    --muted: #52656b;
    --brand: #34755d;
    --brand-hover: #245b46;
    --brand-soft: #e5eee8;
    --line: #cfdbd3;
    --focus: #8a4d12;
    --radius: 6px;
    --page: 1160px;
    --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font);
    /* Inter's contextual alternates turn "24x7" into "24×7" */
    font-feature-settings: "calt" 0;
    line-height: 1.6;
}

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

h1, h2, h3 {
    line-height: 1.08;
}

a {
    color: inherit;
    text-underline-offset: 5px;
}

a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 5px;
}

svg {
    display: block;
    flex-shrink: 0;
}

.skip {
    position: absolute;
    left: 20px;
    top: -100px;
    background: var(--surface);
    padding: 15px;
    z-index: 10;
}

.skip:focus {
    top: 15px;
}

.wrap {
    width: min(var(--page), calc(100% - 64px));
    margin: auto;
}

/* Header */

.site-header {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

@media (min-width: 961px) {
    html {
        /* keep anchor targets and focused elements clear of the sticky header */
        scroll-padding-top: 104px;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 5;
        background: var(--canvas);
    }
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -1px;
}

.brand svg {
    width: 50px;
    height: 52px;
    color: var(--brand);
}

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

.nav-links,
.lang-switch {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.nav-links {
    gap: 6px 28px;
}

.nav-links a,
.lang-switch a {
    text-decoration: none;
}

.nav-links a:hover,
.lang-switch a:hover {
    text-decoration: underline;
}

.lang-switch {
    gap: 12px;
    padding-left: 28px;
    border-left: 1px solid var(--line);
}

.lang-switch a {
    color: var(--muted);
}

.lang-switch a[aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
    border-bottom: 1px solid var(--brand);
}

/* Hero (concept A: text left, portrait right) */

.hero {
    padding: 78px 0 68px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 70px;
    align-items: center;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-weight: 650;
    color: var(--brand);
    margin-bottom: 24px;
}

.headline {
    font-size: clamp(40px, 4.8vw, 66px);
    font-weight: 600;
    letter-spacing: -.055em;
    max-width: 820px;
    line-height: 1.04;
    text-wrap: balance;
    hyphens: auto;
}

:lang(de) .headline,
:lang(ru) .headline {
    font-size: clamp(36px, 4.2vw, 58px);
}

:lang(ru) .headline {
    hyphens: manual;
}

.person {
    font-size: 17px;
    margin-top: 28px;
    line-height: 1.5;
}

.person strong {
    font-weight: 650;
}

.person span {
    display: block;
    font-size: 14px;
    color: var(--muted);
    margin-top: 5px;
}

.subtitle {
    font-size: 15px;
    max-width: 620px;
    color: var(--muted);
    margin-top: 23px;
    line-height: 1.65;
}

.tagline {
    font-size: 19px;
    margin-top: 20px;
}

.actions {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 31px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius);
    padding: 13px 26px;
    min-height: 48px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.button:hover {
    background: var(--brand-hover);
}

.text-link {
    font-size: 14px;
}

.not-found-links {
    list-style: none;
    padding: 0;
}

.portrait {
    margin: 0;
}

.portrait img {
    display: block;
    border: 1px solid var(--line);
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}


/* Sections */

.section {
    border-top: 1px solid var(--line);
    padding: 64px 0;
    scroll-margin-top: 16px;
}

@media (min-width: 961px) {
    .section {
        /* the section border hides under the sticky header after a jump */
        scroll-margin-top: 0;
    }
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.section h2 {
    font-size: 32px;
    font-weight: 550;
    letter-spacing: -.03em;
}

.section-heading p {
    font-size: 13px;
    color: var(--muted);
}

.prose {
    max-width: 760px;
}

.prose p + p {
    margin-top: 16px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}

.card h3 {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.25;
    margin-bottom: 14px;
}

.card p {
    font-size: 15px;
    color: var(--muted);
}

/* How I work */

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

.step {
    border-top: 1px solid var(--line);
    padding-top: 20px;
}

.step b {
    color: var(--brand);
    font-size: 12px;
}

.step h3 {
    font-size: 18px;
    margin: 12px 0;
}

.step p {
    font-size: 14px;
    color: var(--muted);
}

.terms {
    background: var(--brand-soft);
    padding: 26px 30px;
    margin-top: 36px;
    border-radius: var(--radius);
}

.terms h3 {
    font-size: 17px;
}

.terms ul {
    padding-left: 20px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--muted);
}

.terms li + li {
    margin-top: 4px;
}

/* About */

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

.tech li {
    background: var(--brand-soft);
    color: var(--brand-hover);
    padding: 3px 12px;
    border-radius: var(--radius);
    font-size: 14px;
}

/* Case card (template for future case studies) */

.case {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px;
}

.cases {
    display: grid;
    gap: 24px;
}

.cases + .cases {
    margin-top: 24px;
}

.cases-short {
    grid-template-columns: 1fr 1fr;
}

.case-short {
    padding: 28px;
}

.case-short h3 {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.25;
    margin-bottom: 12px;
}

.case-short > p:last-child {
    font-size: 15px;
    color: var(--muted);
}

.card p + p {
    margin-top: 12px;
}

.case-label {
    font-size: 11px;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 16px;
}

.case h3 {
    font-size: 27px;
    font-weight: 550;
    letter-spacing: -.025em;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-top: 32px;
}

.case-grid h4 {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.case-grid p {
    font-size: 14px;
    color: var(--muted);
}

.result {
    border-left: 2px solid var(--brand);
    padding-left: 20px;
}

.case-footer {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 28px;
    font-size: 12px;
    color: var(--muted);
}

/* Service card links and solution pages */

.card-links {
    list-style: none;
    padding: 14px 0 0;
    margin-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.card-links li + li {
    margin-top: 8px;
}

.card-links a {
    color: var(--brand-hover);
    font-weight: 500;
}

.card-links a::after {
    content: " →";
}

.hero-page {
    padding: 64px 0 56px;
}

.eyebrow a {
    text-decoration: none;
}

.eyebrow a:hover {
    text-decoration: underline;
}

.headline-page {
    font-size: clamp(32px, 3.8vw, 52px);
    letter-spacing: -.04em;
    line-height: 1.1;
    max-width: 900px;
}

.solution {
    display: grid;
    gap: 36px;
    max-width: 960px;
}

.solution-block {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
}

.section .solution-block h2 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.015em;
    line-height: 1.3;
}

.solution-block a {
    color: var(--brand-hover);
}

/* Contact */

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li + li {
    margin-top: 8px;
}

.contact-list a {
    color: var(--brand-hover);
    overflow-wrap: anywhere;
}

/* Footer */

.footer {
    padding: 25px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.footer-brand svg {
    width: 25px;
    height: 26px;
    color: var(--brand);
}

.footer-brand strong {
    color: var(--ink);
    font-weight: 700;
}

@media (max-width: 960px) {
    .site-header {
        flex-wrap: wrap;
        padding: 18px 0;
        gap: 14px;
    }

    .navigation {
        flex-wrap: wrap;
        gap: 10px 28px;
    }

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

@media (max-width: 800px) {
    .wrap {
        width: calc(100% - 40px);
    }

    .hero {
        padding: 45px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr 220px;
        gap: 28px;
    }

    .headline {
        font-size: 42px;
    }

    :lang(de) .headline,
    :lang(ru) .headline {
        font-size: 37px;
    }

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

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

    .cases-short {
        grid-template-columns: 1fr;
    }

    .solution-block {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 560px) {
    .wrap {
        width: calc(100% - 32px);
    }

    .brand {
        font-size: 21px;
    }

    .brand svg {
        width: 40px;
        height: 42px;
    }

    .navigation {
        width: 100%;
        justify-content: space-between;
        font-size: 13px;
    }

    .nav-links {
        gap: 6px 18px;
    }

    .lang-switch {
        padding-left: 0;
        border-left: 0;
    }

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

    .hero-grid > .portrait {
        width: 100%;
        max-width: 260px;
    }

    .headline {
        font-size: 36px;
        letter-spacing: -.045em;
    }

    .headline.headline-page {
        font-size: 28px;
    }

    :lang(de) .headline,
    :lang(ru) .headline {
        font-size: 31px;
    }

    .eyebrow {
        font-size: 10px;
        margin-bottom: 20px;
    }

    .person {
        font-size: 16px;
    }

    .subtitle {
        font-size: 14px;
    }

    .tagline {
        font-size: 18px;
    }


    .section {
        padding: 42px 0;
    }

    .section h2 {
        font-size: 28px;
    }

    .card {
        padding: 22px;
    }

    .case {
        padding: 23px;
    }

    .case h3 {
        font-size: 24px;
    }

    .case-short {
        padding: 22px;
    }

    .case-short h3 {
        font-size: 18px;
    }

    .terms {
        padding: 22px;
    }

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

    .step h3 {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    a {
        transition: background-color .15s ease;
    }
}

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