:root {
    --brand: #4285f4;
    --brand-dark: #3367d6;
    --brand-tint: #e8f0fe;
    --accent: #34a853;
    --ink: #0f172a;
    --ink-soft: #64748b;
    --line: #e2e8f0;
    --white: #ffffff;
    --radius-card: 18px;
    --radius-btn: 12px;
    --maxw: 1120px;
    --shadow-soft: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 36px -18px rgba(15, 23, 42, .14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 10px;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3 {
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 800;
}

h3 {
    font-size: 1.12rem;
    font-weight: 700;
}

p {
    color: var(--ink-soft);
    margin: 0 0 1em;
}

section {
    padding: 76px 0;
}

.grad-text {
    background: linear-gradient(120deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-tint);
    border: 1px solid #d2e3fc;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 28px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.btn-primary {
    background: linear-gradient(120deg, var(--brand), var(--brand-dark));
    color: var(--white);
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(66, 133, 244, .2), 0 10px 24px -12px rgba(66, 133, 244, .45);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 2px rgba(66, 133, 244, .2), 0 16px 32px -12px rgba(66, 133, 244, .5);
}

.btn-ghost {
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 11px 20px;
    font-size: .9rem;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-weight: 600;
    font-size: .95rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink-soft);
    transition: color .15s ease;
}

.nav-links a:hover {
    color: var(--brand);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    background: var(--white);
    padding: 6px 24px 20px;
}

.mobile-menu a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-of-type {
    border-bottom: 0;
}

.mobile-menu a:hover {
    color: var(--brand);
}

@media (max-width:820px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .mobile-menu.open {
        display: block;
    }
}

/* Hero */
.hero {
    padding: 8px 0 84px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(620px 420px at 88% 0%, rgba(66, 133, 244, .08), transparent 60%),
        radial-gradient(520px 380px at 0% 100%, rgba(52, 168, 83, .07), transparent 60%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: flex-start;
    position: relative;
}

@media (max-width:960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.hero-sub {
    font-size: 1.12rem;
    max-width: 540px;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero-cta-row .btn {
    flex: 1 1 0;
    min-width: max-content;
}

.hero-note {
    font-size: .85rem;
    color: var(--ink-soft);
    margin-top: 18px;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .83rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
    box-shadow: var(--shadow-soft);
}

/* Hero visual */
.hero-visual {
    position: relative;
}

.device {
    background: var(--white);
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px -28px rgba(15, 23, 42, .35);
    padding: 20px;
    position: relative;
    z-index: 2;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: .86rem;
    margin-bottom: 14px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
}

.device-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
}

.project-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 18px 0;
    margin-bottom: 12px;
    background: var(--white);
}

.p-row {
    display: flex;
    gap: 9px;
    margin-bottom: 10px;
    align-items: flex-start;
    font-size: .84rem;
}

.p-row .ic {
    flex-shrink: 0;
    line-height: 1.45;
}

.p-row .tx {
    line-height: 1.45;
    color: var(--ink);
}

.p-row .tx b {
    font-weight: 700;
}

.p-sub {
    color: var(--ink-soft);
    font-size: .8rem;
    margin: 2px 0 0;
}

.p-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 0 14px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
}

.p-foot a {
    color: var(--brand);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
}

.p-time {
    color: var(--ink-soft);
    font-size: .72rem;
    flex-shrink: 0;
}

.inline-keys {
    display: flex;
    flex-direction: column;
    margin: 4px -18px 0;
}

.inline-key {
    display: block;
    width: 100%;
    padding: 12px 18px;
    text-align: center;
    font-size: .82rem;
    font-weight: 700;
    font-family: inherit;
    border: 0;
    border-top: 1px solid var(--line);
    background: var(--white);
    color: var(--brand);
    cursor: pointer;
}

.inline-key-primary {
    background: var(--brand-tint);
}

.inline-key:last-of-type {
    border-radius: 0 0 15px 15px;
}

.bubble {
    border-radius: 16px;
    padding: 14px 16px;
    font-size: .84rem;
}

.bubble-ai {
    background: var(--ink);
    color: var(--white);
}

.bubble-ai .tag {
    display: inline-block;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: linear-gradient(120deg, var(--brand), var(--accent));
    color: var(--white);
    padding: 3px 9px;
    border-radius: 7px;
    margin-bottom: 9px;
}

.bubble-ai p {
    color: #cbd5e1;
    margin: 0;
}

/* Problem / Solution */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

@media (max-width:820px) {
    .split {
        grid-template-columns: 1fr;
    }
}

.split>div {
    padding: 38px;
}

.split .problem {
    background: #fbfbfc;
}

.split .solution {
    background: var(--brand-tint);
}

.split ul {
    margin: 0;
    padding-left: 20px;
    color: var(--ink-soft);
}

.split li {
    margin-bottom: 11px;
}

.split-label {
    font-weight: 800;
    font-size: .84rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 16px;
    display: block;
}

.problem .split-label {
    color: #dc2626;
}

.solution .split-label {
    color: var(--brand);
}

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

@media (max-width:940px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:620px) {
    .grid-cards {
        grid-template-columns: 1fr;
    }
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 28px;
    background: var(--white);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: #d2e3fc;
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--brand-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.card p {
    margin: 0;
    font-size: .94rem;
}

.card-featured {
    border: 2px solid var(--brand);
    background: linear-gradient(180deg, var(--brand-tint), var(--white));
    position: relative;
}

.card-featured .badge {
    display: inline-block;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: linear-gradient(120deg, var(--brand), var(--accent));
    color: #fff;
    padding: 4px 10px;
    border-radius: 7px;
    margin-bottom: 14px;
}

/* How it works */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width:820px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

.step {
    position: relative;
    padding: 30px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
    transition: transform .15s ease, box-shadow .15s ease;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    margin-bottom: 16px;
}

/* Who it's for */
.roles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width:820px) {
    .roles {
        grid-template-columns: 1fr;
    }
}

.role {
    display: flex;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--white);
    transition: transform .15s ease, box-shadow .15s ease;
}

