/* =========================================================
   NUTRIA Monetization Web Page
   Static deploy-ready page: HTML + CSS + JS
   ========================================================= */

:root {
  --bg: #f8fbfa;
  --surface: #ffffff;
  --surface-soft: #f1faf5;
  --surface-blue: #f3f9fc;
  --ink: #071126;
  --muted: #5d6b7a;
  --line: #dce7e4;
  --line-strong: #b9d6cc;
  --green-900: #005246;
  --green-800: #006858;
  --green-700: #087765;
  --green-600: #0f8b73;
  --green-500: #18a77f;
  --green-100: #e6f6ed;
  --blue-soft: #eaf6fb;
  --shadow: 0 18px 45px rgba(7, 17, 38, 0.08);
  --shadow-soft: 0 10px 26px rgba(7, 17, 38, 0.06);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --page-width: 1448px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 10%, rgba(24, 167, 127, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

body::selection {
  color: #ffffff;
  background: var(--green-700);
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

.page-shell {
  width: min(100%, var(--page-width));
  min-height: 100vh;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(0, 82, 70, 0.04);
}

.browser-top {
  height: 46px;
  display: grid;
  grid-template-columns: 118px 120px 1fr 104px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: #f5f7f7;
  border-bottom: 1px solid #d9e0df;
  color: #7b858e;
  user-select: none;
}

.browser-dots,
.browser-controls,
.browser-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }

.browser-arrow,
.browser-reload,
.browser-actions span {
  font-size: 24px;
  line-height: 1;
  color: #777f87;
}

.browser-reload {
  font-size: 19px;
  transform: translateY(-1px);
}

.browser-address {
  height: 30px;
  max-width: 690px;
  justify-self: center;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #cbd4d3;
  border-radius: 7px;
  background: #ffffff;
  color: #7a838c;
  font-size: 15px;
}

.lock-icon {
  color: #4e5a62;
  font-size: 10px;
}

.browser-actions {
  justify-content: flex-end;
}

.site-header {
  min-height: 84px;
  display: grid;
  grid-template-columns: 300px 1fr 245px;
  align-items: center;
  gap: 24px;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 231, 228, 0.78);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 26px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 44px;
  height: 44px;
}

.brand-logo-full {
  width: 142px;
  height: auto;
}

.top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 3vw, 45px);
}

