/*
 * Главная страница — перенос React-макета.
 *
 * Значения взяты напрямую из компонентов `src/components/*.tsx` React-проекта:
 * те же размеры, отступы, цвета, радиусы и тени. Классы Tailwind развёрнуты в
 * обычный CSS, потому что на сервере Tailwind не нужен.
 *
 * Файл подключается ТОЛЬКО на главной (см. inc/assets.php), чтобы не утяжелять
 * внутренние страницы.
 *
 * Соответствие с оригиналом:
 *   .container            → Tailwind container (padding 1.5rem, max-width 1200px)
 *   py-28 lg:py-40        → --sec-pad
 *   text-[2rem]/[3rem]    → --h2-size
 */

.home {
  --sec-pad: 7rem;          /* py-28 */
  --sec-pad-lg: 10rem;      /* lg:py-40 */
  --h2-size: 2rem;          /* text-[2rem] */
}

@media (min-width: 640px) {
  .home { --h2-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .home { --h2-size: 3rem; }
}

/*
 * Базовые метрики текста как у Tailwind в макете: 16px и line-height 1.5.
 * Тема сайта использует 15px/1.65, и из-за этого совпадающие по отступам блоки
 * получались разной высоты — расхождение накапливалось до сотен пикселей.
 * Область действия — только главная (класс `home` ставит body_class()).
 */
.home {
  font-size: 16px;
  line-height: 1.5;
}

/* Фоновый шум по всей странице — из `bg-noise` в index.css. */
.home {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.012'/%3E%3C/svg%3E");
}

/* Главная не отступает под фиксированную шапку: герой уходит под неё,
   как в макете (шапка прозрачная поверх фонового изображения). */
.home .main-content { padding-top: 0; }

.home-section {
  position: relative;
  padding-block: var(--sec-pad);
  /* overflow-x: clip вместо overflow: hidden.
     hidden обрезает и по вертикали, из-за чего выпадающий список поиска
     срезался краем секции. clip по одной оси удерживает декоративные пятна
     от горизонтальной прокрутки, но не обрезает список. */
  overflow-x: clip;
  overflow-y: visible;
}

@media (min-width: 1024px) {
  .home-section { padding-block: var(--sec-pad-lg); }
}

.home-section > .container { position: relative; z-index: var(--z-content); }

/* Мягкое свечение позади секций — «атмосферные» пятна из макета. */
.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.h2-display {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 1rem 0 0;
}

.text-gradient-soft {
  background-image: linear-gradient(180deg, hsl(210 20% 98%), hsl(210 15% 55%));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero-r {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* см. комментарий у .home-section */
  overflow-x: clip;
  overflow-y: visible;
}

.hero-r__bg,
.hero-r__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-r__bg picture { display: block; width: 100%; height: 100%; }

.hero-r__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  animation: hero-zoom 2.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-zoom {
  from { opacity: 0; transform: scale(1.08); }
  to   { opacity: 0.35; transform: scale(1); }
}

/* Затемняющие градиенты поверх фото, в том же порядке, что в макете. */
.hero-r__fade1 {
  background: linear-gradient(180deg, hsl(225 20% 3% / 0.2) 0%, hsl(225 20% 3% / 0.1) 25%, hsl(225 20% 3% / 0.5) 65%, hsl(225 20% 3%) 100%);
}

.hero-r__fade2 {
  background: radial-gradient(ellipse 80% 60% at 30% 50%, transparent 20%, hsl(225 20% 3% / 0.7) 80%);
}

.hero-r__accent {
  background: radial-gradient(ellipse 50% 35% at 35% 25%, hsl(245 60% 35% / 0.15), transparent 60%);
}

/* Пульсирующие пятна. Оба уводятся под overflow:hidden секции, поэтому
   горизонтальной прокрутки они не создают (в оригинале создавали). */
.hero-r__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-r__orb--1 {
  top: 15%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsl(245 55% 50% / 0.08), transparent 60%);
  filter: blur(60px);
  animation: orb-a 8s ease-in-out infinite;
}

.hero-r__orb--2 {
  top: 30%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, hsl(160 50% 40% / 0.05), transparent 60%);
  filter: blur(50px);
  animation: orb-b 10s ease-in-out 2s infinite;
}

@keyframes orb-a {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50%      { opacity: 0.25; transform: scale(1.1); }
}

@keyframes orb-b {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50%      { opacity: 0.2; transform: scale(1.05); }
}

.hero-r__inner {
  position: relative;
  z-index: var(--z-content);
  flex: 1;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem 4rem;   /* pt-24 pb-16 px-6 */
}

@media (min-width: 1024px) {
  .hero-r__inner { padding-inline: 3rem; }
}

@media (min-width: 1280px) {
  .hero-r__inner { padding-inline: 4rem; }
}

