/* ============ HERO ============ */
.hero {
  padding: var(--space-20) 0 var(--space-12);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
}

.hero__head {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
}

.hero__title {
  font-size: clamp(36px, 7vw, 84px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.028em;
  overflow-wrap: break-word;
  text-align: center;
}

.hero__title .accent {
  display: inline-block;
  max-width: 100%;
  padding: 0.04em 0.22em;
  background: var(--c-accent);
  color: #fff;
  border-radius: 0.14em;
  font-style: normal;
  vertical-align: baseline;
  letter-spacing: -0.025em;
  word-break: normal;
  overflow-wrap: break-word;
}

.hero__title .muted {
  color: var(--c-subtle);
  font-weight: 600;
}

.hero__subtitle {
  margin: var(--space-6) auto 0;
  max-width: 760px;
  font-size: var(--fs-lg);
  color: var(--c-muted);
  line-height: var(--lh-base);
  text-align: center;
}

.hero__cta {
  margin-top: var(--space-10);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero service tiles — 3 продающие плитки вместо общих «оставить заявку».
   Цветовой акцент per-tile, KPI-бейдж сверху, CTA со стрелкой внизу. */
.hero__services {
  margin-top: var(--space-10);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  width: 100%;
}

.service-tile {
  --tile-accent: var(--c-accent);
  --tile-accent-soft: var(--c-accent-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-6);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  color: var(--c-fg);
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  /* Тень покоя — карточка «приподнята» над страницей, читается как кликабельная */
  box-shadow: 0 4px 16px rgba(10, 14, 26, 0.07);
  transition: border-color 0.28s var(--ease-out),
              transform 0.28s var(--ease-out),
              box-shadow 0.28s var(--ease-out),
              background 0.28s var(--ease-out);
}

.service-tile,
.service-tile *,
.service-tile *::before {
  text-align: left;
}

/* Декоративная цветная подсветка справа сверху — даёт «брендовый» характер плитке */
.service-tile::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--tile-accent-soft) 0%, transparent 60%);
  z-index: -1;
  opacity: 0.85;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}

.service-tile:hover {
  border-color: var(--tile-accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(10, 14, 26, 0.14);
}

.service-tile:active {
  transform: translateY(-1px);
}

.service-tile:hover::before {
  transform: scale(1.15);
  opacity: 1;
}

.service-tile:hover .service-tile__icon {
  transform: scale(1.06) rotate(-3deg);
}

.service-tile:hover .service-tile__cta {
  filter: brightness(1.07);
}

.service-tile:hover .service-tile__cta svg {
  transform: translateX(4px);
}

.service-tile__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--c-bg, #fff);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-muted);
  margin-bottom: var(--space-2);
}

.service-tile__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tile-accent);
}

.service-tile__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--tile-accent-soft);
  color: var(--tile-accent);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-2);
  transition: transform 0.32s var(--ease-out);
}

.service-tile__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--c-fg);
}

.service-tile__desc {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  line-height: var(--lh-base);
  margin-bottom: var(--space-3);
}

/* Список преимуществ с галочками — снимает фрикцию перед кликом
   («бесплатно», «всё включено», «быстро») */
.service-tile__perks {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.service-tile__perks li {
  position: relative;
  padding-left: 24px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--c-fg);
}

.service-tile__perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tile-accent-soft);
  /* check-icon в svg через mask, чтобы тон шёл из --tile-accent */
  background-image: linear-gradient(var(--tile-accent), var(--tile-accent));
  background-size: 10px 10px;
  background-position: center;
  background-repeat: no-repeat;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><circle cx='8' cy='8' r='8'/></svg>");
}

.service-tile__perks li::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 5px;
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none'><path d='M2 5l2 2 4-4' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Цвет галочки совпадает с tile-accent — корректируем svg-fill через mask:
   круг под галочку залит accent-цветом, белая галочка поверх. */
.service-tile__perks li::before {
  background: var(--tile-accent);
  mask: none;
  -webkit-mask: none;
}

/* CTA — полноценная кнопка во всю ширину плитки. Цвет = акцент плитки.
   Это главный визуальный сигнал «по карточке можно кликнуть».
   Два фон-слоя: (1) бегущая белая полоса-блик, (2) статичный градиент акцента.
   Анимация двигает только первый слой; блики на 3 кнопках сдвинуты по фазе
   (animation-delay) — переливаются по очереди. */
