/* Усиление городских страниц tpl-region.php (кейсы города, цены, вопросы), 06.11.2026 */

/* ===== Кейсы города: скриншот сайта вверху карточки, текст под ним ===== */
.svc-incl.rg-cases{background:#fff;border-top:0}
.svc-incl .rg-case{padding:0;overflow:hidden}
.rg-case-img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top;border-bottom:1px solid var(--line);background:var(--gray-bg)}
.rg-case-body{display:flex;flex-direction:column;flex:1;padding:24px 26px 26px}
.rg-case h3{margin-bottom:6px}
.rg-case-type{font-size:13px;font-weight:600;color:var(--blue);line-height:1.4;margin-bottom:12px}
.rg-case-text{font-size:14.5px;line-height:1.5;color:var(--gray)}
.rg-case .svc-card-go{text-transform:none;letter-spacing:0;font-size:14px}
.rg-case .svc-card-go svg.ph{width:14px;height:14px;transition:transform .25s}
.rg-case:hover .svc-card-go svg.ph{transform:translate(2px,-2px)}

/* логотипы других клиентов города: статичная сетка, без бегущей строки */
.rg-clients{margin-top:64px}
.rg-clients-h{font-family:var(--font-h);font-weight:800;font-size:19px;text-transform:uppercase;letter-spacing:-.01em;line-height:1.18;margin-bottom:20px}
.rg-clients-h em{font-style:normal;color:var(--blue)}
.rg-clients-list{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.rg-clients-list li{display:flex;align-items:center;justify-content:center;height:96px;padding:16px 22px;background:#fff;border:1px solid var(--line);border-radius:16px}
.rg-clients-list img{max-width:100%;height:auto;max-height:46px;object-fit:contain}

/* ===== Таблица «цены, сроки, примеры»: своя секция в конце страницы (с 06.11.2026 вечером) =====
   Селекторы с .geo-table.rg-table: pages/web-dev.css со стилями .geo-table подключается позже этого файла. */
.svc-incl.rg-terms{border-top:0}
.rg-terms .geo-table-wrap{background:#fff}
.geo-table.rg-table{min-width:640px}
.geo-table.rg-table td:first-child{font-weight:700}
.geo-table.rg-table td:nth-child(2){color:var(--ink);font-weight:600;white-space:nowrap}
.geo-table.rg-table a{color:var(--blue);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.geo-table.rg-table a:hover{text-decoration-thickness:2px}
.rg-terms-note{margin-top:16px;max-width:68ch;font-size:14.5px;line-height:1.55;color:var(--gray)}
.rg-terms-note a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}

@media(max-width:1024px){
  .rg-clients-list{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:680px){
  .rg-case-body{padding:20px 20px 22px}
  .rg-clients{margin-top:44px}
  .rg-clients-list{grid-template-columns:repeat(2,1fr);gap:10px}
  .rg-clients-list li{height:76px;padding:12px 16px}
  .rg-clients-list img{max-height:38px}
  /* таблица на телефоне: каждая строка становится карточкой «тип сайта + цена, срок, пример» */
  .geo-table.rg-table{min-width:0}
  .geo-table.rg-table thead{display:none}
  .geo-table.rg-table,.geo-table.rg-table tbody,.geo-table.rg-table tr,.geo-table.rg-table td{display:block;width:auto}
  .geo-table.rg-table tr{padding:16px 18px;border-bottom:1px solid var(--line)}
  .geo-table.rg-table tr:last-child{border-bottom:0}
  .geo-table.rg-table td,.geo-table.rg-table tr:last-child td{display:flex;justify-content:space-between;gap:16px;padding:3px 0;border:0}
  .geo-table.rg-table td:first-child{width:auto;padding-bottom:8px;font-size:16px}
  .geo-table.rg-table td[data-label]::before{content:attr(data-label);color:var(--gray);font-weight:400}
  .geo-table.rg-table td.rg-td-empty{display:none}
}
