:root {
  --cream: #faf5ef;
  --white: #ffffff;
  --dark: #241b15;
  --muted: #4a4038;
  --coral: #e75c4b;
  --green: #2e7d5b;
  --yellow: #f5df9e;
  --yellow-strong: #f1c84b;
  --placeholder: #757575;
  --shadow: 4px 4px 0 var(--dark);
  --radius-card: 28px;
  --radius-btn: 999px;
  --header-h: 84px;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.5;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  background: var(--dark);
  color: var(--cream);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.site-header,
.hero,
.features,
.contact,
.policy,
.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 8px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--cream);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.logo-mark img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.site-footer .logo-mark img {
  width: 44px;
  height: 44px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 800;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.nav a:not(.btn):hover {
  color: var(--coral);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2.5px solid var(--dark);
  border-radius: var(--radius-btn);
  padding: 10px 20px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 3px 3px 0 var(--dark);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--dark);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
}

.btn-dark {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
  box-shadow: 5px 5px 0 var(--coral);
  padding: 12px 22px;
}

.btn-dark:hover {
  box-shadow: 3px 3px 0 var(--coral);
}

.btn-icon {
  flex-shrink: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
  min-height: calc(100vh - var(--header-h));
  padding: 28px 0 64px;
}

.badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  background: var(--green);
  color: var(--cream);
  border-radius: var(--radius-btn);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 900;
  max-width: 11ch;
}

.accent {
  color: var(--coral);
}

.lede {
  margin: 0 0 28px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.text-link {
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--coral);
}

.hero-note {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-art {
  display: grid;
  place-items: center;
}

.cashbox {
  width: min(100%, 420px);
}

#features,
#contact {
  scroll-margin-top: 88px;
}

.features {
  padding: 24px 0 80px;
}

.features h2,
.contact h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  font-weight: 900;
}

.features h2 {
  text-align: center;
  margin: 0 0 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: var(--radius-card);
  padding: 28px 28px 32px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.feature-icon-coral {
  background: var(--coral);
}

.feature-icon-green {
  background: var(--green);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  max-width: 36ch;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 12px 0 96px;
}

.contact-copy p {
  color: var(--muted);
  font-weight: 600;
  max-width: 36ch;
  margin: 12px 0 36px;
}

.deco-ticket {
  width: min(100%, 220px);
  height: 72px;
  background: var(--yellow-strong);
  border: 3px solid var(--dark);
  border-radius: 18px;
  transform: rotate(-8deg);
  position: relative;
}

.deco-ticket::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px dashed var(--dark);
  border-radius: 12px;
  opacity: 0.55;
}

.deco-square {
  position: absolute;
  top: 120px;
  right: 36px;
  width: 28px;
  height: 28px;
  background: var(--yellow-strong);
  border: 2.5px solid var(--dark);
  border-radius: 8px;
}

.contact-form {
  background: var(--white);
  border: 3px solid var(--dark);
  border-radius: var(--radius-card);
  padding: 28px 28px 24px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--dark);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 600;
  color: var(--dark);
  background: var(--cream);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--placeholder);
  font-weight: 600;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--coral) 45%, transparent);
  outline-offset: 1px;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.form-status {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 0.95rem;
}

.form-status.is-ok {
  color: var(--green);
}

.form-status.is-error {
  color: var(--coral);
}

.contact-form.is-success {
  display: grid;
  place-items: center;
  min-height: 360px;
  text-align: center;
  padding: 48px 32px;
}

.contact-form.is-success p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.form-privacy {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.form-privacy a {
  color: var(--coral);
  font-weight: 800;
}

.policy {
  width: min(720px, calc(100% - 48px));
  padding: 28px 0 80px;
}

.policy h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.policy h2 {
  margin: 32px 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.policy p,
.policy li {
  color: var(--muted);
  font-weight: 600;
}

.policy p {
  margin: 0 0 14px;
}

.policy ul,
.policy ol {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

.policy li {
  margin: 6px 0;
}

.policy a {
  color: var(--coral);
  font-weight: 800;
}

.policy hr {
  border: none;
  border-top: 3px solid var(--dark);
  margin: 36px 0;
}

.site-footer {
  width: 100%;
  max-width: none;
  background: var(--dark);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px max(24px, calc((100% - var(--max)) / 2));
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-weight: 700;
}

.footer-links a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--yellow);
}

#extra-socials {
  display: contents;
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

@media (max-width: 860px) {
  .hero,
  .feature-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 12px;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .hero-art {
    order: -1;
  }

  .cashbox {
    width: min(100%, 280px);
  }

  .deco-square {
    display: none;
  }

  .nav {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .features,
  .contact,
  .policy {
    width: min(var(--max), calc(100% - 32px));
  }

  .nav a:not(.btn) {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px 28px;
  }
}

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

  .btn {
    transition: none;
  }
}
