/* =====================================================
   О НАС (подключается после site.css и blog.css)
===================================================== */

/* ---------- первый экран ---------- */
.ahero2 { padding-bottom: 72px; }
.ahero2__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 64px; align-items: end; }
.ahero2__title { margin: 0 0 28px; font-size: 72px; line-height: 76px; letter-spacing: -0.045em; }
.ahero2__text .lead { max-width: 54ch; margin: 0; }

.res { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-panel); background: rgba(255,255,255,0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-md); }
.res__title { margin: 4px 8px 4px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.res__item {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 14px 12px 12px; border-radius: 16px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border); color: var(--ink); text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.3s ease;
}
a.res__item:hover { transform: translateX(4px); box-shadow: inset 0 0 0 1px rgba(23,162,248,0.55), var(--shadow-sm); }
.res__icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-text); }
.res__icon svg { width: 22px; height: 22px; }
.res__item--tg .res__icon { background: linear-gradient(135deg, #2AABEE, #229ED9); color: #FFFFFF; }
.res__body b { display: block; font-size: 15px; line-height: 20px; }
.res__body small { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res__go { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-sunken); transition: background 0.3s ease, transform 0.4s var(--ease); }
.res__go svg { width: 14px; height: 14px; }
a.res__item:hover .res__go { background: var(--brand-blue); color: var(--brand-navy); transform: rotate(-45deg); }
.res__item--tg:hover .res__go { transform: none; }
.res__item.is-soon { opacity: 0.75; cursor: default; }
.res__item.is-soon .res__icon { background: var(--surface-sunken); color: var(--ink-muted); }
.res__soon { padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface-sunken); color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 700; }

@media (max-width: 1024px) {
  .ahero2__grid { grid-template-columns: 1fr; gap: 40px; }
  .ahero2__title { font-size: 52px; line-height: 56px; }
}
@media (max-width: 640px) {
  .ahero2 { padding-bottom: 48px; }
  .ahero2__title { font-size: 36px; line-height: 40px; letter-spacing: -0.035em; }
  .res { padding: 10px; border-radius: 20px; }
}


/* ---------- экспертиза ---------- */
.exp { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.exp__card { position: relative; padding: 44px; border-radius: var(--r-panel); display: flex; flex-direction: column; }
.exp__card:not(.exp__card--dark) { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); }
.exp__card h3 { margin: 0 0 12px; font-size: 30px; line-height: 36px; letter-spacing: -0.025em; }
.exp__card > p { margin: 0 0 28px; font-size: 17px; line-height: 27px; color: var(--ink-muted); max-width: 44ch; }
.exp__card--dark > p { color: var(--ink-on-brand-muted); }
.exp__card--dark { box-shadow: inset 0 0 0 1px rgba(108,196,255,0.22), var(--shadow-lg); }
.exp__card--dark::before { left: 60%; top: -60%; width: 70%; }
.exp__num { font-size: 88px; line-height: 80px; font-weight: 700; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--brand-blue); margin-bottom: 24px; }
.exp__list { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.exp__list li { position: relative; padding: 12px 16px 12px 48px; border-radius: 14px; background: var(--surface-sunken); font-size: 16px; line-height: 22px; font-weight: 600; transition: background 0.3s ease, transform 0.4s var(--ease); }
.exp__list li:hover { background: var(--accent-soft); transform: translateX(4px); }
.exp__list li::before { content: ""; position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230572B6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: inset 0 0 0 1px var(--accent-line); }
.exp__card--dark .exp__list li { background: rgba(255,255,255,0.08); color: #FFFFFF; }
.exp__card--dark .exp__list li:hover { background: rgba(108,196,255,0.18); }
.exp__card--dark .exp__list li::before { background-color: rgba(255,255,255,0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236CC4FF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E"); box-shadow: inset 0 0 0 1px rgba(108,196,255,0.35); }
.flowline { list-style: none; margin: auto 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; }
.flowline::before { content: ""; position: absolute; left: 16%; right: 16%; top: 32px; height: 2px; background: rgba(255,255,255,0.14); }
.flowline::after { content: ""; position: absolute; left: 16%; right: 16%; top: 32px; height: 2px; background: linear-gradient(90deg, var(--accent-text-on-brand), var(--brand-blue)); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease) 0.4s; }
.is-visible .flowline::after { transform: scaleX(1); }
.flowline li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: 15px; line-height: 20px; font-weight: 700; color: #FFFFFF; }
.flowline li span { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #0B1B7A; box-shadow: inset 0 0 0 1px rgba(108,196,255,0.4), 0 0 0 6px rgba(23,162,248,0.1); color: var(--accent-text-on-brand); transition: background 0.4s ease, color 0.4s ease; }
.flowline li span svg { width: 26px; height: 26px; }
.is-visible .flowline li span { animation: flowOn 0.6s var(--ease) both; }
.is-visible .flowline li:nth-child(2) span { animation-delay: 0.8s; }
.is-visible .flowline li:nth-child(3) span { animation-delay: 1.5s; }
@keyframes flowOn { to { background: var(--brand-blue); color: var(--brand-navy); box-shadow: 0 0 0 6px rgba(23,162,248,0.2), 0 10px 30px -8px rgba(23,162,248,0.9); } }
@media (max-width: 900px) { .exp { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .exp__card { padding: 28px 22px; }
  .exp__card h3 { font-size: 24px; line-height: 30px; }
  .exp__num { font-size: 64px; line-height: 60px; margin-bottom: 16px; }
  .flowline li { font-size: 13px; }
  .flowline li span { width: 52px; height: 52px; }
  .flowline::before, .flowline::after { top: 26px; }
}

/* ---------- команда ---------- */
.team { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.team__intro { position: sticky; top: 112px; }
.team__intro .lead { margin: 20px 0 32px; }
.team__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team__facts div { padding: 22px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); }
.team__facts b { display: block; margin-bottom: 6px; font-size: 44px; line-height: 48px; letter-spacing: -0.04em; background: linear-gradient(180deg, var(--grad-ink) 30%, var(--accent-text)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.team__facts span { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.role { padding: 28px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); transition: transform 0.45s var(--ease), box-shadow 0.35s ease; }
.role:nth-child(even) { transform: translateY(40px); }
.role:hover { box-shadow: inset 0 0 0 1px rgba(23,162,248,0.55), var(--shadow-md); }
.role:hover .task__icon { transform: rotate(-6deg) scale(1.06); }
.role h3 { margin: 18px 0 8px; font-size: 20px; line-height: 26px; }
.role__num { display: block; margin-bottom: 4px; font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-text); }
.role p { margin: 0; font-size: 15px; line-height: 23px; color: var(--ink-muted); }
.team__rule { margin-top: 72px; }
@media (max-width: 1024px) { .team { grid-template-columns: 1fr; gap: 32px; } .team__intro { position: static; } .team__rule { margin-top: 32px; } .role:nth-child(even) { transform: none; } }
@media (max-width: 560px) { .roles, .team__facts { grid-template-columns: 1fr; } .role { padding: 22px; } }

/* ---------- клиенты ---------- */
.clients { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.client { height: 132px; display: flex; align-items: center; justify-content: center; padding: 20px; border-radius: var(--r-card); background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); transition: transform 0.45s var(--ease), box-shadow 0.35s ease; }
.client:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(23,162,248,0.55), var(--shadow-md); }
/* --h у каждого логотипа подобрана по «оптическому весу»: вытянутые ниже, компактные выше */
.client img { max-width: 100%; max-height: var(--h, 40px); width: auto; height: auto; filter: grayscale(1); opacity: 0.75; transition: filter 0.3s ease, opacity 0.3s ease; }
.client:hover img { filter: none; opacity: 1; }
.client__name { font-size: 22px; line-height: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--border-strong); text-align: center; transition: color 0.3s ease; }
.client:hover .client__name { color: var(--ink); }
.clients__cta { margin-top: 20px; padding: 36px 40px; border-radius: var(--r-panel); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.clients__cta::before { left: 90%; top: -80%; width: 50%; }
.clients__cta h3 { margin: 0 0 8px; font-size: 26px; line-height: 32px; letter-spacing: -0.02em; }
.clients__cta p { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink-on-brand-muted); max-width: 60ch; }
.clients__cta .btn { flex-shrink: 0; }
@media (max-width: 1024px) { .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } .clients__cta { flex-direction: column; align-items: flex-start; } }
@media (max-width: 560px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .client { height: 96px; } .client:last-child { grid-column: 1 / -1; } .clients__cta { padding: 28px 22px; } .clients__cta .btn { width: 100%; } }

/* ---------- экспертные статьи ---------- */
#articles .head-split { align-items: end; }
#articles .head-split .btn { justify-self: end; }
@media (max-width: 1024px) { #articles .head-split .btn { justify-self: start; } }

/* ---------- экспертные материалы ---------- */
.mat { border-radius: var(--r-panel); padding: 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 48px; align-items: center; box-shadow: inset 0 0 0 1px rgba(108,196,255,0.22), var(--shadow-lg); }
.mat::before { left: 80%; top: -40%; width: 70%; }
.mat__text .lead { color: var(--ink-on-brand-muted); margin: 16px 0 32px; max-width: 48ch; }
.mat__stack { position: relative; height: 380px; perspective: 1200px; }
.mag { position: absolute; left: 50%; top: 50%; width: 240px; height: 330px; margin: -165px 0 0 -120px; border-radius: 10px 16px 16px 10px; transition: transform 0.8s var(--ease); }
.mag--3 { background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); transform: translate(56px, -8px) rotate(10deg); }
.mag--2 { background: rgba(255,255,255,0.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); transform: translate(28px, -4px) rotate(5deg); }
.mag--1 {
  display: flex; flex-direction: column; padding: 22px 20px; overflow: hidden;
  background: linear-gradient(160deg, var(--surface) 0%, var(--accent-soft) 100%);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), inset 4px 0 0 rgba(8,24,110,0.15);
  transform: rotate(-4deg);
}
.mat:hover .mag--1 { transform: rotate(0deg) translateY(-8px); }
.mat:hover .mag--2 { transform: translate(40px, -6px) rotate(8deg); }
.mat:hover .mag--3 { transform: translate(78px, -10px) rotate(14deg); }
.mag__brand { font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 0.14em; color: var(--brand-navy); }
.mag__issue { margin-top: 4px; font-size: 11px; line-height: 14px; font-weight: 600; color: var(--accent-text); }
.mag__title { margin-top: 16px; font-size: 24px; line-height: 28px; font-weight: 700; letter-spacing: -0.03em; color: var(--brand-navy); }
.mag__cover { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; }
@media (max-width: 900px) { .mat { grid-template-columns: 1fr; padding: 40px 28px; } .mat__stack { height: 340px; } }
@media (max-width: 560px) { .mat__text .btn { width: 100%; } .mat__stack { height: 300px; transform: scale(0.85); } }

/* v7: номера без обводки */
.exp__num { font-size: 20px; line-height: 28px; letter-spacing: 0; -webkit-text-stroke: 0; color: var(--accent-text); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.exp__card--dark .exp__num, .on-brand .exp__num { color: var(--accent-text-on-brand); }
@media (max-width: 640px) { .exp__num { font-size: 20px; line-height: 28px; } }

/* схема пути инцидента: пять кружков с номерами.
   Колонки строго равные — линия проходит ровно через центры кружков (10% … 90%).
   В узкой карточке схема перестраивается в вертикальную цепочку (container query). */
.exp__card--dark { container-type: inline-size; }
.flowline--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.flowline--5::before, .flowline--5::after { left: 10%; right: 10%; top: 26px; }
.flowline--5 li { font-size: 12px; line-height: 16px; }
.flowline--5 li span { width: 52px; height: 52px; font-size: 15px; font-weight: 700; }
@container (max-width: 480px) {
  .flowline--5 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .flowline--5 li { flex-direction: row; gap: 16px; text-align: left; font-size: 16px; line-height: 22px; }
  .flowline--5 li span { width: 44px; height: 44px; font-size: 14px; flex-shrink: 0; }
  .flowline--5::before, .flowline--5::after { left: 21px; right: auto; width: 2px; top: 22px; bottom: 22px; height: auto; }
  .flowline--5::after { background: linear-gradient(180deg, var(--accent-text-on-brand), var(--brand-blue)); transform-origin: top; transform: scaleY(0); }
  .is-visible .flowline--5::after { transform: scaleY(1); }
}
.is-visible .flowline--5 li:nth-child(2) span { animation-delay: 0.5s; }
.is-visible .flowline--5 li:nth-child(3) span { animation-delay: 0.9s; }
.is-visible .flowline--5 li:nth-child(4) span { animation-delay: 1.3s; }
.is-visible .flowline--5 li:nth-child(5) span { animation-delay: 1.7s; }
