:root {
  --bg: #f7f3ec;
  --paper: #ffffff;
  --soft: #efe7da;
  --text: #1f2933;
  --muted: #66717c;
  --accent: #b7793f;
  --accent-2: #526d5b;
  --line: rgba(31, 41, 51, 0.12);
  --shadow: 0 18px 50px rgba(67, 52, 37, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; }

.site-header {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-2);
  color: white;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.nav a {
  text-decoration: none;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
}

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
  gap: 58px;
  padding-top: 34px;
}

.pricing-hero {
  padding-top: 52px;
  padding-bottom: 30px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.lead {
  margin: 24px 0 0;
  max-width: 720px;
  font-size: 21px;
  color: #46515c;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-actions span {
  max-width: 360px;
  color: var(--muted);
  font-size: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 8px;
  background: var(--accent-2);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--accent-2);
  box-shadow: 0 10px 24px rgba(82, 109, 91, 0.22);
}

.button.ghost {
  background: transparent;
  color: var(--accent-2);
  box-shadow: none;
}

.hero-art {
  position: relative;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 50px rgba(67, 52, 37, 0.16));
}

.intro, .split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.intro > p, .split > p {
  margin: 0;
  font-size: 24px;
  color: #46515c;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 0;
}

.cards-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 28px;
}

.card, .price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.card p, .price-card p, .price-card li {
  color: var(--muted);
}

.icon {
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
}

.path-art {
  width: min(360px, 100%);
  margin-top: 28px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 22px 22px 22px 70px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font-weight: 900;
}

.steps strong, .steps span {
  display: block;
}

.steps span {
  color: var(--muted);
  margin-top: 4px;
}

.section-head {
  max-width: 720px;
}

.section-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-note a {
  color: var(--accent-2);
  font-weight: 800;
}

.muted {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100% - 1160px) / 2));
  padding-right: max(20px, calc((100% - 1160px) / 2));
  background: var(--soft);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 36px;
}

.check-list li {
  break-inside: avoid;
  margin-bottom: 14px;
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(82, 109, 91, 0.38);
  transform: translateY(-10px);
}

.tag {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 800;
}

.price {
  margin: 4px 0 16px;
  font-size: 32px;
  line-height: 1;
  color: var(--text) !important;
  font-weight: 900;
}

.price-card ul {
  padding-left: 20px;
  margin: 0 0 24px;
}

.price-card .button {
  margin-top: auto;
}

.notice {
  background: #fff7eb;
  border: 1px solid rgba(183, 121, 63, 0.22);
  border-radius: 8px;
  padding: 34px;
}

.notice p:last-child {
  margin-bottom: 0;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq details p {
  color: var(--muted);
}

.cta {
  text-align: center;
}

.cta p {
  max-width: 600px;
  margin: 16px auto 28px;
  color: var(--muted);
  font-size: 19px;
}

.requisites {
  padding-top: 40px;
}

.requisites-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.requisites-grid > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.requisites-grid p {
  margin: 10px 0;
  color: var(--muted);
}

.footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 52px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 1fr;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer h2 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 12px;
}

.footer a {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.legal-page {
  width: min(840px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 90px;
}

.legal-page h1 {
  font-size: clamp(38px, 6vw, 58px);
  margin-bottom: 24px;
}

.legal-page h2 {
  font-size: 25px;
  margin-top: 32px;
}

.legal-page p {
  color: #4c5965;
}

.offer-page {
  width: min(1040px, calc(100% - 40px));
}

.pdf-frame {
  width: 100%;
  height: min(78vh, 900px);
  min-height: 620px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.status-page {
  width: min(920px, calc(100% - 40px));
  min-height: calc(100vh - 96px);
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 40px 0 90px;
}

.status-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 6vw, 58px);
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .hero, .intro, .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .cards-grid, .cards-grid.four, .pricing, .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .requisites-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .section {
    width: min(100% - 28px, 1160px);
    padding: 48px 0;
  }

  .hero {
    gap: 32px;
    padding-top: 18px;
  }

  h1 {
    font-size: 42px;
  }

  .lead, .intro > p {
    font-size: 18px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .cards-grid, .cards-grid.four, .pricing, .footer, .requisites-grid {
    grid-template-columns: 1fr;
  }

  .card, .price-card, .notice {
    padding: 22px;
  }

  .pdf-frame {
    min-height: 520px;
  }

  .check-list {
    columns: 1;
  }
}
