/* ==========================================================================
   Страница Google Ads — /services/google-ads/, v2 (решение консилиума, 29.09.2026, вечер)
   Разметка: service_pages/google_ads.py. Все классы с префиксом gad-.
   Спецификация: _council_google_v2.md.
   Как выглядит работа в Google для магазина: выдача 1:1 в hero (Slow Pour),
   стена кампаний на --deep — единственная тёмная масса (Tide Roll), отчёт о
   запросах на персиковой полосе (Slow Pour), две двери, вопросы.
   Интерфейс Google набран Arial в цветах Google, и живут они только внутри
   области .gad-g. Иерархия углов: медийные баннеры — прямые, карточки и
   панели Google — 8–16, контейнеры сайта — 18 и рамка 1.5px ink.
   ========================================================================== */

/* --- область Google: цвета и шрифт интерфейса --------------------------- */
.gad-g {
  --g-link: #1a0dab; --g-blue: #1a73e8; --g-text: #202124; --g-muted: #5f6368;
  --g-url: #4d5156; --g-line: #dadce0; --g-surface: #f8f9fa; --g-green: #34a853;
  font-family: Arial, Helvetica, sans-serif; color: var(--g-text);
  margin: 0;
  line-height: 1.43;
  -webkit-font-smoothing: auto;
}
.gad-g p { margin: 0; text-wrap: wrap; }
.gad-g ul { margin: 0; padding: 0; list-style: none; }
.gad-g b { font-weight: 700; }

/* поле поиска: десктоп в hero, мобильное в карточке Search */
.gad-g .gad-q {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 20px 0 16px;
  background: #fff;
  border: 1px solid #dfe1e5;
  border-radius: 23px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  font-size: 16px;
  line-height: 20px;
  color: var(--g-text);
  white-space: nowrap;
}
.gad-g .gad-q > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gad-g .gad-q-ico { flex: none; width: 20px; height: 20px; stroke: #9aa0a6; stroke-width: 2; }
.gad-g .gad-g-label { margin-top: 16px; font-size: 16px; font-weight: 700; line-height: 24px; color: var(--g-text); }

/* объявление Search */
.gad-g .gad-ad-src { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.gad-g .gad-ad-src img { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--g-line); }
.gad-g .gad-ad-name { font-size: 14px; line-height: 20px; color: var(--g-text); }
.gad-g .gad-ad-path { font-size: 12px; line-height: 18px; color: var(--g-url); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gad-g .gad-ad-h { margin-top: 6px; font-size: 20px; line-height: 26px; color: var(--g-link); }
.gad-g .gad-ad-body { margin-top: 4px; display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 16px; align-items: start; }
.gad-g .gad-ad-body p { font-size: 14px; line-height: 22px; color: var(--g-url); }
.gad-g .gad-ad-body img { width: 104px; height: 104px; border-radius: 8px; }
.gad-g .gad-ad-links { margin-top: 6px; display: flex; flex-wrap: wrap; column-gap: 8px; font-size: 14px; line-height: 22px; color: var(--g-link); }
.gad-g .gad-ad-links .gad-sep { color: var(--g-muted); }

/* --- 1. первый экран: лист выдачи на нижней линии ---------------------- */
.gad-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding-bottom: 0;
  border-bottom: 1.5px solid var(--ink);
  background-image:
    radial-gradient(34% 46% at 70% 30%, var(--atmo-flame), transparent 70%),
    radial-gradient(30% 40% at 96% 4%, rgba(127, 211, 236, 0.16), transparent 70%);
}
.gad-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, var(--atmo-dot) 1.1px, transparent 1.7px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(44% 80% at 72% 40%, #000 15%, transparent 75%);
  mask-image: radial-gradient(44% 80% at 72% 40%, #000 15%, transparent 75%);
}
.gad-hero-grid {
  margin-top: clamp(20px, 2vw, 28px);
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 12fr);
  gap: 40px 4vw;
  align-items: end;
}
/* верх текста — на уровне верха листа: центр поля поиска приходится на первую строку H1 */
.gad-hero-copy { align-self: start; padding: 12px 0 56px; }
.gad-hero h1 { max-width: 13ch; font-size: clamp(2.4rem, 4.2vw, 3.9rem); }
.gad-lead { margin-top: 24px; max-width: 46ch; font-size: 1.15rem; color: var(--ink-70); }
.gad-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }

