:root {
  --primary: #69a05b;
  --primary-dark: #347b23;
  --primary-soft: #a4c79b;
  --accent: #d79338;
  --error: #e00000;
  --page: #f4f4f4;
  --surface: #ffffff;
  --text: #2b2e34;
  --muted: #8a8a8a;
  --border: #c4c3c3;
  --ink: #141c16;
  --kicker: #b7e0a8;
  --max: 1080px;
  --radius: 14px;
  --header: 64px;
  --shadow: 0 12px 32px rgba(20, 28, 22, 0.06);
  --font: "Montserrat", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary-dark);
}

button,
input {
  font-family: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.kicker {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

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

h2 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}

.lead {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 16px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.card p,
.bullets li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.tag {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid rgba(196, 195, 195, 0.7);
}

.header-bar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.logo img {
  height: 28px;
  width: auto;
}

.nav-links,
.header-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-links {
  gap: 0;
}

.nav-links a,
.menu a,
.menu button.linkish {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  padding: 8px;
}

.nav-links a:hover,
.menu a:hover {
  color: var(--primary-dark);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--primary-dark);
  cursor: pointer;
}

.menu-btn svg {
  width: 22px;
  height: 22px;
}

.menu {
  position: absolute;
  top: calc(100% + 1px);
  right: 16px;
  width: min(280px, calc(100% - 32px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.menu[hidden] {
  display: none;
}

.menu hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 6px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
}

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

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

.btn-ghost {
  color: var(--primary-dark);
  border-color: var(--primary-soft);
  background: var(--surface);
}

.btn-hero-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.header-actions .btn {
  min-height: 0;
  padding: 10px 19px;
  line-height: 1;
}

.header-actions .btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: #fff;
}

.hero .btn {
  min-height: 48px;
  padding: 0 20px;
}

.btn-text {
  min-height: 0;
  padding: 8px;
  border-radius: 8px;
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.hero {
  position: relative;
  color: #fff;
  background: var(--ink) url("../img/pro-hero-illustrated.jpg") top right / cover no-repeat;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 28, 22, 0.72) 0%, rgba(20, 28, 22, 0.58) 28%, rgba(20, 28, 22, 0.28) 48%, rgba(20, 28, 22, 0.08) 62%, rgba(20, 28, 22, 0) 78%),
    linear-gradient(180deg, rgba(20, 28, 22, 0.18) 0%, rgba(20, 28, 22, 0) 35%, rgba(20, 28, 22, 0.22) 100%);
}

.hero-copy {
  position: relative;
  max-width: var(--max);
  padding: 48px 0 56px;
}

.hero-copy .kicker,
.hero-copy h1,
.hero-copy .lead,
.hero-copy .actions,
.hero-copy .badges {
  max-width: 560px;
}

.hero .kicker {
  color: var(--kicker);
}

.hero h1 {
  margin-top: 10px;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.hero .lead {
  margin-top: 16px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.badge {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12.5px;
  font-weight: 600;
}

.badge-soft {
  border-color: var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.split {
  display: grid;
  gap: 24px;
  align-items: center;
}

.visual {
  background: #eef2f4;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.contour-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contour-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.icon-bubble {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(105, 160, 91, 0.12);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
}

.icon-bubble svg {
  width: 18px;
  height: 18px;
}

.bullets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 18px;
  margin: 0 0 10px;
  color: var(--text);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-dark);
}

.feature-list {
  margin: 0;
  padding: 18px 18px 8px;
  list-style: none;
  box-shadow: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.feature-list svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--primary-dark);
}

.steps {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  grid-template-columns: 1fr;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 88px;
  padding: 14px;
  background: rgba(105, 160, 91, 0.12);
  border: 1px solid #cfe3c8;
  border-radius: 12px;
  box-shadow: none;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #cfe3c8;
  border-radius: 11px;
  color: var(--primary-dark);
}

.step-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-index {
  margin-top: 8px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.step p {
  margin-top: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.video-frame {
  max-width: 720px;
  margin: 20px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1c22;
  box-shadow: 0 14px 28px rgba(52, 123, 35, 0.08);
}

.video-poster {
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b1c22;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.video-poster svg {
  width: 64px;
  height: 64px;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.plans {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.plan {
  position: relative;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.plan-featured {
  border: 2px solid var(--primary-dark);
  box-shadow: 0 10px 20px rgba(52, 123, 35, 0.1);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan h3 {
  font-size: 18px;
}

.save {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(105, 160, 91, 0.22);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.plan-note {
  min-height: 16px;
  margin-top: 8px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
}

.price {
  margin-top: 16px;
  font-size: 28px;
  font-weight: 700;
}

.price-sub,
.plan-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.perks {
  margin: 18px 0 16px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.perks li {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.perks svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--primary-dark);
}

.plan .btn {
  width: 100%;
  border-radius: 12px;
}

.corporate {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, #2a641c, var(--primary-dark));
}

.corporate h3 {
  font-size: 16px;
}

.corporate p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.45;
}

.corporate .actions {
  margin-top: 14px;
}

.corporate .btn-text {
  color: #fff;
}

.science {
  display: grid;
  gap: 24px;
}

.portrait {
  text-align: center;
}

.portrait img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
}

.portrait p {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.science-copy p + p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.sample {
  margin-top: 24px;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--primary-soft);
  border-radius: 18px;
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}

.sample img {
  width: 180px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(52, 123, 35, 0.08);
}

.sample h3 {
  font-size: 22px;
}

.sample p {
  margin-top: 10px;
  color: var(--muted);
}

.products .card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
}

.final {
  padding: 32px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--primary-soft);
  border-radius: 20px;
}

.final h2 {
  font-size: 22px;
}

.final .lead {
  margin-top: 8px;
}

.contacts {
  margin-top: 16px;
  color: var(--muted);
}

.footer {
  padding: 8px 0 48px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  align-items: center;
}

.footer-links a {
  font-size: 13px;
}

.footer p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(20, 28, 22, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
}

.dialog-backdrop[hidden] {
  display: none;
}

.dialog {
  width: min(460px, 100%);
  background: var(--surface);
  border-radius: 16px;
  padding: 22px 22px 16px;
  box-shadow: var(--shadow);
}

.dialog h2 {
  font-size: 20px;
}

.dialog .lead {
  margin: 8px 0 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field span,
.field label {
  font-size: 13px;
  font-weight: 600;
}

.field input {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--text);
}

.field input:focus {
  outline: 2px solid rgba(52, 123, 35, 0.35);
  border-color: var(--primary-dark);
}

.captcha-row {
  display: flex;
  gap: 8px;
}

.captcha-row input {
  flex: 1;
}

.icon-btn {
  width: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--primary-dark);
  cursor: pointer;
}

.form-error {
  color: var(--error);
  font-size: 13px;
  min-height: 1.2em;
  margin: 0 0 8px;
}

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

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 50;
  width: min(520px, calc(100% - 32px));
  background: var(--text);
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.toast[hidden] {
  display: none;
}

.toast a,
.toast button {
  color: #fff;
  font-weight: 700;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
}

@media (min-width: 560px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 959px) {
  .split .visual {
    order: -1;
  }
}

@media (min-width: 868px) {
  .header-actions {
    display: flex;
    gap: 8px;
  }

  .hero-mobile-photo {
    display: none;
  }
}

@media (max-width: 867px) {
  .hero {
    display: block;
    min-height: 0;
    background: var(--ink);
  }

  .hero::before {
    display: none;
  }

  .hero-mobile-photo {
    display: block;
    height: 280px;
    background: url("../img/pro-hero-illustrated.jpg") top right / cover no-repeat;
    position: relative;
  }

  .hero-mobile-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 28, 22, 0.08) 0%, rgba(20, 28, 22, 0.35) 45%, rgba(20, 28, 22, 0.85) 78%, #141c16 100%);
  }

  .hero-copy {
    padding: 0 0 28px;
    margin-top: -72px;
  }

  .hero h1 {
    font-size: 29px;
  }
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-2,
  .split,
  .science,
  .plans {
    grid-template-columns: 1.05fr 1fr;
  }

  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .sample {
    grid-template-columns: 220px 1fr;
    justify-items: start;
    text-align: left;
    align-items: center;
  }

  .sample img {
    width: 220px;
  }

  .portrait {
    text-align: left;
  }

  .portrait img {
    width: 220px;
    height: 220px;
  }
}

@media (min-width: 1200px) {
  .nav-links {
    display: flex;
  }

  .menu-btn,
  .menu {
    display: none;
  }
}

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

:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

section[id] {
  scroll-margin-top: calc(var(--header) + 12px);
}