.top-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.top-nav a:hover {
  color: var(--green-700);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.btn {
  min-height: 39px;
  border-radius: 9px;
  padding: 0 23px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-outline {
  color: var(--green-800);
  background: #ffffff;
  border-color: var(--green-600);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  box-shadow: 0 12px 22px rgba(0, 104, 88, 0.18);
}

.layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 34px;
  padding: 36px 32px 34px;
}

.side-nav {
  position: sticky;
  top: 22px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 22px 14px;
  min-height: 265px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(220, 231, 228, 0.9);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.side-link {
  display: block;
  color: var(--green-800);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 800;
  padding: 5px 2px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

.side-link:hover,
.side-link.active {
  color: var(--green-900);
  background: rgba(230, 246, 237, 0.8);
  padding-left: 10px;
}

.content {
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(430px, 1fr) 510px;
  align-items: center;
  gap: 34px;
  min-height: 142px;
  margin-bottom: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 10px;
  padding: 7px 12px;
  color: var(--green-800);
  background: rgba(230, 246, 237, 0.7);
  border: 1px solid rgba(185, 214, 204, 0.75);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 13px;
  font-size: clamp(43px, 4.8vw, 62px);
  line-height: 0.98;
  letter-spacing: 0.02em;
  font-weight: 900;
  color: var(--ink);
}

.hero-subtitle {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.43;
  font-weight: 520;
  letter-spacing: -0.02em;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  min-height: 135px;
}

.chart-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(220, 231, 228, 0.82);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.line-card {
  width: 198px;
  height: 132px;
  padding: 14px 15px 10px;
}

.line-card svg {
  width: 100%;
  height: 90px;
}

.tiny-line {
  width: 46px;
  height: 5px;
  margin: 0 0 5px;
  border-radius: 99px;
  background: #d7e5e2;
}

.tiny-line.short {
  width: 28px;
}

.grid-lines line {
  stroke: #dfe9e7;
  stroke-width: 1;
}

.bars rect {
  fill: #dcebe8;
}

.chart-line {
  fill: none;
  stroke: var(--green-600);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-dots circle {
  fill: var(--green-700);
}

.donut-card {
  width: 140px;
  height: 132px;
  padding: 14px 14px 12px;
}

.donut-wrap {
  position: relative;
  width: 86px;
  height: 86px;
  margin: -1px auto 3px;
}

.donut-wrap svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-track,
.donut-progress {
  fill: none;
  stroke-width: 18;
}

.donut-track {
  stroke: #dbeae7;
}

.donut-progress {
  stroke: var(--green-600);
  stroke-linecap: round;
  stroke-dasharray: 199 276;
}

.donut-wrap span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.donut-lines {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.donut-lines span {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #d7e5e2;
}

.leaf-watermark {
  position: absolute;
  right: 80px;
  bottom: -4px;
  width: 116px;
  height: 176px;
  border-radius: 80% 0 80% 0;
  background: linear-gradient(145deg, rgba(230, 246, 237, 0.88), rgba(255, 255, 255, 0.28));
  transform: rotate(18deg);
  opacity: 0.8;
}

.leaf-watermark::after {
  content: "";
  position: absolute;
  inset: 14px 52px 14px auto;
  width: 1px;
  background: rgba(0, 82, 70, 0.12);
  transform: rotate(12deg);
}

.leaf-badge {
  position: relative;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.leaf-badge img {
  width: 28px;
  height: 28px;
}

.hero-nutria {
  position: absolute;
  z-index: 5;
  right: 74px;
  top: -58px;
  width: 245px;
  max-width: 52%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 18px 28px rgba(7, 17, 38, 0.13));
}

.section {
  margin-top: 14px;
}

.section h2,
.section-title-row h2 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.section-note {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 750;
}

.table-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(7, 17, 38, 0.035);
}

.table-scroll {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  min-width: 930px;
  border-collapse: collapse;
  font-size: 12.8px;
}

.comparison-table th,
.comparison-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 7px 12px;
  vertical-align: middle;
  line-height: 1.25;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
  border-right: 0;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table th {
  color: #ffffff;
  background: linear-gradient(180deg, var(--green-900), var(--green-800));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.comparison-table td {
  color: #132033;
  background: rgba(255, 255, 255, 0.96);
  font-weight: 650;
}

.comparison-table tbody tr:nth-child(even) td {
  background: rgba(248, 251, 250, 0.92);
}

 .service {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  white-space: nowrap;
  font-weight: 900;
}

.service-name {
  display: inline-block;
  color: #132033;
}

.service-logo {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: 112px;
  height: 22px;
  object-fit: contain;
  object-position: left center;
}

.service-logo-zigmund { max-width: 100px; height: 18px; }
.service-logo-alter { max-width: 72px; height: 20px; }
.service-logo-yasno { max-width: 72px; height: 22px; }
.service-logo-sprosi { max-width: 32px; height: 32px; }
.service-logo-noom { max-width: 76px; height: 18px; }
.service-logo-healthify { max-width: 126px; height: 26px; }
.service-logo-napopravku { max-width: 128px; height: 28px; }

.insights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.insight-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px 13px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(7, 17, 38, 0.04);
}

.insight-card-accent-1 .insight-icon {
  background: linear-gradient(145deg, #e7fbf3, #d8f4ea);
  box-shadow: inset 0 0 0 1px rgba(24, 167, 127, 0.10), 0 10px 20px rgba(24, 167, 127, 0.10);
}

.insight-card-accent-2 .insight-icon {
  background: linear-gradient(145deg, #e7fbfa, #d4f4ef);
  box-shadow: inset 0 0 0 1px rgba(17, 142, 128, 0.10), 0 10px 20px rgba(17, 142, 128, 0.10);
}

.insight-card-accent-3 .insight-icon {
  background: linear-gradient(145deg, #ebf8f2, #dbf1e8);
  box-shadow: inset 0 0 0 1px rgba(0, 104, 88, 0.10), 0 10px 20px rgba(0, 104, 88, 0.08);
}

.insight-card-accent-4 .insight-icon {
  background: linear-gradient(145deg, #e7fbf6, #d3f5ea);
  box-shadow: inset 0 0 0 1px rgba(15, 139, 115, 0.12), 0 10px 20px rgba(15, 139, 115, 0.10);
}

.insight-icon {
  position: relative;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
}

.insight-icon::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(24, 167, 127, 0.18);
}

.insight-icon svg,
.model-icon svg,
.flow-icon svg,
.target-icon svg {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--green-700);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.insight-card h3 {
  margin: 0 0 7px;
  font-size: 13.3px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--ink);
}

.insight-card p {
  margin: 0;
  color: #334053;
  font-size: 12.5px;
  line-height: 1.28;
  font-weight: 560;
}

.models-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 12px;
}

.model-card {
  position: relative;
  min-height: 155px;
  padding: 14px 18px 13px;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(0, 104, 88, 0.82);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 82, 70, 0.05);
}

.model-card-best {
  background: linear-gradient(110deg, rgba(230, 246, 237, 0.9), rgba(255, 255, 255, 0.96));
}

.best-badge {
  position: absolute;
  right: -1px;
  top: -15px;
  padding: 6px 18px 7px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  border-radius: 14px 14px 0 14px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(0, 104, 88, 0.18);
}

.model-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.model-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #eff8f4, #ffffff);
  border: 1px solid rgba(0, 104, 88, 0.14);
  box-shadow: 0 8px 18px rgba(0, 82, 70, 0.10);
}

.model-icon-custom {
  position: relative;
  overflow: visible;
}

.model-icon-image {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.model-icon-number {
  position: absolute;
  right: -6px;
  top: -6px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  border: 2px solid #ffffff;
  box-shadow: 0 8px 16px rgba(0, 82, 70, 0.16);
  font-size: 12px;
  font-weight: 900;
}

.model-icon svg {
  width: 27px;
  height: 27px;
  stroke: #ffffff;
  stroke-width: 4.2;
}

.model-card h3 {
  margin: 0;
  color: var(--green-900);
  font-size: 15px;
  line-height: 1.12;
  font-weight: 950;
}

.model-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.model-card li {
  position: relative;
  margin: 0 0 5px;
  padding-left: 22px;
  color: #152235;
  font-size: 12.35px;
  line-height: 1.25;
  font-weight: 560;
}

.model-card li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-800);
  box-shadow: 0 0 0 3px rgba(0, 104, 88, 0.11);
}

.model-card strong {
  font-weight: 900;
}

.recommendation-section {
  margin-top: 14px;
}

.flow {
  display: grid;
  grid-template-columns: 1fr 42px 1fr 42px 1fr 42px 1.2fr;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
}

.flow-step {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--green-900);
  background: linear-gradient(180deg, #edf9f2 0%, #e5f4ec 100%);
  border: 1px solid #c7e4d5;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.12;
  font-weight: 900;
  text-align: center;
}

.flow-step-blue {
  background: #eff8fc;
  border-color: #c8e5f1;
}

.flow-step-dark {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  border-color: var(--green-800);
}

.flow-icon svg {
  width: 31px;
  height: 31px;
  stroke: currentColor;
  stroke-width: 3.4;
}

.flow-arrow {
  color: var(--green-800);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.conclusion-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: center;
  gap: 26px;
  margin-top: 12px;
  padding: 15px 28px;
  min-height: 77px;
  background: linear-gradient(90deg, #f1faf5, #ffffff);
  border: 2px solid var(--green-700);
  border-radius: 10px;
}

.target-icon {
  display: grid;
  place-items: center;
}

.target-icon svg {
  width: 61px;
  height: 61px;
  stroke-width: 3.8;
}

.conclusion-card h2 {
  margin: 0 0 5px;
  color: var(--green-900);
  font-size: 22px;
  line-height: 1.07;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.conclusion-card p {
  margin: 0;
  color: #39475b;
  font-size: 13px;
  line-height: 1.26;
  font-weight: 560;
}

.summary-bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 10px 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  border-radius: 9px;
  box-shadow: 0 12px 22px rgba(0, 104, 88, 0.14);
}

.summary-icon {
  font-size: 23px;
  line-height: 1;
}

.summary-bar p {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 650;
}

.summary-bar strong {
  font-size: 17px;
  font-weight: 950;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr;
    min-height: auto;
    padding: 22px 28px;
  }

  .top-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .header-actions {
    justify-content: flex-end;
  }

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

  .side-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    min-height: auto;
  }

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

  .hero-visual {
    justify-content: flex-start;
    min-height: 208px;
  }

  .hero-nutria {
    right: auto;
    left: 224px;
    top: -38px;
    width: 225px;
  }

  .insights-grid,
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .flow-arrow {
    transform: rotate(90deg);
    font-size: 30px;
  }
}

@media (max-width: 760px) {
  .browser-top {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 18px;
  }

  .top-nav,
  .header-actions {
    justify-content: flex-start;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .layout {
    padding: 24px 16px;
    gap: 22px;
  }

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

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-visual {
    transform: scale(0.9);
    transform-origin: left top;
    min-width: 560px;
    min-height: 210px;
    margin-bottom: -12px;
  }

  .hero-nutria {
    left: 210px;
    top: -28px;
    width: 215px;
  }

  .content {
    overflow: hidden;
  }

  .section-title-row {
    flex-direction: column;
    gap: 4px;
  }

  .insights-grid,
  .models-grid {
    grid-template-columns: 1fr;
  }

  .insight-card {
    grid-template-columns: 56px 1fr;
  }

  .insight-icon {
    width: 52px;
    height: 52px;
  }

  .conclusion-card {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: left;
  }

  .target-icon {
    place-items: start;
  }

  .summary-bar {
    padding: 14px 18px;
  }
}