.hero-r__grid {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  display: grid;
  /* minmax(0, 1fr), а не 1fr: у `1fr` минимум равен min-content, поэтому
     колонка не могла стать уже панели «Port Overview» (~341px) и на 320–360px
     весь герой вместе с полем поиска вылезал за экран. */
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .hero-r__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 3.5rem;
  }
}

@media (min-width: 1280px) {
  .hero-r__grid { gap: 4rem; }
}

.hero-r__text {
  /* width: 100% + min-width: 0 удерживают блок в пределах грид-колонки.
     Без них он раздувался до min-content своего содержимого (343px) и на
     320–360px вылезал за экран вместе с полем поиска. */
  width: 100%;
  max-width: 36rem;
  min-width: 0;
  margin-inline: auto;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-r__text { margin-inline: 0; text-align: left; }
}

/* --- Логотип в герое --- */

.hero-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  animation: fade-scale 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fade-scale {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: none; }
}

.hero-logo__icon { position: relative; display: flex; }

.hero-logo__icon::before {
  content: '';
  position: absolute;
  inset: -0.75rem;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(245 60% 55% / 0.25), transparent 70%);
  filter: blur(12px);
}

.hero-logo__icon svg {
  position: relative;
  width: 36px;
  height: 36px;
  stroke-width: 1.4;
  color: hsl(245 60% 68%);
  filter: drop-shadow(0 0 20px hsl(245 60% 60% / 0.4));
}

@media (min-width: 1024px) {
  .hero-logo__icon svg { width: 44px; height: 44px; }
}

.hero-logo__text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.hero-logo__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground) / 0.9);
}

@media (min-width: 1024px) {
  .hero-logo__name { font-size: 20px; }
}

.hero-logo__name span { color: hsl(225 10% 58%); }

.hero-logo__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(225 10% 50%);
}

/* --- Плашка статуса --- */

.status-pill {
  display: inline-flex;
  align-items: center;
  /* Без переноса min-content плашки равен всей её строке (~343px), и на 320px
     она растягивала весь текстовый блок героя за пределы экрана. */
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: hsl(160 55% 40% / 0.06);
  border: 1px solid hsl(160 55% 40% / 0.12);
  color: hsl(160 50% 62%);
  margin-bottom: 2rem;
  animation: fade-up 0.7s 0.4s ease both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.status-pill__dot {
  position: relative;
  display: flex;
  height: 6px;
  width: 6px;
  flex-shrink: 0;
}

.status-pill__dot::before,
.status-pill__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: hsl(var(--success));
}

.status-pill__dot::before {
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.4;
}

