/* ============================================================
   АВТОАКТ — главная страница, новая версия (home-v2)
   Подключается только на главной, после index.css.
   Оформление работает в светлой и тёмной теме через переменные.
   Классы с префиксом av- — только для этой страницы.
   ============================================================ */

/* ---------- 1. Общее ---------- */
.av-section { position: relative; padding: 100px 0; }
.av-section--tight { padding: 72px 0; }

.av-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-heading); font-size: 11px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-soft);
    border: 1px solid var(--border-accent);
    padding: 7px 15px; border-radius: var(--radius-pill);
}
.av-label i { font-size: 14px; }

.av-h2 {
    font-family: var(--font-heading); font-weight: 700;
    font-size: clamp(27px, 3.6vw, 42px); line-height: 1.16;
    color: var(--text-primary); margin: 20px 0 16px; letter-spacing: -.01em;
}
.av-h2 .accent { color: var(--accent); }

.av-lead {
    font-size: 17px; line-height: 1.65; color: var(--text-secondary);
    max-width: 660px; margin: 0;
}
.av-head { text-align: center; max-width: 780px; margin: 0 auto 60px; }
.av-head .av-lead { margin: 0 auto; }

/* иконка-плитка (заменяет стеклянные круги) */
.av-tile {
    width: 48px; height: 48px; flex: 0 0 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px; font-size: 22px; line-height: 1;
    background: var(--accent-soft); color: var(--accent);
    border: 1px solid var(--border-accent);
    transition: var(--transition);
}
.av-tile--blue   { background: var(--info-bg);    color: #2f9fc4; border-color: rgba(80,221,255,.28); }
.av-tile--green  { background: var(--success-bg); color: #0a9c56; border-color: rgba(12,195,107,.28); }
.av-tile--amber  { background: var(--warning-bg); color: var(--warning-text); border-color: rgba(255,202,80,.35); }
.av-tile--red    { background: var(--danger-bg);  color: var(--danger); border-color: rgba(227,57,44,.25); }
.av-tile--violet { background: rgba(161,98,247,.1); color: #8b4ff0; border-color: rgba(161,98,247,.25); }
.av-tile--sm { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; font-size: 18px; }

/* ---------- 2. ГЕРОЙ ---------- */
.av-hero {
    position: relative; padding: 72px 0 84px; overflow: hidden;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 78%);
}
.av-hero__grid {
    position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image:
        linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
    background-size: 68px 68px;
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}
.av-hero__glow {
    position: absolute; width: 620px; height: 620px; border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
    top: -260px; right: -160px; pointer-events: none; filter: blur(10px);
}
.av-hero__inner {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
    gap: 64px; align-items: center;
}
.av-hero__title {
    font-family: var(--font-heading); font-weight: 700;
    font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08;
    color: var(--text-primary); margin: 22px 0 18px; letter-spacing: -.02em;
}
.av-hero__title .accent { color: var(--accent); }
.av-hero__sub { font-size: 18px; line-height: 1.6; color: var(--text-secondary); margin: 0 0 32px; max-width: 560px; }

/* метрики героя — пилюли */
.av-metrics { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.av-metric {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 12px 18px; box-shadow: var(--shadow-sm);
}
.av-metric__icon {
    width: 36px; height: 36px; border-radius: 11px; flex: 0 0 36px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px; background: var(--accent-soft); color: var(--accent);
}
.av-metric__num { font-family: var(--font-heading); font-size: 19px; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.av-metric__cap { font-size: 12px; color: var(--text-muted); line-height: 1.3; }

/* форма поиска — белая панель */
.av-search {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 22px; padding: 26px; box-shadow: var(--shadow-md);
    max-width: 620px;
}
.av-search__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.av-search__title { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--text-primary); }
.av-search__badge {
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--success); background: var(--success-bg);
    border-radius: var(--radius-pill); padding: 5px 11px; white-space: nowrap;
}
.av-search__row { display: flex; gap: 10px; align-items: stretch; }
.av-search__input {
    flex: 1; min-width: 0; height: 56px; padding: 0 18px;
    font-size: 16px; color: var(--text-primary);
    background: var(--bg-secondary); border: 1.5px solid var(--border-subtle);
    border-radius: 14px; transition: var(--transition); outline: none;
}
.av-search__input::placeholder { color: var(--text-muted); }
.av-search__input:focus { border-color: var(--accent); background: var(--bg-card); box-shadow: 0 0 0 4px var(--accent-soft); }
.av-search__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 56px; padding: 0 26px; border: none; cursor: pointer;
    font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 14px; white-space: nowrap; transition: var(--transition);
    box-shadow: 0 6px 18px var(--accent-glow);
}
.av-search__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--accent-glow); }
.av-search__examples { font-size: 13px; color: var(--text-muted); margin-top: 12px; }