.role:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.role-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--brand-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.role h3 {
    margin-bottom: 4px;
}

.role p {
    margin: 0;
    font-size: .92rem;
}

/* Pricing */
.pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width:820px) {
    .pricing {
        grid-template-columns: 1fr;
    }
}

.plan {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 34px;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.plan-pro {
    border: 2px solid var(--brand);
    position: relative;
    background: linear-gradient(180deg, var(--brand-tint), var(--white));
}

.plan-pro::before {
    content: "Популярный выбор";
    position: absolute;
    top: -14px;
    left: 34px;
    background: linear-gradient(120deg, var(--brand), var(--accent));
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 8px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.plan-price {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 6px 0 4px;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.plan-note {
    font-size: .85rem;
    color: var(--ink-soft);
    margin-bottom: 20px;
}

.plan ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.plan li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: .94rem;
    color: var(--ink);
}

.check {
    color: var(--brand);
    font-weight: 800;
    flex-shrink: 0;
}

/* FAQ */
details {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 18px 22px;
    margin-bottom: 12px;
    background: var(--white);
}

summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--brand);
    flex-shrink: 0;
    transition: transform .15s ease;
}

details[open] summary::after {
    content: "-";
}

details p {
    margin: 12px 0 0;
    font-size: .94rem;
}

/* Final CTA */
.final-cta {
    background:
        radial-gradient(600px 300px at 85% 0%, rgba(52, 168, 83, .25), transparent 60%),
        radial-gradient(500px 300px at 10% 100%, rgba(66, 133, 244, .35), transparent 60%),
        var(--ink);
    color: var(--white);
    border-radius: 24px;
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta h2 {
    color: var(--white);
}

.final-cta p {
    color: #94a3b8;
    max-width: 540px;
    margin: 0 auto 30px;
}

.final-cta .btn-ghost {
    border-color: #334155;
    color: var(--white);
    background: transparent;
}

.final-cta .btn-ghost:hover {
    border-color: var(--white);
}

footer {
    border-top: 1px solid var(--line);
    padding: 38px 0;
    font-size: .85rem;
    color: var(--ink-soft);
}

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

.footer-row a {
    color: var(--ink-soft);
    text-decoration: none;
}

.footer-row a:hover {
    color: var(--brand);
}

.section-head {
    max-width: 640px;
    margin-bottom: 46px;
}

.section-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}