.service-tile__cta {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
  padding: 13px var(--space-4);
  border-radius: var(--radius-md);
  align-self: stretch;
  background-color: var(--tile-accent);
  background-image:
    linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%),
    linear-gradient(160deg, var(--tile-accent-lite) 0%, var(--tile-accent-dark) 100%);
  background-size: 220% 100%, 100% 100%;
  background-position: 150% 0, 0 0;
  background-repeat: no-repeat, no-repeat;
  animation: cta-shimmer 3.6s linear infinite;
  transition: filter 0.2s var(--ease-out);
}

/* Блик пробегает в первые ~22% цикла, дальше — пауза до конца. */
@keyframes cta-shimmer {
  0%   { background-position: 150% 0, 0 0; }
  22%  { background-position: -90% 0, 0 0; }
  100% { background-position: -90% 0, 0 0; }
}

/* Сдвиг фаз — кнопки переливаются одна за другой (МКАД → ОСАГО → Спец). */
.service-tile--mkad .service-tile__cta    { animation-delay: 0s; }
.service-tile--osago .service-tile__cta   { animation-delay: 1.2s; }
.service-tile--permits .service-tile__cta { animation-delay: 2.4s; }

.service-tile__cta svg {
  position: relative;
  transition: transform 0.28s var(--ease-out);
}

/* Цветовая дифференциация плиток — глаз сразу выделяет 3 разных продукта.
   lite/dark — концы градиента кнопки CTA. */
.service-tile--mkad {
  --tile-accent: #5B7CFF;       /* фирменный accent */
  --tile-accent-soft: #eef1ff;
  --tile-accent-lite: #6E8BFF;
  --tile-accent-dark: #4A66E8;
}

.service-tile--osago {
  --tile-accent: #10b981;       /* зелёный — «защита/полис» */
  --tile-accent-soft: #d6f5e7;
  --tile-accent-lite: #1FC993;
  --tile-accent-dark: #0C9D6E;
}

.service-tile--permits {
  --tile-accent: #f59e0b;       /* янтарный — «внимание/негабарит» */
  --tile-accent-soft: #fdf0d0;
  --tile-accent-lite: #FFB02E;
  --tile-accent-dark: #DD8A06;
}

/* 4-я плитка «Помощь» — навигационная, на всю ширину сетки, горизонтальный
   компактный баннер. Нейтральный тёмный акцент — отделена от продуктовых плиток. */
.service-tile--help {
  --tile-accent: #0a0e1a;
  --tile-accent-soft: #eef0f3;
  --tile-accent-lite: #2b3245;
  --tile-accent-dark: #0a0e1a;
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
}

.service-tile--help .service-tile__icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.service-tile__help-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.service-tile--help .service-tile__title {
  font-size: var(--fs-lg);
  line-height: 1.2;
}

.service-tile--help .service-tile__desc {
  margin-bottom: 0;
}

.service-tile--help .service-tile__cta {
  margin-top: 0;
  margin-left: auto;
  align-self: center;
  width: auto;
  flex-shrink: 0;
  white-space: nowrap;
  animation-delay: 1.8s;
}

@media (prefers-reduced-motion: reduce) {
  .service-tile,
  .service-tile::before,
  .service-tile__icon,
  .service-tile__cta svg {
    transition: none;
  }
  /* Отключаем бегущий блик — оставляем статичный градиент кнопки. */
  .service-tile__cta {
    animation: none;
    background-position: -90% 0, 0 0;
  }
}

.hero__contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  text-align: left;
}

.hero__contact-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-6);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.22s var(--ease-out), transform 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}

