/* ===== HOME HERO — три сферы в ряд, hover расширяет ===== */
.home-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--pad-x) clamp(40px, 6vw, 80px);
}

.home-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.home-hero-top .pick {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.home-hero-top .pick::before { content: "↓"; color: var(--orange); font-size: 13px; }

.cat-row {
  display: flex;
  gap: 14px;
  height: clamp(520px, 64vh, 680px);
}
.cat {
  position: relative;
  flex: 1;
  border: 1px solid transparent;
  border-radius: 22px;
  background: transparent;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 2.4vw, 36px);
  transition: flex 0.65s cubic-bezier(.22,.61,.36,1),
              color 0.4s ease,
              border-color 0.4s ease;
  min-width: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55), 0 2px 16px rgba(0,0,0,0.35);
}
.cat::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -2;
  opacity: 1;
  transition: opacity 0.55s ease, transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.cat::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.35) 100%);
  opacity: 0;
  transition: opacity 0.55s ease;
}
.cat.industry::before {
  background-image:
    linear-gradient(155deg, rgba(0,0,0,0.5) 100%),
    url('../assets/images/home-backgrounds/industry.png');
  background-size: cover;
  background-position: center;
}
.cat.it::before {
  background-image:
    linear-gradient(155deg, rgba(0,0,0,0.6) 100%),
    url('../assets/images/home-backgrounds/it.png');
  background-size: cover;
  background-position: center;
}
.cat.med::before {
  background-image:
    linear-gradient(155deg, rgba(0,0,0,0.5) 100%),
    url('../assets/images/home-backgrounds/medicine.png');
  background-size: cover;
  background-position: center;
}

.cat-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
  transition: opacity 0.3s ease;
}
.cat-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.18em;
  font-weight: 600;
  transition: color 0.4s ease;
}
.cat-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.2);
  transition: all 0.4s ease;
  white-space: nowrap;
  margin-bottom: 18px;
}

.cat-mid {
  margin-top: auto;
}
.cat-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  transform: rotate(0deg);
  transform-origin: center;
  transition: color 0.4s ease, font-size 0.55s cubic-bezier(.22,.61,.36,1), transform 0.65s cubic-bezier(.22,.61,.36,1);
}
.cat-sub {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,0.72);
  margin: 0;
  max-width: 320px;
  transition: color 0.4s ease, opacity 0.4s ease, max-height 0.5s ease;
  max-height: 80px;
}

.cat-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex; flex-direction: column;
  gap: 9px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(.22,.61,.36,1), opacity 0.4s ease 0.05s, margin 0.4s ease;
}
.cat-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.88);
  display: flex; align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.cat-list li::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 9px;
}

.cat-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  margin-top: 22px;
  transition: opacity 0.3s ease;
}
.cat-cta {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  transition: color 0.4s ease;
}
.cat-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s ease;
  font-size: 17px;
  color: #fff;
}

/* hover behaviour */
@media (hover: hover) {
  .cat-row:hover .cat { flex: 0.65; }
  .cat-row:hover .cat:hover { flex: 2.6; }
  .cat-row:hover .cat:hover .cat-title { font-size: 52px; }

  .cat:hover::before { transform: scale(1.04); }
  .cat:hover::after { opacity: 1; }
  .cat:hover .cat-tag {
    color: #fff;
    border-color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.15);
  }
  .cat:hover .cat-sub {
    opacity: 0;
    max-height: 0;
    margin: 0;
  }
  .cat:hover .cat-list {
    max-height: 260px;
    opacity: 1;
  }
  .cat:hover .cat-cta { color: #fff; }
  .cat:hover .cat-arrow {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    transform: rotate(-45deg);
  }

  /* siblings — заголовок уходит в центр и поворачивается */
  .cat-row:hover .cat:not(:hover) .cat-top,
  .cat-row:hover .cat:not(:hover) .cat-bottom {
    opacity: 0;
    pointer-events: none;
  }
  .cat-row:hover .cat:not(:hover) .cat-sub,
  .cat-row:hover .cat:not(:hover) .cat-tag {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding-top: 0; padding-bottom: 0;
    border-color: transparent;
  }
  .cat-row:hover .cat:not(:hover) .cat-mid {
    position: absolute;
    inset: 0;
    left: 50%;
    bottom: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cat-row:hover .cat:not(:hover) .cat-title {
    font-size: 26px;
    white-space: nowrap;
    margin: 0;
    transform: rotate(-60deg);
  }
}

/* strip + about + cycle */
.strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
}
.strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  align-items: center;
}
.strip-item .k {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.strip-item .v {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
  display: block;
  margin-top: 4px;
}

.about {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 110px) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.about-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 24px;
}
.about h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
}
.about p {
  font-size: 17px; line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 640px;
}
.about p strong { color: var(--ink); font-weight: 600; }

.cycle-compact {
  background: var(--paper-warm);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.cycle-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 90px) var(--pad-x);
}
.cycle-head-row {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px;
  margin-bottom: 36px;
}
.cycle-head-row h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.015em;
  margin: 0;
}
.cycle-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.cycle-cell {
  padding: 24px 18px 24px 16px;
  border-right: 1px solid var(--line-soft);
}
.cycle-cell:last-child { border-right: none; }
.cycle-cell .n {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.18em;
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.cycle-cell h4 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.cycle-cell p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.mini-cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 90px) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.mini-cta h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 720px;
  line-height: 1.1;
}
.mini-cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .cat-row { flex-direction: column; height: auto; gap: 12px; }
  .cat { min-height: 280px; }
  .cat-list { max-height: 260px; opacity: 1; margin-top: 14px; }
  .strip-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .about { grid-template-columns: 1fr; }
  .cycle-row { grid-template-columns: 1fr; }
  .cycle-cell { border-right: none; border-bottom: 1px solid var(--line-soft); padding: 20px 0; }
  .mini-cta { grid-template-columns: 1fr; }

  .cat.industry::before {
  background-image:
    linear-gradient(155deg, rgba(0,0,0,0.7) 100%),
    url('../assets/images/home-backgrounds/industry.png');
  }
  .cat.it::before {
    background-image:
      linear-gradient(155deg, rgba(0,0,0,0.7) 100%),
      url('../assets/images/home-backgrounds/it.png');
  }
  .cat.med::before {
    background-image:
      linear-gradient(155deg, rgba(0,0,0,0.7) 100%),
      url('../assets/images/home-backgrounds/medicine.png');
  }
}
