:root {
    --bg: #050816;
    --bg-alt: #0b1020;
    --bg-soft: #101428;
    --text: #f9fafb;
    --muted: #9ca3af;
    --border: rgba(148,163,184,0.4);
    --accent: #5c8dff;
    --accent-2: #e879f9;
    --accent-3: #38bdf8;
    --danger: #fb7185;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-soft: 0 20px 60px rgba(0,0,0,0.65);
    --max-width: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui,-apple-system,BlinkMacSystemFont,"SF Pro Text",sans-serif;
    background:
    radial-gradient(circle at top left, rgba(92,141,255,0.3), transparent 55%),
    radial-gradient(circle at bottom right, rgba(236,72,153,0.3), transparent 55%),
    #050816;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

html {
    scroll-behavior: smooth;
}

.pop-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.pop-in.visible {
    opacity: 1;
    transform: scale(1);
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(5,8,22,0.96), rgba(5,8,22,0.9));
    border-bottom: 1px solid rgba(148,163,184,0.35);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: url(/assets/favicon.png);
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
}

.logo-text {
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 16px;
}

.nav-links {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--muted);
}

.nav-links a {
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width .2s ease-out;
}

.nav-links a:hover {
    color: #e5e7eb;
}

.nav-links a:hover::after {
    width: 100%;
}

main {
    flex: 1;
    padding: 32px 0 52px;
}

/* HERO */

.hero {
    padding: 10px 0 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.6);
    color: var(--muted);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
}

.hero-title {
    font-size: clamp(26px, 3.6vw, 34px);
    line-height: 1.15;
    margin: 18px 0 10px;
}

@keyframes heroTitleAnim {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 200% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-title span {
    background: linear-gradient(120deg, #e5e7eb, #5c8dff, #e879f9, #5c8dff, #e5e7eb);
    background-size: 250% 250%;
    animation: heroTitleAnim 10s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text {
    font-size: 15px;
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 18px;
}

.hero-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}

.hero-list span {
    color: #e5e7eb;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.btn {
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .18s ease-out, color .18s ease-out,
    border-color .18s ease-out, box-shadow .18s ease-out,
    transform .18s ease-out;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #5c8dff, #e879f9);
    color: #111827;
    box-shadow: 0 18px 42px rgba(37,99,235,0.7);
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 22px 55px rgba(37,99,235,0.9);
}

.btn-ghost {
    background: rgba(15,23,42,0.85);
    border-color: rgba(148,163,184,0.7);
    color: var(--muted);
}

.btn-ghost:hover {
    color: #e5e7eb;
    background: rgba(15,23,42,1);
}

.hero-note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.hero-card {
    background:
    radial-gradient(circle at top, rgba(148,163,253,0.3), transparent 60%),
    radial-gradient(circle at bottom, rgba(236,72,153,0.32), transparent 60%),
    var(--bg-alt);
    border-radius: 26px;
    padding: 16px 16px 14px;
    border: 1px solid rgba(148,163,184,0.4);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}

.hero-card-header strong {
    color: #e5e7eb;
}

.hero-main-image {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(248,250,252,0.1);
    margin-bottom: 8px;
}

.hero-previews {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.hero-preview {
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #f97373, #fb7185);
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    text-align: center;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover !important;
    flex-direction: column;
    min-height: 100px;
}

.hero-preview-image {
    position: relative;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    border-radius: 12px;
}

.hero-preview > span {
    padding: 2px 0 4px 0;
    font-weight: bolder;
}

.hero-preview:nth-child(2) {
    background: linear-gradient(135deg, #93c5fd, #a5b4fc);
}
.hero-preview:nth-child(3) {
    background: linear-gradient(135deg, #22c55e, #4ade80);
}
.hero-preview:nth-child(4) {
    background: linear-gradient(135deg, #f97316, #facc15);
}

.hero-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
    margin-top: 1.5em;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15,23,42,0.85);
    border: 1px solid rgba(148,163,184,0.6);
}

.hero-floating-pill {
    position: absolute;
    bottom: 14px;
    right: 16px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(148,163,184,0.8);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-floating-pill span {
    color: #bbf7d0;
}

/* GENERIC SECTIONS */

section { padding: 30px 0; }

.section-title {
    font-size: 22px;
    margin-bottom: 6px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--muted);
    /* max-width: 520px; */
    margin-bottom: 18px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 14px 14px 12px;
    border: 1px solid rgba(31,41,55,0.8);
    box-shadow: 0 14px 36px rgba(0,0,0,0.6);
    font-size: 14px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.card-icon {
    font-size: 20px;
    margin-bottom: 6px;
}

/* MEDIA STRIP (ГАЛЕРЕЯ) */

.media-strip {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 18px;
    align-items: stretch;
}

.media-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.5);
    box-shadow: var(--shadow-soft);
    background: radial-gradient(circle at top, rgba(248,250,252,0.1), transparent 60%);
}

.media-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}

.media-thumb {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.4);
    background: radial-gradient(circle at top, rgba(148,163,253,0.25), transparent 60%);
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* HOW IT WORKS */

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 4px;
}

.step {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid rgba(55,65,81,0.9);
    padding: 12px 12px 10px;
    font-size: 13px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.55);
}

