button {
  font: inherit;
}

.button {
  border: 0;
  cursor: pointer;
}

.footer-link {
  display: block;
  width: fit-content;
  margin-top: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.footer-link:hover {
  color: var(--accent-strong);
}

body.contact-modal-open {
  overflow: hidden;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.contact-modal.is-open {
  display: flex;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 6, 0.78);
  backdrop-filter: blur(10px);
}

.contact-modal__dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(53, 208, 135, 0.18), transparent 28rem),
    linear-gradient(180deg, rgba(18, 42, 31, 0.98), rgba(9, 22, 16, 0.98));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.52);
  padding: clamp(28px, 5vw, 44px);
}

.contact-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.contact-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.contact-modal h2 {
  max-width: 560px;
  margin-top: 14px;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.contact-modal__intro {
  margin-top: 16px;
  color: var(--muted-strong);
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-weight: 800;
  font-size: 0.9rem;
}

.contact-form label em {
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

.contact-form select option {
  background: #10251c;
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(122, 240, 179, 0.72);
  box-shadow: 0 0 0 4px rgba(53, 208, 135, 0.14);
}

.contact-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.contact-form__status {
  min-height: 1.4em;
  color: var(--muted-strong);
  font-size: 0.94rem;
}

.contact-form__status.is-error {
  color: #ffc9c9;
}

.contact-form__status.is-success {
  color: var(--accent-strong);
}

.contact-form button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 980px) {
  .section {
    padding-block: 76px;
  }

  .nav {
    gap: 14px;
  }

  .nav-links {
    gap: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: 820px;
    padding: 82px 0 360px;
    background-image:
      linear-gradient(
        180deg,
        rgba(7, 17, 13, 0.99) 0%,
        rgba(7, 17, 13, 0.97) 42%,
        rgba(7, 17, 13, 0.72) 61%,
        rgba(7, 17, 13, 0.16) 100%
      ),
      url("../img/hero.png");
    background-size: auto 58%, auto 58%;
    background-position: center bottom, center bottom;
    background-repeat: no-repeat;
  }

  .hero-grid,
  .split-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    max-width: 680px;
    transform: none;
  }

  .hero-copy h1 {
    max-width: 620px;
    font-size: clamp(3.2rem, 11vw, 5.1rem);
  }

  .hero-lede {
    max-width: 620px;
  }

  .module-grid,
  .card-grid.three,
  .card-grid.four {
    grid-template-columns: 1fr 1fr;
  }

  .network-steps {
    gap: 44px;
  }

  .network-step,
  .network-step.reverse,
  .team-story-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .network-step.reverse .network-copy,
  .network-step.reverse .network-image-wrap {
    order: initial;
  }

  .network-image-wrap {
    height: clamp(260px, 56vw, 380px);
  }

  .cta-card {
    padding: 44px;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(var(--max), calc(100% - 28px));
  }

  .section {
    padding-block: 56px;
  }

  .site-header {
    position: sticky;
  }

  .nav {
    min-height: auto;
    padding: 12px 0 10px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }

  .nav-links {
    margin-inline: -4px;
    padding-bottom: 4px;
    font-size: 0.88rem;
  }

  .nav-links a {
    padding: 8px 10px;
    white-space: nowrap;
  }

  .hero {
    min-height: 780px;
    padding: 46px 0 340px;
    background-size: auto 50%, auto 50%;
    background-position: center bottom, center bottom;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 13vw, 4.15rem);
    letter-spacing: -0.07em;
  }

  .hero-lede {
    margin-top: 20px;
    font-size: 1rem;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 26px;
  }

  .hero-actions .button,
  .button {
    width: 100%;
    min-height: 50px;
  }

  .split-section h2,
  .section-heading h2,
  .updates-grid h2,
  .cta-card h2,
  .modules-intro h2,
  .network-intro h2,
  .network-copy h3 {
    font-size: clamp(2rem, 10vw, 2.8rem);
    letter-spacing: -0.055em;
  }

  .rich-copy,
  .section-heading p:not(.eyebrow),
  .section-copy,
  .modules-intro p:not(.eyebrow),
  .network-intro p:not(.eyebrow),
  .network-copy p {
    font-size: 0.98rem;
  }

  .modules-section {
    padding-block: 56px;
    background-image:
      linear-gradient(
        180deg,
        rgba(7, 17, 13, 0.98) 0%,
        rgba(7, 17, 13, 0.94) 58%,
        rgba(7, 17, 13, 0.78) 100%
      ),
      url("../img/music-pavel-danilyuk.jpg");
    background-position: center bottom;
  }

  .modules-intro,
  .network-intro {
    margin-bottom: 28px;
    text-align: left;
  }

  .network-intro {
    margin-inline: 0;
  }

  .network-intro .eyebrow {
    margin-inline: 0;
  }

  .module-grid,
  .card-grid.three,
  .card-grid.four,
  .stats-grid,
  .updates-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .module-card,
  .principle-card,
  .team-card,
  .info-card,
  .update-card {
    border-radius: 22px;
    padding: 22px;
  }

  .network-steps {
    gap: 36px;
  }

  .network-image-wrap {
    height: clamp(230px, 68vw, 320px);
    border-radius: 24px;
  }

  .network-caption {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }

  .team-card-grid {
    margin-top: 28px;
  }

  .cta-card,
  .legal-copy {
    border-radius: 26px;
    padding: 28px;
  }

  .site-footer {
    padding-top: 42px;
  }

  .footer-grid {
    gap: 24px;
  }

  .contact-modal {
    align-items: flex-end;
    padding: 0;
  }

  .contact-modal__dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 28px 28px 0 0;
    padding: 28px;
  }

  .contact-form__grid,
  .contact-form__footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form__footer .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 740px;
    padding-bottom: 300px;
    background-size: auto 44%, auto 44%;
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 14vw, 3.35rem);
  }

  .eyebrow,
  .tag,
  .card-label {
    font-size: 0.66rem;
    letter-spacing: 0.13em;
  }
}