@keyframes ping {
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

.status-pill__sep {
  width: 1px;
  height: 12px;
  background: hsl(160 55% 40% / 0.15);
}

.status-pill__muted { color: hsl(225 10% 52%); }

/* --- Заголовок --- */

.hero-r__headline {
  margin: 0 0 2rem;
  animation: fade-up-lg 1.2s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fade-up-lg {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}

.hero-r__line {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

@media (min-width: 640px)  { .hero-r__line { font-size: 3.2rem; } }
@media (min-width: 1024px) { .hero-r__line { font-size: 4.2rem; } }
@media (min-width: 1280px) { .hero-r__line { font-size: 4.8rem; } }

.hero-r__sub {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

@media (min-width: 640px)  { .hero-r__sub { font-size: 1.5rem; } }
@media (min-width: 1024px) { .hero-r__sub { font-size: 1.8rem; } }

.hero-r__sub-muted {
  color: hsl(225 10% 52%);
  font-family: var(--font-display);
  font-weight: 500;
}

.hero-r__desc {
  font-size: 15px;
  color: hsl(225 10% 58%);
  max-width: 28rem;
  margin: 0 auto 2rem;
  line-height: 1.85;
  font-weight: 300;
  animation: fade-in 0.8s 0.5s ease both;
}

@media (min-width: 640px)  { .hero-r__desc { font-size: 16px; } }
@media (min-width: 1024px) { .hero-r__desc { font-size: 17px; margin-inline: 0; } }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* --- Поиск в герое --- */

.hero-search-r {
  /* Блок поиска поднимается над соседями: кнопки и значки идут в разметке
     ПОСЛЕ него и без этого рисовались поверх выпадающего списка. */
  position: relative;
  z-index: var(--z-search);
  margin-bottom: 2rem;
  max-width: 28rem;
  margin-inline: auto;
  animation: fade-up 0.7s 0.55s ease both;
}

@media (min-width: 1024px) { .hero-search-r { margin-inline: 0; } }

.hero-search-r form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.375rem;
  background: hsl(225 20% 6% / 0.9);
  border: 1px solid hsl(210 20% 95% / 0.07);
  box-shadow: inset 0 1px 0 hsl(210 20% 95% / 0.03);
  transition: border-color 0.2s ease;
  position: relative;
}

.hero-search-r form:focus-within { border-color: hsl(var(--primary) / 0.3); }

.hero-search-r .s-icon {
  width: 16px;
  height: 16px;
  margin-left: 0.625rem;
  color: hsl(225 10% 45%);
  flex-shrink: 0;
}

.hero-search-r input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: hsl(var(--foreground) / 0.85);
  /* 16px, иначе iOS зумит страницу при фокусе. */
  font-size: 16px;
  font-family: var(--font-body);
  padding: 0.5rem 0;
}

@media (min-width: 1024px) { .hero-search-r input { font-size: 13px; } }

.hero-search-r input::placeholder { color: hsl(225 10% 45%); }

.hero-search-r button[type='submit'] {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-display);
  color: hsl(var(--primary-foreground));
  background: var(--gradient-accent);
  cursor: pointer;
  transition: filter 0.3s ease;
}

.hero-search-r button[type='submit']:hover { filter: brightness(1.1); }

.hero-chips-r {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

@media (min-width: 1024px) { .hero-chips-r { justify-content: flex-start; } }

.hero-chips-r a {
  padding: 0.25rem 0.625rem;
  border-radius: 0.625rem;
  font-family: var(--font-mono);
  font-size: 10px;
  color: hsl(225 10% 55%);
  background: hsl(210 20% 95% / 0.03);
  border: 1px solid hsl(210 20% 95% / 0.05);
  transition: color 0.2s ease;
}

.hero-chips-r a:hover { color: hsl(var(--foreground) / 0.75); }

/* --- Кнопки героя --- */

.hero-cta-r {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  animation: fade-up 0.7s 0.6s ease both;
}

@media (min-width: 640px)  { .hero-cta-r { flex-direction: row; } }
@media (min-width: 1024px) { .hero-cta-r { align-items: flex-start; } }

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: hsl(var(--primary-foreground));
  background: var(--gradient-accent);
  box-shadow: 0 1px 2px hsl(225 25% 2% / 0.5), 0 8px 32px -4px hsl(245 60% 50% / 0.35);
  transition: all 0.3s ease;
  width: 100%;
}

@media (min-width: 640px) { .btn-hero { width: auto; } }

.btn-hero:hover { color: #fff; filter: brightness(1.08); }
.btn-hero svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.btn-hero:hover svg { transform: translateX(2px); }

/* Вторая кнопка в макете никогда не растягивается на всю ширину:
   w-full стоит только у первой. */
.btn-hero--ghost {
  width: auto;
  padding: 0.875rem 1.25rem;
  background: hsl(225 18% 8%);
  border: 1px solid hsl(210 20% 95% / 0.06);
  color: hsl(210 15% 72%);
  box-shadow: none;
  font-weight: 500;
}

.btn-hero--ghost:hover { color: hsl(var(--foreground)); filter: none; }

/* --- Значки под кнопками --- */

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  animation: fade-in 0.8s 0.8s ease both;
}

@media (min-width: 1024px) { .hero-badges { justify-content: flex-start; } }

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 11px;
  color: hsl(225 10% 48%);
}

.hero-badges svg { width: 12px; height: 12px; color: hsl(225 10% 42%); }

/* ==========================================================================
   HERO — панель «Port Overview»
   ========================================================================== */

.panel-wrap {
  position: relative;
  width: 100%;
  animation: panel-in 1.4s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: none; }
}

.panel-wrap::before {
  content: '';
  position: absolute;
  inset: -2.5rem;
  border-radius: 36px;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 25%, hsl(245 55% 55% / 0.14), transparent 65%);
  filter: blur(36px);
}

.panel {
  position: relative;
  border-radius: 21px;
  overflow: hidden;
  background: linear-gradient(180deg, hsl(225 22% 7% / 0.95), hsl(225 20% 4% / 0.98));
  box-shadow: 0 4px 6px hsl(225 25% 2% / 0.5), 0 40px 90px -20px hsl(225 25% 2% / 0.85), inset 0 1px 0 hsl(210 20% 95% / 0.04);
  backdrop-filter: blur(12px);
}

/* Градиентная кромка сверху — из макета. */
.panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  pointer-events: none;
  background: linear-gradient(180deg, hsl(245 55% 60% / 0.22), hsl(245 55% 60% / 0.03) 40%, transparent);
  z-index: 0;
}

/* Пробегающий блик. */
.panel__sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10rem;
  pointer-events: none;
  z-index: var(--z-content);
  background: linear-gradient(90deg, transparent, hsl(245 60% 70% / 0.05), transparent);
  animation: sweep 6s ease-in-out infinite;
}

