:root {
  --page: #07070d;
  --panel: #101018;
  --panel-soft: #15151f;
  --text: #f4f1ff;
  --muted: #a7a6b5;
  --soft: #747281;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #b59cff;
  --accent-2: #d9ff70;
  --shadow: rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -10%, rgba(181, 156, 255, 0.22), transparent 34rem),
    linear-gradient(180deg, #0a0912 0%, var(--page) 44rem);
  color: var(--text);
  font-family:
    "Manrope", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 88px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

main,
.contact {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  min-height: 640px;
  display: grid;
  place-items: center;
  padding: 76px 0 92px;
  text-align: center;
}

.intro__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border: 1px solid rgba(181, 156, 255, 0.48);
  border-radius: 999px;
  background: rgba(181, 156, 255, 0.1);
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 70px rgba(99, 75, 180, 0.24);
}

.intro__badge::before {
  content: "/";
  margin-right: 12px;
  color: var(--accent-2);
}

.intro__content {
  width: min(920px, 100%);
  display: grid;
  gap: 28px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: #eee8ff;
  font-size: clamp(54px, 8vw, 104px);
  font-weight: 850;
  line-height: 0.92;
  text-wrap: balance;
}

.intro__content p {
  width: min(820px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(20px, 2.3vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  text-wrap: balance;
}

.cases {
  padding: 22px 0 96px;
}

.section-head {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}

.section-head p {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.case-list {
  display: grid;
  gap: 16px;
}

.case-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    var(--panel);
  box-shadow: 0 28px 80px var(--shadow);
}

.case-toggle {
  width: 100%;
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 42px;
  gap: 22px;
  align-items: center;
  padding: 24px 26px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.case-toggle:focus-visible,
.contact-form input:focus-visible,
.contact-form button:focus-visible,
.consent input:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.case-title {
  min-width: 0;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 760;
  line-height: 1.05;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.case-meta,
.case-type {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.case-type {
  color: var(--accent);
  background: rgba(181, 156, 255, 0.09);
}

.case-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
}

.case-icon::before,
.case-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transform: translate(-50%, -50%);
}

.case-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity 180ms ease;
}

.case-item.is-open .case-icon::after {
  opacity: 0;
}

.case-panel {
  padding: 0 26px 26px;
}

.case-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-bottom: 16px;
}

.case-detail-card {
  min-width: 0;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  padding: 22px;
}

.case-details h3 {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.case-details p {
  margin-top: 22px;
  color: #dddbe8;
  font-size: 17px;
  line-height: 1.55;
}

.case-details ul {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  color: #dddbe8;
  font-size: 16px;
  line-height: 1.45;
  list-style: none;
}

.case-details li {
  position: relative;
  padding-left: 24px;
}

.case-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 18px rgba(217, 255, 112, 0.45);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-width: 0;
  min-height: 156px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(217, 255, 112, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 10%, rgba(217, 255, 112, 0.2), transparent 12rem),
    var(--panel-soft);
}

.metric-audio {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  align-content: center;
}

.metric-audio strong {
  display: block;
}

.audio-play {
  width: 72px;
  height: 72px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(217, 255, 112, 0.45);
  border-radius: 50%;
  background: rgba(217, 255, 112, 0.12);
  color: var(--accent-2);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.audio-play:hover {
  transform: scale(1.04);
  border-color: var(--accent-2);
  background: rgba(217, 255, 112, 0.18);
}

.audio-play__icon {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid currentColor;
}

.audio-play.is-playing .audio-play__icon {
  width: 22px;
  height: 24px;
  margin-left: 0;
  border: 0;
  position: relative;
}

.audio-play.is-playing .audio-play__icon::before,
.audio-play.is-playing .audio-play__icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 7px;
  height: 24px;
  border-radius: 999px;
  background: currentColor;
}

.audio-play.is-playing .audio-play__icon::before {
  left: 0;
}

.audio-play.is-playing .audio-play__icon::after {
  right: 0;
}

.metric strong {
  color: var(--accent-2);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 860;
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.metric span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 36px;
  padding: 56px 0 68px;
  border-top: 1px solid var(--line);
}

.contact__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.contact__copy p {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact__copy h2 {
  max-width: 720px;
  color: var(--text);
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 850;
  line-height: 0.96;
  text-wrap: balance;
}

.contact__copy span {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.4;
}

.contact__copy a {
  margin-top: auto;
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.contact-form,
.success-message {
  align-self: start;
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 22px 64px var(--shadow);
}

.contact-form[hidden],
.success-message[hidden] {
  display: none;
}

.success-message h3 {
  color: var(--accent-2);
  font-size: 28px;
  font-weight: 850;
  line-height: 1.05;
}

.success-message p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.success-message a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.contact-form label:not(.consent) {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input[type="tel"] {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--text);
  font-size: 22px;
  background: rgba(0, 0, 0, 0.18);
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent-2);
}

.contact-form button {
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  background: var(--accent-2);
  color: #141414;
  font-size: 17px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.contact-form button:hover {
  transform: translateY(-1px);
  background: #ecff9f;
}

.contact-form button:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

@media (max-width: 980px) {
  .intro {
    min-height: 560px;
    padding: 58px 0 72px;
  }

  .case-toggle {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 14px;
  }

  .case-tags {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .case-icon {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .case-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  main,
  .contact {
    width: min(100% - 24px, 620px);
  }

  .intro {
    min-height: 520px;
    padding: 44px 0 58px;
  }

  .intro__badge {
    min-height: 48px;
    padding: 0 22px;
    font-size: 15px;
  }

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

  .case-toggle {
    padding: 22px;
  }

  .case-panel {
    padding: 0 16px 18px;
  }

  .case-details,
  .metrics {
    grid-template-columns: 1fr;
  }

  .case-detail-card,
  .metric {
    min-height: auto;
  }

  .contact {
    gap: 28px;
  }
}

@media (max-width: 520px) {
  main,
  .contact {
    width: min(100% - 20px, 420px);
  }

  h1 {
    font-size: 48px;
  }

  .intro__content p {
    font-size: 18px;
  }

  .cases {
    padding-bottom: 64px;
  }

  .case-item,
  .contact-form {
    border-radius: 18px;
  }

  .case-title {
    font-size: 23px;
  }

  .metric strong {
    font-size: 38px;
  }

  .metric-audio {
    grid-template-columns: 1fr;
  }

  .audio-play {
    width: 64px;
    height: 64px;
  }

  .contact-form input[type="tel"] {
    font-size: 18px;
  }
}
