/* Jost, SIL Open Font License: assets/fonts/OFL.txt. */
@font-face {
    font-family: "Jost";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("assets/fonts/jost-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Jost";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("assets/fonts/jost-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
        U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
        U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Jost";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("assets/fonts/jost-latin.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;
}

:root {
    --page: #ececf1;
    --surface: #fff;
    --soft: #f3f3f7;
    --ink: #17161d;
    --muted: #55535f;
    --purple: #4f3dff;
    --pink: #c026d3;
    --yellow: #ffb800;
    --radius: 36px;
    color: var(--ink);
    background: var(--page);
    font-family: "Jost", system-ui, sans-serif;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

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

[hidden] {
    display: none !important;
}

a {
    color: var(--purple);
    text-decoration: none;
}

a:hover {
    color: var(--pink);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 4px;
}

::selection {
    color: var(--ink);
    background: var(--yellow);
}

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

h1,
h2,
h3 {
    font-weight: 600;
}

h2 {
    font-size: clamp(38px, 5vw, 76px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.page {
    min-height: 100vh;
    padding: 12px clamp(10px, 1.4vw, 20px) 20px;
}

.visually-hidden,
.service-group-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    top: 16px;
    left: 24px;
    z-index: 100;
    padding: 12px 20px;
    border-radius: 14px;
    color: var(--surface);
    background: var(--ink);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: none;
}

.site-header {
    position: sticky;
    top: 12px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1560px;
    margin: 0 auto;
    padding: 10px 10px 10px 24px;
    border-radius: 24px;
    background: rgb(255 255 255 / 80%);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgb(23 22 29 / 4%), 0 12px 30px -18px rgb(23 22 29 / 25%);
}

.brand {
    flex: none;
    display: block;
}

.brand img {
    display: block;
    width: auto;
    height: 24px;
}

.header-nav {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    height: 44px;
    padding: 0 4px;
    border-radius: 16px;
    background: var(--soft);
}

.nav-link {
    display: flex;
    align-items: center;
    flex: none;
    height: 36px;
    padding: 0 16px;
    border-radius: 12px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s, box-shadow 0.2s;
}

.nav-link:hover {
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 2px 8px rgb(23 22 29 / 8%);
}

.header-cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 20px;
    border-radius: 14px;
    color: var(--surface);
    background: var(--ink);
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s;
}

.header-cta:hover {
    color: var(--surface);
    background: var(--purple);
}

.hero {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    max-width: 1560px;
    margin: 12px auto 0;
}

.hero-card {
    position: relative;
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(420px, 46vw, 620px);
    padding: clamp(28px, 4.4vw, 72px);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    animation: pop 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-shape {
    position: absolute;
    pointer-events: none;
}

.hero-shape--purple {
    top: clamp(-60px, -3vw, -20px);
    right: clamp(-120px, -4vw, -40px);
    width: clamp(260px, 40vw, 620px);
    height: clamp(260px, 40vw, 620px);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #8d80ff 0%, #4f3dff 45%, #2a1fb0 100%);
    box-shadow: inset -30px -40px 80px rgb(20 10 90 / 45%), 0 40px 80px -30px rgb(79 61 255 / 60%);
}

.hero-shape--pink {
    top: clamp(30px, 5vw, 80px);
    right: clamp(40px, 14vw, 240px);
    width: clamp(140px, 18vw, 280px);
    height: clamp(140px, 18vw, 280px);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #f59cff 0%, #c026d3 50%, #7e0f92 100%);
    box-shadow: inset -18px -24px 50px rgb(80 0 90 / 45%), 0 30px 60px -20px rgb(192 38 211 / 60%);
}

.hero-shape--yellow {
    top: clamp(40px, 6vw, 100px);
    right: clamp(90px, 17vw, 300px);
    width: clamp(34px, 4.4vw, 70px);
    height: clamp(180px, 26vw, 400px);
    border-radius: 999px;
    background: linear-gradient(90deg, #ffd25c 0%, #ffb800 45%, #d99200 100%);
    box-shadow: inset -6px 0 14px rgb(140 80 0 / 35%), 0 30px 50px -20px rgb(255 184 0 / 80%);
    animation: float 6s ease-in-out infinite;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 900px;
}

.availability {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--soft);
    font-size: 15px;
    font-weight: 500;
}

.availability-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.hero h1 {
    font-size: clamp(44px, 7.4vw, 124px);
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.hero-description {
    max-width: 560px;
    color: var(--muted);
    font-size: clamp(18px, 1.5vw, 21px);
    line-height: 1.5;
}

.hero-tile {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 220px;
    padding: 32px;
    border-radius: var(--radius);
}

a.hero-tile {
    color: var(--surface);
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

a.hero-tile:hover {
    transform: scale(0.985);
}

.hero-tile--project {
    background: var(--purple);
}

.tile-arrow {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 24px;
}

.tile-arrow--white {
    align-self: flex-end;
    color: var(--purple);
    background: var(--surface);
}

.tile-arrow--yellow {
    color: var(--ink);
    background: var(--yellow);
}

.tile-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tile-title {
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.tile-description {
    color: rgb(255 255 255 / 86%);
    font-size: 16px;
}

.tools-card {
    gap: 20px;
    overflow: hidden;
    background: var(--surface);
}

.tools-title {
    color: var(--muted);
    font-size: 16px;
    font-weight: 500;
}

.tools-marquees {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 -32px;
}

.tools-track,
.tools-group {
    display: flex;
    flex: none;
    gap: 10px;
    width: max-content;
}

.tools-track {
    animation: marquee 26s linear infinite;
}

.tools-track--reverse {
    animation-duration: 32s;
    animation-direction: reverse;
}

.tools-card:hover .tools-track,
.tools-card:focus-within .tools-track {
    animation-play-state: paused;
}

.tool-chip {
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--soft);
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
}

.hero-tile--telegram {
    background: var(--ink);
}

.telegram-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.telegram-label {
    color: #b8b6c4;
    font-size: 16px;
}

.section {
    max-width: 1560px;
    margin: 0 auto;
    padding-top: clamp(64px, 8vw, 120px);
    scroll-margin-top: 80px;
}

.section-heading {
    padding: 0 clamp(12px, 2vw, 32px) 28px;
}

.services-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 40px;
}

.service-tabs {
    display: flex;
    padding: 5px;
    border-radius: 18px;
    background: var(--surface);
}

.service-tab {
    padding: 12px 20px;
    border: 0;
    border-radius: 14px;
    color: var(--ink);
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.25s, color 0.25s;
}

.service-tab[aria-selected="true"] {
    color: var(--surface);
    background: var(--ink);
}

.service-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 12px;
    border-radius: var(--radius);
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 340px;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -30px rgb(23 22 29 / 30%);
}

.service-panel.is-animated .service-card {
    animation: pop 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.service-panel.is-animated .service-card:nth-of-type(2) {
    animation-delay: 0.06s;
}

.service-panel.is-animated .service-card:nth-of-type(3) {
    animation-delay: 0.12s;
}

.service-panel.is-animated .service-card:nth-of-type(4) {
    animation-delay: 0.18s;
}

.service-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    color: var(--purple);
    background: #eeebff;
    font-size: 24px;
    font-weight: 600;
}

.service-panel--auto .service-number {
    color: var(--pink);
    background: #fbe8fd;
}

.service-card h3 {
    margin-top: auto;
    font-size: clamp(24px, 2vw, 30px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.service-card p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.5;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
}

.case-card {
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px;
    border-radius: var(--radius);
    background: var(--surface);
}

.case-card--wide {
    grid-column: span 7;
}

.case-image {
    height: clamp(240px, 30vw, 460px);
    border-radius: 26px;
    overflow: hidden;
    background: var(--soft);
}

.case-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 22px 20px 18px;
}

.case-copy {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.case-copy h3 {
    font-size: clamp(22px, 1.9vw, 28px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.case-copy p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.case-tags li {
    padding: 7px 12px;
    border-radius: 10px;
    background: var(--soft);
    font-size: 14px;
    font-weight: 500;
}

.process-card {
    padding: clamp(28px, 4vw, 64px);
    border-radius: var(--radius);
    color: var(--surface);
    background: var(--ink);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 12px;
    margin: clamp(32px, 4vw, 56px) 0 0;
    padding: 0;
    list-style: none;
}

.process-step {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 240px;
    padding: 26px;
    border-radius: 28px;
    background: #24232c;
}

.step-number {
    color: #9a90ff;
    font-size: 15px;
    font-weight: 500;
}

.process-step:nth-child(2) .step-number,
.process-step:nth-child(5) .step-number {
    color: #e27bf0;
}

.process-step:nth-child(3) .step-number {
    color: var(--yellow);
}

.process-step h3 {
    margin-top: auto;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.process-step p {
    color: #b8b6c4;
    font-size: 16px;
    line-height: 1.5;
}

.faq-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
    gap: 12px;
}

.faq-intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 300px;
    padding: clamp(28px, 3.4vw, 48px);
    border-radius: var(--radius);
    background: var(--surface);
}

.faq-intro p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.5;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.faq-item {
    padding: 0 26px;
    border-radius: 24px;
    background: var(--surface);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 22px 0;
    color: var(--ink);
    font-size: clamp(18px, 1.5vw, 21px);
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--soft);
    font-size: 22px;
    line-height: 1;
    transition: transform 0.3s, background 0.25s, color 0.25s;
}

.faq-item[open] .faq-icon {
    color: var(--surface);
    background: var(--purple);
    transform: rotate(45deg);
}

.faq-answer p {
    padding: 0 50px 22px 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.brief-card {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 40px 64px;
    padding: clamp(28px, 4.4vw, 72px);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--surface);
    background: var(--purple);
}

.brief-shape {
    position: absolute;
    bottom: -160px;
    left: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    opacity: 0.9;
    background: radial-gradient(circle at 35% 30%, #f59cff 0%, #c026d3 50%, #7e0f92 100%);
    pointer-events: none;
}

.brief-copy {
    position: relative;
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    max-width: 520px;
}

.brief-copy h2 {
    font-size: clamp(40px, 5.4vw, 84px);
    line-height: 0.98;
}

.brief-copy p {
    color: rgb(255 255 255 / 88%);
    font-size: 19px;
    line-height: 1.5;
}

.brief-form-card {
    position: relative;
    flex: 1.3 1 420px;
    min-width: 0;
    padding: clamp(22px, 3vw, 36px);
    border-radius: 28px;
    color: var(--ink);
    background: var(--surface);
}

.brief-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.brief-services {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.brief-services legend {
    margin-bottom: 18px;
    padding: 0;
    color: var(--muted);
    font-size: 16px;
    font-weight: 500;
}

.service-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-choice {
    position: relative;
    max-width: 100%;
    cursor: pointer;
}

.service-chip {
    display: block;
    padding: 12px 18px;
    border-radius: 14px;
    color: var(--ink);
    background: var(--soft);
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.service-choice input:checked + .service-chip {
    color: var(--surface);
    background: var(--purple);
}

.service-choice input:focus-visible + .service-chip {
    outline: 3px solid var(--purple);
    outline-offset: 3px;
}

.brief-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.brief-field {
    flex: 1 1 200px;
    min-width: 0;
}

.brief-field input {
    width: 100%;
    min-width: 0;
    padding: 18px 20px;
    border: 0;
    border-radius: 16px;
    color: var(--ink);
    background: var(--soft);
    font-size: 17px;
    transition: box-shadow 0.2s;
}

.brief-field input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--purple);
}

.brief-submit {
    padding: 20px;
    border: 0;
    border-radius: 16px;
    color: var(--surface);
    background: var(--ink);
    font-size: 18px;
    font-weight: 500;
    transition: background 0.2s;
}

.brief-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.brief-note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.site-footer {
    max-width: 1560px;
    margin: 12px auto 0;
    padding: clamp(28px, 4vw, 56px);
    border-radius: var(--radius);
    background: var(--surface);
}

.footer-logo {
    display: block;
    width: 100%;
    height: auto;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 32px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-links a {
    color: var(--ink);
}

.footer-links a:hover {
    color: var(--purple);
}

.footer-policy {
    color: var(--muted);
}

/* Readable content when JavaScript is unavailable. */
html:not(.has-js) .service-tabs {
    display: none;
}

html:not(.has-js) .service-panel[hidden] {
    display: grid !important;
    margin-top: 24px;
}

html:not(.has-js) .service-group-title {
    position: static;
    grid-column: 1 / -1;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
}

@keyframes pop {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes float {
    0%,
    100% {
        transform: rotate(15deg) translateY(0);
    }
    50% {
        transform: rotate(15deg) translateY(-14px);
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 5px));
    }
}

@media (max-width: 860px) {
    .site-header {
        flex-wrap: wrap;
        gap: 10px 12px;
        padding: 10px 12px;
    }

    .header-nav {
        order: 3;
        flex: 1 1 100%;
    }

    .hero-tile,
    .case-card {
        grid-column: span 12;
    }

    .hero-tile {
        min-height: 190px;
    }

    .hero-card {
        min-height: 540px;
    }

    .hero-content {
        padding-top: 160px;
    }

    .hero-shape--purple {
        width: 300px;
        height: 300px;
    }

    .hero-shape--pink {
        top: 30px;
        right: 50px;
        width: 150px;
        height: 150px;
    }

    .hero-shape--yellow {
        top: 30px;
        right: 100px;
        width: 38px;
        height: 200px;
    }

    .section {
        scroll-margin-top: 130px;
    }

    .case-image {
        height: clamp(240px, 55vw, 460px);
    }

    .brief-card {
        gap: 32px;
    }
}

@media (max-width: 480px) {
    :root {
        --radius: 28px;
    }

    .brand img {
        height: 22px;
    }

    .header-cta {
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }

    .nav-link {
        justify-content: center;
        flex: 1 1 0;
        padding: 0 8px;
        font-size: 14px;
    }

    .header-nav {
        gap: 0;
    }

    .hero-card {
        min-height: 580px;
        padding: 28px 24px;
    }

    .hero-content {
        gap: 20px;
        padding-top: 170px;
    }

    .hero h1 {
        font-size: clamp(36px, 11.3vw, 50px);
    }

    .hero-shape--purple {
        top: -40px;
        right: -80px;
    }

    .hero-shape--pink {
        right: 20px;
    }

    .hero-shape--yellow {
        right: 65px;
    }

    .hero-tile {
        padding: 28px;
    }

    .tools-marquees {
        margin: 0 -28px;
    }

    .section-heading {
        padding-right: 8px;
        padding-left: 8px;
    }

    .service-tab {
        padding: 12px 16px;
    }

    .service-card {
        min-height: 290px;
        padding: 28px;
    }

    .case-image {
        border-radius: 20px;
    }

    .case-content {
        padding: 20px 12px 16px;
    }

    .faq-intro {
        min-height: 250px;
    }

    .faq-item {
        padding: 0 20px;
    }

    .faq-item summary {
        gap: 12px;
    }

    .faq-answer p {
        padding-right: 0;
    }

    .brief-card {
        padding: 28px 20px;
    }

    .brief-form-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .service-chip {
        padding: 10px 12px;
        font-size: 15px;
    }

    .brief-field input {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