@keyframes sweep {
  0%   { transform: translateX(-40%); }
  100% { transform: translateX(140%); }
}

.panel__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid hsl(210 20% 95% / 0.04);
}

.panel__head-left { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }

.panel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: hsl(var(--success));
  box-shadow: 0 0 10px hsl(160 55% 40% / 0.6);
  flex-shrink: 0;
  animation: dot-pulse 2.4s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

.panel__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: hsl(var(--foreground) / 0.8);
  white-space: nowrap;
}

.panel__live {
  display: none;
  font-size: 10px;
  font-family: var(--font-mono);
  color: hsl(225 10% 45%);
  letter-spacing: 0.1em;
}

@media (min-width: 640px) { .panel__live { display: inline; } }

.panel__head-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.panel__spark { width: 72px; height: 16px; overflow: visible; }
.panel__spark polyline { stroke-dasharray: 200; animation: draw 2s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes draw { from { stroke-dashoffset: 200; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }

.panel__index { display: flex; align-items: center; gap: 0.375rem; }
.panel__index svg { width: 12px; height: 12px; color: hsl(160 55% 45% / 0.55); }
.panel__index span { font-family: var(--font-mono); font-size: 9px; color: hsl(160 50% 55% / 0.65); letter-spacing: 0.1em; }

.panel__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid hsl(210 20% 95% / 0.04);
}

@media (min-width: 640px) { .panel__stats { grid-template-columns: repeat(4, 1fr); } }

.panel__stat {
  padding: 1.25rem 1.5rem;
  animation: fade-up 0.6s ease both;
}

.panel__stat:not(:last-child) { border-right: 1px solid hsl(210 20% 95% / 0.04); }
.panel__stat:nth-child(1) { animation-delay: 0.8s; }
.panel__stat:nth-child(2) { animation-delay: 0.9s; }
.panel__stat:nth-child(3) { animation-delay: 1.0s; }
.panel__stat:nth-child(4) { animation-delay: 1.1s; }

.panel__stat-v {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: hsl(var(--foreground) / 0.85);
}

.panel__stat-v sup {
  font-size: 10px;
  font-weight: 400;
  color: hsl(225 10% 45%);
  margin-left: 2px;
  vertical-align: baseline;
}

.panel__stat-l { font-size: 10px; color: hsl(225 10% 45%); margin-top: 0.25rem; }

.panel__rows { position: relative; z-index: 1; padding: 0.75rem; }

.panel__row {
  display: grid;
  /* На узких экранах шкала активности и точка убираются: пять фиксированных
     колонок не помещаются в 272px и растягивали всю секцию. */
  grid-template-columns: 44px minmax(0, 1fr) auto;
  column-gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.75rem;
  color: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
  animation: row-in 0.6s ease both;
}

@keyframes row-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

.panel__row:nth-child(1) { animation-delay: 1.00s; }
.panel__row:nth-child(2) { animation-delay: 1.09s; }
.panel__row:nth-child(3) { animation-delay: 1.18s; }
.panel__row:nth-child(4) { animation-delay: 1.27s; }
.panel__row:nth-child(5) { animation-delay: 1.36s; }
.panel__row:nth-child(6) { animation-delay: 1.45s; }

.panel__row:hover {
  background: hsl(var(--muted) / 0.6);
  transform: translateX(3px);
  color: inherit;
}

.panel__port {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.7);
  transition: color 0.2s ease;
}

.panel__row:hover .panel__port { color: hsl(var(--foreground) / 0.95); }