.av-search__tabs { display: flex; gap: 6px; margin-bottom: 16px; background: var(--bg-secondary); padding: 5px; border-radius: 13px; }
.av-search__tabs .search-tab {
    flex: 1; border: none; cursor: pointer; background: transparent;
    font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--text-muted);
    padding: 10px 8px; border-radius: 10px; transition: var(--transition); white-space: nowrap;
}
.av-search__tabs .search-tab:hover { color: var(--text-primary); }
.av-search__tabs .search-tab.active { background: var(--bg-card); color: var(--accent); box-shadow: var(--shadow-sm); }

.av-search__hints { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.av-search__hint { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.av-search__hint i { color: var(--accent); font-size: 15px; }
.av-search__hint--free i { color: var(--success); }
.av-search__hint:hover { color: var(--accent); }

/* блок «полная проверка» для авторизованных */
.av-search__full {
    display: flex; align-items: center; gap: 12px; cursor: pointer;
    margin-top: 16px; padding: 13px 16px; border-radius: 13px;
    background: var(--accent-soft); border: 1px solid var(--border-accent);
}
.av-search__full input { position: absolute; opacity: 0; pointer-events: none; }
.av-search__full-box {
    width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px;
    border: 1.5px solid var(--border-subtle); background: var(--bg-card);
    display: inline-flex; align-items: center; justify-content: center;
    color: transparent; font-size: 14px; transition: var(--transition);
}
.av-search__full input:checked + .av-search__full-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.av-search__full-text { display: flex; flex-direction: column; line-height: 1.35; }
.av-search__full-text strong { font-size: 14px; color: var(--text-primary); }
.av-search__full-text span { font-size: 12px; color: var(--text-muted); }

/* ---------- 3. Мокап отчёта (вместо телефона) ---------- */
.av-dash {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.12);
    overflow: hidden; transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
    transition: transform .6s cubic-bezier(.44,0,.56,1);
}
.av-dash:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.av-dash__bar {
    display: flex; align-items: center; gap: 8px;
    padding: 13px 16px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-subtle);
}
.av-dash__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-subtle); }
.av-dash__dot--r { background: #ff5f57; } .av-dash__dot--y { background: #febc2e; } .av-dash__dot--g { background: #28c840; }
.av-dash__addr {
    margin-left: 10px; font-size: 12px; color: var(--text-muted);
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill); padding: 4px 12px;
}
.av-dash__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.av-dash__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.av-dash__car { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--text-primary); }
.av-dash__vin { font-size: 11.5px; color: var(--text-muted); letter-spacing: .04em; }

.av-gauge { position: relative; width: 130px; height: 74px; flex: 0 0 130px; }
.av-gauge svg { width: 100%; height: 100%; overflow: visible; }
.av-gauge__val {
    position: absolute; left: 0; right: 0; bottom: 2px; text-align: center;
    font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: var(--text-primary); line-height: 1;
}
.av-gauge__cap { position: absolute; left: 0; right: 0; bottom: -14px; text-align: center; font-size: 11px; color: var(--text-muted); }

