:root {
  --bg: #f5f8f4;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --text: #18231c;
  --muted: #66736c;
  --line: rgba(24, 35, 28, 0.1);
  --accent: #2ea66b;
  --accent-dark: #1d7b4a;
  --accent-soft: rgba(46, 166, 107, 0.12);
  --danger: #b42318;
  --shadow: 0 20px 60px rgba(22, 34, 25, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --container: 1160px;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(46, 166, 107, 0.14), transparent 30%),
    radial-gradient(circle at right 12% bottom 18%, rgba(46, 166, 107, 0.1), transparent 28%);
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.surface {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 244, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(24, 35, 28, 0.06);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.nav-btn,
.cta-btn,
.submit-btn,
.qty-btn {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.nav-btn,
.cta-btn {
  min-height: 58px;
  padding: 12px 20px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.07);
  font-weight: 700;
}

.nav-btn.is-active,
.cta-btn.is-active,
.submit-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}

.nav-btn:hover,
.cta-btn:hover,
.submit-btn:hover,
.qty-btn:hover {
  transform: translateY(-1px);
}

.hero {
  padding: 28px 0 12px;
}

.hero-shell {
  padding: 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

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

.chip,
.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}

.chip--ghost {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 54ch;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-actions--compact {
  margin-top: 18px;
}

.hero-media {
  display: flex;
  justify-content: flex-end;
}

.hero-image-card {
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 26px 54px rgba(21, 34, 24, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.hero-image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.section {
  padding: 22px 0 44px;
}

.section--compact {
  padding-top: 6px;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-head p,
.card-head p {
  margin: 0;
  color: var(--muted);
}

.cards-grid {
  display: grid;
  gap: 18px;
}

.cards-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 24px;
}

.card h3,
.card h2 {
  margin-top: 0;
}

.clean-list {
  margin: 0;
  padding-left: 20px;
}

.clean-list li {
  margin-bottom: 10px;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.order-column {
  display: grid;
  gap: 18px;
}

.order-sidebar {
  position: sticky;
  top: 94px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  font-size: 14px;
  font-weight: 700;
}

.field em {
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(24, 35, 28, 0.12);
  background: white;
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(46, 166, 107, 0.55);
  box-shadow: 0 0 0 4px rgba(46, 166, 107, 0.12);
}

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

.quantity-control {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: center;
}

.quantity-control input {
  text-align: center;
  font-weight: 700;
}

.qty-btn {
  height: 52px;
  background: white;
  color: var(--text);
  border: 1px solid rgba(24, 35, 28, 0.12);
  font-size: 28px;
  line-height: 1;
}

.field-note {
  color: var(--muted);
  font-size: 13px;
}

.notice {
  padding: 16px 18px;
  border-radius: var(--radius-md);
}

.notice--soft {
  background: rgba(46, 166, 107, 0.08);
  border: 1px solid rgba(46, 166, 107, 0.14);
}

.notice p {
  margin: 0 0 6px;
}

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

.confirm-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.confirm-box input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.submit-btn {
  padding: 15px 20px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(29, 123, 74, 0.22);
}

.submit-btn--wide {
  width: 100%;
}

.submit-btn[disabled] {
  opacity: 0.65;
  cursor: default;
  transform: none;
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-weight: 600;
}

.form-message.success {
  color: var(--accent-dark);
}

.form-message.error {
  color: var(--danger);
}

.calc-card {
  padding: 24px;
}

.calc-card__top h3 {
  margin: 12px 0 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.calc-line,
.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.calc-formula {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(46, 166, 107, 0.08);
  color: var(--accent-dark);
  font-weight: 700;
}

.discount-badge {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(46, 166, 107, 0.12);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.calc-total {
  margin-top: 8px;
  border-bottom: none;
  padding-bottom: 0;
  font-size: 24px;
}

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

.success-card {
  background: linear-gradient(180deg, rgba(46, 166, 107, 0.08), rgba(255, 255, 255, 0.96));
}

.success-card h3 {
  margin-bottom: 10px;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.success-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.success-card__facts > div {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.success-card__facts span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 4px;
}

.success-card__facts strong {
  font-size: 24px;
}

.success-card__note {
  color: var(--muted);
  margin: 0;
}

.question-card {
  display: grid;
  gap: 16px;
}

.mobile-summary {
  display: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .cards-grid--three,
  .order-layout,
  .grid-2,
  .success-card__facts {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 100%;
  }

  .order-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 92px;
  }

  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .header-inner {
    min-height: auto;
    padding: 12px 0;
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    text-align: center;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav .nav-btn {
    flex: 1 1 calc(50% - 5px);
    min-height: 52px;
    padding: 10px 14px;
  }

  .cta-btn,
  .submit-btn {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-shell,
  .card,
  .calc-card {
    padding: 18px;
    border-radius: 22px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-image-card {
    max-width: 100%;
  }

  .hero-image-card img {
    aspect-ratio: 10 / 11;
  }

  .quantity-control {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .mobile-summary {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(24, 35, 28, 0.08);
    box-shadow: 0 -10px 30px rgba(16, 24, 40, 0.06);
  }

  .mobile-summary__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .mobile-summary__meta span {
    color: var(--muted);
    font-size: 13px;
  }

  .mobile-summary__meta strong {
    font-size: 22px;
    line-height: 1.1;
  }

  .mobile-summary__btn {
    width: auto;
    min-width: 150px;
    padding-inline: 18px;
  }
}
