:root {
  --milk: #f7f0e6;
  --paper: #fff9f0;
  --oat: #efe2d0;
  --oat-strong: #ead8bf;
  --ink: #2f241c;
  --muted: #6e5a4a;
  --line: #d8c8b8;
  --olive: #6f7a45;
  --olive-dark: #5c6638;
  --terracotta: #b87454;
  --sage: #a8ad7a;
  --shadow: 0 18px 55px rgba(65, 45, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--milk);
  color: var(--muted);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
.note-card,
.side-note {
  text-wrap: pretty;
}

img {
  display: block;
  width: 100%;
}

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

a:focus-visible {
  outline: 3px solid rgba(111, 122, 69, 0.38);
  outline-offset: 4px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(247, 240, 230, 0.9);
  border-bottom: 1px solid rgba(216, 200, 184, 0.7);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--ink);
  white-space: nowrap;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--olive);
  border-radius: 999px;
  color: var(--olive-dark);
  font-size: 14px;
  font-weight: 700;
}

.section {
  position: relative;
  padding: clamp(64px, 9vw, 116px) 0;
}

.section:not(.hero) {
  border-top: 1px solid rgba(216, 200, 184, 0.58);
}

.section.hero {
  padding-top: clamp(42px, 7vw, 86px);
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  align-items: center;
  gap: clamp(36px, 6vw, 78px);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--olive-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(42px, 7.4vw, 78px);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(36px, 5vw, 58px);
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--olive);
  color: var(--paper);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(111, 122, 69, 0.18);
  transition: background 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--olive-dark);
  transform: translateY(-1px);
}

.button-max {
  background: var(--terracotta);
  box-shadow: 0 14px 26px rgba(164, 92, 70, 0.16);
}

.button-max:hover {
  background: #8d4a37;
}

.contact-actions {
  gap: 12px;
}

.center-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.center-action .contact-actions {
  align-items: stretch;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
}

.center-action .contact-actions .button {
  width: 100%;
}

.button:focus-visible,
.top-cta:focus-visible {
  outline-offset: 5px;
}

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

.handwritten {
  margin: 24px 0 0;
  color: var(--terracotta);
  font-family: "Caveat", cursive;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
}

.photo-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 200, 184, 0.85);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-photo {
  aspect-ratio: 4 / 5;
}

.hero-photo img {
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.oat {
  background:
    linear-gradient(180deg, rgba(255, 249, 240, 0.28), rgba(239, 226, 208, 0) 34%),
    var(--oat);
}

.section-head {
  max-width: 830px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 19px;
}

.section-head.compact {
  margin-bottom: 0;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.note-card {
  position: relative;
  grid-column: span 2;
  display: flex;
  align-items: center;
  min-height: 178px;
  padding: 32px 32px 28px;
  border: 1px solid rgba(111, 122, 69, 0.24);
  border-top: 5px solid rgba(111, 122, 69, 0.72);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(255, 249, 240, 0) 48%),
    var(--paper);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(25px, 2.35vw, 31px);
  line-height: 1.18;
  box-shadow: 0 22px 46px rgba(65, 45, 31, 0.11);
}

.note-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.note-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.soft-line {
  max-width: 860px;
  margin: 46px auto 0;
  padding: 24px 30px 24px 34px;
  border: 1px solid rgba(216, 200, 184, 0.9);
  border-left: 5px solid var(--olive);
  border-radius: 10px;
  background: rgba(255, 249, 240, 0.72);
  color: var(--muted);
  font-size: 19px;
  box-shadow: 0 12px 34px rgba(65, 45, 31, 0.06);
}

.mobile-break {
  display: none;
}

.desktop-break {
  display: initial;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 450px);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.side-note {
  position: relative;
  margin-top: 72px;
  padding: 28px 28px 28px 34px;
  border: 1px solid rgba(111, 122, 69, 0.34);
  border-left: 5px solid var(--olive);
  border-radius: 10px;
  background: var(--paper);
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
  box-shadow: 0 20px 48px rgba(65, 45, 31, 0.11);
}

.side-note::before {
  content: "про анализы";
  display: block;
  margin-bottom: 12px;
  color: var(--olive-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  gap: 16px;
}

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

.info-card {
  position: relative;
  padding: 28px 28px 26px;
  border: 1px solid rgba(111, 122, 69, 0.25);
  border-left: 5px solid rgba(111, 122, 69, 0.82);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 249, 240, 0) 52%),
    var(--paper);
  box-shadow: 0 18px 42px rgba(65, 45, 31, 0.1);
}