.av-kpis { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.av-kpi {
    background: var(--bg-secondary); border: 1px solid var(--border-subtle);
    border-radius: 13px; padding: 12px 13px;
}
.av-kpi__top { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.av-kpi__top i { font-size: 15px; }
.av-kpi__val { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--text-primary); }
.av-kpi__val small { font-size: 11px; font-weight: 500; color: var(--text-muted); }

.av-checks { display: flex; flex-direction: column; gap: 2px; }
.av-check {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 12px; border-radius: 11px; font-size: 13.5px; color: var(--text-secondary);
}
.av-check + .av-check { border-top: 1px solid var(--border-subtle); }
.av-check__left { display: flex; align-items: center; gap: 9px; }
.av-check__icon { width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.av-check__icon--ok { background: var(--success-bg); color: #0a9c56; }
.av-check__icon--warn { background: var(--warning-bg); color: var(--warning-text); }
.av-check__val { font-weight: 700; font-size: 13px; }
.av-check__val--ok { color: #0a9c56; } .av-check__val--warn { color: var(--warning-text); }

.av-spark { background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: 13px; padding: 13px; }
.av-spark__head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.av-spark__head strong { font-family: var(--font-heading); color: var(--text-primary); font-size: 14px; }
.av-spark svg { width: 100%; height: 54px; display: block; }

/* ---------- 4. Статы-панель ---------- */
.av-statbar {
    display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.av-statbar__item { padding: 26px 22px; text-align: center; border-right: 1px solid var(--border-subtle); }
.av-statbar__item:last-child { border-right: none; }
.av-statbar__num { font-family: var(--font-heading); font-size: 30px; font-weight: 700; color: var(--accent); line-height: 1; }
.av-statbar__cap { font-size: 13px; color: var(--text-secondary); margin-top: 8px; }

/* ---------- 5. Преимущества ---------- */
.av-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.av-card {
    position: relative; background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); padding: 26px; overflow: hidden;
    transition: var(--transition);
}
.av-card:before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0); transform-origin: left; transition: transform .45s ease;
}
.av-card:hover { transform: translateY(-5px); border-color: var(--border-accent); box-shadow: 0 14px 36px rgba(0,0,0,.09); }
.av-card:hover:before { transform: scaleX(1); }
.av-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.av-card__tag {
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-muted); background: var(--bg-secondary);
    border-radius: var(--radius-pill); padding: 5px 11px; white-space: nowrap;
}
.av-card__title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 0 0 10px; line-height: 1.3; }
.av-card__text { font-size: 14.5px; line-height: 1.62; color: var(--text-secondary); margin: 0; }

/* ---------- 6. Витрина отчёта ---------- */
.av-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.av-chip {
    display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px;
    color: var(--text-secondary); background: var(--bg-card);
    border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); padding: 9px 16px;
}
.av-chip i { color: var(--accent); font-size: 15px; }

.av-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.av-win {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition);
}
.av-win:hover { border-color: var(--border-accent); box-shadow: 0 14px 36px rgba(0,0,0,.08); }
.av-win__bar {
    display: flex; align-items: center; gap: 12px; padding: 13px 18px;
    background: var(--bg-secondary); border-bottom: 1px solid var(--border-subtle);
}
.av-win__title { font-family: var(--font-heading); font-size: 14px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 9px; }
.av-win__title i { color: var(--accent); font-size: 17px; }
.av-win__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.av-note { display: flex; align-items: center; gap: 11px; font-size: 13.5px; line-height: 1.5; border-radius: 12px; padding: 12px 14px; }
.av-note--warn { background: var(--warning-bg); color: var(--warning-text); }
.av-note--danger { background: var(--danger-bg); color: var(--danger); }
.av-note i { font-size: 18px; flex: 0 0 auto; }

.av-mini-title { font-family: var(--font-heading); font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

/* график пробега */
.av-chart { position: relative; background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 16px; }
.av-chart svg { width: 100%; height: 110px; display: block; }
.av-chart__line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.av-chart__badge {
    position: absolute; top: 12px; right: 12px; font-size: 11.5px; font-weight: 700;
    background: var(--danger-bg); color: var(--danger); border-radius: var(--radius-pill); padding: 5px 11px;
}
.av-chart__axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); margin-top: 8px; }

