/* 7 · «Специалисты клиники» (/variant-2/, 06.11) — разметка: delo-src/partials/v2-team.html, движение: assets/js/b7.js
   Стеклянная плашка (заголовок и запись) и под ней — лента крупных портретов в белой рамке (как снимки блока 4), каждая
   карточка — на молочном стекле: фамилия, имя-отчество, должность (как на бейдже), у врачей — «Образование» по нажатию.
   Лента — нативная прокрутка вбок со «щелчком» на карточку (scroll-snap): палец вбок листает её, вверх-вниз — страницу.
   Телефон: карточка ~80 % ширины, следующая выглядывает справа, под лентой — «1 / 8» и тонкая линия. Компьютер: в колонке
   1360 px — четыре карточки, стрелки в круге, перетаскивание мышью, колесо вбок. Появление — один раз, когда блок въехал:
   плашка проявляется, карточки по очереди въезжают справа (только прозрачность и сдвиг). Фон секции прозрачный — за ней
   она в расфокусе; без размытия под стеклом (фон и так размыт), кроме плашки на компьютере (как у плашек первого экрана) */
.v2-team { position: relative; z-index: 3; color: var(--ink); container-type: inline-size;
  padding: clamp(96px, 14vh, 170px) 0 clamp(90px, 14vh, 160px); }
/* --t7-W — ширина секции (без полосы прокрутки — cqw; старые браузеры — vw) */
.t7-w { --t7-W: 100vw; --t7-g: max(var(--pad), calc((var(--t7-W) - 1360px) / 2)); --t7-gap: clamp(16px, 1.6vw, 24px);
  --t7-cw: calc((var(--t7-W) - 2 * var(--t7-g) - 3 * var(--t7-gap)) / 4); }
@supports (width: 1cqw) { .t7-w { --t7-W: 100cqw; } }

