:root {
    /* Исходная гамма лендинга-задела */
    --bg: #fafafa;
    --surface: #ffffff;
    --text: #111111;
    --text-sec: #666666;
    --accent-1: #ff5da2;
    --accent-2: #8a5cff;
    --accent-3: #4da8ff;
    --grad-main: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
    --line: rgba(0, 0, 0, 0.08);
    --asoc: var(--accent-2);
    --scannery: var(--accent-3);
    --radius: 20px;
    --radius-sm: 12px;
    --nav-h: 72px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.12);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.47059;
    font-size: 17px;
    letter-spacing: -0.022em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1068px;
    margin: 0 auto;
    padding: 0 22px;
}

.container--wide {
    max-width: 1480px;
}

@media (min-width: 734px) {
    .container {
        padding: 0 32px;
    }
}

/* ----- Nav ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-placeholder {
    flex-shrink: 0;
    min-width: 120px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 0 12px;
}

.logo-placeholder img {
    max-height: 28px;
    max-width: 120px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (min-width: 834px) {
    .nav-links {
        gap: 28px;
    }
}

.nav-links a {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    opacity: 0.88;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--text);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.04);
}

.btn-nav {
    padding: 8px 16px;
    font-size: 12px;
}

/* ----- Hero ----- */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--nav-h) + 48px) 0 80px;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--bg);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    will-change: transform;
}

.hero-blob-1 {
    width: min(70vw, 520px);
    height: min(70vw, 520px);
    background: var(--accent-1);
    top: -10%;
    right: -15%;
}

.hero-blob-2 {
    width: min(60vw, 420px);
    height: min(60vw, 420px);
    background: var(--accent-2);
    bottom: 5%;
    left: -20%;
    opacity: 0.3;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-sec);
    margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.045em;
    margin-bottom: 20px;
}

