/* Реклама — простой обзор (этап 4) по макету «Реклама — обзор простой_v2». Только веб-версия на компьютере.
   Всё внутри .av, чтобы не задеть общие .card / .btn / .row. Цвета — только токены style.css. */
.av { --av-hero: clamp(112px, 11.5vw, 168px); font-variant-numeric: tabular-nums; }
.av .av-cap { font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.35; }
.av .av-bad { color: var(--rose); }
.av .av-good { color: var(--green); }
.av .av-card, .ads-scr .av-card { background: var(--card); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow, 0 1px 2px rgba(17, 19, 24, 0.04)); min-width: 0; }

/* шапка экрана */
.av-ph { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 0 20px; }
.av-ph-l { display: flex; align-items: center; gap: 24px; min-width: 0; flex-wrap: wrap; }
.av-title { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.av-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.av-seg button { height: 36px; padding: 0 16px; border-radius: 18px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.av-seg button:hover { color: var(--ink); }
.av-seg button.on { background: var(--chip); color: var(--ink); font-weight: 600; }
.av-ph-r { display: flex; align-items: center; gap: 16px; }
.av-upd { font-size: 13px; color: var(--muted); white-space: nowrap; }
.av-more { position: relative; }
.av-more > summary { list-style: none; width: 46px; height: 46px; border-radius: 23px; background: var(--chip); display: flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
.av-more > summary::-webkit-details-marker { display: none; }
.av-more[open] > summary { background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); }
.av-menu { position: absolute; top: 54px; right: 0; width: 272px; z-index: 20; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px rgba(17, 19, 24, 0.18); padding: 6px; }
.av-menu button, .av-menu a { display: flex; width: 100%; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 0; background: none; font: inherit; font-weight: 500; color: var(--ink); text-align: left; white-space: nowrap; cursor: pointer; text-decoration: none; }
.av-menu button:hover, .av-menu a:hover { background: var(--chip); }
.av-menu .ext { color: var(--ink-2); }

/* 1. главная цифра */
.av-hero { padding: 40px 40px 32px; }
.av-hero-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 48px; flex-wrap: wrap; margin-top: 8px; }
.av-big { font-size: var(--av-hero); line-height: 0.95; letter-spacing: -0.05em; font-weight: 600; white-space: nowrap; color: var(--ink); }
.av-verdict { padding-bottom: 12px; min-width: 0; }
.av-verdict .v1 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.av-verdict .v2 { margin-top: 4px; color: var(--ink-2); }
.av-goal { position: relative; margin-top: 40px; }
.av-goal-lab { position: relative; height: 22px; }
.av-goal-lab span { position: absolute; left: 80%; transform: translateX(-100%); padding-right: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.av-goal-bar { position: relative; height: 8px; border-radius: 4px; background: var(--chip); }
.av-goal-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--ink); }
.av-goal-bar b { position: absolute; left: 80%; top: -9px; width: 2px; height: 26px; margin-left: -1px; background: var(--ink); }
.av-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--axis); }
.av-fact .av-cap, .av-fact .n, .av-fact .s { display: block; }
.av-fact .n { margin-top: 4px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.av-fact .s { margin-top: 2px; font-size: 13px; color: var(--muted); }
.av-fact.loss { padding-left: 16px; border-left: 2px solid var(--rose); }
.av-fact.loss .n { color: var(--rose); }

/* заголовки блоков */
.av-sec { margin-top: 48px; }
.av-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 16px; }
.av-sh h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.av-sh h2 span { color: var(--muted); font-weight: 500; }