.hero__contact-block:hover {
  border-color: var(--c-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.hero__contact-label {
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

.hero__contact-value {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--c-fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero__contact-value:hover {
  color: var(--c-accent);
}

.hero__person {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  margin-top: 2px;
}

.hero__channels {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.hero__channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  font-size: var(--fs-xs);
  font-weight: 500;
  transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}

.hero__channel:hover {
  border-color: var(--c-accent);
  background: var(--c-accent-soft);
  color: var(--c-accent);
}

.hero__channel svg {
  width: 14px;
  height: 14px;
}

.hero__chips {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

/* ============ SECTION HEADERS ============ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.section-head__title {
  font-size: var(--fs-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  max-width: 720px;
}

.section-head__subtitle {
  font-size: var(--fs-lg);
  color: var(--c-muted);
  max-width: 480px;
  text-align: right;
}

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.services-grid > .card:nth-child(1) {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.services-grid--equal {
  grid-template-columns: repeat(2, 1fr);
}

.services-grid--equal > .card:nth-child(1) {
  grid-row: auto;
}

.services-grid .card--big {
  background: var(--c-fg);
  color: #fff;
  border-color: transparent;
}

.services-grid .card--big .card__caption {
  color: rgba(255, 255, 255, 0.7);
}

.services-grid .card--big .card__icon {
  background: rgba(91, 124, 255, 0.18);
  color: #b4c2ff;
  width: 56px;
  height: 56px;
}

.services-grid .card--big .card__title {
  font-size: var(--fs-2xl);
}

.services-grid .card--big {
  padding-block: var(--space-10);
}

/* ============ USP / STATS ROW ============ */
.usp-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding-block: var(--space-12);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.usp-row__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.usp-row__value {
  font-size: var(--fs-3xl);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-fg);
}

.usp-row__value .plus {
  color: var(--c-accent);
}

.usp-row__label {
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

/* ============ GEO ============ */
.geo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.geo__card {
  padding: var(--space-8);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  transition: border-color var(--t-base) var(--ease-out);
}

.geo__card:hover {
  border-color: var(--c-accent);
}

/* Флаги стран: настоящие SVG-файлы (assets/img/flag_*.svg).
   Обёрнуты в span-wrap, чтобы навесить двойную обводку:
     • outer border — отделяет флаг от фона страницы;
     • inset box-shadow — режет белые полосы (РФ) изнутри, чтобы они
       не сливались с белым фоном. На <img> inset-shadow не работает,
       поэтому он живёт на wrap.
   Тон обводки совпадает с .geo__card → визуально как часть карточки. */
.geo__flag {
  display: inline-block;
  width: 48px;
  height: 32px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--c-border);
  margin-bottom: var(--space-4);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(10, 14, 26, 0.06);
  transition: transform var(--t-base) var(--ease-out);
}

.geo__flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: filter var(--t-base) var(--ease-out);
}

.geo__card:hover .geo__flag {
  transform: scale(1.04);
}

.geo__card:hover .geo__flag img {
  filter: saturate(1);
}

.geo__country {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.geo__services {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.geo__service {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

.geo__service::before {
  content: '';
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-accent-soft);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='10' height='8' viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4.5L3.5 7L9 1' stroke='%235b7cff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
}

/* ============ CTA CARD (dark) ============ */
.cta-card {
  padding: var(--space-12);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.cta-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cta-card .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-card .btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* ============ CLIENTS ============ */
.clients {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}

.clients__item {
  height: 96px;
  display: grid;
  place-items: center;
  padding: var(--space-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--c-fg);
  transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out);
}

.clients__item:hover {
  border-color: var(--c-fg);
  background: var(--c-fg);
  color: #fff;
}

/* ============ CONTACTS SECTION ============ */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-16);
  padding: var(--space-12);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
}

.contact-block__info h2 {
  font-size: var(--fs-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
}

.contact-block__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-row__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}

.contact-row__value {
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--c-fg);
}

.contact-row__person {
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

.contact-row__channels {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

/* ============ PAGE HEAD (subpages) ============ */
.page-head {
  padding: var(--space-16) 0 var(--space-12);
}

.page-head__breadcrumbs {
  display: flex;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin-bottom: var(--space-6);
}

.page-head__breadcrumbs a:hover {
  color: var(--c-accent);
}

.page-head__title {
  font-size: var(--fs-4xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  max-width: 800px;
}

.page-head__lead {
  font-size: var(--fs-lg);
  color: var(--c-muted);
  margin-top: var(--space-5);
  max-width: 680px;
}

/* ============ LEGAL DOC (policy.html, cookies.html) ============ */
.legal-doc {
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-fg);
}

.legal-doc h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.legal-doc h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-md);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.legal-doc p,
.legal-doc ul {
  margin-bottom: var(--space-4);
}

.legal-doc ul {
  padding-left: var(--space-5);
  list-style: disc;
}

.legal-doc li {
  margin-bottom: var(--space-2);
}

.legal-doc a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--c-surface);
  padding: 1px 6px;
  border-radius: 4px;
}

.legal-doc .data-table {
  margin: var(--space-4) 0 var(--space-6);
  font-size: var(--fs-sm);
}

/* ============ CHECK FORM LAYOUT ============ */
.check-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

.check-form-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  min-width: 0;
}

