:root {
  --ink: #17202a;
  --muted: #64727d;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --line: #d8e1dd;
  --green: #0c8f63;
  --green-deep: #076346;
  --mint: #dff5ea;
  --sun: #f2b84b;
  --coral: #d76451;
  --navy: #10233a;
  --shadow: 0 18px 48px rgba(25, 36, 46, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 225, 221, 0.74);
  background: rgba(251, 252, 248, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(12, 143, 99, 0.3);
  border-radius: 8px;
  color: var(--green-deep);
  background: linear-gradient(135deg, #ffffff, var(--mint));
  font-weight: 900;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.site-nav a {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #33434f;
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--mint);
  outline: none;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.language-switch button {
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  color: #34424e;
  background: transparent;
  font-weight: 900;
}

.language-switch button[aria-pressed="true"] {
  color: #ffffff;
  background: var(--green-deep);
}

.header-action {
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--green-deep);
  font-weight: 800;
  white-space: nowrap;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(650px, calc(100svh - 136px));
  overflow: hidden;
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 30, 0.94) 0%, rgba(15, 23, 30, 0.74) 36%, rgba(15, 23, 30, 0.1) 74%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding: 56px 0 70px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #aeeacb;
}

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

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
  font-weight: 900;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 2.2vw, 1.26rem);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 10px 22px rgba(12, 143, 99, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--green-deep);
}

.button-secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.button-outline {
  color: var(--green-deep);
  background: #ffffff;
  border-color: rgba(12, 143, 99, 0.34);
}

.button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 44px 0 0;
}

.hero-metrics div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-metrics dt {
  font-size: 1.15rem;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.84rem;
}

.notice-band {
  padding: 14px clamp(18px, 4vw, 56px);
  color: #3e3020;
  background: #fff3d2;
  border-block: 1px solid #efd58e;
}

.notice-band p {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.section {
  scroll-margin-top: 88px;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section-alt {
  background: #eef5f0;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 32px;
  text-align: center;
}

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

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.feature-grid,
.plan-grid,
.checkout-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
}

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

.feature-card,
.plan-card,
.checkout-panel,
.summary-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(24, 37, 48, 0.08);
}

.feature-card,
.plan-card {
  padding: 24px;
}

.feature-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--green-deep);
  background: var(--mint);
  font-size: 0.85rem;
  font-weight: 900;
}

.feature-card p,
.plan-card p,
.summary-panel p,
.site-footer p {
  color: var(--muted);
}

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

.plan-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.plan-card-featured {
  border-color: rgba(12, 143, 99, 0.42);
  box-shadow: var(--shadow);
}

.plan-kicker {
  margin: 0;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-price {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 900;
}

.plan-price span {
  color: var(--muted);
  font-size: 0.88rem;
}

.plan-copy {
  margin: 0;
}

.plan-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: #34424e;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.checkout-panel,
.summary-panel {
  padding: clamp(20px, 3vw, 30px);
}

fieldset {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 900;
}

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

label {
  display: grid;
  gap: 7px;
  color: #34424e;
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfdad5;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(12, 143, 99, 0.16);
}

.payment-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #efd58e;
  border-radius: 8px;
  color: #4b3924;
  background: #fff7dd;
  font-size: 0.92rem;
}

.check-row {
  grid-template-columns: 20px 1fr;
  align-items: start;
  margin: 0 0 22px;
  font-weight: 700;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.form-error {
  margin: 16px 0 0;
  color: #8f2b21;
  font-weight: 800;
}

.summary-panel {
  position: sticky;
  top: 92px;
}

.summary-panel h3 {
  margin-bottom: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.summary-row span {
  color: var(--muted);
}

.result-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.result-status {
  margin: 0 0 14px;
  color: var(--green-deep);
  font-weight: 900;
}

.result-panel textarea {
  min-height: 220px;
  color: #20303d;
  background: #f5faf7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--green-deep);
  font-weight: 900;
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .hero-content {
  text-align: right;
}

html[dir="rtl"] .summary-row,
html[dir="rtl"] .site-footer {
  direction: rtl;
}

html[dir="rtl"] .hero-actions,
html[dir="rtl"] .form-actions {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .site-header {
    gap: 12px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 112px);
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(15, 23, 30, 0.92), rgba(15, 23, 30, 0.45)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
  }

  .hero-content {
    width: min(620px, calc(100% - 36px));
    margin-inline: auto;
  }

  .feature-grid,
  .plan-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .hero {
    min-height: calc(100vh - 150px);
  }

  .hero-content {
    padding: 44px 0 56px;
  }

  h1 {
    font-size: clamp(3rem, 7vw, 5.7rem);
  }

  .hero-metrics {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
  }

  .brand-copy small,
  .header-action {
    display: none;
  }

  .language-switch button {
    min-height: 34px;
    padding: 7px 10px;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    object-position: 58% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(15, 23, 30, 0.95), rgba(15, 23, 30, 0.46));
  }

  .hero-content {
    padding: 56px 0 76px;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(2.8rem, 17vw, 4.8rem);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

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

  .button {
    width: 100%;
  }

  .site-footer {
    display: grid;
  }
}
