:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #24252b;
  --muted: #666b78;
  --line: #e8e8ef;
  --accent: #6d28d9;
  --accent-soft: #f1ebff;
  --shadow: 0 24px 70px rgba(30, 30, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration-color: rgba(109, 40, 217, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 56px 24px 34px;
  text-align: center;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  text-decoration: none;
}

.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 23px;
}

.brand-name {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 24px auto 34px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
  font-weight: 500;
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(3, 180px);
  gap: clamp(12px, 2vw, 22px);
  align-items: start;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.hero-gallery img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.store-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 28px auto 0;
}

.store-link {
  display: inline-flex;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.store-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.store-link img {
  width: auto;
  height: 52px;
}

.page-header {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 50px 24px 18px;
  text-align: center;
}

.page-header a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.page-header img {
  width: 72px;
  height: 72px;
  border-radius: 23px;
}

.legal {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 24px 24px 76px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 5vw, 54px);
  box-shadow: 0 18px 60px rgba(34, 34, 48, 0.06);
}

.legal h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
}

.legal h2 {
  margin: 34px 0 10px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.legal p {
  margin: 14px 0;
  color: #393b43;
}

.legal ul {
  margin: 14px 0 22px;
  padding-left: 22px;
  color: #393b43;
}

.legal li + li {
  margin-top: 8px;
}

.contact-box {
  display: inline-flex;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 700;
}

.footer {
  margin-top: auto;
  padding: 28px 24px 30px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: #555967;
  text-align: center;
  font-size: 0.95rem;
}

.footer div {
  font-weight: 600;
}

.footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
}

.footer a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--accent);
}

@media (max-width: 640px) {
  .hero {
    padding-top: 34px;
  }

  .brand {
    margin-bottom: 30px;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .page-header {
    padding-top: 34px;
  }

  .page-header img {
    width: 64px;
    height: 64px;
  }

  .store-links {
    flex-direction: column;
    gap: 10px;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
    gap: 18px;
  }

  .hero-gallery img {
    grid-column: auto;
    width: 100%;
  }

  .store-link {
    height: 54px;
  }

  .store-link img {
    height: 54px;
  }

  .footer nav {
    flex-direction: column;
    gap: 6px;
  }
}
