:root {
  --page: #f3f3f5;
  --card: #ffffff;
  --wine: #8e1b2b;
  --red: #d21e3c;
  --ink: #1c1c1c;
  --muted: #8a8a8a;
  --line: #ececee;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--page); overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: 12px; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.sheet {
  width: min(100%, 640px);
  min-height: 100vh;
  margin: 0 auto;
}

.mast {
  padding: calc(16px + env(safe-area-inset-top)) 16px 48px;
  background: var(--wine);
  color: #fff;
}

.mast-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.mast a {
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.mast h1 {
  margin: 0;
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.card {
  margin: -32px 12px 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(20, 16, 18, 0.08);
}

.logo {
  display: grid;
  min-height: 64px;
  margin-bottom: 12px;
  place-items: center;
}

.logo img {
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 44px;
  object-fit: contain;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 12px 12px;
}

@media (min-width: 360px) {
  .tiles { grid-template-columns: 1fr 1fr 1fr; }
}

.tiles article {
  padding: 12px;
  border-radius: 14px;
  background: var(--card);
}

.tiles span {
  display: block;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tiles strong {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.block {
  margin: 0 12px 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--card);
}

.block h2 {
  margin: 0 0 10px;
  color: var(--wine);
  font-size: 1.15rem;
}

.block p, .block li {
  color: #4a4a4a;
  font-size: 0.94rem;
  line-height: 1.55;
}

.block p { margin: 0 0 10px; }
.block ul { margin: 0; padding-left: 1.1rem; }
.block li + li { margin-top: 6px; }

.license {
  margin: 0 12px 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--wine);
  color: #fff;
}

.license span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.license strong {
  display: block;
  font-size: clamp(1.1rem, 5vw, 1.4rem);
  overflow-wrap: anywhere;
}

.license p {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
}

.cta {
  display: flex;
  min-height: 44px;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.base {
  padding: 8px 12px calc(24px + env(safe-area-inset-bottom));
}

.base p {
  margin: 8px 4px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.base a {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--card);
  font-weight: 700;
  text-decoration: none;
}

.base a span:last-child { color: var(--red); font-size: 1.3rem; }

.mast a:focus-visible,
.cta:focus-visible,
.base a:focus-visible {
  outline: 3px solid rgba(210, 30, 60, 0.45);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  body { padding: 28px 24px; }
  .sheet {
    overflow: hidden;
    border-radius: 24px;
    background: var(--page);
    box-shadow: 0 20px 50px rgba(20, 16, 18, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
