:root {
  --page: #c8d4c3;
  --page-soft: #edf2ea;
  --surface: #fffdf7;
  --surface-clean: #ffffff;
  --text: #202523;
  --muted: #69746e;
  --line: #e4e8df;
  --accent: #1f2925;
  --accent-soft: #eef0ec;
  --yellow: #fff3ad;
  --blue: #cfeef4;
  --pink: #f9d0d2;
  --orange: #ffd3a3;
  --green: #dfeadd;
  --danger: #b63c3c;
  --success: #276b45;
  --shadow: 0 22px 55px rgba(67, 79, 70, 0.18);
  --small-shadow: 0 12px 22px rgba(38, 44, 41, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 243, 173, 0.35), transparent 28%),
    linear-gradient(180deg, var(--page), var(--page-soft));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 16px auto 0;
  padding: 12px 14px 12px 18px;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid rgba(228, 232, 223, 0.9);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(67, 79, 70, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--yellow);
  border: 1px solid rgba(32, 37, 35, 0.08);
  border-radius: 9px;
  box-shadow: var(--small-shadow);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #3b413d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--accent-soft);
  outline: 0;
}

.main-nav .nav-cta {
  margin-left: 6px;
  background: var(--accent);
  color: #fffdf7;
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
  background: #34413c;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  align-items: center;
  gap: 44px;
  padding-top: 70px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #526059;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero h2 {
  max-width: 620px;
  margin: 18px 0 16px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: #45504b;
  font-size: 18px;
}

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

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

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible {
  outline: 3px solid rgba(31, 41, 37, 0.22);
  outline-offset: 2px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.button-primary {
  background: var(--accent);
  color: #fffdf7;
  box-shadow: 0 12px 24px rgba(31, 41, 37, 0.16);
}

.button-primary:hover {
  background: #34413c;
}

.button-secondary {
  background: #fffdf7;
  border-color: var(--line);
  color: var(--accent);
}

.button-secondary:hover {
  background: #f5f6f0;
  border-color: #d4dacd;
}

.product-preview {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 520px;
  overflow: hidden;
  background: #f8f8f5;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 18px;
  background: #fbfbfa;
  border-right: 1px solid var(--line);
}

.preview-title,
.preview-heading {
  font-weight: 900;
}

.preview-title {
  font-size: 18px;
}

.preview-search {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.preview-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 7px;
  color: #4e5651;
  font-size: 12px;
  font-weight: 700;
}

.preview-row.active {
  background: #efefed;
}

.preview-row span {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #b7c8b5;
}

.preview-row b {
  min-width: 24px;
  color: #69746e;
  text-align: right;
}

.preview-tags {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.preview-tags i {
  width: 44px;
  height: 26px;
  border-radius: 6px;
}

.preview-tags i:nth-child(1) {
  background: var(--blue);
}

.preview-tags i:nth-child(2) {
  background: var(--pink);
}

.preview-tags i:nth-child(3) {
  background: #efefed;
}

.preview-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  grid-auto-rows: 178px;
  gap: 16px;
  padding: 28px 28px 34px;
}

.preview-heading {
  grid-column: 1 / -1;
  align-self: start;
  height: 42px;
  font-size: 32px;
  line-height: 1;
}

.sticky {
  padding: 18px;
  border-radius: 6px;
  box-shadow: var(--small-shadow);
}

.sticky h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.2;
}

.sticky p {
  margin: 0;
  color: #39423e;
  font-size: 13px;
  line-height: 1.45;
}

.sticky-yellow {
  background: var(--yellow);
}

.sticky-blue {
  background: var(--blue);
}

.sticky-pink {
  background: var(--pink);
}

.sticky-orange {
  background: var(--orange);
}

.sticky-add {
  display: grid;
  place-items: center;
  background: #ececeb;
  color: var(--text);
  font-size: 64px;
  line-height: 1;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.benefit-grid,
.steps,
.pricing-grid {
  display: grid;
  gap: 18px;
}

.benefit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-card,
.step-card,
.price-card,
.form-card {
  background: var(--surface);
  border: 1px solid rgba(228, 232, 223, 0.92);
  border-radius: 12px;
  box-shadow: var(--small-shadow);
}

.mini-card,
.step-card,
.price-card {
  padding: 24px;
}

.mini-card h3,
.step-card h3,
.price-card h3 {
  margin: 16px 0 8px;
  font-size: 21px;
  line-height: 1.18;
}

.mini-card p,
.step-card p,
.contact-copy,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.icon-box,
.step-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  color: var(--accent);
  font-weight: 900;
  box-shadow: 0 8px 14px rgba(38, 44, 41, 0.07);
}

.icon-box.yellow {
  background: var(--yellow);
}

.icon-box.blue {
  background: var(--blue);
}

.icon-box.pink {
  background: var(--pink);
}

.icon-box.orange {
  background: var(--orange);
}

.how {
  background: rgba(255, 253, 247, 0.35);
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: rgba(31, 41, 37, 0.32);
  box-shadow: 0 24px 48px rgba(67, 79, 70, 0.2);
  transform: translateY(-10px);
}

.badge {
  align-self: flex-start;
  margin: 0 0 8px;
  padding: 6px 10px;
  background: var(--yellow);
  border-radius: 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.price {
  margin: 14px 0 18px;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.price span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.price-card ul {
  display: grid;
  gap: 9px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.price-card li {
  color: #424c46;
}

.price-card li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--success);
  font-weight: 900;
}

.price-card .button {
  margin-top: auto;
}

.academic-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(340px, 1fr);
  gap: 42px;
  align-items: start;
}

.form-card {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.check-field {
  color: #3d4641;
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d9dfd5;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.field input,
.field select {
  min-height: 46px;
  padding: 10px 12px;
}

.field textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #cbd5c7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(31, 41, 37, 0.13);
}

.field.error input,
.field.error select,
.field.error textarea {
  border-color: var(--danger);
}

.field small,
.check-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--success);
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(340px, 1fr);
  gap: 42px;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-details p {
  margin: 0;
  padding: 14px 16px;
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 34px;
  background: rgba(31, 41, 37, 0.92);
  border-radius: 16px;
  color: #fffdf7;
}

.footer-brand {
  color: #fffdf7;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 24px 0;
}

.site-footer a {
  color: #fffdf7;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
  font-size: 14px;
}

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

  .hero {
    padding-top: 56px;
  }

  .product-preview {
    grid-template-columns: 170px 1fr;
  }

  .benefit-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    inset: 86px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #fffdf7;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav .nav-cta {
    margin-left: 0;
  }

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

  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 680px) {
  .section {
    width: min(100% - 24px, 1180px);
    padding: 62px 0;
  }

  .site-header,
  .site-footer {
    width: calc(100% - 24px);
  }

  .hero {
    gap: 32px;
    padding-top: 42px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .product-preview {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .preview-sidebar {
    display: none;
  }

  .preview-board {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(142px, auto);
    padding: 24px;
  }

  .preview-heading {
    height: auto;
    font-size: 30px;
  }

  .benefit-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .form-card,
  .site-footer {
    padding: 22px;
  }
}
