/* ───────────────────────────────
   RESET & BASE
─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Arial, sans-serif;
  background-color: #00162B;
  color: #fff;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ───────────────────────────────
   CSS VARIABLES
─────────────────────────────── */
:root {
  --bg:           #00162B;
  --bg-dark:      #1C202D;
  --bg-card:      #2C3B4C;
  --accent:       #FF8368;
  --text-muted:   #787B86;
  --text-light:   #BBBBC9;
  --text-dim:     #D2D2DF;
  --border:       rgba(255,255,255,0.12);
  --border-nav:   #56718F;
  --max-w:        1280px;
  --px:           clamp(16px, 4vw, 80px);
  --header-h:     128px;
}

/* ───────────────────────────────
   COOKIE BANNER
─────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 960px;
  background: #1C202D;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-light);
  flex: 1;
}
.cookie-banner p a { color: var(--accent); }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.btn-cookie-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-cookie-settings {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 10px 20px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-cookie-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

/* ───────────────────────────────
   HEADER / NAV
─────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 22, 43, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 80px 0 30px;
  max-width: 1440px;
  margin: 0 30px;
  gap: 32px;
}
.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo img { width: 64px; height: 64px; object-fit: contain; }
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  font-family: 'Play', Arial, sans-serif;
  font-size: 16px;
  color: var(--text-light);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav a:hover { background: var(--border); color: #fff; }
.header-nav a.active { color: var(--accent); }
.nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: inherit;
  opacity: 0.85;
}
.nav-arrow svg {
  display: block;
  width: 16px;
  height: 16px;
}
.header-nav a.active .nav-arrow {
  opacity: 1;
}
.header-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.header-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.header-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-burger.open span:nth-child(2) { opacity: 0; }
.header-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────────────────────────────
   MOBILE MENU
─────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0; right: 0; bottom: 0;
  background: #00162B;
  z-index: 998;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}
.mobile-menu.open { display: flex; }
.mobile-nav-list { flex: 1; list-style: none; padding: 0; margin: 0; }
.mobile-nav-item { border-top: 1px solid var(--border-nav); }
.mobile-nav-item:last-child { border-bottom: 1px solid var(--border-nav); }
.mobile-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.mobile-nav-row-link {
  font-family: 'Play', Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
}
.mobile-nav-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  transition: transform 0.3s ease;
  color: var(--border-nav);
}
.mobile-nav-item.expanded .mobile-nav-chevron { transform: rotate(180deg); }
.mobile-nav-sub {
  list-style: none;
  padding: 4px 20px 24px;
  margin: 0;
  display: none;
  flex-direction: column;
  gap: 12px;
}
.mobile-nav-item.expanded .mobile-nav-sub { display: flex; }
.mobile-nav-sub a { font-family: Arial, sans-serif; font-size: 16px; color: var(--text-light); transition: color 0.2s; }
.mobile-nav-sub a:hover { color: #fff; }
.mobile-nav-row.plain a {
  display: block;
  font-family: 'Play', Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
}
.mobile-menu-contacts { flex-shrink: 0; }
.mobile-contacts-header { border-top: 1px solid var(--border-nav); padding: 20px; font-size: 16px; color: #fff; }
.mobile-contacts-body { padding: 4px 20px 32px; display: flex; flex-direction: column; gap: 12px; }
.mobile-contact-row { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #fff; }
.mobile-contact-row a { color: #fff; transition: color 0.2s; }
.mobile-contact-row a:hover { color: var(--text-light); }
.mobile-contact-icon { flex-shrink: 0; width: 20px; height: 20px; }
.mobile-social-row { display: flex; gap: 12px; margin-top: 28px; }
.mobile-social-btn { display: block; width: 56px; height: 56px; border-radius: 5px; overflow: hidden; transition: opacity 0.2s; }
.mobile-social-btn:hover { opacity: 0.8; }
.mobile-social-btn img { width: 56px; height: 56px; display: block; }

/* ───────────────────────────────
   BREADCRUMB WRAP
   Sits between fixed header and hero block.
   Provides header offset + horizontal alignment.
─────────────────────────────── */
.page-crumb-wrap {
  /* Хедер fixed 128px — компенсируем чтобы крошки не прятались под ним */
  padding-top: calc(var(--header-h, 128px) + 20px);
  padding-bottom: 16px;
  padding-left: 40px;
  padding-right: 40px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--border-nav); transition: color 0.2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--border-nav);
  border-radius: 1px;
  flex-shrink: 0;
}
.breadcrumb-current { color: #fff; }

/* ───────────────────────────────
   PAGE HERO
   Figma: tall rounded card, 20px side margins,
   background image + gradient overlay.
   Title left, CTA buttons bottom-right.
─────────────────────────────── */
.page-hero {
  margin: 0 20px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(250deg, rgba(0,22,43,0) 0%, rgba(0,22,43,0.65) 100%),
    url('../home/images/reestr.png') center / cover no-repeat;
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Left-side scrim so text stays readable */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,22,43,0.55) 0%, rgba(0,22,43,0) 65%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 0 48px 44px;
}

