:root {
  --accent: #CC801F;
  --accent-soft: #F1DCC0;
  --text: #2B2118;
  --muted: #7A6D61;
  --bg: #FBF7F1;
  --card: #FFFFFF;
  --line: #EADFD1;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #F5B04D;
    --accent-soft: #4A3820;
    --text: #F3ECE3;
    --muted: #B3A797;
    --bg: #1A1511;
    --card: #241D17;
    --line: #3A3028;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; }

.lang { color: var(--muted); font-size: 15px; }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 72px;
}

h1 {
  font-family: var(--rounded);
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 30em;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.store[aria-disabled="true"] { cursor: default; }

.store svg { width: 20px; height: 20px; fill: currentColor; }

.note { color: var(--muted); font-size: 15px; margin-top: 14px; }

.phone {
  justify-self: center;
  width: min(100%, 320px);
  border-radius: 44px;
  border: 10px solid var(--text);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(43, 33, 24, 0.45);
  background: #fff;
}

.phone img { display: block; width: 100%; height: auto; }

/* Calculator */

section { padding: 64px 0; }

h2 {
  font-family: var(--rounded);
  font-size: clamp(28px, 4.5vw, 38px);
  line-height: 1.15;
  margin: 0 0 12px;
}

.section-lead { color: var(--muted); margin: 0 0 32px; max-width: 36em; }

.counter {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px 24px;
  text-align: center;
}

.counter label {
  display: block;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 8px;
}

.counter input {
  font: inherit;
  font-size: 18px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 46px;
}

.number {
  font-family: var(--rounded);
  font-size: clamp(72px, 16vw, 120px);
  font-weight: 800;
  line-height: 1;
  margin: 28px 0 6px;
  font-variant-numeric: tabular-nums;
}

.caption { color: var(--muted); font-size: 20px; margin: 0 0 28px; }

.grid {
  display: grid;
  grid-template-columns: repeat(52, 1fr);
  gap: clamp(1px, 0.35vw, 4px);
  max-width: 760px;
  margin: 0 auto;
}

.grid i {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-soft);
}

.grid i.past { background: var(--accent); }

.grid i.now {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.private { color: var(--muted); font-size: 14px; margin: 24px 0 0; }

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}

.feature h3 { font-size: 19px; margin: 0 0 6px; }

.feature p { margin: 0; color: var(--muted); }

.quote {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 15px;
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.plan {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  background: var(--card);
}

.plan.full { border-color: var(--accent); }

.plan h3 { margin: 0 0 4px; font-size: 20px; }

.plan .price { color: var(--muted); margin: 0 0 12px; }

.plan ul { margin: 0; padding-left: 20px; }

/* Support */

details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
}

details[open] summary::after { content: "\2212"; }

details p { margin: 10px 0 0; color: var(--muted); }

.contact {
  margin-top: 32px;
  font-size: 19px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 48px;
  color: var(--muted);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

footer nav { display: flex; gap: 20px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; gap: 40px; }
  .phone { width: min(78%, 280px); border-width: 8px; border-radius: 36px; }
  .features, .plans { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .counter { padding: 24px 12px; }
}
