:root {
  --method-dark: #0f2e23;
  --method-emerald: #1e5a3f;
  --method-lime: #c7f545;
  --method-light: #e9f8d9;
  --method-paper: #f7faf5;
  --method-ink: #0f1720;
  --method-muted: #64748b;
  --method-border: #e2e8f0;
}

body {
  overflow-x: hidden;
  color: var(--method-ink);
  background: var(--method-paper);
}

.w {
  width: min(1440px, calc(100% - 96px));
}

header.w {
  position: relative;
  z-index: 20;
  height: 82px;
  border-color: rgba(15, 46, 35, .12);
}

.brand {
  display: block;
  width: 175px;
  height: 58px;
  overflow: hidden;
  font-size: 0;
}

.brand::before {
  display: block;
  width: 175px;
  height: 58px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: url('./logo full dark.svg') left center / contain no-repeat;
}

header nav {
  margin-left: auto;
  gap: 27px;
  font-size: 14px;
}

header nav a {
  position: relative;
  padding-block: 28px;
}

header nav .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 17px;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: var(--method-lime);
  transform: translateX(-50%);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-left: 34px;
  padding: 0 20px;
  border-radius: 11px;
  background: var(--method-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: 1.08fr .92fr;
  min-height: 610px;
  padding: 95px 0 80px;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 50% 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 81% 42%, rgba(199,245,69,.2), transparent 25%),
    linear-gradient(135deg, #fafcf8, #f0f7eb);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -240px;
  top: -260px;
  width: 850px;
  height: 850px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  box-shadow: 0 0 0 92px rgba(255,255,255,.3), 0 0 0 94px rgba(148,226,68,.23), 0 0 0 188px rgba(255,255,255,.25);
  pointer-events: none;
}

.hero > div {
  position: relative;
  z-index: 2;
}

.tag {
  color: #087443;
  font-size: 12px;
  letter-spacing: .13em;
}

.hero h1 {
  max-width: 790px;
  margin: 22px 0 28px;
  font-size: clamp(68px, 5.2vw, 92px);
  line-height: .94;
}

.hero .lead {
  max-width: 790px;
  font-size: 20px;
  line-height: 1.6;
}

.stamp {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid rgba(92, 164, 109, .32);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(8,57,41,.97), rgba(2,42,30,.98));
  box-shadow: 0 28px 65px rgba(4, 56, 37, .2), 0 0 42px rgba(154, 239, 82, .12);
  color: #fff;
}

.stamp::before {
  content: "МЕТОДИКА";
  display: inline-flex;
  margin-bottom: 34px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--method-lime);
  color: var(--method-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
}

.stamp span { color: rgba(255,255,255,.52); }
.stamp strong { margin-top: 10px; font-size: 25px; }

.layout {
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 30px;
  padding-block: 52px 20px;
}

.toc {
  top: 24px;
  gap: 3px;
  padding: 20px;
  border-color: rgba(72, 139, 93, .28);
  border-radius: 18px;
  background: var(--method-dark);
  box-shadow: 0 18px 45px rgba(12, 56, 37, .12);
}

.toc span {
  margin-bottom: 8px;
  color: var(--method-lime);
}

.toc a {
  color: rgba(255,255,255,.65);
  transition: background-color .2s, color .2s, transform .2s;
}

.toc a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
  transform: translateX(3px);
}

.content { gap: 22px; }

.section {
  position: relative;
  overflow: hidden;
  padding: 38px;
  border-color: rgba(112, 137, 117, .22);
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 38px rgba(42, 78, 49, .04);
}

.section::after {
  content: "";
  position: absolute;
  right: -110px;
  top: -120px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199,245,69,.11), transparent 69%);
  pointer-events: none;
}

.section h2 {
  position: relative;
  z-index: 1;
  margin: 12px 0 18px;
  font-size: clamp(29px, 3vw, 40px);
  line-height: 1.08;
}

.section h3 { color: var(--method-dark); }
.section p, .section li { font-size: 16px; }

.flow {
  gap: 12px;
  margin-top: 26px;
  border: 0;
  background: transparent;
}

.flow article {
  min-height: 165px;
  padding: 23px;
  border: 1px solid rgba(96, 134, 103, .2);
  border-radius: 14px;
  background: #f7faf5;
}

.flow span { color: #087443; }
.flow strong { margin-top: 18px; font-size: 17px; }
.flow p { margin-bottom: 0; font-size: 13px; }

.formula {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border: 1px solid rgba(100, 209, 130, .18);
  border-radius: 14px;
  background: linear-gradient(135deg, #103e2c, #073224);
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}

.formula::after {
  content: "";
  position: absolute;
  right: -65px;
  top: -90px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(199,245,69,.24);
  border-radius: 50%;
}

.status-grid, .terms { gap: 14px; }

.status, .term {
  padding: 21px;
  border-color: rgba(92, 132, 101, .2);
  border-radius: 14px;
  background: #f8faf7;
}

.status strong, .term strong { color: var(--method-dark); font-size: 16px; }

.source {
  padding: 20px 0;
}

.source a { color: #0d6843; }

.warning {
  border-color: rgba(220, 173, 75, .27);
  background: linear-gradient(135deg, #fff9eb, #fffdf6);
}

.cta.w {
  position: relative;
  overflow: hidden;
  width: min(1440px, calc(100% - 96px));
  min-height: 210px;
  margin: 48px auto 80px;
  padding: 44px 58px;
  border-radius: 22px;
  background: #c7f23f url('./cta-background-final.jpg') center / cover no-repeat;
  box-shadow: 0 20px 55px rgba(92,145,42,.09);
}

.cta h2 {
  max-width: 720px;
  font-size: clamp(35px, 3.5vw, 54px);
  line-height: 1.06;
}

.cta .button {
  min-width: 210px;
  padding: 18px 24px;
  border-radius: 11px;
  text-align: center;
}

footer.w {
  width: min(1440px, calc(100% - 96px));
}

@media (max-width: 1050px) {
  .w, .cta.w, footer.w { width: min(100% - 32px, 1440px); }
  .nav-cta { display: none; }
  .hero { grid-template-columns: 1fr; gap: 35px; }
  .stamp { justify-self: start; }
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 700px) {
  .w, .cta.w, footer.w { width: min(100% - 24px, 1440px); }
  header nav { display: none; }
  .brand, .brand::before { width: 145px; }
  .hero { min-height: auto; padding: 64px 0; }
  .hero h1 { font-size: 54px; }
  .hero .lead { font-size: 17px; }
  .stamp { padding: 25px; }
  .toc { grid-template-columns: 1fr 1fr; }
  .section { padding: 25px; }
  .flow, .status-grid, .terms { grid-template-columns: 1fr; }
  .cta { align-items: flex-start; flex-direction: column; }
  .cta .button { width: 100%; }
}

@media (max-width: 460px) {
  .toc { grid-template-columns: 1fr; }
  .hero h1 { font-size: 46px; }
}
