.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--color-bg-deep);
  isolation: isolate;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../../img/fon-glav.jpg");
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 3, 2, 0.92) 0%, rgba(0, 3, 2, 0.72) 28%, rgba(0, 3, 2, 0.22) 58%, rgba(0, 3, 2, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 42%, var(--color-bg) 100%),
    radial-gradient(circle at 70% 42%, rgba(140, 255, 26, 0.12), transparent 34%);
  content: "";
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 48px;
}

.hero__content {
  width: min(680px, 48vw);
  max-width: 680px;
  padding-top: 30px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.hero__eyebrow span {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  box-shadow: 0 0 18px rgba(140, 255, 26, 0.28);
}

.hero__title {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(40px, 3.6vw, 62px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-transform: uppercase;
  text-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.hero__title span {
  display: block;
}

.hero__title-accent {
  color: var(--color-accent);
  text-shadow:
    0 0 18px rgba(140, 255, 26, 0.32),
    0 0 44px rgba(140, 255, 26, 0.18);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  width: fit-content;
  margin: 42px auto 0;
  color: rgba(244, 247, 242, 0.72);
  font-size: 15px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.04em;
  text-align: center;
  transform: translateX(-38px);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
}

.hero__meta span + span::before {
  width: 4px;
  height: 4px;
  margin: 0 13px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(140, 255, 26, 0.42);
  content: "";
}

.hero__team {
  width: fit-content;
  margin: 14px auto 0;
  color: rgba(244, 247, 242, 0.56);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  transform: translateX(-38px);
}

.hero__seo-lead {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(245, 255, 238, 0.72);
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
}

.hero__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 14px;
  margin-top: 34px;
}

.hero__primary-stack {
  display: inline-grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(230px, auto) minmax(220px, auto);
  align-items: stretch;
  gap: 10px 12px;
}

.hero__btn,
.hero__video {
  display: inline-flex;
  width: auto;
  flex: 0 0 auto;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    background 220ms var(--ease-out);
}

.hero__btn {
  padding: 0 22px;
}

.hero__btn--primary {
  background:
    linear-gradient(135deg, #b6ff52 0%, var(--color-accent) 52%, #54bf00 100%);
  box-shadow:
    0 0 30px rgba(140, 255, 26, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  color: #061006;
}

.hero__academy-btn {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(0, 216, 255, 0.58);
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 20%, rgba(0, 216, 255, 0.2), transparent 36%),
    linear-gradient(180deg, rgba(3, 24, 32, 0.72), rgba(1, 8, 12, 0.62));
  color: #ddfbff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(0, 216, 255, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.34),
    0 0 26px rgba(0, 216, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    border-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    background 220ms var(--ease-out);
}

.hero__concept-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__concept-row .hero__academy-btn {
  grid-column: auto;
  justify-self: auto;
}

.hero__academy-btn:hover {
  border-color: rgba(0, 216, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(0, 216, 255, 0.1),
    0 14px 36px rgba(0, 0, 0, 0.38),
    0 0 32px rgba(0, 216, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero__academy-btn-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(0, 216, 255, 0.13);
  color: rgba(221, 251, 255, 0.72);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__academy-btn-text {
  white-space: nowrap;
}

.hero__stream-btn {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(121, 112, 255, 0.52);
  border-radius: 14px;
  background:
    radial-gradient(circle at 22% 18%, rgba(0, 216, 255, 0.2), transparent 34%),
    radial-gradient(circle at 86% 45%, rgba(140, 255, 26, 0.11), transparent 38%),
    linear-gradient(180deg, rgba(18, 16, 42, 0.74), rgba(3, 7, 14, 0.64));
  color: #edf2ff;
  cursor: default;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(121, 112, 255, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(0, 216, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    border-color 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    background 220ms var(--ease-out);
}

.hero__stream-btn:hover {
  border-color: rgba(151, 143, 255, 0.68);
  box-shadow:
    0 0 0 1px rgba(121, 112, 255, 0.1),
    0 14px 36px rgba(0, 0, 0, 0.38),
    0 0 30px rgba(0, 216, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero__academy-icon,
.hero__stream-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  color: rgba(169, 246, 255, 0.86);
  filter: drop-shadow(0 0 10px rgba(0, 216, 255, 0.28));
}

.hero__academy-icon-svg,
.hero__stream-icon-svg {
  display: block;
  width: 22px;
  height: 22px;
}

.hero__academy-icon-svg rect,
.hero__academy-icon-svg path,
.hero__stream-icon-svg rect,
.hero__stream-icon-svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero__stream-icon-svg path:nth-of-type(1) {
  fill: currentColor;
  stroke: none;
}

.hero__stream-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(124, 255, 0, 0.11);
  color: rgba(218, 255, 205, 0.72);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__btn--secondary {
  align-self: flex-start;
  border: 1px solid rgba(140, 255, 26, 0.38);
  background:
    radial-gradient(circle at 85% 50%, rgba(140, 255, 26, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(14, 32, 20, 0.72), rgba(3, 10, 6, 0.62));
  box-shadow:
    0 0 0 1px rgba(140, 255, 26, 0.06),
    0 14px 34px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: var(--color-text);
}

.hero__btn-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(6, 16, 6, 0.2);
}

.hero__btn-icon--telegram {
  width: 34px;
  height: 34px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.32), transparent 34%),
    rgba(5, 16, 8, 0.16);
  color: #061006;
}

.hero__btn-svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: currentColor;
  transform: scale(1.05);
}

.hero__btn-arrow {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--color-accent);
  transition: transform 220ms var(--ease-out);
}

.hero__btn-arrow-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
  filter: drop-shadow(0 0 8px rgba(140, 255, 26, 0.55));
}

.hero__video {
  align-self: flex-start;
  margin-top: 0;
  padding: 0 4px 0 10px;
  background: transparent;
  color: rgba(244, 247, 242, 0.78);
  cursor: pointer;
  white-space: nowrap;
}

.hero__primary-stack .hero__video {
  width: auto;
  align-self: stretch;
  justify-content: center;
  margin: 0;
  padding: 0 16px;
}

.hero__video-icon-wrap {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.hero__video-icon {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 10px rgba(140, 255, 26, 0.62))
    drop-shadow(0 0 22px rgba(140, 255, 26, 0.24));
  transition:
    transform 220ms var(--ease-out),
    filter 220ms var(--ease-out);
}

.hero__btn:hover,
.hero__video:hover {
  transform: translateY(-1px);
}

.hero__video:hover .hero__video-icon {
  filter:
    drop-shadow(0 0 12px rgba(140, 255, 26, 0.8))
    drop-shadow(0 0 28px rgba(140, 255, 26, 0.34));
  transform: translateX(2px) scale(1.06) rotate(-3deg);
}

.hero__btn--secondary:hover {
  border-color: rgba(140, 255, 26, 0.62);
  background:
    radial-gradient(circle at 85% 50%, rgba(140, 255, 26, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(20, 42, 26, 0.78), rgba(4, 14, 8, 0.68));
  box-shadow:
    0 0 0 1px rgba(140, 255, 26, 0.1),
    0 18px 44px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(140, 255, 26, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.hero__btn--secondary:hover .hero__btn-arrow {
  transform: translateX(3px);
}

.hero-portfolio-heading {
  width: 100%;
  margin: 54px auto 22px;
  text-align: center;
}

.hero-portfolio-heading h2 {
  position: relative;
  display: inline-flex;
  max-width: min(100%, 720px);
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 22px;
  border: 1px solid rgba(140, 255, 26, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.09), transparent 34%),
    rgba(88, 255, 20, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 28px rgba(91, 255, 20, 0.08);
  color: rgba(238, 255, 232, 0.88);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-portfolio-heading h2::before,
.hero-portfolio-heading h2::after {
  content: "";
  width: 46px;
  height: 1px;
  flex: 0 0 46px;
  background: linear-gradient(90deg, transparent, rgba(140, 255, 26, 0.5));
  box-shadow: 0 0 16px rgba(140, 255, 26, 0.18);
}

.hero-portfolio-heading h2::before {
  margin-right: 14px;
}

.hero-portfolio-heading h2::after {
  margin-left: 14px;
  transform: scaleX(-1);
}

.hero-services {
  display: grid;
  width: min(100%, 1320px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.hero-service-card {
  position: relative;
  display: grid;
  min-height: 116px;
  height: 100%;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(140, 255, 26, 0.26);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 45%, rgba(140, 255, 26, 0.105), transparent 42%),
    linear-gradient(180deg, rgba(10, 24, 15, 0.82), rgba(3, 10, 6, 0.68));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(140, 255, 26, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(14px);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 200ms var(--ease-out),
    background 200ms var(--ease-out),
    transform 200ms var(--ease-out);
}

.hero-service-card--link {
  cursor: pointer;
}

.hero-service-card--stub {
  cursor: default;
}

.hero-service-card--link:hover,
.hero-service-card--link:focus-visible {
  border-color: rgba(140, 255, 26, 0.42);
  background:
    radial-gradient(circle at 18% 45%, rgba(140, 255, 26, 0.15), transparent 44%),
    linear-gradient(180deg, rgba(14, 32, 19, 0.88), rgba(4, 14, 8, 0.74));
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.42),
    0 0 32px rgba(140, 255, 26, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.hero-service-card--stub:hover {
  transform: none;
}

.hero-service-card--in-progress .hero-service-card__body {
  align-self: stretch;
}

.hero-service-card__icon {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(140, 255, 26, 0.32);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 45%, rgba(140, 255, 26, 0.18), rgba(140, 255, 26, 0.045));
  box-shadow:
    0 0 22px rgba(140, 255, 26, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--color-accent);
}

.hero-service-card__icon-img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(140, 255, 26, 0.42));
}

.hero-service-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-service-card__title {
  display: flex;
  min-height: 22px;
  align-items: center;
  margin: 0;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.hero-service-card__text {
  display: flex;
  min-height: 38px;
  align-items: flex-start;
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.32;
}

.hero-service-card__status {
  display: block;
  margin-top: auto;
  padding-top: 10px;
  color: rgba(175, 255, 135, 0.62);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
