/* Avito capability pages — wide reading layout + sidebar */

.avt-body {
    --avt-ink: #1a1a1a;
    --avt-muted: #6b7280;
    --avt-faint: #9ca3af;
    --avt-line: #e8eaed;
    --avt-bg: #ffffff;
    --avt-soft: #f6f7f9;
    --avt-accent: #315efb;
    --avt-accent-soft: rgba(49, 94, 251, 0.08);
    color: var(--avt-ink);
    background: var(--avt-bg);
    overflow-x: clip;
}

.avt-page { background: var(--avt-bg); }

.avt-kicker {
    margin: 10px 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--avt-accent);
}

.avt-hero {
    padding: 8px 0 28px;
    border-bottom: 1px solid var(--avt-line);
}

.avt-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.avt-problem {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 650;
    color: var(--avt-muted);
    line-height: 1.4;
}

.avt-title {
    margin: 0 0 14px;
    font-family: var(--lp-display, "Syne", "Manrope", system-ui, sans-serif);
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.18;
    color: var(--avt-ink);
}

.avt-lead {
    margin: 0 0 16px;
    font-size: 1.08rem;
    line-height: 1.65;
    color: #374151;
    font-weight: 500;
    max-width: 40rem;
}

.avt-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--avt-faint);
}

.avt-actions { margin: 0; }

/* Product demo mock */
.avt-demo { min-width: 0; }
.avt-ui {
    border: 1px solid var(--avt-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.avt-ui-top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--avt-line);
    background: var(--avt-soft);
    font-size: 12px;
    font-weight: 700;
}
.avt-ui-dots { display: inline-flex; gap: 4px; }
.avt-ui-dots i {
    width: 7px; height: 7px; border-radius: 50%;
    background: #d1d5db; display: block;
}
.avt-ui-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    min-height: 210px;
}
.avt-ui-list { border-right: 1px solid var(--avt-line); }
.avt-ui-item {
    display: grid; gap: 2px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--avt-line);
    font-size: 12px;
}
.avt-ui-item.is-on { background: var(--avt-accent-soft); }
.avt-ui-item b { font-size: 12px; }
.avt-ui-item span { color: var(--avt-muted); }
.avt-ui-pane { padding: 12px; display: grid; gap: 8px; align-content: start; }
.avt-ui-meta { margin: 0; font-size: 11px; color: var(--avt-faint); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.avt-ui-bubble {
    max-width: 92%;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.4;
}
.avt-ui-bubble.is-in { background: var(--avt-soft); }
.avt-ui-bubble.is-out { justify-self: end; background: var(--avt-accent); color: #fff; }
.avt-ui-funnel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 12px;
}
.avt-ui-funnel > div {
    padding: 10px 8px;
    border-radius: 10px;
    background: var(--avt-soft);
    text-align: center;
}
.avt-ui-funnel > div.is-on { background: var(--avt-accent-soft); }
.avt-ui-funnel span { display: block; font-size: 10px; color: var(--avt-muted); font-weight: 700; }
.avt-ui-funnel b { font-size: 16px; }
.avt-ui-cardline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 0 12px 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--avt-soft);
    font-size: 12px;
}
.avt-ui-cardline.is-ok b { color: #168a5b; }
.avt-ui-hint {
    margin: 4px 12px 12px;
    font-size: 12px;
    color: var(--avt-muted);
}
.avt-ui-table {
    width: calc(100% - 24px);
    margin: 12px;
    border-collapse: collapse;
    font-size: 12px;
}
.avt-ui-table th,
.avt-ui-table td {
    padding: 8px;
    border-bottom: 1px solid var(--avt-line);
    text-align: left;
}
.avt-ui-table th { color: var(--avt-faint); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.avt-ui-kpi {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
}
.avt-ui-kpi > div {
    padding: 12px 10px;
    border-radius: 12px;
    background: var(--avt-soft);
}
.avt-ui-kpi span { display: block; font-size: 11px; color: var(--avt-muted); font-weight: 700; }
.avt-ui-kpi b { font-size: 18px; letter-spacing: -0.03em; }

/* Cluster nav */
.avt-cluster {
    border-bottom: 1px solid var(--avt-line);
    background: #fff;
    position: sticky;
    top: 68px;
    z-index: 40;
}
.avt-cluster-inner {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}
.avt-cluster a {
    flex: none;
    padding: 7px 11px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    color: var(--avt-muted);
    background: var(--avt-soft);
    white-space: nowrap;
}
.avt-cluster a.is-current,
.avt-cluster a:hover {
    color: #fff;
    background: var(--avt-accent);
}
.avt-cluster-home {
    color: var(--avt-accent) !important;
    background: var(--avt-accent-soft) !important;
}

.avt-section { padding: 28px 0 8px; }
.avt-how {
    padding: 28px 0 32px;
    background: var(--avt-soft);
    border-block: 1px solid var(--avt-line);
}
.avt-h2 {
    margin: 0 0 16px;
    font-size: 1.35rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.avt-muted-lead {
    margin: -6px 0 14px;
    color: var(--avt-muted);
    font-size: 15px;
    line-height: 1.5;
}

.avt-pain {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.avt-pain li {
    position: relative;
    padding: 14px 14px 14px 36px;
    border-radius: 12px;
    background: var(--avt-soft);
    font-size: 15px;
    line-height: 1.45;
    color: #374151;
}
.avt-pain li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 1.2em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--avt-accent);
}

.avt-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.avt-steps li {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--avt-line);
}
.avt-steps span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--avt-accent-soft);
    color: var(--avt-accent);
    font-size: 13px;
    font-weight: 750;
}
.avt-steps h3 { margin: 0; font-size: 1.02rem; }
.avt-steps p { margin: 0; color: var(--avt-muted); font-size: 14px; line-height: 1.5; }