/* плашка — как у «Плана лечения» и первого экрана */
.t7-head { padding: 0 var(--t7-g); }
.t7-plate { max-width: 720px; padding: clamp(28px, 2.6vw, 44px); border-radius: 28px;
  background: linear-gradient(to bottom, rgba(250, 246, 239, 0.4) 0%, rgba(250, 246, 239, 0.46) 50%, rgba(250, 246, 239, 0.56) 100%);
  border: 1px solid rgba(255, 255, 255, 0.5); -webkit-backdrop-filter: blur(4px) saturate(1.05); backdrop-filter: blur(4px) saturate(1.05);
  box-shadow: 0 20px 50px -34px rgba(66, 47, 25, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.t7-plate .label { margin-bottom: 18px; font-size: 13px; letter-spacing: 0.14em; }
.t7-plate .label::before { width: 19px; height: 19px; }
.t7-t { margin: 0; font-family: var(--head), var(--font); font-weight: 700; font-size: clamp(34px, 3.1vw, 52px); line-height: 1.05;
  letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.t7-t .acc { color: var(--blue); }
.t7-lead { margin-top: 16px; max-width: 34em; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.42; color: var(--ink2); text-wrap: pretty; }
/* (подписи под заголовком нет — 06.11, владелец; кнопка — чуть дальше от заголовка) */
.t7-plate .cta { margin-top: clamp(24px, 3.4vh, 32px); }

/* лента: прокрутка вбок на всю ширину экрана, карточки — от левого края колонки; сверху и снизу — место под тени */
.t7-lane { position: relative; margin-top: clamp(26px, 4vh, 44px); padding: 8px 0 44px; margin-bottom: -44px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-left: var(--t7-g); overscroll-behavior-x: contain; scrollbar-width: none; outline: none; }
.t7-lane::-webkit-scrollbar { display: none; }
.t7-lane:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 28px; }
.t7-track { display: flex; align-items: flex-start; gap: var(--t7-gap); width: max-content; margin: 0; padding: 0 var(--t7-g); list-style: none; }
.t7-card { flex: none; width: var(--t7-cw); scroll-snap-align: start; padding: 8px 8px 20px; border-radius: 28px;
  background: linear-gradient(to bottom, rgba(250, 246, 239, 0.5) 0%, rgba(250, 246, 239, 0.68) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 20px 50px -34px rgba(66, 47, 25, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
/* снимок — в белой рамке, как в «Результатах»; место — сразу (4:5), снимок проявляется, когда загружен */
.t7-ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 5px solid rgba(255, 255, 255, 0.8); border-radius: 21px;
  background: linear-gradient(160deg, #ece8e4, #e4dfda); box-shadow: 0 24px 46px -30px rgba(22, 41, 74, 0.5); }
.t7-ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s ease;
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.t7-ph img.ok { opacity: 1; }
.t7-tx { padding: 18px 12px 0; }
.t7-n { margin: 0; font-family: var(--head), var(--font); font-weight: 700; font-size: clamp(26px, 2vw, 32px); line-height: 1.05;
  letter-spacing: -0.005em; color: var(--ink); }
.t7-io { margin-top: 5px; font-size: 17px; line-height: 1.3; color: var(--ink2); }
/* должность в две строки (узкая карточка) — у всех карточек место под две строки (--t7-rh, b7.js): подписи в ряд ровно */
.t7-role { min-height: var(--t7-rh, 0px); margin-top: 12px; font: 600 13px/1.3 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
/* «Образование» — строка с плюсом в круге (плюс поворачивается в крестик), текст — под ней, без коробки */
.t7-edu { display: flex; width: fit-content; align-items: center; gap: 10px; height: 40px; margin-top: 10px; margin-left: -2px; padding-right: 6px;
  font-size: 16px; line-height: 1; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.t7-edu::before { content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(39, 93, 167, 0.4);
  background: linear-gradient(var(--blue), var(--blue)) center / 12px 1.6px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 1.6px 12px no-repeat;
  transition: transform 0.45s var(--ease), background-color 0.3s; }
.t7-edu[aria-expanded="true"]::before { transform: rotate(45deg); }
.t7-edu:hover::before { background-color: rgba(255, 255, 255, 0.7); }
/* без «Образования» (директор, администраторы) — карточка той же высоты, что у врачей */
.t7-noedu .t7-tx { padding-bottom: 50px; }
.t7-edu-t { padding: 4px 0 2px 36px; }
.t7-edu-t:not([hidden]) { animation: t7-edu 0.5s var(--ease) both; }
.t7-edu-t p { font-size: 15px; line-height: 1.42; color: var(--ink2); text-wrap: pretty; }
.t7-edu-t p + p { margin-top: 6px; }
@keyframes t7-edu { from { opacity: 0; transform: translate3d(0, -6px, 0); } }

/* под лентой: «1 / 8» (телефон), линия хода, стрелки (компьютер) */
.t7-nav { display: flex; align-items: center; gap: 20px; margin-top: clamp(22px, 3.4vh, 34px); padding: 0 var(--t7-g); }
.t7-count { display: none; margin: 0; font-family: var(--head), var(--font); font-weight: 700; font-size: 22px; line-height: 1;
  color: var(--ink3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.t7-count b { font-weight: inherit; color: var(--blue); }
.t7-line { position: relative; flex: 1 1 auto; max-width: 420px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(22, 41, 74, 0.14); }
.t7-line i { position: absolute; inset: 0; border-radius: inherit; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0.5); }
.t7-arr { display: flex; gap: 12px; margin-left: auto; }
/* стрелки — как круг у кнопки «Все результаты» (.more), крупнее */
.t7-arr button { width: 56px; height: 56px; border-radius: 50%; background-color: var(--blue); background-position: center;
  background-size: 18px 13px; background-repeat: no-repeat; box-shadow: 0 14px 30px -16px rgba(39, 93, 167, 0.8);
  transition: background-color 0.35s, opacity 0.35s, box-shadow 0.35s, transform 0.5s var(--ease); }
.t7-arr .t7-next { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' fill='none' stroke='%23fff' stroke-width='1.8'%3E%3Cpath d='M0 6h14M9 1l5 5-5 5'/%3E%3C/svg%3E"); }
.t7-arr .t7-prev { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' fill='none' stroke='%23fff' stroke-width='1.8'%3E%3Cpath d='M16 6H2M7 1L2 6l5 5'/%3E%3C/svg%3E"); }
.t7-arr button:not(:disabled):hover { background-color: var(--blue-d); }
.t7-arr .t7-next:not(:disabled):hover { transform: translateX(3px); }
.t7-arr .t7-prev:not(:disabled):hover { transform: translateX(-3px); }
.t7-arr button:disabled { opacity: 0.3; cursor: default; box-shadow: none; }

/* компьютер: ленту можно тянуть мышью (b7.js) — пока тянут, без «щелчка» на карточку */
@media (hover: hover) and (pointer: fine) {
  .t7-lane { cursor: grab; }
  .t7-drag .t7-lane { cursor: grabbing; scroll-snap-type: none; }
  .t7-drag .t7-card { pointer-events: none; }
}

/* появление (b7.js): плашка — когда въехала; лента — когда въехала, вся сразу и только прозрачностью. Без JS всё видно сразу.
   (06.11 вечер, владелец: «не нужно показывать, что можно листать, пусть просто стоит — дёрганье именно в этих блоках
   выглядит странно»; было: карточки по очереди въезжали справа) */
.t7-plate, .t7-card, .t7-nav { transition: opacity 0.9s var(--ease), transform 1.15s var(--ease); }
.t7-card { transition: opacity 0.8s ease; transition-delay: 0.08s; }
.t7-nav { transition-delay: 0.45s; }
.t7-js:not(.t7-on) .t7-plate { opacity: 0; transform: translate3d(0, 28px, 0); }
.t7-js:not(.t7-go) .t7-card { opacity: 0; }
.t7-js:not(.t7-go) .t7-nav { opacity: 0; }
.t7-anim .t7-plate, .t7-anim .t7-card { will-change: transform, opacity; }

/* ── телефон ── */
@media (max-width: 760px) {
  .v2-team { padding: 64px 0 calc(40px + env(safe-area-inset-bottom)); }
  .t7-w { --t7-g: 14px; --t7-gap: 12px; --t7-cw: min(calc(0.8 * var(--t7-W)), 360px); }
  .t7-plate { max-width: none; padding: 22px 20px 20px; border-radius: 26px; -webkit-backdrop-filter: none; backdrop-filter: none;
    background: linear-gradient(to bottom, rgba(250, 246, 239, 0.6) 0%, rgba(250, 246, 239, 0.72) 100%);
    border-color: rgba(255, 255, 255, 0.6); box-shadow: 0 20px 50px -34px rgba(66, 47, 25, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
  .t7-plate .label { margin-bottom: 12px; font-size: clamp(12.5px, 3.5vw, 14px); letter-spacing: 0.11em; gap: 10px; white-space: nowrap; }
  .t7-plate .label::before { width: 20px; height: 20px; }
  .t7-t { font-size: clamp(27px, 7.6vw, 32px); line-height: 1.08; }
  .t7-lead { margin-top: 10px; font-size: 16px; line-height: 1.4; }
  .t7-plate .cta { width: 100%; height: 54px; margin-top: 22px; padding: 0 16px; font-size: 16px; }
  .t7-lane { margin-top: 16px; }
  /* последняя карточка тоже встаёт к левому краю */
  .t7-track { padding-right: calc(var(--t7-W) - var(--t7-g) - var(--t7-cw)); }
  .t7-card { padding: 7px 7px 18px; border-radius: 26px;
    background: linear-gradient(to bottom, rgba(250, 246, 239, 0.6) 0%, rgba(250, 246, 239, 0.74) 100%); }
  .t7-ph { border-width: 4px; border-radius: 20px; }
  .t7-tx { padding: 16px 10px 0; }
  .t7-n { font-size: clamp(25px, 7vw, 29px); }
  .t7-io { font-size: 16px; }
  .t7-role { margin-top: 10px; font-size: 12.5px; letter-spacing: 0.09em; }
  .t7-edu { margin-top: 8px; }
  .t7-noedu .t7-tx { padding-bottom: 48px; }
  /* (без «1 / 8» и линии стрелок на телефоне нет — строка не нужна; 06.11 вечер) */
  .t7-nav { display: none; }
  .t7-count { display: block; font-size: 24px; }
  .t7-line { max-width: none; }
  .t7-arr { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .t7-plate, .t7-card, .t7-nav { transition: opacity 0.5s linear; transform: none !important; }
  .t7-edu-t:not([hidden]) { animation: none; }
}
