:root {
  --bg: #f7f6f2;
  --bg-alt: #ffffff;
  --text: #1b1b1b;
  --muted: #6e6e6e;
  --accent: #111111;
  --line: #e3e1db;
  --soft: #f1efe9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.loading {
  padding: 120px 0;
  text-align: center;
  color: var(--muted);
}

.header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.brand__name {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand__tagline {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav__link {
  color: var(--muted);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mode-switch__value {
  font-weight: 600;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--secondary {
  background: var(--bg-alt);
  border-color: var(--line);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
}

.hero {
  padding: 80px 0 60px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero__title {
  font-size: clamp(32px, 4vw, 48px);
  margin: 12px 0;
}

.hero__text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.hero__media {
  display: grid;
  gap: 16px;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.section {
  padding: 70px 0;
}

.section--alt {
  background: var(--soft);
}

.section__head {
  margin-bottom: 28px;
}

.section__title {
  font-size: clamp(26px, 3vw, 36px);
  margin: 8px 0;
}

.section__text {
  color: var(--muted);
  max-width: 620px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  display: grid;
  gap: 12px;
}

.card__title {
  font-weight: 600;
}

.card__text {
  color: var(--muted);
  font-size: 14px;
}

.card__note {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.media-placeholder {
  border: 1px dashed #bcb7ad;
  border-radius: 16px;
  min-height: 160px;
  padding: 14px;
  display: grid;
  gap: 8px;
  background: #fbfaf7;
}

.media-placeholder__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.media-placeholder__id {
  font-weight: 600;
}

.media-placeholder__prompt {
  font-size: 12px;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 8px 14px;
  background: var(--bg-alt);
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-btn.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.price {
  font-weight: 600;
}

.footer {
  background: #111;
  color: #f7f6f2;
  padding-top: 50px;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.footer__title {
  font-weight: 600;
  margin-bottom: 12px;
}

.footer__text {
  color: rgba(247, 246, 242, 0.7);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: rgba(247, 246, 242, 0.7);
}

.footer__bottom {
  border-top: 1px solid rgba(247, 246, 242, 0.15);
  padding: 16px 0 20px;
  text-align: center;
  color: rgba(247, 246, 242, 0.6);
  font-size: 12px;
  margin-top: 30px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero__inner {
    grid-template-columns: 1fr;
  }
}