.step-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 2px;
}

.step strong {
    font-size: 14px;
    display: block;
    margin-bottom: 3px;
}

/* PRICING */

.pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
    gap: 20px;
    align-items: flex-start;
}

.price-main {
    background:
    radial-gradient(circle at top left, rgba(96,165,250,0.35), transparent 60%),
    radial-gradient(circle at bottom right, rgba(236,72,153,0.35), transparent 60%),
    var(--bg-soft);
    border-radius: 24px;
    padding: 18px 18px 14px;
    border: 1px solid rgba(148,163,184,0.7);
    box-shadow: var(--shadow-soft);
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 8px;
}

.price-header h3 {
    font-size: 18px;
}

.pill-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(248,250,252,0.5);
    font-size: 11px;
    margin-bottom: 6px;
}

.price-amount {
    font-size: 24px;
    font-weight: 600;
}

.price-label {
    font-size: 13px;
    color: var(--muted);
}

.price-text {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.price-list {
    list-style: none;
    font-size: 13px;
    color: var(--muted);
    margin: 6px 0 10px;
}

.price-list li {
    margin-bottom: 4px;
}

.price-list li::before {
    content: "• ";
    color: #e5e7eb;
}

.pricing-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.tiers {
    background: var(--bg-alt);
    border-radius: 18px;
    border: 1px solid rgba(55,65,81,0.9);
    padding: 10px 12px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.65);
}

.tier-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.tier-row span:first-child { color: #e5e7eb; }

.note {
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
}

.note-strong {
    color: var(--danger);
    font-weight: 500;
}

/* BILLING CARD */

.billing-card {
    background: var(--bg-alt);
    border-radius: 18px;
    border: 1px solid rgba(55,65,81,0.9);
    padding: 14px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.6);
    font-size: 13px;
    color: var(--muted);
}

/* FAQ */

.faq-grid {
    display: grid;
    /* grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); */
    gap: 20px;
}

.faq-item {
    border-bottom: 1px solid rgba(55,65,81,0.9);
    padding: 10px 0;
    cursor: pointer;
}

.faq-question {
    font-weight: 500;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    font-size: 13px;
    color: var(--muted);
    max-height: 0;
    overflow: hidden;
    transition: max-height .22s ease-out;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    margin-top: 4px;
}

.faq-toggle {
    font-size: 16px;
    margin-left: 8px;
    color: var(--muted);
}

.legal-list {
    font-size: 13px;
    color: var(--muted);
    list-style: none;
}

.legal-list li { margin-bottom: 6px; }

.legal-list a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* CONTACT */

.contact-card {
    background: var(--bg-alt);
    border-radius: 18px;
    border: 1px solid rgba(55,65,81,0.9);
    padding: 14px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.6);
    font-size: 14px;
    color: var(--muted);
}

/* FOOTER */

footer {
    border-top: 1px solid rgba(55,65,81,0.9);
    padding: 16px 0 22px;
    font-size: 12px;
    color: var(--muted);
    background: #020617;
}

.footer-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.company-info {
    border-top: 1px solid rgba(75,85,99,0.9);
    padding-top: 10px;
    font-size: 11px;
    color: var(--muted);
}

/* RESPONSIVE */

@media (max-width: 920px) {
    .hero-grid,
    .media-strip,
    .pricing-grid,
    .faq-grid {
    grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .nav-links { display: none; }

    .hero-grid { gap: 24px; }

    .grid-3 { grid-template-columns: minmax(0, 1fr); }

    .steps { grid-template-columns: minmax(0, 1fr); }

    .hero-list { grid-template-columns: minmax(0,1fr); }

    .media-strip { gap: 12px; }

    .media-side { grid-template-rows: 1fr 1fr; }

    .btn { width: 100%; }
    .hero-actions {
    flex-direction: column;
    align-items: stretch;
    }
}