.gad-serp {
  min-width: 0;
  padding: 20px 16px 48px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 40px 80px -52px rgba(15, 26, 32, 0.5);
}
.gad-g .gad-tabs {
  margin-top: 10px;
  display: flex;
  gap: 22px;
  border-bottom: 1px solid #ebebeb;
  font-size: 14px;
  line-height: 20px;
  color: var(--g-muted);
  white-space: nowrap;
}
.gad-g .gad-tabs li { flex: none; padding: 9px 0 8px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.gad-g .gad-tabs .is-on { color: var(--g-blue); border-bottom-color: var(--g-blue); }
.gad-g .gad-pla { margin-top: 10px; display: flex; gap: 12px; overflow: hidden; }
.gad-g .gad-pla-card { flex: 0 0 184px; display: flex; flex-direction: column; min-width: 0; }
.gad-g .gad-pla-card img { width: 184px; height: 184px; border-radius: 12px; background: #fff; border: 1px solid var(--g-line); }
.gad-g .gad-pla-t {
  margin-top: 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 14px;
  line-height: 20px;
  color: var(--g-text);
}
.gad-g .gad-pla-p { margin-top: 4px; font-size: 15px; line-height: 20px; font-weight: 700; }
.gad-g .gad-pla-s { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--g-muted); }
.gad-g .gad-g-label--ad { margin-top: 22px; }
/* сайтлинки стоят под описанием, слева от картинки-ассета: картинка не раздвигает строки */
.gad-serp .gad-ad {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  grid-template-rows: auto auto auto 1fr;
  grid-template-areas: "src src" "h h" "d img" "l img";
  column-gap: 16px;
}
.gad-serp .gad-ad-src { grid-area: src; }
.gad-serp .gad-ad-h { grid-area: h; }
.gad-serp .gad-ad-body { display: contents; }
.gad-serp .gad-ad-body p { grid-area: d; margin-top: 4px; }
.gad-serp .gad-ad-body img { grid-area: img; margin-top: 4px; }
.gad-serp .gad-ad-links { grid-area: l; align-self: start; }

/* --- 2. кампании: стена на --deep -------------------------------------- */
.gad-surfaces {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding-block: var(--section);
  color: #fff;
  background-color: var(--deep);
  background-image:
    radial-gradient(44% 38% at 100% 0%, rgba(127, 211, 236, 0.13), transparent 70%),
    radial-gradient(36% 30% at 0% 100%, rgba(232, 81, 31, 0.12), transparent 70%);
}
.gad-surfaces::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, var(--atmo-dot-light) 1.1px, transparent 1.7px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(50% 420px at 86% 160px, #000 12%, transparent 78%);
  mask-image: radial-gradient(50% 420px at 86% 160px, #000 12%, transparent 78%);
}
.gad-surfaces .section-head h2 { max-width: 17ch; color: #fff; }
.gad-surfaces .section-head .hl { color: var(--sky); }
.gad-surfaces .section-head p { color: rgba(255, 255, 255, 0.72); }

.gad-wall { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.gad-group, .gad-card { box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08); }

/* панель группы ассетов */
.gad-group { padding: 20px; background: #fff; border-radius: 16px; font-size: 13px; line-height: 18px; }
.gad-g .gad-group-h { font-size: 14px; font-weight: 700; line-height: 20px; }
.gad-g .gad-gsec { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--g-line); }
.gad-g .gad-gsec-h { font-size: 12px; font-weight: 700; line-height: 16px; color: var(--g-text); }
.gad-g .gad-gsec-h span { margin-left: 4px; font-weight: 400; color: var(--g-muted); }
.gad-g .gad-gimgs { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.gad-g .gad-gimg { position: relative; display: block; flex: none; }
.gad-g .gad-gimg img { border-radius: 8px; }
.gad-g .gad-gimg--wide { flex-basis: 100%; }
.gad-g .gad-gimg--wide img { width: 320px; height: 168px; }
.gad-g .gad-gimg:nth-child(2) img { width: 104px; height: 104px; }
.gad-g .gad-gimg:nth-child(3) img { width: 83px; height: 104px; }
.gad-g .gad-ratio {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 0 5px;
  border-radius: 4px;
  background: rgba(32, 33, 36, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
}
.gad-g .gad-glogos { margin-top: 6px; display: flex; align-items: center; gap: 10px; padding: 6px; background: var(--g-surface); border-radius: 8px; }
.gad-g .gad-glogos img:first-child { width: 48px; height: 48px; border-radius: 8px; }
.gad-g .gad-glogos img + img { width: 192px; height: 48px; border-radius: 4px; box-shadow: 0 0 0 1px var(--g-line); }
.gad-g .gad-fields { margin-top: 6px; display: grid; gap: 5px; }
/* счётчик идёт после текста и плывёт вправо: у длинного поля он садится на последнюю строку */
.gad-g .gad-field { min-height: 28px; padding: 4px 8px; border: 1px solid var(--g-line); border-radius: 4px; font-size: 13px; line-height: 18px; color: var(--g-text); }
.gad-g .gad-count { float: right; margin-left: 10px; font-size: 12px; line-height: 18px; color: var(--g-muted); }
.gad-g .gad-gsec--meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.gad-g .gad-gcell .gad-field { margin-top: 6px; }

/* пять мест показа */
.gad-places {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "search discover" "display gmail" "leader leader";
  gap: 32px 24px;
  align-items: start;
}
/* колонки мест кончаются вместе с панелью: свободная высота уходит в промежутки рядов */
@media (min-width: 1081px) {
  .gad-places { align-self: stretch; align-content: space-between; }
}
.gad-place { min-width: 0; }
.gad-place--search { grid-area: search; }
.gad-place--discover { grid-area: discover; }
.gad-place--display { grid-area: display; }
.gad-place--gmail { grid-area: gmail; }
.gad-place--leader { grid-area: leader; justify-self: start; max-width: 100%; }
.gad-place-h {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.72);
}
.gad-card { overflow: hidden; background: #fff; border-radius: 16px; }
.gad-banner { outline: 1px solid rgba(255, 255, 255, 0.12); }
.gad-place--display .gad-banner { width: 300px; height: 250px; max-width: none; }
.gad-place--leader picture { display: block; }
.gad-place--leader .gad-banner { width: 728px; height: 90px; max-width: none; }

/* Search: мобильная выдача 1:1 */
.gad-card--search { padding: 16px; }
.gad-g.gad-card--search .gad-q { height: 40px; gap: 12px; padding: 0 16px 0 14px; border-radius: 20px; font-size: 14px; }
.gad-g.gad-card--search .gad-q-ico { width: 18px; height: 18px; }
.gad-g.gad-card--search .gad-g-label { margin-top: 14px; font-size: 14px; line-height: 20px; }
.gad-g.gad-card--search .gad-ad { margin-top: 10px; }
.gad-g.gad-card--search .gad-ad-src { grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; }
.gad-g.gad-card--search .gad-ad-src img { width: 26px; height: 26px; border: 0; }
.gad-g.gad-card--search .gad-ad-h { font-size: 18px; line-height: 24px; }
.gad-g.gad-card--search .gad-ad-body { grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; margin-top: 6px; }
.gad-g.gad-card--search .gad-ad-body p { line-height: 20px; }
.gad-g.gad-card--search .gad-ad-body img { width: 92px; height: 92px; }

/* Discover */
.gad-card--discover > img { width: 100%; height: auto; }
.gad-g .gad-dc-body { padding: 14px; }
.gad-g .gad-dc-h {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 16px;
  line-height: 22px;
  color: var(--g-text);
}
.gad-g .gad-dc-meta { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--g-muted); }
.gad-g .gad-dc-meta img { flex: none; width: 18px; height: 18px; border-radius: 50%; }
.gad-g .gad-dc-label { font-weight: 700; color: var(--g-text); }
.gad-g .gad-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border: 1px solid var(--g-line);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--g-blue);
  white-space: nowrap;
}

/* Gmail: вкладка Promotions и одна строка письма */
.gad-g .gad-gm-tab { padding: 10px 16px 9px; border-bottom: 1px solid var(--g-line); font-size: 13px; font-weight: 500; line-height: 18px; color: var(--g-muted); }
.gad-g .gad-gm-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 12px; }
.gad-g .gad-gm-row > img { width: 32px; height: 32px; border-radius: 50%; }
.gad-g .gad-gm-text { min-width: 0; font-size: 14px; line-height: 20px; }
.gad-g .gad-gm-from { display: flex; align-items: center; gap: 8px; }
.gad-g .gad-gm-chip { padding: 0 5px; border-radius: 4px; background: var(--g-surface); box-shadow: inset 0 0 0 1px var(--g-line); font-size: 11px; font-weight: 700; line-height: 18px; color: var(--g-text); }
.gad-g .gad-gm-subj { color: var(--g-text); }
.gad-g .gad-gm-snip { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--g-muted); }

