/* =========================================================
   HERO — minimal, motif background
   ========================================================= */
.il-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: clamp(36px, 5vw, 56px);
  background: #fff;
  clip-path: inset(0);
  overflow: hidden;
}

.il-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.il-hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(28, 25, 23, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 80% 50%, #000 30%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 80% 50%, #000 30%, transparent 95%);
}

.il-hero__bg-glow {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(28, 25, 23, .14) 0%,
      rgba(28, 25, 23, .04) 40%,
      rgba(28, 25, 23, 0) 70%);
  filter: blur(40px);
  transform: translateY(-50%);
  animation: il-glow 8s ease-in-out infinite alternate;
}

@keyframes il-glow {
  0% {
    opacity: .6;
    transform: translateY(-50%) scale(.9);
  }

  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
  }
}

.il-hero>.container {
  position: relative;
  z-index: 1;
}

.il-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 44px);
  font-size: var(--t-xs);
  color: var(--text-muted);
}

.il-crumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.il-crumbs a:hover {
  color: var(--text);
}

.il-crumbs i {
  font-size: .75rem;
  color: var(--text-light);
}

.il-crumbs span {
  color: var(--text);
  font-weight: 500;
}

.il-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 14px;
}

.il-hero__meta::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--text-muted);
}

.il-hero__title {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--text);
  margin-bottom: 12px;
  max-width: 720px;
}

.il-hero__title em {
  font-style: normal;
  color: var(--accent);
}

.il-hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 640px;
}

/* =========================================================
   TABS RAIL — big filled tab cards in a horizontal flex rail
   - Each tab grows to share the row width (3-4 tabs fill the
     viewport evenly); minimum tab width is enforced via flex
     basis so beyond 4 tabs the row overflows and scrolls
   - Click a tab and JS centres it inside the rail (clicked
     tab near the right edge → rail scrolls left so the user
     sees what comes next)
   ========================================================= */
.il-tabs-section {
  background: var(--bg-soft);
  padding: clamp(28px, 4vw, 44px) 0 0;
}

.il-tabs-wrap {
  position: relative;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.il-tabs {
  display: flex;
  gap: clamp(12px, 1.5vw, 16px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 4px;
  margin: -4px -4px 0;
}

.il-tabs::-webkit-scrollbar {
  display: none;
}

/* Each tab — big filled card, icon + count chip + label + desc.
   `flex: 1 0 260px` means: grow to fill, never shrink, min basis
   260px. With 3-4 tabs at >1100px viewport everything fits and
   tabs share the row evenly. With 5+ tabs (or a narrow viewport)
   the row overflows and the rail scrolls. */
.il-tab {
  flex: 1 0 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 28px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    transform var(--t-base-d) var(--ease),
    box-shadow var(--t-base-d) var(--ease);
}

.il-tab:hover:not(.is-active) {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.il-tab.is-active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
  box-shadow: var(--shadow-md);
}

/* Top row inside the tab: icon left, count chip right */
.il-tab__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.il-tab__ico {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 25, 23, .08);
  color: var(--accent);
  border-radius: 14px;
  font-size: 1.65rem;
  flex-shrink: 0;
  transition: background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.il-tab.is-active .il-tab__ico {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.il-tab__count {
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 10px;
  background: var(--bg-soft);
  border-radius: 999px;
  letter-spacing: .04em;
  transition: background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.il-tab.is-active .il-tab__count {
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .8);
}

.il-tab__label {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
  margin: 0;
}

.il-tab__desc {
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  transition: color var(--t-fast) var(--ease);
}

.il-tab.is-active .il-tab__desc {
  color: rgba(255, 255, 255, .7);
}

/* =========================================================
   PANES — show/hide on tab click. No carousel.
   ========================================================= */
.il-panes {
  padding-bottom: clamp(56px, 8vw, 96px);
}

.il-pane {
  display: none;
  animation: il-fade .25s ease-out;
}

.il-pane.is-active {
  display: block;
}

@keyframes il-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   GRID + CARDS
   ========================================================= */
.il-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.il-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-fast) var(--ease),
    transform var(--t-base-d) var(--ease),
    box-shadow var(--t-base-d) var(--ease);
}

.il-card:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.il-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  overflow: hidden;
}

.il-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow) var(--ease);
}

.il-card:hover .il-card__media img {
  transform: scale(1.04);
}

/* Body */
.il-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  flex: 1;
}

.il-card__code {
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
  font-weight: 500;
}

.il-card__name {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}

.il-card__desc {
  font-size: var(--t-sm);
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.il-card__cta {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text-muted);
  align-self: flex-start;
  transition: color var(--t-fast) var(--ease);
}

.il-card__cta i {
  font-size: .9rem;
  transition: transform var(--t-base-d) var(--ease);
}

.il-card:hover .il-card__cta {
  color: var(--accent);
}

.il-card:hover .il-card__cta i {
  transform: translateX(3px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
  .il-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .il-hero {
    padding-top: calc(var(--header-h) + 24px);
  }

  /* Rail edges bleed to viewport so swipe / scroll feels uncramped */
  .il-tabs {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Mobile: shrink basis so 1-2 tabs are visible at a time on a
     phone (the rest scroll into view). Also tighten internal
     padding and icon size. */
  .il-tab {
    flex: 0 0 240px;
    padding: 18px;
  }

  .il-tab__ico {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    border-radius: 12px;
  }

  .il-tab__label {
    font-size: 1.05rem;
  }

  .il-tab__desc {
    font-size: .85rem;
  }

  .il-grid {
    grid-template-columns: 1fr;
  }

  .il-card__media {
    aspect-ratio: 16 / 10;
  }

  .il-card__body {
    padding: 16px;
  }
}