:root {
  --ink: #13211d;
  --muted: #62716d;
  --line: #dce5df;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --soft: #edf4ef;
  --green: #1f7a5d;
  --green-dark: #15553f;
  --mint: #cae8d8;
  --amber: #c8913b;
  --shadow: 0 24px 70px rgba(26, 51, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(202, 232, 216, 0.8), transparent 32rem),
    linear-gradient(180deg, #f7fbf4 0%, var(--paper) 45%, #f2f6ef 100%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

.site-header,
.site-footer,
main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.site-header::before {
  position: absolute;
  inset: 8px -14px;
  z-index: -1;
  content: "";
  background: rgba(251, 252, 248, 0.78);
  border: 1px solid rgba(220, 229, 223, 0.75);
  border-radius: 8px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.logo-mark {
  display: grid;
  width: 62px;
  height: 46px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 17px;
  place-items: center;
}

.logo-text {
  max-width: 214px;
  line-height: 1.1;
}

.worktime {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.worktime span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 760;
  line-height: 1;
  transition: color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(26, 51, 43, 0.16);
}

.button-primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 14px 30px rgba(31, 122, 93, 0.22);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line);
}

.button-secondary:hover {
  color: #fff;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: 46px;
  min-height: calc(100vh - 82px);
  padding: 48px 0 34px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5.35vw, 72px);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1;
}

.hero-list {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.35;
}

.hero-list li {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-list li::before {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--amber);
  border-radius: 50%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.cta-note {
  max-width: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
}

.hero-visual {
  position: relative;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(237, 244, 239, 0.78)),
    repeating-linear-gradient(90deg, rgba(19, 33, 29, 0.04) 0 1px, transparent 1px 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual::after {
  position: absolute;
  right: 18px;
  bottom: -26px;
  width: 46%;
  height: 58px;
  content: "";
  background: var(--mint);
  border-radius: 8px;
  opacity: 0.75;
}

.report-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 18px;
  background: #fbfff9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.report-top {
  display: flex;
  gap: 7px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.report-top span {
  width: 9px;
  height: 9px;
  background: var(--line);
  border-radius: 50%;
}

.report-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0;
}

small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 640;
}

.report-head strong,
.metric-grid strong {
  font-size: 19px;
}

.status {
  align-self: start;
  padding: 8px 10px;
  color: var(--green-dark);
  background: var(--mint);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-grid div {
  min-height: 92px;
  padding: 15px;
  background: var(--soft);
  border-radius: 8px;
}

.bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 10px;
  height: 138px;
  margin: 22px 0 18px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #edf4ef 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bars span {
  height: var(--h);
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: 7px 7px 3px 3px;
}

.table-lines {
  display: grid;
  gap: 10px;
}

.table-lines span {
  height: 13px;
  background: linear-gradient(90deg, rgba(31, 122, 93, 0.26), rgba(31, 122, 93, 0.04));
  border-radius: 999px;
}

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

.tiles-three {
  grid-template-columns: repeat(3, 1fr);
  padding: 18px 0 58px;
}

.tile {
  min-height: 168px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(26, 51, 43, 0.06);
  transition: color 180ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.tile-number {
  display: block;
  margin-bottom: 34px;
  color: var(--green);
  font-size: 13px;
  font-weight: 820;
}

.tile h2,
.tile h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.lead-form {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 86px;
  padding: 34px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(19, 33, 29, 0.96), rgba(31, 122, 93, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 48px);
  border-radius: 8px;
}

.lead-form .eyebrow {
  color: var(--mint);
}

.lead-form h2 {
  max-width: 560px;
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
}

.lead-form form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.lead-form label span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
}

.lead-form .button-primary {
  align-self: end;
  min-height: 54px;
  color: #fff;
  background: var(--green);
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 30px rgba(19, 33, 29, 0.18);
}

.lead-form .button-primary:hover {
  color: var(--green-dark);
  background: #fff;
  border-color: #fff;
}

.risk-section {
  padding: 8px 0 76px;
}

.section-head {
  max-width: 920px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1;
}

.tiles-six {
  grid-template-columns: repeat(3, 1fr);
}

.tiles-six .tile:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(26, 51, 43, 0.16);
}

.tiles-six .tile:hover .tile-number {
  color: var(--mint);
}

.statement {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement span {
  height: 2px;
  background: var(--amber);
}

.statement p {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 820;
  line-height: 1.06;
}

.consultation {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 42px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.consultation p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 820;
  line-height: 1.06;
}

.site-footer {
  padding: 13px 0 19px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .hero,
  .lead-form,
  .consultation {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .tiles-three,
  .tiles-six {
    grid-template-columns: 1fr 1fr;
  }

  .lead-form form {
    grid-template-columns: 1fr;
  }

  .lead-form .button-primary {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header,
  main {
    width: min(100% - 28px, 1180px);
  }

  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    position: sticky;
    top: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 16px 0;
  }

  .worktime {
    white-space: normal;
  }

  .site-header .worktime {
    font-size: 11px;
    line-height: 1.12;
  }

  .site-header .worktime span {
    font-size: 10px;
  }

  .site-header .button {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
  }

  .site-header .button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .site-header .button::before {
    content: "Tg";
    font-size: 15px;
    font-weight: 820;
  }

  .site-header .button::after {
    position: absolute;
    right: 0;
    bottom: -34px;
    z-index: 20;
    width: max-content;
    padding: 7px 9px;
    color: #fff;
    pointer-events: none;
    content: "Написать в Telegram";
    background: var(--ink);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 160ms ease, transform 160ms ease;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
  }

  .site-header .button:hover::after,
  .site-header .button:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
  }

  .hero {
    gap: 34px;
    padding-top: 34px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-list {
    font-size: 17px;
  }

  .cta-note {
    white-space: normal;
  }

  .hero-visual {
    display: none;
  }

  .metric-grid,
  .tiles-three,
  .tiles-six {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 142px;
  }

  .lead-form {
    margin-bottom: 58px;
    padding: 24px;
  }

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

  .statement span {
    width: 84px;
  }

  .consultation {
    padding: 24px;
  }

  .button {
    width: 100%;
    min-height: 52px;
    text-align: center;
  }
}