.panel__name {
  font-size: 12.5px;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.7);
  font-family: var(--font-display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel__desc {
  font-size: 10px;
  color: hsl(225 10% 48%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel__bar {
  position: relative;
  height: 3px;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: hsl(210 20% 95% / 0.05);
}

.panel__bar i {
  position: absolute;
  inset-block: 0;
  left: 0;
  border-radius: 999px;
  width: 0;
  animation: bar-grow 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bar-grow { to { width: var(--load); } }

.panel__proto {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  justify-self: start;
  white-space: nowrap;
}

.panel__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  justify-self: end;
  animation: dot-pulse 2.6s ease-in-out infinite;
}

/* Узкие экраны: скрываем декоративные колонки, чтобы строка помещалась. */
.panel__bar,
.panel__pulse { display: none; }

/* От 480px возвращаем полную сетку строки, как в макете. */
@media (min-width: 480px) {
  .panel__row { grid-template-columns: 54px minmax(0, 1fr) 90px 74px 10px; column-gap: 1rem; }
  .panel__bar { display: block; }
  .panel__pulse { display: block; }
}

.panel__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid hsl(210 20% 95% / 0.03);
}

.panel__foot-left { display: flex; align-items: center; gap: 0.375rem; }
.panel__foot-left svg { width: 10px; height: 10px; color: hsl(225 10% 40%); }
.panel__foot-left span { font-size: 9px; color: hsl(225 10% 42%); font-family: var(--font-mono); }

.panel__tags { display: none; align-items: center; gap: 0.375rem; }
@media (min-width: 640px) { .panel__tags { display: flex; } }

.panel__tags a {
  font-size: 9px;
  font-family: var(--font-mono);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  color: hsl(225 10% 50%);
  background: hsl(210 20% 95% / 0.03);
  border: 1px solid hsl(210 20% 95% / 0.04);
}

.panel__tags a:hover { color: hsl(var(--foreground) / 0.8); }

/* Нижнее затухание героя. */
/* Нижнее затухание героя — декорация, поэтому оно ниже контента.
   Раньше стояло z-index: 20 и перекрывало выпадающий список поиска. */
.hero-r__bottom {
  position: absolute;
  inset: auto 0 0 0;
  height: 12rem;
  background: linear-gradient(to top, hsl(var(--background)), transparent);
  pointer-events: none;
  z-index: var(--z-decor);
}

/* ==========================================================================
   POPULAR PORTS
   ========================================================================== */

/* PortListSection в макете единственная с уменьшенными отступами:
   py-20 lg:py-28 вместо py-28 lg:py-40 у остальных секций. */
#ports.home-section { padding-block: 5rem; }

@media (min-width: 1024px) { #ports.home-section { padding-block: 7rem; } }

.ports-r__head { max-width: 56rem; margin-bottom: 2.5rem; }
.ports-r__desc { color: hsl(225 10% 58%); font-size: 15px; max-width: 32rem; line-height: 1.7; margin-top: 1rem; }

.ports-r__controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .ports-r__controls { flex-direction: row; align-items: center; justify-content: space-between; }
}

.ports-r__filters { display: flex; flex-wrap: wrap; gap: 0.375rem; }

.filter-btn {
  padding: 0.375rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: hsl(210 20% 95% / 0.03);
  border: 1px solid hsl(210 20% 95% / 0.05);
  color: hsl(225 10% 58%);
  font-family: var(--font-body);
}

.filter-btn[aria-pressed='true'] {
  background: hsl(245 55% 52% / 0.12);
  border-color: hsl(245 55% 52% / 0.2);
  color: hsl(245 60% 76%);
}

.ports-r__quick {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: hsl(225 20% 6% / 0.8);
  border: 1px solid hsl(210 20% 95% / 0.06);
}

@media (min-width: 640px) { .ports-r__quick { width: 260px; } }

.ports-r__quick svg { width: 14px; height: 14px; color: hsl(225 10% 45%); flex-shrink: 0; }

.ports-r__quick input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 16px;
  font-family: var(--font-body);
  color: hsl(var(--foreground) / 0.85);
  padding: 0.25rem 0;
}

@media (min-width: 640px) { .ports-r__quick input { font-size: 12px; } }
.ports-r__quick input::placeholder { color: hsl(225 10% 45%); }

.ports-table {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid hsl(210 20% 95% / 0.06);
  background: linear-gradient(180deg, hsl(225 20% 5.5% / 0.5), hsl(225 20% 3.5% / 0.5));
  box-shadow: 0 4px 40px -10px hsl(225 25% 2% / 0.5), inset 0 1px 0 hsl(210 20% 95% / 0.03);
}

/* Десктопная сетка строк — как grid-cols в макете. */
.ports-table__head,
.ports-table__row {
  display: none;
  grid-template-columns: 90px 110px 1.2fr 1fr 0.8fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.75rem;
}

@media (min-width: 1024px) {
  .ports-table__head,
  .ports-table__row { display: grid; }
}

.ports-table__head {
  border-bottom: 1px solid hsl(210 20% 95% / 0.05);
}

.ports-table__head span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(225 10% 48%);
  font-weight: 500;
}

.ports-table__head span:last-child { text-align: right; }

.ports-table__row {
  padding-block: 1.25rem;
  border-bottom: 1px solid hsl(210 20% 95% / 0.035);
  transition: background 0.2s ease;
}

.ports-table__row:last-child { border-bottom: 0; }
.ports-table__row:hover { background: hsl(var(--muted) / 0.5); }

.pt-port { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: hsl(var(--foreground) / 0.9); letter-spacing: -0.02em; }
.pt-service { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: hsl(var(--foreground) / 0.85); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pt-cat { font-size: 13px; color: hsl(225 10% 55%); }

.pt-status { display: flex; align-items: center; gap: 0.5rem; }

.pt-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pt-status--official i { background: hsl(160 55% 45%); box-shadow: 0 0 8px hsl(160 55% 40% / 0.4); }
.pt-status--official span { color: hsl(160 50% 62%); }
.pt-status--unofficial i { background: hsl(40 60% 52%); }
.pt-status--unofficial span { color: hsl(40 58% 66%); }
.pt-status span { font-size: 12px; font-weight: 500; }

.pt-action { display: flex; justify-content: flex-end; }

.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 11px;
  font-weight: 500;
  background: hsl(245 55% 52% / 0.1);
  border: 1px solid hsl(245 55% 52% / 0.15);
  color: hsl(245 60% 76%);
  transition: filter 0.2s ease;
  white-space: nowrap;
}

