:root {
  color-scheme: light;
  --page: #f3f5f4;
  --paper: #fff;
  --ink: #191a19;
  --muted: #535957;
  --line: #d9deda;
  --red: #b11617;
  --red-dark: #851317;
  --blush: #fff1ef;
  --width: 1180px;
  font-family: "Segoe UI", system-ui, sans-serif;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

[hidden] { display: none !important; }

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.shell {
  width: min(var(--width), calc(100% - 36px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  margin-block: 16px 22px;
  padding: 8px clamp(12px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}

.brand {
  display: grid;
  min-height: 48px;
  place-items: center;
}

.brand img {
  display: block;
  width: 88px;
  height: auto;
}

.site-header nav,
.site-footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(12px, 3vw, 30px);
}

.site-header nav a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer a:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  min-height: 505px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
}

.hero-content {
  align-self: center;
  padding: clamp(30px, 6.5vw, 82px);
}

.eyebrow,
.package-type {
  color: var(--red-dark);
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.045em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 19px;
}

.eyebrow span {
  width: 24px;
  height: 2px;
  background: var(--red);
}

h1,
h2,
h3,
p { margin: 0; }

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

h1 { font-size: clamp(2.9rem, 6.6vw, 6.35rem); }

h2 { font-size: clamp(2.25rem, 4.6vw, 4.2rem); }

.hero-lead {
  max-width: 44ch;
  margin: 22px 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.93rem;
  font-weight: 750;
  line-height: 1.28;
  text-align: center;
  text-decoration: none;
}

button.button { cursor: pointer; font-family: inherit; }

.primary {
  background: var(--red);
  color: #fff;
}

.primary:hover { background: var(--red-dark); }

.secondary {
  border-color: #cdd5cf;
  background: var(--paper);
  color: var(--ink);
}

.secondary:hover {
  border-color: var(--red);
  color: var(--red-dark);
}

.format-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 310px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(186, 56, 51, 0.53), rgba(47, 21, 25, 0.08) 66%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.048) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.048) 0 1px, transparent 1px 24px),
    #452427;
}

.receipt,
.receipt-shadow {
  width: clamp(190px, 49%, 260px);
  aspect-ratio: 0.77;
  border-radius: 12px;
}

.receipt-shadow {
  position: absolute;
  transform: translate(16px, 13px) rotate(14deg);
  background: rgba(255, 239, 235, 0.17);
  border: 1px solid rgba(255, 239, 235, 0.24);
}

.receipt {
  position: relative;
  display: grid;
  gap: 10px;
  padding: clamp(14px, 3.3vw, 27px);
  transform: rotate(-7deg);
  background: #fffbfa;
  box-shadow: 0 22px 45px rgba(17, 7, 8, 0.5);
}

.receipt-brand {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--red-dark);
  font-size: 0.76rem;
  letter-spacing: 0.055em;
}

.receipt-brand i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--red);
}

.receipt > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.046em;
}

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

.receipt-parties i {
  height: 24px;
  border-radius: 3px;
  background: repeating-linear-gradient(#e6dbd8 0 3px, transparent 3px 8px);
}

.receipt-lines i {
  display: block;
  height: 14px;
  margin-block: 4px;
  border-block-end: 1px solid #e6dbd8;
  background: linear-gradient(90deg, #e6dbd8 0 56%, transparent 56% 78%, #ebc9c5 78% 100%) center / 100% 3px no-repeat;
}

.receipt-total,
.xml-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.receipt-total {
  color: var(--red-dark);
  font-size: 0.68rem;
  font-weight: 800;
}

.receipt-total span:last-child {
  font-size: 1.35rem;
}

.xml-tag {
  position: absolute;
  right: clamp(15px, 9%, 48px);
  bottom: clamp(22px, 16%, 92px);
  justify-content: flex-start;
  gap: 11px;
  padding: 9px 15px 9px 9px;
  border: 1px solid #ede2df;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 11px 28px rgba(17, 7, 8, 0.25);
}

.xml-tag > span {
  display: grid;
  min-width: 37px;
  min-height: 37px;
  place-items: center;
  border-radius: 7px;
  background: var(--blush);
  color: var(--red-dark);
  font-weight: 800;
}

.xml-tag strong,
.xml-tag small { display: block; }

.xml-tag small { color: var(--muted); }

.section {
  margin-block: clamp(48px, 9vw, 104px);
  scroll-margin-block-start: 24px;
}

.section-heading { margin-bottom: 24px; }

.section-heading p {
  max-width: 63ch;
  margin-top: 12px;
  color: var(--muted);
}

.feature-grid { display: grid; gap: 15px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.feature,
.download-card {
  min-width: 0;
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
}

.feature-mark {
  display: inline-grid;
  min-width: 44px;
  min-height: 39px;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 7px;
  background: var(--blush);
  color: var(--red-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.feature h3,
.download-card h3 {
  margin-bottom: 7px;
  font-size: clamp(1.16rem, 2.3vw, 1.65rem);
  line-height: 1.2;
}

.feature p,
.download-card > p:not(.package-type) {
  max-width: 45ch;
  color: var(--muted);
}

.paid-card { max-width: 660px; border-color: #dba6a1; }

.package-type { margin: 0 0 10px; }

.package-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 17px 0;
  color: var(--muted);
}

.package-price strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.package-status {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--page);
  font-size: 0.94rem;
}

#checkout-feedback { margin-bottom: 10px; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 20px;
  border-top: 1px solid var(--line);
}

.checkout-message {
  max-width: 620px;
  margin-block: clamp(30px, 12vw, 130px);
  padding: clamp(22px, 7vw, 52px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.checkout-message h1 { font-size: clamp(2.4rem, 6vw, 3.7rem); }

.checkout-message p { margin: 18px 0 22px; color: var(--muted); }

@media (max-width: 800px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-content { padding: clamp(24px, 6.5vw, 54px); }
  .hero-visual { min-height: 382px; }
}

@media (max-width: 690px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 490px) {
  .shell { width: calc(100% - 24px); }
  .site-header { margin-block: 10px 14px; gap: 2px 18px; }
  .hero { border-radius: 18px; }
  .hero h1 { font-size: clamp(2.45rem, 9.5vw, 3.65rem); }
  .hero-visual { min-height: 310px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
