:root {
  --background: #f8f6f1;
  --surface: #ffffff;
  --border: #e8e3d8;
  --text: #2a2926;
  --text-secondary: #6f6b62;
  --accent: #4f6b55;
  --accent-dark: #3b5541;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: ui-serif, "New York", Georgia, serif; font-weight: 500; }
a { color: var(--accent-dark); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.hero { padding: 120px 0 64px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1; margin: 0 0 24px; }
.hero p { font-size: 20px; color: var(--text-secondary); max-width: 30em; margin: 0 0 16px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); text-decoration: none; }
.store img { border-radius: 11px; }
.store strong { display: block; font-size: 16px; line-height: 1.2; }
.store small { display: block; font-size: 13px; color: var(--text-secondary); }
.store .get { margin-left: 18px; padding: 5px 18px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; }
.store:hover .get { background: var(--accent-dark); }

section { padding: 0 0 48px; }
section > .wrap > h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 0 0 24px; }

.facts, .plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.facts div, .plans div { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.facts h2, .plans h3 { font-size: 22px; font-weight: 500; font-family: ui-serif, "New York", Georgia, serif; margin: 0 0 8px; }
.facts p, .plans p { margin: 0; color: var(--text-secondary); font-size: 16px; }
.plans .price { color: var(--text); font-family: ui-serif, "New York", Georgia, serif; font-size: 30px; margin-bottom: 8px; }
.fine { color: var(--text-secondary); font-size: 14px; max-width: 46em; margin: 20px 0 0; }

footer { padding: 40px 0 56px; font-size: 15px; color: var(--text-secondary); }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }

.doc { max-width: 720px; padding: 72px 24px 40px; margin: 0 auto; }
.doc h1 { font-size: clamp(30px, 8vw, 44px); line-height: 1.05; margin: 0 0 8px; }
.doc h2 { font-size: 24px; line-height: 1.1; margin: 40px 0 10px; }
.doc .updated { color: var(--text-secondary); margin: 0 0 40px; }
.doc .back { display: inline-block; font-weight: 600; color: var(--text); text-decoration: none; margin-bottom: 40px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 24px; }
}