.info-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 30px;
  margin-bottom: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(111, 122, 69, 0.13);
  color: var(--olive-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.process {
  background:
    linear-gradient(90deg, rgba(111, 122, 69, 0.15), transparent 34%),
    var(--milk);
}

.steps {
  display: grid;
  gap: 14px;
  max-width: 920px;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(111, 122, 69, 0.24);
  border-left: 5px solid rgba(111, 122, 69, 0.78);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(111, 122, 69, 0.08), rgba(255, 249, 240, 0) 24%),
    rgba(255, 249, 240, 0.86);
  box-shadow: 0 14px 34px rgba(65, 45, 31, 0.07);
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--paper);
  font-weight: 900;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
}

.result-grid {
  grid-template-columns: repeat(6, 1fr);
}

.result-grid .info-card {
  grid-column: span 2;
}

.result-grid .info-card:nth-last-child(2) {
  grid-column: 2 / span 2;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

.about-photo {
  aspect-ratio: 4 / 5;
}

.about-photo img {
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.about-copy p:not(.eyebrow) {
  color: var(--muted);
}

.markers {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: 12px 12px;
  margin-top: 26px;
}

.markers span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(111, 122, 69, 0.28);
  border-radius: 999px;
  background: rgba(255, 249, 240, 0.94);
  color: var(--olive-dark);
  font-size: 14px;
  font-weight: 700;
}

.markers span:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
}

.signup .cards.three {
  margin-top: 0;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.final-cta {
  padding-bottom: clamp(76px, 10vw, 130px);
}

.final-box {
  max-width: 900px;
  padding: clamp(32px, 6vw, 66px);
  border: 1px solid rgba(111, 122, 69, 0.28);
  border-left: 6px solid var(--olive);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(111, 122, 69, 0.08), rgba(255, 249, 240, 0) 36%),
    var(--paper);
  box-shadow: 0 24px 56px rgba(65, 45, 31, 0.12);
}

.final-box p:not(.eyebrow):not(.handwritten):not(.small-note) {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.final-actions {
  margin-top: 28px;
}

@media (max-width: 920px) {
  .topbar {
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .nav {
    display: none;
  }

  .brand {
    width: 100%;
    font-size: clamp(14px, 3.9vw, 16px);
    letter-spacing: 0;
    white-space: nowrap;
  }

  .hero-grid,
  .split,
  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-copy {
    display: contents;
  }

  .hero .eyebrow {
    order: 1;
  }

  .hero h1 {
    order: 2;
  }

  .hero .lead {
    order: 3;
  }

  .hero .actions {
    order: 4;
  }

  .hero .handwritten {
    order: 5;
  }

  .hero-photo {
    order: 6;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-photo {
    max-width: 520px;
  }

  .side-note {
    margin-top: 10px;
  }

  .cards.three,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-grid .info-card,
  .result-grid .info-card:nth-last-child(2) {
    grid-column: auto;
  }

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

  .note-card,
  .note-card:nth-child(4),
  .note-card:nth-child(5) {
    grid-column: auto;
    min-height: auto;
  }

  .mobile-break {
    display: initial;
  }

  .desktop-break {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .topbar {
    padding: 14px 18px;
    gap: 12px;
  }

  .brand {
    font-size: clamp(14px, 3.9vw, 16px);
  }

  .top-cta {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .section {
    padding: 58px 0;
  }

  h1 {
    margin-bottom: 20px;
    font-size: 41px;
  }

  h2 {
    font-size: 36px;
  }

  .lead,
  .section-head p:not(.eyebrow),
  .soft-line,
  .final-box p:not(.eyebrow):not(.handwritten):not(.small-note) {
    font-size: 16px;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
  }

  .hero-photo,
  .about-photo {
    aspect-ratio: 4 / 4.8;
  }

  .info-card,
  .note-card,
  .step,
  .side-note,
  .final-box {
    padding: 20px;
  }

  .soft-line {
    margin-top: 30px;
    padding: 20px;
  }

  .step {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

  .step span {
    width: 38px;
    height: 38px;
  }

  .markers span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

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

  .markers span:nth-child(3) {
    grid-column: auto;
  }
}