.gad-series { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* три вида кампаний под стеной */
.gad-kinds { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 4vw; }
.gad-kind { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.gad-kind h3 { font-size: 1.35rem; color: #fff; }
.gad-kind p { margin-top: 10px; max-width: 38ch; font-size: 1rem; color: rgba(255, 255, 255, 0.72); }

/* --- 3. отчёт о запросах ------------------------------------------------ */
.gad-terms { padding-block: var(--section); background: var(--flame-100); border-block: 1.5px solid var(--ink); }
.gad-terms-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 5vw; align-items: start; }
.gad-terms-copy h2 { max-width: 15ch; }
.gad-terms-copy > p { margin-top: 20px; max-width: 46ch; color: var(--ink-70); }
.gad-levers { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.gad-levers li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; line-height: 1.4; }
.gad-levers .ico, .gad-run-list .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--flame); stroke-width: 2.2; }

.gad-sheet {
  padding: 20px 22px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 30px 60px -40px rgba(15, 26, 32, 0.45);
}
.gad-g .gad-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; }
.gad-g .gad-sheet-t { font-size: 16px; font-weight: 700; line-height: 24px; }
.gad-g .gad-period { padding: 3px 8px; border: 1px solid var(--g-line); border-radius: 4px; font-size: 12px; line-height: 16px; color: var(--g-muted); white-space: nowrap; }
.gad-g .gad-t-cols,
.gad-g .gad-t-row { display: grid; grid-template-columns: minmax(0, 1fr) 8.5em 7.5em; align-items: center; column-gap: 16px; }
.gad-g .gad-t-cols { padding-bottom: 8px; border-bottom: 1px solid var(--g-line); font-size: 12px; line-height: 16px; color: var(--g-muted); }
.gad-g .gad-t-cols span { font-size: 12px; }
.gad-g .gad-t-row { min-height: 44px; padding-block: 6px; font-size: 14px; line-height: 20px; }
.gad-g .gad-t-row + .gad-t-row { border-top: 1px solid var(--g-line); }
.gad-g .gad-t-q { min-width: 0; color: var(--g-text); }
.gad-g .gad-t-row.is-excluded .gad-t-q { color: var(--g-muted); }
.gad-g .gad-t-m { font-size: 13px; color: var(--g-muted); white-space: nowrap; }
.gad-g .gad-chip { justify-self: start; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; line-height: 16px; white-space: nowrap; }
.gad-g .gad-chip.is-added { background: #e8f0fe; color: #1967d2; }
.gad-g .gad-chip.is-excluded { background: #fce8e6; color: #c5221f; }
.gad-g .gad-chip.is-none { background: #f1f3f4; color: var(--g-muted); }

.gad-conv {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  column-gap: 28px;
  padding: 14px 22px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
}
.gad-g .gad-conv-h { grid-column: 1 / -1; padding-bottom: 8px; font-size: 14px; font-weight: 700; line-height: 20px; }
.gad-g .gad-conv-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-columns: subgrid;
  align-items: center;
  padding-block: 9px;
  border-top: 1px solid var(--g-line);
  font-size: 14px;
  line-height: 20px;
}
.gad-g .gad-conv-kind { color: var(--g-muted); }
.gad-g .gad-active { display: inline-flex; align-items: center; gap: 8px; }
.gad-g .gad-active::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--g-green); }

