/* ============================================================================
   specialistam.css — страницы «Специалистам» Уролесан (статьи 1876:2535 / видео 1876:2938).
   Поверх base.css + chrome.css. rem = px/16. Figma REST, baseline 1920, 2026-07.
   Общий каркас: заголовок · крошки · табы Статьи/Видео · сетка 3×3 · «Показать еще».
   Контент карточек в макете — демо (5 тем ×повтор); реальные материалы = контент клиента.
   ============================================================================ */

.spec { max-width: 120rem; margin-inline: auto; padding-inline: 5rem; padding-top: 11.4375rem; }

.spec__crumbs { display: flex; align-items: center; justify-content: center; gap: 1.5rem;   /* 24px по истине Figma (Главная→Специалистам старт-старт 103px) */
  font-family: var(--wm-font); font-weight: 400; font-size: 0.875rem; color: var(--wm-ink); }
.spec__crumbs a { color: inherit; text-decoration: none; opacity: 0.7; }
.spec__crumbs .dot { width: 0.1875rem; height: 0.1875rem; border-radius: 50%; background: currentColor; opacity: 0.5; }

.wm .spec__title { margin: 3.75rem 0 0; text-align: center;   /* .wm-префикс: перебить сброс base.css `.wm h1{margin:0}` (класс #27) */
  font-family: var(--wm-font-head); font-weight: 600; font-size: 5.125rem; line-height: 1.1;
  letter-spacing: -0.05125rem; text-transform: uppercase; color: var(--wm-ink); }

/* табы Статьи / Видео от экспертов */
.spec__tabsrow { display: flex; justify-content: center; }
.spec__tabs { display: inline-flex; gap: 1rem; margin: 3.5rem auto 0; padding: 0.5rem;
  border-radius: 1.5rem; background: #f4f4f4; }                     /* истина сегмент-контрола (раунд 2) */
.spec__tab { display: inline-flex; align-items: center; justify-content: center;
  padding: 1.375rem 2.75rem; border-radius: 1.25rem; text-decoration: none;
  font-family: var(--wm-font); font-weight: 500; font-size: 1.3125rem; color: var(--wm-ink); white-space: nowrap; }
.spec__tab--active { background: var(--wm-brand); color: #fff; }
@media (hover: hover) { .spec__tab:not(.spec__tab--active):hover { color: var(--wm-brand); } }

/* сетка 3×3 карточек-материалов */
.spec__grid { margin: 4rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4rem 0.75rem; }                                  /* ряд ~64px / кол 12px */
.spec-card { display: block; text-decoration: none; }
.spec-card__photo { position: relative; display: block; border-radius: 1.625rem; overflow: hidden;
  aspect-ratio: 580 / 317; background: #eef0ee; }
.spec-card__photo--video { aspect-ratio: 579 / 723; }   /* видео-превью выше (play запечён в рендер) */
.spec-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.spec-card__title { display: block; margin-top: 1.625rem; max-width: 36rem;   /* 26px: отступ фото→заголовок по истине Figma */
  font-family: var(--wm-font); font-weight: 500; font-size: 1.5rem; line-height: 1.24; color: var(--wm-ink); }  /* 24px */
/* ховер подписи карточки: плавная смена цвета (реш. Антона 13.07, заменяет подчёркивание р2) */
@media (hover: hover) { .spec-card:hover .spec-card__title { color: var(--wm-brand); } }

/* play-кнопка поверх видео-превью (страница видео) */
.spec-card__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 5rem; height: 5rem; border-radius: 50%; background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center; }
.spec-card__play::after { content: ""; margin-left: 0.3rem;
  border-style: solid; border-width: 0.8rem 0 0.8rem 1.3rem; border-color: transparent transparent transparent var(--wm-brand); }

/* кнопка «Показать еще» — образец node 1933:2022 (раунд 2 Веры): зелёная пилюля +
   белый скруглённый квадрат со стрелкой справа (тот же ассет-стрелка, что у формы). */
.spec__morerow { display: flex; justify-content: center; margin-top: 4.1875rem; }   /* 67px: зазор посл.карточка→«Показать еще» по истине Figma (видео Δ146) */
.spec__more { display: inline-flex; align-items: center; gap: 1.25rem;             /* 20px */
  height: 3.75rem; padding: 0 0.375rem 0 1.75rem;                                   /* pl-28 pr-6 */
  border: 0; border-radius: 1.25rem; background: var(--wm-brand);
  color: #fff; cursor: pointer; font-family: var(--wm-font); font-weight: 500; font-size: 1rem; }
.spec__more img { width: 3rem; height: 3rem; }                                      /* белый квадрат-стрелка 48px */
@media (hover: hover) { .spec__more:hover { filter: brightness(0.95); } }

/* ============================================================================
   АДАПТИВ — «Специалистам» (статьи 2001:4627 / видео 2001:4711). rem=px ниже 1280.
   ============================================================================ */
@media (max-width: 1000px) {
  .spec { padding-inline: 32px; padding-top: 128px; }
  .wm .spec__title { font-size: 56px; margin-top: 40px; }
  .spec__tabs { margin-top: 40px; }
  .spec__tab { padding: 14px 28px; font-size: 18px; }
  .spec__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; margin-top: 40px; }
  .spec-card__title { font-size: 20px; max-width: none; }
  .spec__morerow { margin-top: 48px; }
}
@media (max-width: 1000px) {
  .spec { padding-inline: 16px; padding-top: 96px; }
  .wm .spec__title { font-size: 34px; margin-top: 32px; line-height: 1.1; }
  /* сегмент-табы на всю ширину контента */
  .spec__tabs { display: flex; width: 100%; max-width: 309px; gap: 8px; margin-top: 32px; padding: 6px; border-radius: 16px; }
  .spec__tab { flex: 1; padding: 12px 25px; font-size: 14px; border-radius: 12px; }
  .spec__grid { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  /* карточки-статьи 360 (кадр Веры 2001:4627 Frame 204 h=317, ширина ~328): почти квадрат
     вместо десктопного 580/317 (на 360 фото сплющивалось до ~179px, ΔH −23%).
     :not(--video) — не трогаем видео-превью spec-video (579/723, отдельная страница 🟢). */
  .spec-card__photo { border-radius: 10px; }
  .spec-card__photo:not(.spec-card__photo--video) { aspect-ratio: 328 / 317; }
  .spec-card__title { margin-top: 16px; font-size: 16px; max-width: none; }
  .spec-card__play { width: 56px; height: 56px; }
  .spec-card__play::after { border-width: 9px 0 9px 15px; }
  .spec__morerow { margin-top: 32px; }
  .spec__more { height: auto; font-size: 16px; border-radius: 14px; justify-content: space-between; padding-right: 4px;}
  .spec__more img{ max-height: calc(100% - 8px); width: auto; }
}
@media (max-width: 450px) {
  .spec-card__photo{max-height: 399px;
  width: 100%;}
}
