:root {
  color-scheme: dark;
  --bg: #050505;
  --text: #f3f3f3;
  --muted: #a8a8a8;
  --line: #252525;
  --card: #111111;
  --thumb: #3a3a3a;
  --accent: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.narrow {
  width: min(760px, calc(100% - 32px));
}

.intro {
  max-width: 780px;
  margin-bottom: 34px;
}

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

h1 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 26px;
}

h3 {
  font-size: 19px;
  line-height: 1.2;
}

.subtitle {
  margin-top: 18px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.35;
}

.description {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.links,
.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 48px;
}

.links a,
.contacts a,
.button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: #0c0c0c;
  font-size: 14px;
}

.links a:hover,
.contacts a:hover,
.button:hover {
  border-color: var(--accent);
}

.section {
  margin-top: 44px;
}

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

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.thumb {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,0.09) 49% 51%, transparent 52%),
    var(--thumb);
}

.card-body {
  padding: 16px;
}

.card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.status {
  display: inline-flex;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.button {
  margin-top: 16px;
  font-weight: 700;
}

.button.disabled {
  color: var(--muted);
  cursor: default;
}

.button.secondary {
  margin-left: 8px;
  color: var(--muted);
}

.contacts {
  margin-bottom: 0;
}

.status-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px 18px;
  margin: 24px 0;
}

.status-list dt {
  color: var(--muted);
}

.status-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.error {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #7a2b2b;
  border-radius: 8px;
  color: #ffd0d0;
  background: #1a0808;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 24px, 520px);
    padding-top: 36px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .subtitle {
    font-size: 19px;
  }

  .status-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