.check-form-card__head {
  margin-bottom: var(--space-8);
}

.check-form-card__title {
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: var(--lh-snug);
}

.check-form-card__caption {
  margin-top: var(--space-2);
  color: var(--c-muted);
  font-size: var(--fs-sm);
}

.check-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: sticky;
  top: calc(var(--header-h) + var(--space-6));
}

.check-aside__card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.check-aside__title {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.check-aside__text {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  line-height: var(--lh-base);
}

.check-result {
  margin-top: var(--space-8);
  min-width: 0;
}

.check-result__empty {
  padding: var(--space-12);
  text-align: center;
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius-md);
  color: var(--c-muted);
  font-size: var(--fs-sm);
}

/* Skeleton + честный прогресс на время ожидания api-assist (5–15 сек).
   Пользователь видит, что запрос идёт, и понимает порядок ожидания. */
.check-skeleton {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-surface);
}

.check-skeleton__status {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--c-muted);
}

.check-skeleton__spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--c-border-strong);
  border-top-color: var(--c-accent);
  animation: skeleton-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes skeleton-spin {
  to { transform: rotate(360deg); }
}

.check-skeleton__progress {
  height: 4px;
  background: var(--c-surface-2, #eef0f3);
  border-radius: 999px;
  overflow: hidden;
}

.check-skeleton__progress-bar {
  height: 100%;
  width: 0;
  background: var(--c-accent);
  border-radius: inherit;
  /* 12 сек до 92% — добегаем до конца только если запрос реально пришёл */
  animation: skeleton-progress 12s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes skeleton-progress {
  0%   { width: 0; }
  60%  { width: 65%; }
  100% { width: 92%; }
}

.check-skeleton__rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.check-skeleton__row {
  height: 14px;
  background: linear-gradient(
    90deg,
    var(--c-surface-2, #eef0f3) 0%,
    rgba(255,255,255,0.6) 50%,
    var(--c-surface-2, #eef0f3) 100%
  );
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.check-skeleton__row:nth-child(1) { width: 65%; }
.check-skeleton__row:nth-child(2) { width: 90%; }
.check-skeleton__row:nth-child(3) { width: 75%; }
.check-skeleton__row:nth-child(4) { width: 50%; }

@keyframes skeleton-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .check-skeleton__spinner,
  .check-skeleton__progress-bar,
  .check-skeleton__row {
    animation: none;
  }
  .check-skeleton__progress-bar { width: 50%; }
}

.check-result__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.result-card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  background: #f9fafb;
}

.result-card--nested {
  padding: var(--space-4) var(--space-5);
  background: var(--c-surface);
}

.result-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.result-card__title {
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: var(--lh-snug);
}

.result-card__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  font-size: var(--fs-sm);
}

.result-card__meta dt {
  color: var(--c-muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-card__meta dd {
  margin: 0;
  font-weight: 500;
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ============ VIDEOS PAGE ============ */
.videos-filter {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.video-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border-strong);
}

.video-card__poster {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2a2f3e, #0a0e1a);
  overflow: hidden;
}

.video-card__poster img,
.video-card__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow) var(--ease-out);
}

.video-card__preview {
  pointer-events: none;
  background: #0a0e1a;
}

.video-card:hover .video-card__poster img,
.video-card:hover .video-card__preview {
  transform: scale(1.04);
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.video-card__play span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--c-fg);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}

.video-card:hover .video-card__play span {
  transform: scale(1.06);
  background: #fff;
}

.video-card__duration {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 500;
  border-radius: var(--radius-xs);
}

.video-card__body {
  padding: var(--space-5);
}

.video-card__category {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.video-card__title {
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: var(--lh-snug);
  color: var(--c-fg);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(10, 14, 26, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.video-modal.is-open {
  display: flex;
}

.video-modal__frame {
  width: 100%;
  max-width: 1080px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.video-modal__frame [data-video-frame] {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.video-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--c-fg);
  display: grid;
  place-items: center;
  z-index: 2;
}

.video-modal__frame iframe,
.video-modal__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.video-modal__frame video {
  object-fit: contain;
}

.video-modal__frame--local {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 1080px;
  max-height: min(85vh, 900px);
  height: auto;
}

.video-modal__frame--local video {
  object-fit: contain;
}