.avt-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 36px;
    padding-top: 36px;
    padding-bottom: 28px;
    align-items: start;
}

.avt-content { min-width: 0; }
.avt-block { margin-bottom: 32px; }
.avt-block p {
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.75;
    color: #1f2937;
}
.avt-block ul { margin: 0 0 14px; padding-left: 1.2rem; }
.avt-block li { margin-bottom: 8px; font-size: 16px; line-height: 1.6; color: #374151; }

.avt-story {
    padding: 20px 20px 8px;
    border-radius: 16px;
    background: var(--avt-soft);
    border: 1px solid var(--avt-line);
}
.avt-story-steps {
    margin: 0 0 16px;
    padding-left: 1.2rem;
}
.avt-story-steps li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.55;
    color: #374151;
}

.avt-links { display: grid; gap: 0; }
.avt-links a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--avt-line);
    text-decoration: none;
    color: inherit;
}
.avt-links a:last-child { border-bottom: 0; }
.avt-links a:hover b { color: var(--avt-accent); }
.avt-links span { font-size: 15px; line-height: 1.4; color: #374151; }
.avt-links b { flex: none; font-size: 14px; font-weight: 700; white-space: nowrap; }

.avt-faq details {
    border-bottom: 1px solid var(--avt-line);
    padding: 14px 0;
}
.avt-faq details:first-of-type { border-top: 1px solid var(--avt-line); }
.avt-faq summary {
    cursor: pointer;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.4;
    list-style: none;
}
.avt-faq summary::-webkit-details-marker { display: none; }
.avt-faq details p {
    margin: 10px 0 4px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--avt-muted);
}

.avt-inline-cta {
    margin-top: 8px;
    padding: 28px 24px;
    border-radius: 16px;
    background: var(--avt-soft);
    border: 1px solid var(--avt-line);
}
.avt-inline-cta h2 { margin: 0 0 8px; font-size: 1.25rem; }
.avt-inline-cta p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; color: var(--avt-muted); }

.avt-side {
    display: grid;
    gap: 12px;
    align-content: start;
    position: sticky;
    top: 128px;
}
.avt-side-card {
    background: #fff;
    border: 1px solid var(--avt-line);
    border-radius: 16px;
    padding: 16px;
}
.avt-side-card strong { display: block; margin-bottom: 10px; font-size: 14px; }
.avt-side-card ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.avt-side-card li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 8px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--avt-muted);
}
.avt-side-card li span { font-weight: 700; color: var(--avt-accent); }
.avt-side-note { margin: 0 0 10px; font-size: 13px; color: var(--avt-muted); line-height: 1.45; }
.avt-side-link {
    color: var(--avt-accent);
    font-weight: 650;
    text-decoration: none;
    font-size: 14px;
}
.avt-side-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.avt-side-links a {
    color: var(--avt-ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
}
.avt-side-links a:hover { color: var(--avt-accent); }

.avt-more {
    padding: 48px 0 56px;
    border-top: 1px solid var(--avt-line);
    background: var(--avt-soft);
}
.avt-more-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
}
.avt-more-head h2 { margin: 0; font-size: 1.25rem; }
.avt-more-head a {
    color: var(--avt-accent);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}
.avt-more-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.avt-more-card {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--avt-line);
    text-decoration: none;
    color: inherit;
}
.avt-more-card:hover { border-color: rgba(49, 94, 251, 0.35); }
.avt-more-card span {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--avt-accent);
}
.avt-more-card b {
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
}

@media (max-width: 960px) {
    .avt-hero-grid,
    .avt-layout,
    .avt-steps,
    .avt-pain,
    .avt-more-grid,
    .avt-ui-split {
        grid-template-columns: 1fr;
    }
    .avt-ui-list { border-right: 0; border-bottom: 1px solid var(--avt-line); }
    .avt-side { position: static; order: -1; }
    .avt-cluster { top: 0; }
    .avt-ui-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .avt-title { font-size: clamp(1.55rem, 6vw, 1.95rem); }
    .avt-block p { font-size: 16px; line-height: 1.7; }
    .avt-links a {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .avt-more-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 390px) {
    .avt-ui-kpi { grid-template-columns: 1fr; }
    .avt-inline-cta { padding: 20px 16px; }
    .avt-cluster a { font-size: 12px; padding: 6px 10px; }
}