.btn-view:hover { filter: brightness(1.25); color: hsl(245 65% 82%); }
.btn-view svg { width: 12px; height: 12px; }

/* Мобильные карточки вместо строк. */
.ports-table__card { padding: 1.25rem; border-bottom: 1px solid hsl(210 20% 95% / 0.035); }
.ports-table__card:last-child { border-bottom: 0; }

@media (min-width: 1024px) { .ports-table__card { display: none; } }

.ptc-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.ptc-left { display: flex; align-items: center; gap: 0.625rem; }
.ptc-port { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: hsl(var(--foreground) / 0.9); }
.ptc-name { font-size: 14px; font-family: var(--font-display); font-weight: 500; color: hsl(var(--foreground) / 0.8); margin-bottom: 0.25rem; }
.ptc-cat { font-size: 12px; color: hsl(225 10% 52%); margin-bottom: 1rem; }
.ptc-action { display: flex; justify-content: flex-end; }

/* В мобильной карточке кнопка мельче, чем в строке таблицы:
   px-3 py-1.5 text-[10px] против px-3.5 py-2 text-[11px]. */
.ptc-action .btn-view { padding: 0.375rem 0.75rem; font-size: 10px; }
.ptc-action .btn-view svg { width: 10px; height: 10px; }

.ports-r__empty { padding: 2.5rem 1.75rem; text-align: center; font-size: 13px; color: hsl(225 10% 55%); }

.ports-r__foot {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-inline: 0.5rem;
}

@media (min-width: 640px) { .ports-r__foot { flex-direction: row; } }

.ports-r__count { display: flex; align-items: center; gap: 0.5rem; font-size: 11px; color: hsl(225 10% 48%); }
.ports-r__count svg { width: 12px; height: 12px; color: hsl(225 10% 42%); }
.ports-r__all { font-size: 11px; color: hsl(225 10% 52%); font-family: var(--font-mono); }
.ports-r__all:hover { color: hsl(var(--foreground) / 0.7); }

/* Протокольные бейджи макета. */
.badge-r {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
}

.badge-r--tcp     { background: hsl(245 55% 62% / 0.08); color: hsl(245 60% 74%); border: 1px solid hsl(245 55% 62% / 0.16); }
.badge-r--udp     { background: hsl(160 55% 45% / 0.08); color: hsl(160 55% 62%); border: 1px solid hsl(160 55% 45% / 0.18); }
.badge-r--tcpudp  { background: hsl(200 55% 55% / 0.08); color: hsl(200 60% 70%); border: 1px solid hsl(200 55% 55% / 0.16); }
.badge-r--other   { background: hsl(280 45% 60% / 0.08); color: hsl(280 55% 74%); border: 1px solid hsl(280 45% 60% / 0.16); }

/* ==========================================================================
   BENEFITS (Why Us)
   ========================================================================== */

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: hsl(210 20% 95% / 0.025);
}

@media (min-width: 768px)  { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit {
  position: relative;
  background: hsl(var(--background));
  transition: all 0.5s ease;
  color: inherit;
  display: block;
}

/* display:block обязателен: внутренний узел — span, и без него высота не
   применяется, а карточка схлопывается. */
.benefit__inner { display: block; height: 100%; padding: 2rem; position: relative; z-index: 10; }

@media (min-width: 1024px) { .benefit__inner { padding: 2.5rem; } }

.benefit::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 20% 20%, hsl(var(--b-accent) / 0.05), transparent 60%);
}

.benefit:hover::after { opacity: 1; }
.benefit:hover { color: inherit; }

.benefit__icon { width: 20px; height: 20px; margin-bottom: 1.25rem; color: hsl(var(--b-accent) / 0.75); }

.benefit__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground) / 0.85);
  margin: 0 0 0.625rem;
  font-size: 15px;
}

.benefit__desc { color: hsl(225 10% 58%); line-height: 1.7; font-size: 13px; margin: 0; }

/* ==========================================================================
   WHAT IS A PORT
   ========================================================================== */

.wip-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }

@media (min-width: 1024px) {
  .wip-grid { grid-template-columns: repeat(12, 1fr); gap: 2rem; }
  .wip-text { grid-column: span 7; }
  .wip-panel { grid-column: span 5; }
}