.hero-title .grad {
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 19px;
    line-height: 1.4211;
    color: var(--text-sec);
    letter-spacing: -0.015em;
    max-width: 36em;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hero-card {
    display: block;
    padding: 20px 18px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--line);
    transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.35s ease;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hero-card-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.hero-card-tag.asoc {
    color: var(--asoc);
}

.hero-card-tag.scan {
    color: var(--accent-3);
}

.hero-card h3 {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.hero-card p {
    font-size: 14px;
    color: var(--text-sec);
    line-height: 1.4;
}

.mockup-frame {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    transform: none;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.mockup-frame:hover {
    transform: translateY(-2px);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.14);
}

@media (prefers-reduced-motion: reduce) {
    .mockup-frame:hover {
        transform: none;
    }
}

.mockup-header {
    height: 36px;
    background: #f3f3f5;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

/* ----- Media placeholders ----- */
.media-placeholder {
    width: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-sec);
    font-size: 14px;
    font-weight: 500;
}

/* Пустой блок-плейсхолдер (текст без картинки) */
.media-placeholder:not(:has(> img:only-child)) {
    min-height: clamp(280px, 52vh, 640px);
    aspect-ratio: 16 / 10;
}

.hero .media-placeholder:not(:has(> img:only-child)) {
    min-height: clamp(320px, 56vh, 720px);
}

.pin-sticky .mockup-frame .media-placeholder:not(:has(> img:only-child)) {
    min-height: clamp(240px, 42vh, 520px);
}

.media-placeholder small {
    font-size: 12px;
    opacity: 0.75;
    font-weight: 400;
}

/* Рамка под фактический размер скрина */
.media-placeholder:has(> img:only-child) {
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    padding: 0;
    background: #eaeaed;
    justify-content: flex-start;
    align-items: center;
}

.media-placeholder > img:only-child {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top center;
    max-height: min(72vh, 820px);
}

.hero .media-placeholder > img:only-child {
    max-height: min(78vh, 880px);
}

.split-media .mockup-frame .media-placeholder > img:only-child {
    max-height: min(62vh, 720px);
}

.pin-sticky .mockup-frame .media-placeholder > img:only-child {
    max-height: min(48vh, 520px);
}

.product-section > .container--wide {
    margin-top: 56px;
}

/* ----- Section shared ----- */
section[id] {
    scroll-margin-top: calc(var(--nav-h) + 16px);
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-label.asoc {
    color: var(--asoc);
}

.section-label.scan {
    color: var(--accent-3);
}

.section-head {
    max-width: 52rem;
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.08;
    margin-bottom: 16px;
}

.section-head p.lead {
    font-size: 19px;
    color: var(--text-sec);
    letter-spacing: -0.015em;
    line-height: 1.4211;
}

/* ----- Product sections ----- */
.product-section {
    padding: 100px 0;
    background: var(--surface);
}

.product-section.alt {
    background: linear-gradient(180deg, var(--bg) 0%, #f0f4ff 100%);
}

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

@media (min-width: 734px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1068px) {
    .features-grid.three {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 28px 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.product-section.alt .feature-card {
    background: rgba(255, 255, 255, 0.95);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .feature-card:hover {
        transform: none;
    }
}

.feature-card h3 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.022em;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-sec);
    line-height: 1.5;
}

.problems-block {
    margin-top: 72px;
    padding-top: 56px;
    border-top: 1px solid var(--line);
}

.problems-block h3 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.problems-list {
    list-style: none;
    display: grid;
    gap: 16px;
}

@media (min-width: 734px) {
    .problems-list {
        grid-template-columns: 1fr 1fr;
    }
}

.problems-list li {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-sec);
    line-height: 1.45;
    border-left: 3px solid var(--accent-2);
    box-shadow: var(--shadow-sm);
}

.product-section.alt .problems-list li {
    background: rgba(255, 255, 255, 0.98);
}

.split-media {
    margin-top: 64px;
    display: grid;
    gap: 32px;
}

@media (min-width: 900px) {
    .split-media {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* ----- Pin stack (ASOC) ----- */
.pin-section {
    position: relative;
    background: var(--bg);
}

.pin-wrap {
    display: grid;
    gap: 0;
}

@media (min-width: 900px) {
    .pin-wrap {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.pin-sticky {
    padding: 80px 0 48px;
}

@media (min-width: 900px) {
    .pin-sticky {
        position: -webkit-sticky;
        position: sticky;
        top: calc(var(--nav-h) + 12px);
        align-self: start;
        padding: 100px 32px 48px 0;
        min-height: min(calc(100vh - var(--nav-h) - 24px), 900px);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.pin-sticky h3 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.pin-sticky p {
    font-size: 17px;
    color: var(--text-sec);
    max-width: 28em;
}

.pin-sticky .mockup-frame--below {
    margin-top: 28px;
    max-width: 100%;
}

.pin-scroll {
    padding-bottom: 80px;
}

@media (min-width: 900px) {
    .pin-scroll {
        padding: 100px 0 100px 32px;
    }
}

.pin-panel {
    min-height: auto;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
    .pin-panel {
        min-height: 85vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 48px 0;
        border-bottom: none;
        border-left: 1px solid var(--line);
        padding-left: 40px;
    }
}

.pin-panel:last-child {
    border-bottom: none;
}

.pin-panel h4 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.pin-panel p {
    font-size: 17px;
    color: var(--text-sec);
    line-height: 1.5;
    max-width: 32em;
}

/* ----- Scannery highlight strip ----- */
.highlight-strip {
    padding: 80px 0;
    background: var(--grad-main);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.highlight-strip::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    animation: highlight-rotate 22s linear infinite;
    pointer-events: none;
}

@keyframes highlight-rotate {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .highlight-strip::before {
        animation: none;
    }
}

.highlight-strip .container {
    position: relative;
    z-index: 1;
}

.highlight-strip h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 12px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.highlight-strip p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 36em;
    margin: 0 auto;
}

/* ----- Contact ----- */
.contact-section {
    padding: 100px 0 80px;
    background: var(--surface);
}

.contact-grid {
    display: grid;
    gap: 48px;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1.1fr;
        gap: 64px;
        align-items: start;
    }
}

.contact-section h2 {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
}

.contact-section .contact-lead {
    color: var(--text-sec);
    font-size: 17px;
    margin-bottom: 24px;
    max-width: 28em;
}

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

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-sec);
}

.form-row input,
.form-row textarea {
    font-family: inherit;
    font-size: 17px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(138, 92, 255, 0.2);
}

.form-row textarea {
    min-height: 140px;
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-sec);
    line-height: 1.4;
}

.form-check input {
    margin-top: 3px;
    flex-shrink: 0;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-status {
    font-size: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: none;
}

.form-status.visible {
    display: block;
}

.form-status.ok {
    background: rgba(52, 199, 89, 0.15);
    color: #1a7f37;
}

.form-status.err {
    background: rgba(255, 59, 48, 0.12);
    color: #c41e1e;
}

/* ----- Footer ----- */
.footer {
    padding: 40px 0 48px;
    background: var(--text);
    border-top: none;
    font-size: 14px;
    color: #888888;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
}

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

.footer-links a {
    color: #888888;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 640px) {
    .footer-contact {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 20px 32px;
    }
}

.footer-contact-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #a1a1a6;
    width: 100%;
}

@media (min-width: 640px) {
    .footer-contact-label {
        width: auto;
    }
}

.footer-contact a {
    color: #c8c8c8;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.footer-contact a:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.55);
}

.footer-docs {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 640px) {
    .footer-docs {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 20px 32px;
    }
}

.footer-docs-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #a1a1a6;
    width: 100%;
}

@media (min-width: 640px) {
    .footer-docs-label {
        width: auto;
    }
}

.footer-docs a {
    color: #c8c8c8;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.footer-docs a:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.55);
}

.highlight-strip .highlight-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.highlight-strip .btn-white {
    background: #ffffff;
    color: var(--text);
}

.highlight-strip .btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* ----- GSAP / reduced motion hooks ----- */
.reveal {
    opacity: 0;
    transform: translateY(36px);
}

.reveal-done {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}