/* --- 4. две двери ------------------------------------------------------ */
.gad-plan { padding-block: var(--section); }
.gad-plan .gad-doors {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: inset 0 5px 0 #4285f4, 0 22px 44px -34px rgba(15, 26, 32, 0.45);
  overflow: hidden;
}
.gad-door { padding: clamp(28px, 3.4vw, 44px); }
.gad-door h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.gad-audit { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; background: var(--paper); }
.gad-audit > p { max-width: 40ch; color: var(--ink-70); }
.gad-plan .gad-cert {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-radius: 0;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.gad-plan .gad-cert img { width: 56px; height: 56px; }
.gad-plan .gad-cert:hover span, .gad-plan .gad-cert:focus-visible span { color: var(--flame); }
.gad-run { display: grid; gap: 16px; align-content: start; border-left: 1px solid var(--line); }
.gad-run-name { display: flex; align-items: center; gap: 14px; }
.gad-run-name .logo-badge { flex: none; width: 40px; height: 40px; }
.gad-run-lead { color: var(--ink-70); max-width: 48ch; }
.gad-run .price-figure { justify-content: flex-start; padding-top: 14px; border-top: 1.5px solid var(--ink); }
.gad-run .price-figure strong { font-size: clamp(2.2rem, 3.4vw, 3rem); }
.gad-run-meta { font-size: 0.9rem; color: var(--ink-70); }
.gad-run-list { margin: 4px 0 6px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.gad-run-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; font-weight: 500; line-height: 1.4; }
.gad-run .btn { justify-self: start; }
.gad-plan .price-foot { margin-top: 20px; }
.gad-plan .price-foot-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.gad-plan .price-foot-note a:hover { color: var(--flame); }

/* --- 5. вопросы -------------------------------------------------------- */
.gad-faq { padding-block: var(--section); background: var(--card); border-top: 1.5px solid var(--ink); }
.gad-faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 6vw; align-items: start; }
.gad-faq h2 { max-width: 11ch; }
.gad-faq-all { margin-top: 22px; }
.gad-faq .faq-list a { color: inherit; text-underline-offset: 3px; }
@media (min-width: 1081px) {
  .gad-faq-head { position: sticky; top: 96px; }
}

