/* Стили страницы команды. Извлечены из тега <style> в team_professor_compact_v1.html
   (мок окружения .env-* отброшен), чтобы их можно было перенести скриптом. */
/* ===== Страница «Команда профессора Гимранова» — плитка + сотрудники (v3) ===== */
  .nn-profile .tp-wrap{max-width:1200px;margin:0 auto;padding:0 24px;}
.nn-profile .band--trust{background:var(--blue-25);border-top:1px solid #e0eefa;border-bottom:1px solid #e0eefa;}
.nn-profile .band--team{background:#fff;}
.nn-profile .band--work{background:var(--gray-50);border-top:1px solid var(--line);}
/* — Шапка — */
  .nn-profile .tp-head{padding:16px 24px 24px;}
.nn-profile .tp-head h1{font-size:44px;font-weight:900;letter-spacing:-.015em;line-height:1.1;margin:0 0 10px;color:var(--ink);}
.nn-profile .tp-head p{margin:0;color:var(--text-2);font-size:16px;max-width:70ch;}
/* — Фирменная деталь: «импульс» — точка + тонкая брендовая линия — */
  .nn-profile .ndot{display:inline-block;position:relative;width:36px;height:8px;margin-right:12px;}
.nn-profile .ndot::before{content:"";position:absolute;left:0;top:0;width:8px;height:8px;border-radius:50%;background:var(--brand);}
.nn-profile .ndot::after{content:"";position:absolute;left:13px;top:3px;width:23px;height:2px;border-radius:2px;background:rgba(9,150,222,.32);}
.nn-profile h2 .ndot{transform:translateY(-2px);}
.nn-profile .ndot--lead{display:block;margin:2px 0 12px;}
/* — Блок доверия: «слово профессора» — */
  .nn-profile .tpq2{padding:28px 24px;}
.nn-profile .tpq2__card{position:relative;display:flex;gap:26px;align-items:flex-start;background:#fff;border:1px solid #d8e9f7;border-radius:var(--r-lg);box-shadow:var(--sh-md);padding:26px 28px;}
.nn-profile .tpq2__photo{margin-top:25px;width:112px;height:112px;border-radius:var(--r-lg);object-fit:cover;object-position:top center;background:#fff;border:1px solid #d8e9f7;box-shadow:var(--sh-sm);flex:none;}
.nn-profile .tpq2__body{flex:1;min-width:0;}
.nn-profile .tpq2__q{margin:0;font-size:19px;line-height:1.65;font-style:italic;font-weight:400;color:var(--ink);max-width:72ch;position:relative;padding-left:17px;}
.nn-profile .tpq2__q::before{content:"";position:absolute;left:0;top:3px;bottom:3px;width:3.5px;border-radius:99px;background:var(--brand);}
.nn-profile .tpq2__q .qm{font-size:1.35em;line-height:0;color:var(--brand);}
.nn-profile .tpq2__foot{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;margin-top:12px;clear:both;}
.nn-profile .tpq2__sign{margin:0;font-size:13.5px;color:var(--text-2);}
.nn-profile .tpq2__sign a{color:var(--primary);font-weight:700;text-decoration:none;border-bottom:1px solid transparent;transition:.15s;}
.nn-profile .tpq2__sign a:hover{border-bottom-color:currentColor;}
.nn-profile .tpq2__how{font-family:inherit;font-size:15px;font-weight:700;color:var(--primary);background:#fff;border:1.5px solid var(--primary);border-radius:var(--pill);padding:0 18px;margin-left:auto;cursor:pointer;display:inline-flex;align-items:center;gap:8px;min-height:44px;transition:background .2s,color .2s;}
.nn-profile .tpq2__how:hover{background:var(--blue-50);}
.nn-profile .tpq2__how.is-open{background:var(--blue-50);}
.nn-profile .tpq2__how .car{width:16px;height:16px;transition:transform .25s ease;}
.nn-profile .tpq2__how.is-open .car{transform:rotate(180deg);}
.nn-profile .tpq2__moreWrap{display:grid;grid-template-rows:0fr;transition:grid-template-rows .28s ease;}
.nn-profile .tpq2__moreWrap.open{grid-template-rows:1fr;}
.nn-profile .tpq2__moreIn{overflow:hidden;}
.nn-profile .tpq2__lead{margin:22px 0 0;padding:11px 14px;background:var(--blue-25);border:1px solid #e3f0fa;border-radius:10px;font-size:15.5px;line-height:1.55;font-style:normal;color:var(--ink);}
.nn-profile .tpq2__grid{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:18px;}
.nn-profile .tpq2__gc{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:start;column-gap:12px;width:100%;min-width:0;height:100%;box-sizing:border-box;background:#fff;border:1px solid var(--line);border-radius:12px;padding:17px 18px;font-size:15.5px;line-height:1.55;color:var(--text-2);}
.nn-profile .tpq2__gn{width:28px;height:28px;margin:0;display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;border-radius:50%;background:var(--brand);color:#fff;font-size:13px;font-weight:700;line-height:28px;font-variant-numeric:tabular-nums;font-feature-settings:'lnum' 1,'tnum' 1;vertical-align:initial;}
.nn-profile .tpq2__stdRow{display:flex;justify-content:center;margin-top:20px;}
.nn-profile .tpq2__std{margin:0;gap:8px;white-space:nowrap;width:auto;}
/* — Каталог — */
  .nn-profile .tp-team{padding:36px 0 44px;}
.nn-profile .tp-team .pblock__head{margin-bottom:16px;}
.nn-profile .band .pblock__head h2{font-size:28px;}
.nn-profile .band .modnote{font-size:11px;color:var(--text-3);background:none;border:0;padding:0;box-shadow:none;}
.nn-profile .tp-team .teambar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;margin-bottom:22px;}
.nn-profile .tp-team .citytoggle{background:#fff;box-shadow:var(--sh-sm);}
.nn-profile .tp-team .citytoggle button{min-height:44px;font-size:14px;}
.nn-profile .teambar__tabs{display:flex;gap:8px;}
.nn-profile .tp-team .chip{font-family:inherit;font-size:14px;font-weight:700;color:var(--text-2);background:#fff;border:1px solid var(--line);border-radius:var(--pill);padding:0 16px;min-height:44px;display:inline-flex;align-items:center;cursor:pointer;transition:background .15s,color .15s,border-color .15s;}
.nn-profile .tp-team .chip:hover{border-color:#bcd6ee;color:var(--primary);}
.nn-profile .tp-team .chip--active{background:var(--primary);border-color:var(--primary);color:#fff;}
.nn-profile .tp-team .chip--active:hover{color:#fff;}
.nn-profile .tp-team .pblock__head .tp-note{display:block;background:var(--blue-50);border-radius:12px;padding:13px 16px;margin:10px 0 0;font-size:15.5px;line-height:1.55;color:var(--ink);max-width:70ch;}
/* — Плитка — */
  .nn-profile .team-grid{display:grid;grid-template-columns:1fr;gap:16px;}

  @media (min-width:600px){.nn-profile .team-grid{grid-template-columns:repeat(2,1fr);}}

  @media (min-width:900px){.nn-profile .team-grid{grid-template-columns:repeat(3,1fr);}}

  @media (min-width:1160px){.nn-profile .team-grid{grid-template-columns:repeat(4,1fr);}}
.nn-profile .team-grid .scard{cursor:pointer;}
.nn-profile .team-grid .scard__name{transition:color .15s;}
.nn-profile .team-grid .scard:hover .scard__name{color:var(--primary);}
.nn-profile .team-grid .scard__cta{min-height:44px;}
.nn-profile .team-grid .scard.is-off{display:none;}
.nn-profile .team-grid .scard__play svg{transition:transform .18s ease;}
.nn-profile .team-grid .scard__play:hover svg{transform:scale(1.12);}
.nn-profile .tg-in{animation:tgIn .4s cubic-bezier(.22,.61,.36,1) both;}

  @keyframes tgIn{from{opacity:0;transform:translateY(10px);}
to{opacity:1;transform:none;}}

  @media (prefers-reduced-motion:reduce){.nn-profile .tg-in{animation:none;}}
/* — Карточка сотрудника (.scard--staff): та же лига, свои поля — */
  .nn-profile .scard--staff .scard__func{margin:6px 0 12px;font-size:14.5px;line-height:1.55;color:var(--text-2);}
.nn-profile .scard--staff .scard__facts{margin-top:auto;margin-bottom:0;}
.nn-profile .scard--staff .scard__about{margin-top:10px;align-self:flex-start;display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:700;color:var(--primary);text-decoration:none;}
.nn-profile .scard--staff .scard__about span{display:inline-block;margin-left:2px;transition:transform .15s;}
.nn-profile .scard--staff .scard__about:hover{text-decoration:underline;text-underline-offset:3px;}
.nn-profile .scard--staff .scard__about:hover span{transform:translateX(2px);}
/* — Как врачи работают с профессором — */
  .nn-profile .tp-work{padding:36px 0 44px;}
.nn-profile .tp-work .pblock__head{margin-bottom:18px;}
.nn-profile .tp-work__grid{display:grid;grid-template-columns:1.25fr 1fr;gap:20px;align-items:stretch;}
.nn-profile .tp-work__left{min-width:0;display:flex;flex-direction:column;}
.nn-profile .tp-work__left>.ccard{flex:1;}
.nn-profile [data-contact-city].is-off{display:none;}
/* фото-галерея центра — стрелки по бокам трека (глобальные .gallery не трогаем) */
  .nn-profile .ccard__gal{--gap:10px;margin-top:12px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;column-gap:10px;position:static;}
.nn-profile .ccard__gal .gallery__track{grid-column:2;gap:var(--gap);padding:2px 0;}
.nn-profile .ccard__gal .gallery__item{flex:0 0 calc((100% - 2*var(--gap))/3);width:calc((100% - 2*var(--gap))/3);height:auto;aspect-ratio:3/2;border-radius:12px;}
.nn-profile .ccard__gal .gallery__item img{object-position:center;}
.nn-profile .ccard__gal .rail__arrow{position:static;transform:none;width:42px;height:42px;min-width:44px;min-height:44px;flex:none;border-radius:50%;
    background:#fff;border:1px solid var(--line);box-shadow:none;color:var(--primary);
    display:flex;align-items:center;justify-content:center;transition:background .15s,border-color .15s;}
.nn-profile .ccard__gal .rail__arrow.l{grid-column:1;}
.nn-profile .ccard__gal .rail__arrow.r{grid-column:3;}
.nn-profile .ccard__gal .rail__arrow:hover{background:var(--blue-50);border-color:var(--primary);color:var(--primary);}
.nn-profile .ccard__gal .rail__arrow svg{width:20px;height:20px;filter:none;}
.nn-profile .ccard__gal .gallery__dots{grid-column:1 / -1;margin-top:10px;justify-content:center;}
/* карта записи — единый язык с карточкой клиники */
  .nn-profile .bridge.tp-work__bridge{position:relative;display:flex;flex-direction:column;gap:12px;align-self:stretch;min-width:0;
    background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-sm);padding:20px 20px 18px;}
.nn-profile .bridge.tp-work__bridge::before{content:"";position:absolute;left:20px;right:20px;top:0;height:4px;border-radius:0 0 99px 99px;background:var(--brand);}
.nn-profile .bridge.tp-work__bridge{justify-content:flex-start;}
.nn-profile .bridge.tp-work__bridge .bridge__t{display:flex;flex-direction:column;gap:11px;}
.nn-profile .bridge-video{position:relative;aspect-ratio:16/9;width:100%;border-radius:12px;overflow:hidden;background:var(--blue-25);cursor:pointer;}
.nn-profile .bridge-video img{width:100%;height:100%;object-fit:cover;display:block;}
.nn-profile .bridge-video::after{content:"";position:absolute;inset:0;background:rgba(11,40,70,0);transition:background .18s;}
.nn-profile .bridge-video:hover::after, .nn-profile .bridge-video:focus-visible::after{background:rgba(11,40,70,.18);}
.nn-profile .bridge-video__play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2;
    width:56px;height:56px;border-radius:50%;border:0;background:rgba(255,255,255,.94);color:var(--primary);
    display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:var(--sh);}
.nn-profile .bridge-video__play svg{width:24px;height:24px;margin-left:2px;transition:transform .18s ease;}
.nn-profile .bridge-video:hover .bridge-video__play svg{transform:scale(1.12);}
.nn-profile .bridge-video.is-playing{cursor:default;}
.nn-profile .bridge-video.is-playing::after{content:none;}
.nn-profile .bridge-video iframe{width:100%;height:100%;display:block;border:0;}
.nn-profile .bridge.tp-work__bridge h3{margin:0;font-size:19px;font-weight:900;color:var(--ink);}
.nn-profile .bridge.tp-work__bridge p{margin:0;font-size:15px;line-height:1.6;color:var(--text-2);}
.nn-profile .bridge.tp-work__bridge .bridge__cta{display:flex;flex-direction:column;gap:9px;padding-top:2px;width:100%;}
.nn-profile .bridge.tp-work__bridge .bridge__cta .btn{width:100%;min-width:0;min-height:46px;white-space:normal;text-align:center;}
/* — Карточка контактов центра (в блоке школы) — */
  .nn-profile .ccard{display:flex;flex-direction:column;gap:16px;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-sm);padding:20px;min-width:0;}
.nn-profile .ccard .contact__head{padding:18px;}
.nn-profile .ccard .contact-acc__head{padding-top:15px;padding-bottom:15px;}
.nn-profile .ccard__badge{display:inline-flex;align-items:center;align-self:flex-start;background:var(--blue-50);color:var(--primary);border-radius:var(--pill);padding:4px 12px;font-size:12.5px;font-weight:700;letter-spacing:.02em;}
.nn-profile .ccard .contact{box-shadow:none;}

  /* — Мобайл/планшет — */
  @media (max-width:900px){.nn-profile .tp-wrap{padding:0 16px;}
.nn-profile .tp-head{padding:10px 16px 18px;}
.nn-profile .tp-head h1{font-size:30px;}
.nn-profile .band .pblock__head h2{font-size:22px;}
.nn-profile .ndot{width:30px;}
.nn-profile .ndot::after{width:17px;}
.nn-profile .ndot--lead{display:none;}
.nn-profile .tpq2{padding:16px;}
.nn-profile .tpq2__card{display:block;padding:16px 16px 14px;}
.nn-profile .tpq2__photo{float:left;width:60px;height:60px;border-radius:50%;border:2px solid #fff;margin:2px 14px 6px 0;}
.nn-profile .tpq2__q{font-size:16px;}
.nn-profile .tp-team{padding:28px 0 34px;}
.nn-profile .tp-work{padding:28px 0 34px;}
.nn-profile .tp-work__grid{grid-template-columns:1fr;}
.nn-profile .tp-work__left>.ccard{flex:none;}
.nn-profile .ccard__gal{margin-top:8px;}
.nn-profile .ccard__gal{column-gap:8px;}
.nn-profile .teambar__tabs{width:100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:2px 16px;
      -webkit-mask-image:linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent);
      mask-image:linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent);}
.nn-profile .teambar__tabs::-webkit-scrollbar{display:none;}
.nn-profile .tp-team .chip{flex:none;}

  }

  @media (max-width:640px){.nn-profile .ccard__gal{column-gap:8px;}
.nn-profile .ccard__gal .gallery__item{flex:0 0 100%;width:100%;height:auto;aspect-ratio:16/9;}
.nn-profile .ccard__gal .rail__arrow{width:38px;height:38px;}
.nn-profile .ccard__gal .rail__arrow svg{width:18px;height:18px;}
.nn-profile .tpq2__grid{grid-template-columns:minmax(0,1fr);gap:14px;}
.nn-profile .tpq2__foot .tpq2__how{margin-left:0;}

  }

  @media (max-width:430px){.nn-profile .tpq2{padding:16px 12px;}
.nn-profile .tp-head h1{font-size:28px;line-height:1.08;}
.nn-profile .tpq2__card{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:center;grid-template-areas:"photo sign" "q q" "how how" "more more";padding:18px 16px 16px;box-shadow:var(--sh);}
.nn-profile .tpq2__body, .nn-profile .tpq2__foot{display:contents;}
.nn-profile .tpq2__photo{grid-area:photo;float:none;width:56px;height:56px;margin:0;}
.nn-profile .tpq2__sign{grid-area:sign;font-size:14px;line-height:1.45;}
.nn-profile .tpq2__q{grid-area:q;font-style:normal;font-size:15px;line-height:1.5;text-wrap:pretty;margin-top:14px;}
.nn-profile .tpq2__how{grid-area:how;width:100%;justify-content:center;margin-top:14px;}
.nn-profile .tpq2__moreWrap{grid-area:more;}

  }
.nn-profile #b-work, .nn-profile #team-standards-card{scroll-margin-top:24px;}

