:root {
  color-scheme: light dark;
  --bg: #101820;
  --panel: #f7faf7;
  --panel-2: #edf3ed;
  --ink: #162018;
  --muted: #657267;
  --line: rgba(22, 32, 24, 0.14);
  --accent: #2ec27e;
  --accent-ink: #07110b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(46, 194, 126, 0.18), transparent 40%),
    radial-gradient(circle at 84% 8%, rgba(255, 255, 255, 0.12), transparent 28%),
    var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 54px);
}

.hero {
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 28px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(17px, 2.1vw, 22px);
}

.endpoint {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-2);
  overflow: hidden;
}

.endpoint__label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.endpoint a {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 800;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 24px 0;
  padding: 0 4px;
}

.toolbar__hint {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 850;
  white-space: nowrap;
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

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

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0b1114;
}

.card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__price {
  position: absolute;
  right: 14px;
  top: 14px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 900;
}

.card__body {
  padding: 18px;
}

.card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.card__meta {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.card h2 {
  margin-top: 3px;
  font-size: 25px;
  line-height: 1.1;
}

.card__badge {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card__desc {
  min-height: 68px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.card__tags span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.shots {
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 10px;
  margin-top: 16px;
}

.shots a {
  overflow: hidden;
  border-radius: 14px;
  background: var(--panel-2);
}

.shots img {
  width: 100%;
  height: 92px;
  object-fit: cover;
}

.shots a:last-child img {
  object-position: top center;
}

.card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.text-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--muted);
}

.state--error {
  color: #b42318;
}

@media (max-width: 1040px) {
  .hero__grid,
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 16px;
  }

  .hero {
    padding: 24px;
    border-radius: 22px;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar__hint {
    color: rgba(255, 255, 255, 0.68);
  }

  .card__actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --panel: #17231c;
    --panel-2: #1d2a22;
    --ink: #eef8ef;
    --muted: #9cad9f;
    --line: rgba(238, 248, 239, 0.14);
  }
}