/* --- адаптив: 641–1080 ------------------------------------------------- */
@media (max-width: 1080px) {
  .gad-hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .gad-hero-copy { padding: 0 0 40px; }
  .gad-serp { width: 100%; max-width: 652px; }

  /* панель горизонтальная: слева картинки и логотипы, справа тексты */
  .gad-wall { grid-template-columns: minmax(0, 1fr); }
  .gad-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .gad-g .gad-group-h { grid-column: 1 / -1; }
  .gad-g .gad-gimg--wide img { width: 100%; height: auto; }

  .gad-place--leader .gad-banner { max-width: 100%; height: auto; }

  .gad-plan .gad-doors { grid-template-columns: minmax(0, 1fr); }
  .gad-run { border-left: 0; border-top: 1px solid var(--line); }
  .gad-run-list { grid-template-columns: minmax(0, 1fr); }
  .gad-faq-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1080px) and (min-width: 641px) {
  .gad-g .gad-t-cols,
  .gad-g .gad-t-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .gad-g .gad-t-cols span:last-child { min-width: 5.6rem; }
  .gad-g .gad-chip { min-width: 0; }
  .gad-g .gad-t-m { font-size: 12px; }
}
@media (max-width: 860px) {
  .gad-terms-grid { grid-template-columns: minmax(0, 1fr); }
  .gad-terms-art { max-width: 640px; }
}

/* --- адаптив: ≤640 ----------------------------------------------------- */
@media (max-width: 640px) {
  .gad-actions .btn, .gad-door .btn { width: 100%; justify-content: center; }

  /* мобильная выдача Google 1:1 */
  .gad-serp { padding: 12px 12px 32px; }
  .gad-g .gad-q { height: 44px; gap: 12px; padding: 0 16px 0 14px; border-radius: 22px; }
  .gad-g .gad-tabs {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent);
    mask-image: linear-gradient(90deg, #000 78%, transparent);
  }
  .gad-g .gad-pla { gap: 8px; }
  .gad-g .gad-pla-card { flex-basis: 150px; }
  .gad-g .gad-pla-card img { width: 150px; height: 150px; }
  .gad-serp .gad-ad-h { font-size: 18px; line-height: 24px; }
  .gad-serp .gad-ad { grid-template-columns: minmax(0, 1fr) 80px; grid-template-rows: none; grid-template-areas: "src src" "h h" "d img" "l l"; column-gap: 12px; }
  .gad-serp .gad-ad-body img { width: 80px; height: 80px; }
  .gad-serp .gad-ad-links { margin-top: 8px; }

  /* панель: картинки, логотипы, заголовки и CTA */
  .gad-group { display: block; }
  .gad-g .gad-gsec--long, .gad-g .gad-gsec--desc, .gad-g .gad-gcell--biz { display: none; }
  .gad-g .gad-gsec--meta { display: block; }

  /* места показа — рельс, листается внутри себя */
  .gad-places {
    display: flex;
    gap: 12px;
    margin-inline: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .gad-places::-webkit-scrollbar { display: none; }
  .gad-place { flex: 0 0 300px; scroll-snap-align: start; }
  .gad-place--leader { flex-basis: 320px; }
  .gad-place--leader .gad-banner { width: 320px; height: 50px; max-width: none; }
  .gad-g .gad-gm-chip { font-size: 12px; }

  .gad-kinds { margin-top: 44px; grid-template-columns: minmax(0, 1fr); }

  /* отчёт: запрос сверху, под ним тип соответствия и чип справа; строки None нет */
  .gad-sheet { padding: 16px; }
  .gad-g .gad-t-cols { grid-template-columns: minmax(0, 1fr) auto; }
  .gad-g .gad-t-cols span:nth-child(2) { display: none; }
  .gad-g .gad-t-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "q q" "m c";
    row-gap: 2px;
    padding-block: 10px;
  }
  .gad-g .gad-t-q { grid-area: q; }
  .gad-g .gad-t-m { grid-area: m; font-size: 12px; line-height: 16px; }
  .gad-g .gad-t-row .gad-chip { grid-area: c; justify-self: end; }
  .gad-g .gad-t-row.is-none { display: none; }
  .gad-conv { padding: 12px 16px; column-gap: 16px; }
}