/* карта повреждений */
.av-damage { position: relative; }
.av-damage img { width: 100%; height: auto; display: block; border-radius: 12px; }
.av-damage__dot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px rgba(227,57,44,.18); }
.av-damage__dot--amber { background: var(--warning); box-shadow: 0 0 0 4px rgba(255,202,80,.22); }

/* хронология */
.av-tl { display: flex; flex-direction: column; }
.av-tl__row { display: grid; grid-template-columns: 74px 18px minmax(0,1fr); gap: 12px; align-items: start; padding: 11px 0; }
.av-tl__row + .av-tl__row { border-top: 1px solid var(--border-subtle); }
.av-tl__date { font-family: var(--font-heading); font-size: 12.5px; font-weight: 700; color: var(--text-muted); padding-top: 2px; }
.av-tl__dot { width: 11px; height: 11px; margin-top: 5px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-bg); }
.av-tl__dot--grey { background: var(--text-muted); box-shadow: 0 0 0 4px var(--bg-secondary); }
.av-tl__dot--warn { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-bg); }
.av-tl__event { font-size: 14.5px; font-weight: 600; color: var(--text-primary); }
.av-tl__sub { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

/* финансы / юридика */
.av-rows { display: flex; flex-direction: column; gap: 10px; }
.av-row {
    display: flex; align-items: center; gap: 13px;
    background: var(--bg-secondary); border: 1px solid var(--border-subtle);
    border-radius: 13px; padding: 13px 15px;
}
.av-row__icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; background: var(--bg-card); color: var(--accent); border: 1px solid var(--border-subtle); }
.av-row__body { flex: 1; min-width: 0; }
.av-row__title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.av-row__meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.av-status { font-size: 11.5px; font-weight: 700; border-radius: var(--radius-pill); padding: 5px 12px; white-space: nowrap; }
.av-status--ok { background: var(--success-bg); color: #0a9c56; }
.av-status--info { background: var(--info-bg); color: #2f9fc4; }
.av-status--bad { background: var(--danger-bg); color: var(--danger); }

.av-showcase__foot { text-align: center; margin-top: 48px; }
.av-showcase__foot p { font-size: 15px; color: var(--text-secondary); margin: 0 0 18px; max-width: 620px; margin-inline: auto; }
.av-btn-outline {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-heading); font-size: 14.5px; font-weight: 700;
    color: var(--text-primary); background: var(--bg-card);
    border: 1.5px solid var(--border-subtle); border-radius: var(--radius-pill);
    padding: 13px 28px; text-decoration: none; transition: var(--transition);
}
.av-btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- 7. Шаги ---------- */
.av-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; position: relative; }
.av-step { position: relative; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 26px 22px; transition: var(--transition); }
.av-step:hover { transform: translateY(-5px); border-color: var(--border-accent); box-shadow: 0 14px 36px rgba(0,0,0,.08); }
.av-step__num {
    position: absolute; top: 18px; right: 20px;
    font-family: var(--font-heading); font-size: 40px; font-weight: 700;
    color: var(--bg-secondary); line-height: 1; user-select: none;
}
[data-theme=dark] .av-step__num { color: rgba(255,255,255,.05); }
.av-step__tag {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-soft); border-radius: var(--radius-pill);
    padding: 5px 11px; margin: 18px 0 12px;
}
.av-step__tag--free { color: #0a9c56; background: var(--success-bg); }
.av-step__title { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--text-primary); margin: 0 0 9px; line-height: 1.32; }
.av-step__text { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 0 0 14px; }
.av-step__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.av-step__list li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.av-step__list i { color: var(--success); font-size: 15px; }
.av-steps__foot { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin-top: 44px; }
.av-link-plain { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); text-decoration: none; }
.av-link-plain:hover { color: var(--accent); }