/* 2. ждут решения */
.av-dlist { display: flex; flex-direction: column; gap: 8px; }
.av-dcard { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; align-items: center; padding: 24px 24px 24px 32px; }
.av-dmeta { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.av-dmeta .sep { color: var(--muted); font-weight: 500; }
.av-dmeta .acc { font-weight: 500; color: var(--muted); }
.av-sd { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--c, var(--muted)); flex: none; }
.av-sd.ring { background: transparent; box-shadow: inset 0 0 0 2px var(--muted); }
.av-dtitle { margin: 8px 0 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.av-dtext { margin: 8px 0 0; max-width: 64ch; color: var(--ink-2); }
.av-dtext.fx { color: var(--ink); font-weight: 600; }
.av-dact { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.av-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 20px; border-radius: 23px; background: var(--cta); color: var(--cta-ink); font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; border: 0; cursor: pointer; transition: transform 0.12s, filter 0.12s; }
.av-btn:hover { filter: brightness(1.08); }
.av-btn:active { transform: scale(0.97); }
.av-btn:disabled { opacity: 0.5; cursor: default; }
.av-tl { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 8px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--link); white-space: nowrap; border-radius: 18px; cursor: pointer; }
.av-tl:hover { text-decoration: underline; }
.av-tl.quiet { min-height: 28px; font-size: 13px; font-weight: 500; color: var(--muted); }
.av-why { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.av-why .av-cap { width: 100%; }
.av-chip { height: 36px; padding: 0 16px; border-radius: 18px; border: 0; background: var(--chip); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.av-chip:hover { filter: brightness(0.97); }

/* 3. что сделала CRM */
.av-log { overflow: hidden; }
.av-log > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 24px; padding: 20px 24px 20px 32px; }
.av-log > summary::-webkit-details-marker { display: none; }
.av-log .lt { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.av-log .lt small { margin-left: 12px; font-size: 15px; font-weight: 400; letter-spacing: -0.01em; color: var(--ink-2); }
.av-log .cnt { font-size: 32px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.av-log .chev { width: 20px; height: 20px; color: var(--muted); transition: transform 0.15s; }
.av-log[open] .chev { transform: rotate(180deg); }
.av-jrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 16px 24px 16px 32px; border-top: 1px solid var(--line); }
.av-jrow .jt { font-weight: 600; }
.av-jrow .jm { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.av-jrow .jr { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-2); }

/* 4. кабинеты */
.av-cab { overflow: hidden; }
.av-row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 1.5fr) 20px; column-gap: 24px; align-items: center; }
.av-thead { padding: 16px 24px 8px 32px; font-size: 13px; font-weight: 500; color: var(--muted); }
.av-thead span:nth-child(n + 2):nth-child(-n + 4) { text-align: right; }
button.av-row { width: 100%; padding: 16px 24px 16px 32px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.av-row:hover { background: color-mix(in srgb, var(--chip) 60%, transparent); }
.av-row .name { min-width: 0; }
.av-row .name b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-row .st { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 13px; color: var(--ink-2); min-width: 0; }
.av-row .st span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-row .num { text-align: right; font-weight: 600; white-space: nowrap; }
.av-row .cpl { text-align: right; white-space: nowrap; }
.av-row .cpl .n { display: block; font-weight: 600; }
.av-row .cpl .d { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; }
.av-row .go { width: 20px; height: 20px; color: var(--muted); }
.av-note { margin: 0; padding: 16px 32px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Кабинеты и настройки, кабинет, «Отправить креатив»: на компьютере — колонка, кнопки по тексту, не на всю ширину */
.ads-scr .as-h { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 12px; }
.ads-scr .as-list { overflow: hidden; margin-bottom: 16px; }
.ads-scr .as-row { display: flex; align-items: center; gap: 12px; padding: 4px 16px 4px 0; border-top: 1px solid var(--line); }
.ads-scr .as-row:first-child { border-top: 0; }
.ads-scr .as-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 12px 0 12px 20px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ads-scr .as-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ads-scr .as-main span { font-size: 13px; color: var(--muted); }
.ads-scr .as-empty { padding: 16px 20px; }
.ads-scr .as-more > summary { cursor: pointer; padding: 8px 0 12px; font-weight: 600; color: var(--ink-2); }
.ads-scr .as-sec { padding: 20px 24px; margin-bottom: 12px; }
.ads-scr .as-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.ads-scr .as-foot { display: flex; align-items: center; gap: 12px; padding: 4px 0 24px; }
@media (max-width: 1023px) {
  .ads-scr .as-grid { grid-template-columns: minmax(0, 1fr); }
  .ads-scr .as-foot .av-btn { flex: 1; }
}
@media (min-width: 1024px) {
  .ads-scr { max-width: 840px; }
  .ads-scr .btn.block { display: inline-flex; width: auto; min-width: 0; padding-left: 22px; padding-right: 22px; }
}

/* Новая кампания голосом */
.avc .avc-talk { display: flex; gap: 20px; align-items: flex-start; }
.avc .avc-talk-r { flex: 1; min-width: 0; }
.avc .avc-talk textarea { width: 100%; min-height: 96px; resize: vertical; margin-bottom: 6px; }
.avc .avc-mic { flex: none; width: 72px; height: 72px; border-radius: 36px; border: 0; background: var(--cta); color: var(--cta-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.12s; }
.avc .avc-mic svg { width: 30px; height: 30px; }
.avc .avc-mic:active { transform: scale(0.95); }
.avc .avc-mic.on { background: var(--rose); animation: avc-pulse 1.4s ease-in-out infinite; }
@keyframes avc-pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--rose) 18%, transparent); } }
.avc .avc-total { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 16px; }
.avc .avc-q { padding: 12px 16px; margin-bottom: 16px; border-radius: 16px; background: color-mix(in srgb, var(--rose) 10%, transparent); }
.avc .avc-q ul { margin: 6px 0 6px 18px; padding: 0; }
.avc .avc-rows { display: flex; flex-direction: column; }
.avc .avc-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.avc .avc-row > span:first-child { font-size: 13px; color: var(--muted); font-weight: 500; }
.avc .avc-row input[type="text"], .avc .avc-row input[type="url"], .avc .avc-row textarea, .avc .avc-row select { width: 100%; }
.avc .avc-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.avc .avc-inline input[type="number"] { width: 96px; }
.avc .avc-inline select { width: auto; }
.avc .avc-places { display: flex; flex-wrap: wrap; gap: 8px; }
.avc .avc-pl { display: inline-flex; align-items: center; gap: 6px; height: 32px; cursor: default; }
.avc .avc-row .avc-city { width: 220px; height: 32px; padding: 0 12px; font-size: 13px; }
/* телефон: одна колонка, большая кнопка */
.av-btn.avc-phone-new { width: 100%; margin-top: 12px; height: 52px; border-radius: 26px; font-size: 16px; }
@media (max-width: 1023px) {
  .avc .avc-talk { gap: 12px; }
  .avc .avc-mic { width: 56px; height: 56px; border-radius: 28px; }
  .avc .avc-mic svg { width: 24px; height: 24px; }
  .avc .avc-total { font-size: 22px; }
  .avc .avc-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .avc .avc-row .avc-city { width: 100%; }
  .avc .avc-inline input[type="number"] { width: 76px; }
  .avc .as-sec { padding: 16px; }
  .avc .as-foot { flex-wrap: wrap; }
  .avc .as-foot .av-btn { width: 100%; height: 52px; }
}
.avc .avc-pl button { border: 0; background: none; font: inherit; font-size: 16px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }
.av-btn svg { width: 18px; height: 18px; margin-right: 8px; }
