:root {
  --ink: #1c1914;
  --ink-soft: #4a4338;
  --muted: #6f675c;
  --paper: #f3efe6;
  --paper-2: #e7e1d4;
  --cta: #e45d8a;
  --cta-ink: #fff7fa;
  --cta-deep: #c43d6c;
  --social: #2f7a4f;
  --social-ink: #f3fff6;
  --social-soft: #d8efe0;
  --service: #e8b84a;
  --service-ink: #2a2208;
  --service-soft: #f7e7b8;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(28, 25, 20, 0.12);
  --shadow: 0 14px 40px rgba(28, 25, 20, 0.1);
  --radius: 22px;
  --font-brand: 'Source Serif 4', Georgia, serif;
  --font-ui: 'Manrope', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.45;
  background:
    radial-gradient(900px 420px at 12% -8%, #ffe8f0 0%, transparent 55%),
    radial-gradient(700px 380px at 100% 8%, #d9f0e1 0%, transparent 50%),
    radial-gradient(800px 360px at 50% 100%, #ffe9b5 0%, transparent 55%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.page {
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 28px 18px 72px;
}

.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 10px;
}

.lang-btn {
  min-width: 44px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang-btn.active,
.lang-btn[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.brand-block {
  text-align: center;
  margin-bottom: 22px;
  animation: rise 0.7s ease both;
}

.brand {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-sm {
  font-size: 1.35rem;
}

.headline {
  margin: 14px 0 8px;
  font-family: var(--font-ui);
  font-size: clamp(1.05rem, 3.8vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 auto;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.stack {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.stack-cta {
  animation: rise 0.7s ease 0.08s both;
}

.stack-social {
  animation: rise 0.7s ease 0.16s both;
}

.pill {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.pill:active {
  transform: scale(0.985);
}

.pill-note {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.88;
}

.pill-cta {
  background: linear-gradient(180deg, #f07aa0, var(--cta));
  color: var(--cta-ink);
}

.pill-social {
  background: linear-gradient(180deg, #3f9463, var(--social));
  color: var(--social-ink);
}

.pill-script {
  font-family: var(--font-brand);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.12rem;
}

.block {
  margin: 28px 0;
  padding: 18px 14px 16px;
  border-radius: calc(var(--radius) + 4px);
  background: color-mix(in srgb, var(--service-soft) 70%, white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: rise 0.7s ease both;
}

.block-services {
  background:
    linear-gradient(180deg, rgba(255, 248, 220, 0.9), rgba(247, 231, 184, 0.75));
}

.block-shop {
  background:
    linear-gradient(180deg, rgba(255, 252, 240, 0.92), rgba(247, 231, 184, 0.7));
}

.block-how {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(232, 239, 230, 0.85));
}

.block-title {
  margin: 0 auto 14px;
  width: fit-content;
  padding: 8px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.block-sub {
  margin: -4px 0 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.service-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 88px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(28, 25, 20, 0.08);
}

.service-name {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.service-hint {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.shop-card {
  appearance: none;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease;
}

.shop-card:hover {
  transform: translateY(-2px);
}

.shop-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #d8d2c4;
}

.shop-card .shop-meta {
  display: block;
  padding: 8px 8px 10px;
}

.shop-card strong {
  display: block;
  font-size: 0.72rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.shop-card .shop-meta > span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.65rem;
}

.how-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  counter-reset: how;
  display: grid;
  gap: 12px;
}

.how-list li {
  position: relative;
  padding: 12px 12px 12px 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  counter-increment: how;
}

.how-list li::before {
  content: counter(how);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}

.how-list strong {
  display: block;
  margin-bottom: 2px;
}

.how-list span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.how-cta {
  margin-top: 4px;
}

.footer {
  margin-top: 36px;
  text-align: center;
}

.muted {
  color: var(--muted);
}

.sheet {
  width: min(440px, calc(100vw - 24px));
  margin: auto;
  border: 0;
  border-radius: 24px;
  padding: 0;
  background: #fffaf2;
  box-shadow: var(--shadow);
}

.sheet::backdrop {
  background: rgba(28, 25, 20, 0.45);
  backdrop-filter: blur(4px);
}

.sheet-inner {
  display: grid;
  gap: 12px;
  padding: 18px 16px 16px;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sheet-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.sheet-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 25, 20, 0.06);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.sheet-lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.sheet-actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.sheet-hint {
  margin: 0;
  font-size: 0.82rem;
}

.sheet-hint code {
  font-size: 0.78rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 720px) {
  .page {
    width: min(640px, 100%);
    padding-top: 40px;
  }

  .services-grid {
    gap: 12px;
  }

  .shop-grid {
    gap: 12px;
  }
}

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