/* ---------- 8. Доверие ---------- */
.av-trust { position: relative; overflow: hidden; background: var(--bg-secondary); }
.av-panel {
    display: grid; grid-template-columns: minmax(0, 260px) 1px minmax(0, 1fr);
    gap: 34px; align-items: center;
    background: var(--bg-card); border: 1px solid var(--border-accent);
    border-radius: 22px; padding: 36px; box-shadow: var(--shadow-md);
    background-image: linear-gradient(120deg, var(--accent-soft) 0%, transparent 55%);
}
.av-panel__score { text-align: center; }
.av-panel__score strong { display: block; font-family: var(--font-heading); font-size: 56px; font-weight: 700; color: var(--accent); line-height: 1; }
.av-panel__score span { display: block; font-size: 13px; color: var(--text-secondary); margin-top: 10px; }
.av-panel__sep { width: 1px; align-self: stretch; background: var(--border-subtle); }
.av-panel__quote { font-size: 16px; line-height: 1.68; color: var(--text-secondary); margin: 0; font-style: italic; }

.av-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; margin-top: 34px; }
.av-stat { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 24px 20px; text-align: center; transition: var(--transition); }
.av-stat:hover { transform: translateY(-4px); border-color: var(--border-accent); }
.av-stat__num { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1; margin: 16px 0 9px; }
.av-stat__label { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.av-stat__sub { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; }

.av-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }
.av-badge {
    display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary);
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill); padding: 9px 16px;
}
.av-badge i { color: var(--accent); font-size: 15px; }

/* ---------- 9. Блог ---------- */
.av-post { display: flex; flex-direction: column; text-decoration: none; }
.av-post .av-card__title { transition: var(--transition); }
.av-post:hover .av-card__title { color: var(--accent); }
.av-post__more { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--accent); margin-top: 16px; }

/* ---------- 10. FAQ ---------- */
.av-faq__layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.av-faq__side { position: sticky; top: 96px; }
.av-faq__cards { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 26px; }
.av-faq__card { display: flex; align-items: center; gap: 14px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 15px 17px; }
.av-faq__card i { font-size: 20px; color: var(--accent); }
.av-faq__card strong { display: block; font-size: 14px; color: var(--text-primary); }
.av-faq__card span { font-size: 12.5px; color: var(--text-muted); }
.av-faq__list { display: flex; flex-direction: column; gap: 12px; }
.av-faq__list .faq-item {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition);
}
.av-faq__list .faq-item:hover { border-color: var(--border-accent); }
.av-faq__list .faq-item.open { border-color: var(--border-accent); box-shadow: var(--shadow-sm); }
.av-faq__list .faq-question {
    width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
    background: transparent; border: none; cursor: pointer; padding: 20px 22px;
    font-family: var(--font-body); font-size: 15.5px; font-weight: 600; color: var(--text-primary);
}
.av-faq__list .faq-chevron {
    margin-left: auto; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-secondary); color: var(--text-muted); transition: var(--transition);
}
.av-faq__list .faq-item.open .faq-chevron { background: var(--accent); color: #fff; transform: rotate(180deg); }
.av-faq__list .faq-answer { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.44,0,.56,1); }
.av-faq__list .faq-item.open .faq-answer { max-height: 620px; }
.av-faq__list .faq-answer-text {
    padding: 0 22px 22px; margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--text-secondary);
}

