:root {
  --ink: #122033;
  --ink-soft: #3d4c63;
  --paper: #f4efe6;
  --card: #fffdf8;
  --line: #e4d9c8;
  --tide: #0f6e67;
  --tide-deep: #0b534e;
  --sand: #e7d3b0;
  --gold: #8a5a12;
  --shadow: 0 18px 50px rgba(18, 32, 51, 0.08);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(15, 110, 103, 0.14), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}
a { color: var(--tide-deep); }
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
  z-index: 5;
}
.skip:focus { top: 1rem; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
button, .button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--tide);
  color: white;
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 1.05rem;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--tide-deep); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #b45309;
  outline-offset: 2px;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  padding: 1.2rem 0 3.5rem;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0 0 1rem;
}
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 38rem; margin: 0; }
.cards { position: relative; height: 280px; margin-top: 1.6rem; }
.sheet {
  position: absolute;
  width: 148px;
  height: 208px;
  border-radius: 14px;
  border: 1px solid rgba(18, 32, 51, 0.18);
  box-shadow: var(--shadow);
}
.sheet i { position: absolute; display: block; border-radius: 6px; }
.sheet:nth-child(1) { left: 0; top: 36px; transform: rotate(-8deg); background: linear-gradient(165deg, #123047, #1d6b64); }
.sheet:nth-child(2) { left: 118px; top: 8px; background: linear-gradient(180deg, #fffaf2, #f0e2c8); }
.sheet:nth-child(3) { left: 236px; top: 42px; transform: rotate(7deg); background: linear-gradient(180deg, #efe7da, #c9ddd8); }
.bar { left: 14px; right: 14px; height: 10px; }
.one { top: 16px; }
.two { top: 34px; width: 46%; }
.face { left: 16px; right: 16px; top: 58px; height: 92px; }
.foot { left: 14px; right: 14px; bottom: 16px; height: 8px; }
.sheet:nth-child(1) i { background: rgba(255, 255, 255, 0.28); }
.sheet:nth-child(2) .bar, .sheet:nth-child(2) .foot, .sheet:nth-child(3) .bar, .sheet:nth-child(3) .foot { background: rgba(18, 32, 51, 0.18); }
.sheet:nth-child(2) .face { background: linear-gradient(180deg, #0f6e67, #123047); }
.sheet:nth-child(3) .face { background: repeating-linear-gradient(135deg, #0f6e67 0 10px, #d7ebe7 10px 20px); }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.panel h2 { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 0.35rem; }
.panel p { margin: 0 0 1rem; color: var(--ink-soft); }
label { display: block; font-size: 0.92rem; font-weight: 700; margin: 0.8rem 0 0.35rem; }
input, select {
  width: 100%;
  border: 1px solid #d9cdb8;
  background: white;
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  font: inherit;
  color: var(--ink);
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.error { color: #9f1239; min-height: 1.2em; margin: 0.6rem 0 0; }
.thanks { display: none; }
[data-state="thanks"] .signup { display: none; }
[data-state="thanks"] .thanks { display: block; }
.thanks strong { font-family: var(--serif); font-size: 1.8rem; display: block; margin-bottom: 0.4rem; }
section { padding: 0.4rem 0 3rem; }
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 750;
  margin: 0 0 0.4rem;
}
h2.section {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin: 0 0 1.2rem;
  letter-spacing: -0.03em;
}
.steps, .benefits, .prices { display: grid; gap: 1rem; }
.steps { grid-template-columns: repeat(3, 1fr); }
.benefits { grid-template-columns: repeat(4, 1fr); }
.prices { grid-template-columns: repeat(3, 1fr); }
article {
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.1rem 1.2rem;
}
.num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sand);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
article h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
article p { margin: 0; color: var(--ink-soft); }
.price { font-family: var(--serif); font-size: 2.3rem; margin: 0.2rem 0; }
.price span { font-family: var(--sans); font-size: 1rem; color: var(--ink-soft); }
.flag { font-size: 0.85rem; color: var(--gold); font-weight: 700; }
details { border-top: 1px solid var(--line); padding: 0.85rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 0.45rem 0 0; color: var(--ink-soft); }
footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--ink-soft); font-size: 0.92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem; }
footer p { margin: 0; max-width: 46rem; }
.nav-links { display: flex; gap: 0.9rem; align-items: center; }
.band {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.2rem 1.3rem;
  margin-bottom: 2.5rem;
}
.band h2 { font-family: var(--serif); font-size: 1.8rem; margin: 0 0 0.3rem; }
.band p { margin: 0; color: var(--ink-soft); }
.page h1 { font-family: var(--serif); font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -0.03em; line-height: 0.98; margin: 0 0 0.8rem; }
.page h2 { font-family: var(--serif); font-size: 1.7rem; margin: 1.4rem 0 0.4rem; }
.page > .panel { margin-top: 0.5rem; }
.page .run { margin: 1.5rem 0 0; }
.page .run + .panel { margin-top: 1.75rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0.6rem 0 1rem; }
th, td { text-align: left; padding: 0.45rem 0.35rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.calc { display: grid; gap: 1rem; }
.calc-side { display: grid; gap: 1rem; align-content: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.verdict { font-family: var(--serif); font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 0.95; margin: 0 0 0.4rem; }
.verdict:focus { outline: 3px solid #b45309; outline-offset: 4px; }
[data-call="send"] .verdict { color: var(--tide-deep); }
.check { display: flex; gap: 0.55rem; align-items: center; font-weight: 650; margin-top: 0.8rem; }
.check input { width: auto; }
#result[hidden] { display: none; }
#result-facts { display: grid; gap: 0.15rem; margin: 0.8rem 0; }
#result-facts div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: 0.3rem 0; }
#result-facts dt { font-weight: 700; }
#result-facts dd { margin: 0; text-align: right; }
@media (min-width: 901px) {
  .calc { grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr); align-items: start; }
  .calc-side {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
  }
}
@media (max-width: 900px) {
  .hero, .steps, .benefits, .prices, .calc, .grid-2, .band { grid-template-columns: 1fr; }
  .band { display: grid; }
  footer .wrap { display: grid; }
  .cards { height: 220px; }
  .sheet { width: 112px; height: 158px; }
  .sheet:nth-child(2) { left: 84px; }
  .sheet:nth-child(3) { left: 156px; }
}