@media (min-width: 1280px) {
  .wip-text { grid-column: span 7; }
  .wip-panel { grid-column: 9 / span 4; }
}

.wip-text p {
  font-size: 16px;
  color: hsl(225 10% 62%);
  line-height: 1.9;
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

@media (min-width: 1024px) { .wip-text p { font-size: 17px; } }

.wip-text p strong { color: hsl(var(--foreground) / 0.85); font-weight: 500; }
.wip-text p.dimmer { color: hsl(225 10% 55%); }

.wip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  font-size: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  color: hsl(210 12% 66%);
  transition: color 0.2s ease;
}

.wip-link:hover { color: hsl(var(--foreground) / 0.9); }
.wip-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.wip-link:hover svg { transform: translateX(2px); }

.spec-panel {
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(180deg, hsl(225 20% 6%), hsl(225 20% 4%));
  border: 1px solid hsl(210 20% 95% / 0.04);
  box-shadow: 0 4px 40px -10px hsl(225 25% 2% / 0.6);
}

.spec-panel a,
.spec-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  color: inherit;
}

.spec-panel > *:not(:last-child) { border-bottom: 1px solid hsl(210 20% 95% / 0.025); }
.spec-panel a:hover { background: hsl(210 20% 95% / 0.02); color: inherit; }
.spec-panel dt, .spec-panel .k { font-size: 13px; color: hsl(225 10% 55%); }
.spec-panel dd, .spec-panel .v { font-family: var(--font-mono); font-size: 13px; color: hsl(var(--foreground) / 0.7); font-weight: 500; margin: 0; }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

/* mb-20 lg:mb-28 у заголовка секции. */
.steps-head { margin-bottom: 5rem; }

@media (min-width: 1024px) { .steps-head { margin-bottom: 7rem; } }

.steps { display: block; }

.step-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1rem;
  padding-block: 2rem;
  border-bottom: 1px solid hsl(210 20% 95% / 0.03);
  transition: background 0.3s ease;
}

@media (min-width: 1024px) {
  .step-row {
    grid-template-columns: 120px 1fr;
    gap: 3rem;
    padding-block: 2.5rem;
  }
  .step-row--hl {
    background: hsl(var(--muted) / 0.35);
    margin-inline: -2rem;
    padding-inline: 2rem;
    border-radius: 1rem;
  }
}

.steps > :last-child .step-row { border-bottom: 0; }

.step-num-wrap { display: flex; align-items: center; gap: 1rem; }

@media (min-width: 1024px) { .step-num-wrap { flex-direction: column; align-items: flex-start; } }

.step-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: hsl(210 20% 95% / 0.12);
}

@media (min-width: 1024px) { .step-num { font-size: 40px; } }

.step-row--hl .step-num { color: hsl(245 55% 60% / 0.5); }

.step-title-sm { font-size: 16px; font-family: var(--font-display); font-weight: 600; color: hsl(var(--foreground) / 0.85); letter-spacing: -0.02em; }

@media (min-width: 1024px) { .step-title-sm { display: none; } }

.step-title {
  display: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  /* Тема задаёт заголовкам line-height 1.15; в макете он обычный (1.5). */
  line-height: 1.5;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground) / 0.9);
}

@media (min-width: 1024px) { .step-title { display: block; } }

.step-desc { font-size: 14px; color: hsl(225 10% 58%); line-height: 1.8; max-width: 32rem; margin: 0; }

@media (min-width: 1024px) { .step-desc { font-size: 15px; } }

/* ==========================================================================
   TCP vs UDP
   ========================================================================== */

.cmp-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: start; }

@media (min-width: 1024px) {
  .cmp-grid { grid-template-columns: repeat(12, 1fr); gap: 2rem; }
  .cmp-side { grid-column: span 4; position: sticky; top: 8rem; }
  .cmp-table { grid-column: 6 / span 7; }
}

.cmp-side p { color: hsl(225 10% 58%); font-size: 15px; line-height: 1.625; max-width: 24rem; margin: 1.25rem 0 0; }

.cmp-head,
.cmp-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.cmp-head {
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid hsl(210 20% 95% / 0.05);
}

.cmp-head span { font-size: 13px; font-family: var(--font-display); font-weight: 600; }
.cmp-head .c-feat { color: hsl(225 10% 52%); }
.cmp-head .c-tcp { text-align: center; }
.cmp-head .c-udp { text-align: center; color: hsl(225 10% 58%); }