/* ---------- 11. Финальный CTA ---------- */
.av-cta { position: relative; padding: 84px 0; background: linear-gradient(135deg, #14161d 0%, #1d2029 100%); overflow: hidden; }
.av-cta:before {
    content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    top: -340px; right: -180px; pointer-events: none;
}
.av-cta__inner { position: relative; text-align: center; max-width: 760px; margin: 0 auto; }
.av-cta .av-label { color: #ff9b7d; background: rgba(255,114,80,.12); border-color: rgba(255,114,80,.3); }
.av-cta__title { font-family: var(--font-heading); font-size: clamp(26px,3.4vw,40px); font-weight: 700; color: #fff; margin: 20px 0 14px; line-height: 1.18; }
.av-cta__sub { font-size: 16.5px; line-height: 1.6; color: rgba(255,255,255,.72); margin: 0 0 32px; }
.av-cta__form { display: flex; gap: 10px; max-width: 640px; margin: 0 auto; }
.av-cta__input {
    flex: 1; min-width: 0; height: 58px; padding: 0 20px; font-size: 16px;
    color: #fff; background: rgba(255,255,255,.07);
    border: 1.5px solid rgba(255,255,255,.16); border-radius: 14px; outline: none; transition: var(--transition);
}
.av-cta__input::placeholder { color: rgba(255,255,255,.5); }
.av-cta__input:focus { border-color: var(--accent); background: rgba(255,255,255,.1); }
.av-cta__btn {
    display: inline-flex; align-items: center; gap: 9px; height: 58px; padding: 0 30px; border: none; cursor: pointer;
    font-family: var(--font-heading); font-size: 15.5px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 14px; white-space: nowrap; transition: var(--transition); box-shadow: 0 8px 22px var(--accent-glow);
}
.av-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px var(--accent-glow); }

/* ---------- 12. Адаптив ---------- */
@media (max-width: 1180px) {
    .av-hero__inner { grid-template-columns: 1fr; gap: 48px; }
    .av-dash { transform: none; max-width: 620px; }
    .av-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .av-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .av-faq__layout { grid-template-columns: 1fr; gap: 40px; }
    .av-faq__side { position: static; }
}
@media (max-width: 900px) {
    .av-section { padding: 72px 0; }
    .av-statbar { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .av-statbar__item:nth-child(2) { border-right: none; }
    .av-statbar__item:nth-child(1), .av-statbar__item:nth-child(2) { border-bottom: 1px solid var(--border-subtle); }
    .av-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .av-panel { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
    .av-panel__sep { width: 100%; height: 1px; }
    .av-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .av-hero { padding: 48px 0 60px; }
    .av-grid-3, .av-steps { grid-template-columns: 1fr; }
    .av-search { padding: 20px; border-radius: 18px; }
    .av-search__row { flex-direction: column; }
    .av-search__btn { width: 100%; }
    .av-search__tabs { flex-wrap: nowrap; overflow-x: auto; }
    .av-search__tabs .search-tab { flex: 0 0 auto; }
    .av-metrics { flex-direction: column; }
    .av-metric { width: 100%; }
    .av-cta__form { flex-direction: column; }
    .av-cta__btn { width: 100%; justify-content: center; }
    .av-kpis { grid-template-columns: 1fr; }
    .av-dash__body { padding: 16px; }
    .av-step__num { font-size: 32px; }
}

/* ---------- 13. Исправления после проверки на реальных экранах ---------- */
/* фиксированная шапка сайта ~74px — герою нужен запас сверху */
.av-hero { padding-top: 118px; }

/* запрет горизонтального переполнения: grid-элементы не должны раздувать колонки */
.av-hero__inner > *,
.av-grid-2 > *, .av-grid-3 > *, .av-steps > *,
.av-stats > *, .av-statbar > *, .av-faq__layout > *, .av-panel > * { min-width: 0; }
.av-search, .av-dash, .av-win, .av-card, .av-step { max-width: 100%; }

/* метка: ровные отступы и запрет переноса */
.av-label { white-space: nowrap; max-width: 100%; line-height: 1.2; padding: 8px 16px; }

/* длинный адрес в мокапе не должен растягивать карточку */
.av-dash__addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-chip, .av-badge { max-width: 100%; }
.av-tl__row { grid-template-columns: 62px 18px minmax(0, 1fr); }

@media (max-width: 1180px) {
    .av-hero__inner { grid-template-columns: minmax(0, 1fr); }
    .av-dash { max-width: 620px; width: 100%; }
}
@media (max-width: 700px) {
    .av-hero { padding-top: 104px; }
    .av-stats, .av-statbar { grid-template-columns: minmax(0, 1fr); }
    .av-statbar__item { border-right: none; border-bottom: 1px solid var(--border-subtle); }
    .av-statbar__item:last-child { border-bottom: none; }
    .av-label { font-size: 10px; letter-spacing: .1em; padding: 7px 13px; }
    .av-dash { transform: none; }
    .av-dash__head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .av-gauge { align-self: center; }
    .av-search__tabs .search-tab { font-size: 12px; padding: 9px 6px; }
}
/* ---------- 14. Блок поиска — как в прежнем дизайне (понятнее и компактнее) ---------- */
.av-search__title { font-size: 15px; text-transform: none; letter-spacing: 0; }
.av-search__badge { text-transform: uppercase; }
.av-search__top { flex-wrap: wrap; row-gap: 8px; }
.av-search .av-search__tabs { flex-wrap: nowrap; gap: 4px; }
.av-search .av-search__tabs .search-tab {
    flex: 1 1 auto; white-space: nowrap; word-break: keep-all;
    font-size: 12.5px; padding: 10px 6px;
}
@media (max-width: 560px) {
    .av-search__title { font-size: 14.5px; }
    .av-search .av-search__tabs .search-tab { font-size: 11.5px; padding: 9px 4px; letter-spacing: 0; }
}
/* ---------- 15. Блок поиска: поле во всю ширину, вкладки как в прежнем дизайне ---------- */
.av-search__row { align-items: stretch; }
.av-search__input { width: 100%; flex: 1 1 auto; height: 58px; }

.av-search .av-search__tabs {
    background: transparent; padding: 0; gap: 8px; border-radius: 0;
    border-bottom: 1px solid var(--border-subtle); margin-bottom: 20px;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.av-search .av-search__tabs::-webkit-scrollbar { display: none; }
.av-search .av-search__tabs .search-tab {
    flex: 0 0 auto; white-space: nowrap; font-size: 12.5px; padding: 11px 15px;
    border: 1.5px solid transparent; border-bottom: none;
    border-radius: 10px 10px 0 0; margin-bottom: -1px; background: transparent;
}
.av-search .av-search__tabs .search-tab.active {
    background: var(--bg-card); border-color: var(--border-accent);
    color: var(--accent); box-shadow: none;
}
@media (max-width: 560px) {
    .av-search .av-search__tabs .search-tab { font-size: 11.5px; padding: 10px 10px; }
    .av-search__input { height: 54px; font-size: 15px; }
}
/* ---------- 16. Правки по замечаниям владельца ---------- */
/* Бейдж на графике должен читаться: белый текст на сплошном красном */
.av-chart__badge {
    background: var(--danger); color: #fff; border: none;
    font-weight: 700; letter-spacing: .02em; box-shadow: 0 4px 12px rgba(227,57,44,.35);
}
[data-theme=dark] .av-chart__badge { background: #e3392c; color: #fff; }
/* ---------- 17. Вкладки поиска на телефонах: три равные колонки ---------- */
@media (max-width: 560px) {
    .av-search .av-search__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; overflow: visible; padding: 0 0 0; }
    .av-search .av-search__tabs .search-tab {
        font-size: 10.5px; padding: 11px 3px; letter-spacing: 0; text-align: center;
        white-space: normal; word-break: keep-all; line-height: 1.25; border-radius: 10px 10px 0 0;
    }
}
@media (max-width: 380px) {
    .av-search .av-search__tabs .search-tab { font-size: 10px; padding: 10px 2px; }
}
/* ---------- 18. «Смотреть пример» — кнопка, а не текст ---------- */
.av-search__hints { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.av-search__hints a.av-search__hint {
    display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
    padding: 10px 18px !important; margin-left: auto;
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
    border: 1.5px solid var(--border-accent) !important;
    border-radius: 11px !important;
    font-family: var(--font-heading) !important; font-size: 13.5px !important; font-weight: 700 !important;
    text-decoration: none !important; white-space: nowrap !important; transition: var(--transition) !important;
}
.av-search__hints a.av-search__hint i { font-size: 16px !important; }
.av-search__hints a.av-search__hint:hover {
    background: var(--accent) !important; color: #fff !important;
    border-color: var(--accent) !important; transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px var(--accent-glow) !important;
}
[data-theme=dark] .av-search__hints a.av-search__hint { color: #ff9b7d !important; background: rgba(255,114,80,.12) !important; }
@media (max-width: 700px) {
    .av-search__hints { gap: 10px; }
    .av-search__hints a.av-search__hint { width: 100% !important; margin-left: 0 !important; }
}