@font-face { font-family: "Onest"; src: url("/static/fonts/onest-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("/static/fonts/onest-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: italic; src: url("/static/fonts/literata-cyrillic-opsz-italic.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-style: italic; src: url("/static/fonts/literata-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
    --bg: #0D1015;
    --bg-2: #12161D;
    --surface: #161B23;
    --surface-2: #1C222C;
    --line: #262E3A;
    --text: #ECEFF3;
    --text-soft: #B7C0CB;
    --muted: #8692A0;
    --accent: #7FE3BE;
    --accent-ink: #0B2A1F;
    --accent-soft: rgba(127, 227, 190, .12);
    --gold: #D8B77A;
    --danger: #FF8A7A;
    --radius: 18px;
    --radius-lg: 26px;
    --wrap: 1160px;
    color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.6 "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
em, .serif-em { font-family: "Literata", Georgia, serif; font-style: italic; font-weight: 500; color: var(--accent); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── шапка */
.top {
    position: sticky; top: 0; z-index: 20;
    background: rgba(13, 16, 21, .82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(38, 46, 58, .7);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { display: grid; line-height: 1.1; }
.brand-name b { font-weight: 700; letter-spacing: .08em; font-size: 17px; }
.brand-name small { color: var(--muted); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.top-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.top-nav a { text-decoration: none; color: var(--text-soft); }
.top-nav a:hover { color: var(--text); }
.top-nav a.btn-accent, .top-nav a.btn-accent:hover { color: var(--accent-ink); }

/* ── кнопки */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 24px; border-radius: 999px;
    font: 600 16px/1 "Onest", sans-serif; text-decoration: none; cursor: pointer;
    border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #95EBCB; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: #3A4554; background: var(--surface); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-full { width: 100%; }

/* ── первый экран */
.hero { padding: 72px 0 40px; position: relative; overflow: clip; }
.hero::before {
    content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
    background: radial-gradient(closest-side, rgba(127, 227, 190, .16), transparent 70%);
    pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 860px); gap: 48px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -.025em; margin: 18px 0 20px; font-weight: 700; }
.hero-lead { color: var(--text-soft); font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 40px 0 0; padding: 0; list-style: none; }
.hero-facts li { border-top: 1px solid var(--line); padding-top: 14px; color: var(--text-soft); font-size: 15px; line-height: 1.45; }
.hero-facts b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

.device { position: relative; justify-self: center; width: min(320px, 100%); }
.device-frame {
    border-radius: 42px; padding: 10px; background: linear-gradient(160deg, #2A323E, #12161D);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.device-frame img { border-radius: 33px; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; width: 100%; height: auto; }
.device-badge {
    position: absolute; left: -36px; bottom: 54px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px;
    padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 14px;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
}
.device-badge i { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; font-style: normal; color: var(--accent); }
.device-badge small { display: block; color: var(--muted); font-size: 12.5px; }

/* ── секции */
.section { padding: 84px 0; }
.section + .section { border-top: 1px solid rgba(38, 46, 58, .6); }
.section-head { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px 24px; margin-bottom: 40px; }
.section-num { color: var(--accent); font: italic 500 22px/1 "Literata", serif; padding-top: 10px; }
.section-head h2 { margin: 0; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
.section-head p { grid-column: 2; margin: 0; color: var(--text-soft); max-width: 40em; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 24px; display: grid; align-content: start; gap: 10px;
}
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin: 6px 0 0; font-size: 19px; line-height: 1.3; }
.card p { margin: 0; color: var(--text-soft); font-size: 15.5px; }

/* ── работы */
.case-main {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: center;
    background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 36px; margin-bottom: 16px;
}
.case-tag { display: inline-block; font-size: 13px; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.case-main h3 { font-size: clamp(26px, 2.8vw, 34px); margin: 10px 0 12px; line-height: 1.15; }
.case-main p { color: var(--text-soft); margin: 0 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-soft); font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FE3BE' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.case-shots { position: relative; min-height: 340px; }
.case-shots .shot-desk { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; height: auto; }
.case-shots .shot-mob { position: absolute; right: -10px; bottom: -24px; width: 34%; border-radius: 20px; border: 6px solid #232A35; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); aspect-ratio: 390 / 760; object-fit: cover; object-position: top; height: auto; }
.case-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; text-decoration: none; }
.case-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.case-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case-small .case-link { display: inline-block; margin-top: 12px; }
.case-small { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.case-small h4 { margin: 8px 0 8px; font-size: 18px; }
.case-small p { margin: 0; color: var(--text-soft); font-size: 15px; }

/* ── шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 18px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--accent); font: italic 500 20px/1 "Literata", serif; margin-bottom: 12px; }
.steps b { display: block; font-size: 17px; margin-bottom: 6px; }
.steps span { color: var(--text-soft); font-size: 15px; }

/* ── обо мне */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.about p { color: var(--text-soft); margin: 0 0 14px; }
.about-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.about-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--text-soft); font-size: 15.5px; }
.about-list b { color: var(--text); }

/* ── форма */
.lead-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.lead-side p { color: var(--text-soft); }
.lead-side .alt { margin-top: 26px; display: grid; gap: 10px; }
.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 15px; font-weight: 600; }
.field input, .field textarea, .field select {
    width: 100%; font: 400 16px/1.4 "Onest", sans-serif; color: var(--text);
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
    outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { font-size: 15px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-soft); font-size: 15px; background: var(--bg-2); }
.chip input:checked + span { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); font-weight: 600; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.consent { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); font-size: 14.5px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-alert { background: rgba(255, 138, 122, .1); border: 1px solid rgba(255, 138, 122, .4); color: #FFC2B8; border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── подвал */
.foot { border-top: 1px solid var(--line); padding: 34px 0 48px; color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.foot a { color: var(--text-soft); }

/* ── простые страницы */
.page { padding: 80px 0; max-width: 760px; }
.page h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; margin: 0 0 18px; }
.page p, .page li { color: var(--text-soft); }
.page h2 { font-size: 20px; margin: 30px 0 8px; }

@media (max-width: 980px) {
    .hero-grid, .case-main, .about, .lead-wrap { grid-template-columns: minmax(0, 1fr); }
    .device { margin-top: 10px; }
    .cards, .case-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 24px; }
    .top-nav a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .hero { padding: 40px 0 24px; }
    .hero-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .section { padding: 60px 0; }
    .section-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 28px; }
    .section-head p { grid-column: 1; }
    .section-num { padding-top: 0; }
    .cards, .case-row, .steps { grid-template-columns: minmax(0, 1fr); }
    .case-main { padding: 22px; gap: 26px; }
    .case-shots { min-height: 0; margin-bottom: 26px; }
    .device-badge { left: -8px; }
    .lead-form { padding: 22px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .brand-name small { display: none; }
}