.cmp-row { padding-block: 1rem; border-bottom: 1px solid hsl(210 20% 95% / 0.025); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row > span:first-child { font-size: 14px; color: hsl(210 12% 66%); }
.cmp-row div { display: flex; justify-content: center; }

.cmp-val { font-size: 12px; text-align: center; line-height: 1.375; }
.cmp-val--on { color: hsl(var(--foreground) / 0.75); }
.cmp-val--off { color: hsl(225 10% 55%); }
.cmp-row svg { width: 16px; height: 16px; }
.cmp-row .ic-yes { color: hsl(160 55% 52%); }
.cmp-row .ic-no { color: hsl(225 10% 40%); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-grid { display: grid; grid-template-columns: 1fr; column-gap: 4rem; }

@media (min-width: 1024px) { .faq-grid { grid-template-columns: repeat(2, 1fr); } }

.faq-col { display: block; }

.faq-r__item { border-bottom: 1px solid hsl(210 20% 95% / 0.035); }

.faq-r__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Без gap и без горизонтального padding — как AccordionTrigger в макете.
     У <button> есть собственный padding по умолчанию, его надо обнулить явно. */
  gap: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground) / 0.8);
  transition: color 0.2s ease;
}

.faq-r__q:hover { color: hsl(var(--foreground)); }
.faq-r__q svg { width: 16px; height: 16px; flex-shrink: 0; color: hsl(225 10% 50%); transition: transform 0.2s ease; }
.faq-r__q[aria-expanded='true'] svg { transform: rotate(180deg); }
.faq-r__a { color: hsl(225 10% 58%); font-size: 14px; padding-bottom: 1.5rem; line-height: 1.8; }
.faq-r__a[hidden] { display: none; }

/* ==========================================================================
   TRUST
   ========================================================================== */

.trust-head { text-align: center; margin-bottom: 5rem; }
.trust-head .section-label { justify-content: center; }
.trust-head p { color: hsl(225 10% 55%); font-size: 14px; margin: 1.5rem auto 0; max-width: 32rem; line-height: 1.625; }

.trust-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem 4rem;
}

@media (min-width: 1024px) { .trust-stats { gap: 3rem 6rem; } }

.trust-stat { text-align: center; }

.trust-stat__v {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.75rem;
  background-image: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

@media (min-width: 1024px) { .trust-stat__v { font-size: 3rem; } }

.trust-stat__l { font-size: 13px; color: hsl(225 10% 52%); letter-spacing: 0.03em; text-transform: uppercase; font-weight: 500; }

.trust-rule {
  margin-top: 5rem;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, hsl(210 20% 95% / 0.04) 30%, hsl(210 20% 95% / 0.04) 70%, transparent);
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */

.cta-r { padding-block: 8rem; position: relative; overflow: hidden; }

@media (min-width: 1024px) { .cta-r { padding-block: 12rem; } }

.cta-r__glow1 { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 50% 70%, hsl(245 55% 20% / 0.15), transparent 65%); }
.cta-r__glow2 { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 40% 50% at 30% 50%, hsl(280 45% 25% / 0.06), transparent 60%); }

.cta-r .container { text-align: center; }
.cta-r__inner { max-width: 48rem; margin-inline: auto; }

.cta-r h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 2rem;
}

@media (min-width: 640px)  { .cta-r h2 { font-size: 2.5rem; } }
@media (min-width: 1024px) { .cta-r h2 { font-size: 3.5rem; } }

.cta-r p { color: hsl(225 10% 56%); font-size: 16px; line-height: 1.625; max-width: 28rem; margin: 0 auto 3.5rem; }

@media (min-width: 1024px) { .cta-r p { font-size: 18px; } }

.cta-r__buttons { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }

@media (min-width: 640px) { .cta-r__buttons { flex-direction: row; } }

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1.25rem 2.5rem;
  border-radius: 1rem;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  color: hsl(var(--primary-foreground));
  background: var(--gradient-accent);
  box-shadow: var(--shadow-button);
  transition: all 0.3s ease;
  width: 100%;
}

@media (min-width: 640px) { .btn-cta { width: auto; } }

.btn-cta:hover { color: #fff; box-shadow: var(--shadow-button-hover); transform: translateY(-1px); filter: brightness(1.08); }
.btn-cta svg { width: 16px; height: 16px; }

.btn-cta--ghost {
  padding: 1.25rem 1.5rem;
  background: none;
  box-shadow: none;
  color: hsl(210 15% 72%);
  font-weight: 500;
}

.btn-cta--ghost:hover { color: hsl(var(--foreground) / 0.9); transform: none; box-shadow: none; }

/* ==========================================================================
   Уважение к prefers-reduced-motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero-r__bg img,
  .hero-logo,
  .status-pill,
  .hero-r__headline,
  .hero-r__desc,
  .hero-search-r,
  .hero-cta-r,
  .hero-badges,
  .panel-wrap,
  .panel__stat,
  .panel__row,
  .panel__bar i,
  .panel__spark polyline {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .panel__bar i { width: var(--load) !important; }
  .panel__sweep, .panel__dot, .panel__pulse { animation: none !important; }
}
