/* agenty.html: dashboard "Цифровые сотрудники Трими". Extends site.css, used only by this page.
   Class names start with "ag-" so they never meet the shared rules of site.css. */
.ag-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
.ag-hero h1 { margin-bottom: 16px; }
.ag-hero .lead { max-width: 30em; }
.ag-hero-img { width: 100%; height: auto; border-radius: 22px; display: block; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }

.ag-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ag-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ag-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  color: var(--ink); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ag-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, .45); border-color: transparent; }
.ag-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #18181D; }
.ag-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.ag-card h3 { font-family: var(--font-d); font-weight: 700; font-size: 18px; line-height: 1.2; letter-spacing: -.02em; }
.ag-card p { color: var(--muted); font-size: 15px; line-height: 1.4; }
.ag-go { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 15px; color: var(--orange); }
.ag-go::after { content: " \2192"; transition: margin .2s; }
.ag-card:hover .ag-go::after { margin-left: 4px; }
.ag-card.soon img { filter: grayscale(.35) brightness(.95); }
.ag-card.soon .ag-go { color: var(--ink); }
.ag-st {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 100px; background: rgba(255, 91, 35, .14); color: #FF8A5E;
}
.ag-st.on { background: rgba(76, 197, 138, .14); color: #4CC58A; }
.ag-soon-head { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.ag-soon-head p { color: var(--muted); }

.ag-why { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ag-why li { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 3px solid var(--orange); }
.ag-why b { font-family: var(--font-d); font-size: 16px; letter-spacing: -.01em; }
.ag-why span { color: var(--muted); font-size: 15px; }
.ag-fine { margin-top: 22px; font-size: 13px; color: var(--muted); max-width: 60em; }

.ag-guides { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.ag-guides h2 { font-size: clamp(22px, 2.6vw, 28px); }
.ag-guides h2 span { font-family: var(--font-b); font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #FF8A5E; background: rgba(255, 91, 35, .14); padding: 4px 9px; border-radius: 100px; vertical-align: middle; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ag-chips a {
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
  padding: 9px 16px; border: 1.5px solid var(--line-strong); border-radius: 100px; background: var(--surface);
}
.ag-chips a:hover { border-color: var(--orange); color: var(--orange-dark); }

#agentForm .field select {
  width: 100%; font-family: var(--font-b); font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1.5px solid transparent; border-radius: 10px; padding: 13px 14px;
}
#agentForm .field select:focus { outline: none; border-color: var(--orange); }

@media (max-width: 1100px) {
  .ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ag-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ag-hero-in { grid-template-columns: 1fr; gap: 28px; }
  .ag-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ag-grid, .ag-grid-3 { grid-template-columns: 1fr; gap: 14px; }
  .ag-card { flex-direction: row; }
  .ag-card img { width: 36%; height: auto; aspect-ratio: auto; align-self: stretch; }
  .ag-body { padding: 14px 16px; gap: 6px; }
  .ag-card h3 { font-size: 16px; }
  .ag-card p { font-size: 14px; }
  .ag-why { grid-template-columns: 1fr 1fr; gap: 14px; }
  .ag-chips a { font-size: 14px; padding: 8px 13px; }
}


/* ---- Dark theme of the page (variant A, reference mts.ai, approved 13.10.2026) ----
   Graphite background, glossy 3D objects on near-black, orange as the only accent.
   Header and footer keep the shared site style. */
body[data-page="agenty"] main { background: #0F0F13; color: #F2F2F5; }
body[data-page="agenty"] main h2, body[data-page="agenty"] main h3 { color: #fff; }
.ag-hero.sec-dark { background: radial-gradient(120% 90% at 80% 40%, #1A1A22 0%, #0B0B0F 60%); padding: 56px 0 72px; }
.ag-hero-img { box-shadow: none; border-radius: 24px; -webkit-mask-image: radial-gradient(130% 120% at 60% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(130% 120% at 60% 50%, #000 60%, transparent 100%); }
.ag-card { background: #18181D; border-color: #26262E; color: #F2F2F5; }
.ag-card:hover { border-color: rgba(255, 91, 35, .55); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 91, 35, .25); }
.ag-card img { background: #0B0B0F; }
.ag-card p, .ag-soon-head p, .ag-why span, .ag-fine { color: #A3A3AE; }
.ag-card.soon { background: #141418; }
.ag-card.soon img { filter: grayscale(.25) brightness(.85); }
.ag-card.soon .ag-go { color: #E6E6EC; }
.ag-st { background: rgba(255, 91, 35, .14); color: #FF8A5E; }
.ag-st.on { background: rgba(76, 197, 138, .14); color: #6FDDA3; }
#udobno.sec-tint { background: #15151A; border-top: 1px solid #222229; border-bottom: 1px solid #222229; }
.ag-why b { color: #fff; }
.ag-guides h2 span { background: rgba(255, 91, 35, .14); color: #FF8A5E; }
.ag-chips a { background: #18181D; border-color: #2E2E37; color: #F2F2F5; }
.ag-chips a:hover { border-color: var(--orange); color: #FF8A5E; }
body[data-page="agenty"] #konsultaciya .lead-form { background: #18181D; border: 1px solid #26262E; }
/* Hero art blends into the background instead of sitting in a visible box. */
.ag-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.ag-hero-img { border-radius: 0; transform: scale(1.12); -webkit-mask-image: radial-gradient(closest-side at 62% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side at 62% 50%, #000 55%, transparent 100%); }
.ag-hero.sec-dark { background: #0B0B0F; overflow: hidden; }
/* Header: keep "платформа" apart from "Решения" at 1366. */
.nav-logo b { margin-right: 14px; }
.ag-hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.ag-hero h1 { font-size: clamp(34px, 4.4vw, 58px); overflow-wrap: normal; hyphens: none; }
/* 14.10.2026: новый логотип шире старого, на этой странице в шапке на пункт больше.
   Между 901 и 1440 px подпись «платформа» наезжала на «Решения»: прячем её. */
@media (min-width: 901px) and (max-width: 1440px) { .nav-logo b { display: none; } }

/* 15.10.2026: каталог как приложение. Десктоп: работающие помощники в 4 колонки (7 карточек без сироты 3+3+1).
   Телефон: сетка плиток 2 в ряд, крупная картинка, название и одна строка о чём; первый экран короче. */
@media (min-width: 1101px) { .ag-grid-3.ag-live { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ag-live .ag-card h3 { font-size: 17px; } }
@media (max-width: 560px) {
  .ag-hero.sec-dark { padding: 22px 0 18px; }
  .ag-hero-in { gap: 0; grid-template-columns: 1fr; }
  .ag-hero-img { display: none; }
  .ag-hero h1 { font-size: 30px; margin-bottom: 8px; }
  .ag-hero .lead { font-size: 15px; }
  .ag-hero .crumbs { display: none; }
  .ag-hero .btns { display: none; }
  #katalog { padding-top: 18px; }
  #katalog .sec-head { margin-bottom: 12px; }
  #katalog .sec-head h2 { font-size: 20px; }
  .ag-grid, .ag-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ag-card { flex-direction: column; border-radius: 18px; -webkit-tap-highlight-color: transparent; }
  .ag-card:hover { transform: none; }
  .ag-card:active { transform: scale(.97); }
  .ag-card img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
  .ag-body { padding: 10px 12px 12px; gap: 3px; }
  .ag-card h3 { font-size: 15px; line-height: 1.2; }
  .ag-card p { font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .ag-st { position: absolute; margin: 8px 0 0 8px; font-size: 10px; padding: 3px 7px; }
  .ag-card { position: relative; }
  .ag-card .ag-st { position: absolute; top: 0; left: 0; }
  .ag-go { display: none; }
  .ag-soon-head { margin-top: 28px; }
}