/* Title + CTA row */
.page-hero-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.page-hero-title {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,22,43,0.55);
}
.page-hero-subtitle {
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text-light);
  max-width: 600px;
  margin-top: 12px;
}
.page-hero-actions { display: flex; gap: 12px; flex-shrink: 0; align-items: center; }

/* CTA buttons — match Figma exactly */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  border-radius: 8px;
  background:
    linear-gradient(215deg, rgba(255,131,104,1) 0%, rgba(43,58,74,0) 100%),
    rgba(44,59,76,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: -2px 2px 4px rgba(0,22,43,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  border-radius: 8px;
  background: rgba(44,59,76,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: -2px 2px 4px rgba(0,22,43,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-secondary:hover { opacity: 0.85; }

/* ───────────────────────────────
   TABS BAR
   Figma: 96px tall rounded block, 20px side margins,
   border on all sides with border-radius.
   Left: "Реестр" label (32px Arial).
   Right: named tabs with icons.
─────────────────────────────── */
/* Обёртка: tabs-bar + registry-section в одном bordered блоке */
.registry-frame {
  margin: 28px 20px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: visible; /* нельзя hidden — обрезает абсолютный дропдаун */
}

.tabs-bar {
  /* margin и border убраны — теперь задаёт registry-frame */
  border-bottom: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  background: var(--bg);
  overflow: visible; /* нельзя hidden — обрезает абсолютный дропдаун */
}
.tabs-bar-inner {
  display: flex;
  align-items: stretch;
  height: 96px;
  /* no max-width/centering — full width of the block */
}

/* Поиск по карточкам */
.tabs-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  flex: 1;
  border-right: 1px solid var(--border);
  border-radius: 12px 0 0 0;
}
.tabs-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 15px;
  width: 100%;
  min-width: 0;
}
.tabs-search-input::placeholder { color: var(--text-muted); }

/* Tab list — pushed to the right */
.tabs-list {
  display: flex;
  align-items: stretch;
  margin-left: auto;
  overflow: visible; /* НЕ hidden/auto — обрезает абсолютный дропдаун */
  scrollbar-width: none;
}
.tabs-list::-webkit-scrollbar { display: none; }

.tab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: var(--text-light);
  background: transparent;
  border-left: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}
.tab-item:hover { color: #fff; background: rgba(255,255,255,0.04); }
/* Правый край tabs-bar — скругление на последнем элементе */
.tabs-list > *:last-child,
.tab-dropdown-wrap:last-child .tab-dropdown-trigger { border-radius: 0 12px 12px 0; }

/* "Лучшая практика" — active, gradient fill */
.tab-item.tab-best {
  background: linear-gradient(90deg, rgba(4,25,45,1) 0%, rgba(63,76,92,1) 100%);
  color: #fff;
}
.tab-item.tab-best--active {
  background: linear-gradient(90deg, rgba(20,50,80,1) 0%, rgba(100,120,140,1) 100%);
  color: #fff;
  outline: 1.5px solid rgba(255,131,104,0.5);
  outline-offset: -2px;
}

/* Star icon inside "Лучшая практика" */
.tab-star {
  color: var(--accent);
  flex-shrink: 0;
  width: 18px; height: 18px;
}

/* Check badge inside "Лучшая практика" */
.tab-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 5px;
  flex-shrink: 0;
}
.tab-check svg { width: 12px; height: 12px; }

/* Chevron icon on "Направления" / "Технологии" */
.tab-chevron {
  flex-shrink: 0;
  width: 16px; height: 16px;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.tab-item:hover .tab-chevron { color: #fff; }

/* ───────────────────────────────
   DROPDOWN — десктоп: абсолютный, мобайл: раскрывается inline
─────────────────────────────── */
.tab-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}
.tab-dropdown-trigger {
  /* те же стили что у .tab-item */
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: var(--text-light);
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.tab-dropdown-trigger:hover { color: #fff; background: rgba(255,255,255,0.04); }
.tab-dropdown-wrap.open .tab-dropdown-trigger { color: #fff; }

/* Панель — абсолютная на десктопе */
.tab-dropdown-panel {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #00162B;
  border: 1px solid var(--border);
  border-radius: 0;
  z-index: 200;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  overflow: hidden;
}
.tab-dropdown-wrap.open .tab-dropdown-panel { display: flex; }
.tab-dropdown-wrap.open .tab-chevron { transform: rotate(180deg); }

/* Строки в панели */
.dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #2E2E39;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s;
}
.dd-item:first-child { border-top: none; }
.dd-item:hover { background: rgba(255,255,255,0.04); }
.dd-item--active {
  background: linear-gradient(-32deg, #00162B 33%, rgba(255,131,104,0.55) 100%);
}
.dd-item-name {
  flex: 1;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}
.dd-item-count {
  font-family: 'Play', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FF8368;
  flex-shrink: 0;
}
.dd-item-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 5px;
  flex-shrink: 0;
}
.dd-item--active .dd-item-check {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.1);
}
.dd-item-check svg { width: 12px; height: 12px; }

/* ───────────────────────────────
   CARDS SECTION (inside registry-frame)
─────────────────────────────── */
.registry-section {
  padding: 48px 40px 80px;
}
.registry-inner {
  /* max-width убран — карточки растягиваются на всю ширину frame */
}

/* Section heading: total count */
.registry-heading {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 32px;
}
.registry-heading span { color: var(--accent); }

/* ───────────────────────────────
   CARDS GRID
   Figma: 3 cards per row, gap 19px, card height 460px
─────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
}

/* Individual card */
.solution-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 460px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s;
}
.solution-card:hover { transform: translateY(-4px); }

/* Full-card background: image over dark gradient */
.card-bg {
  position: absolute;
  inset: 0;
  /* Fallback dark gradient shown when there's no cover image */
  background: linear-gradient(91deg, rgba(2,24,44,1) 1%, rgba(64,76,92,1) 100%);
}
.card-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Orange accent — top-left corner glow (Figma: 227deg) */
.card-accent {
  position: absolute;
  inset: 0;
  background: linear-gradient(227deg, rgba(255,131,104,0.7) 6%, rgba(255,131,104,0) 55%);
  pointer-events: none;
}

/* Bottom dark gradient for text readability */
.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 28px 28px;
  background: linear-gradient(
    180deg,
    rgba(2,24,44,0) 0%,
    rgba(2,24,44,0.75) 25%,
    rgba(2,24,44,0.97) 60%,
    rgba(2,24,44,1) 100%
  );
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Approx bottom ~55% of the 460px card */
  min-height: 220px;
  justify-content: flex-end;
}

.card-name {
  font-family: 'Play', Arial, sans-serif;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.33;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ───────────────────────────────
   EMPTY STATE
─────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  grid-column: 1 / -1;
}
.empty-state-icon {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  opacity: 0.3;
}
.empty-state-title {
  font-family: 'Play', Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
}
.empty-state-text { font-size: 16px; color: var(--text-muted); }

/* ───────────────────────────────
   PAGINATION
─────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  color: var(--text-light);
  border: 1px solid var(--border);
  transition: all 0.2s;
  text-decoration: none;
}
.page-link:hover { border-color: var(--accent); color: #fff; }
.page-link.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.page-link.disabled { opacity: 0.3; pointer-events: none; }
.page-ellipsis { color: var(--text-muted); padding: 0 4px; font-size: 15px; }

/* ───────────────────────────────
   FOOTER
─────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-logo { display: flex; flex-direction: column; gap: 8px; }
.footer-logo img { width: 48px; height: 48px; object-fit: contain; }
.footer-logo-name {
  font-family: 'Play', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.footer-logo-full { font-size: 13px; color: var(--text-muted); max-width: 260px; line-height: 1.4; }
.footer-nav { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-nav-col { display: flex; flex-direction: column; gap: 12px; }
.footer-nav-col a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer-nav-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.footer-bottom a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }

/* ───────────────────────────────
   RESPONSIVE — TABLET (≤1100px)
─────────────────────────────── */
@media (max-width: 1100px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .tabs-search { padding: 0 20px; }
  .tab-item { padding: 0 20px; }
}

/* ───────────────────────────────
   RESPONSIVE — MOBILE (≤768px)
─────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --header-h: 80px;
  }

  /* Header */
  .header-inner { height: 80px; padding: 0 20px; margin: 0; max-width: 100%; }
  .header-logo img { width: 48px; height: 48px; }
  .header-nav { display: none; }
  .header-burger { display: flex; }

  /* Breadcrumb */
  .page-crumb-wrap { padding-left: 20px; padding-right: 20px; }

  /* Hero */
  .page-hero { margin: 0 12px; min-height: 320px; border-radius: 8px; }
  .page-hero-inner { padding: 0 20px 28px; }
  .page-hero-title-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .page-hero-actions { flex-direction: column; width: 100%; gap: 10px; }
  .btn-primary, .btn-secondary {
    flex: none;
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  /* Tabs → вертикальный список фильтров */
  .registry-frame { margin: 12px 0 0; border: none; border-radius: 0; }
  .tabs-bar { border-bottom: none; border-radius: 0; overflow: visible; background: transparent; }
  .tabs-bar-inner { flex-direction: column; height: auto; gap: 0; }

  /* Поиск на мобайле — полная ширина */
  .tabs-search {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  /* Список фильтров — без боковых бордеров, только горизонтальные разделители */
  .tabs-list {
    flex-direction: column;
    margin-left: 0;
    width: 100%;
    border: none;
    border-radius: 0;
    overflow: visible;
  }

  /* Каждый фильтр — от края до края */
  .tab-item {
    padding: 16px 12px;
    font-size: 16px;
    border-left: none;
    border-top: 1px solid var(--border);
    width: 100%;
    justify-content: space-between;
    white-space: normal;
  }
  .tab-item:first-child { border-top: 1px solid var(--border); }

  /* «Лучшая практика» — звезда+текст слева, чекбокс справа */
  .tab-item.tab-best {
    order: 3; /* последний в списке, как на макете */
  }
  .tab-best .tab-star { order: 0; }
  .tab-best .tab-check { margin-left: auto; order: 2; }

  /* Шеврон у Направления/Технологии — прижат вправо */
  .tab-chevron { margin-left: auto; transition: transform 0.2s; }

  /* Dropdown на мобайле — inline раскрытие, без абсолютного позиционирования */
  .tab-dropdown-wrap {
    flex-direction: column;
    width: 100%;
    position: static;
  }
  .tab-dropdown-trigger {
    padding: 16px 12px;
    border-left: none;
    border-top: 1px solid var(--border);
    width: 100%;
    justify-content: space-between;
    white-space: normal;
    font-size: 16px;
  }
  .tab-dropdown-panel {
    position: static;
    min-width: unset;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  /* Строки на мобайле — от края до края */
  .dd-item { padding: 16px 12px; }

  /* Cards */
  .registry-section { padding: 32px 12px 60px; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }
  .solution-card { height: 380px; }
  .card-content { min-height: 180px; padding: 20px 20px 24px; }
  .card-name { font-size: 20px; }
  .card-desc { font-size: 14px; -webkit-line-clamp: 2; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-nav { gap: 24px; flex-direction: column; }

  /* Cookie */
  .cookie-banner {
    width: calc(100% - 24px);
    flex-direction: column;
    align-items: flex-start;
    bottom: 12px;
    gap: 16px;
  }
  .cookie-actions { width: 100%; }
  .btn-cookie-accept, .btn-cookie-settings { flex: 1; text-align: center; }
  .btn-cookie-close { position: absolute; top: 12px; right: 16px; }
}

@media (max-width: 480px) {
  .page-hero-title { font-size: 36px; }
  .solution-card { height: 320px; }
  .card-name { font-size: 18px; }
}
