:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --ink: #202624;
  --muted: #626966;
  --line: #e1ddd7;
  --red: #a80f1a;
  --red-dark: #7f0b14;
  --red-soft: #f6e7e8;
  --graphite: #141715;
  --mint: #c8fff6;
  --mint-strong: #8ef4e6;
  --shadow: 0 22px 60px rgba(32, 38, 36, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 88px;
  padding: 0 42px;
  border-bottom: 1px solid rgba(225, 221, 215, 0.9);
  background: rgba(248, 247, 244, 0.92);
  backdrop-filter: blur(16px);
}

.brand-logo {
  display: inline-grid;
  gap: 2px;
  line-height: 1;
}

.logo-main {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
}

.logo-sub {
  color: var(--red);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.48em;
  text-transform: uppercase;
}

.logo-tagline {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 680;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

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

.telegram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(168, 15, 26, 0.25);
  border-radius: 0;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 760;
  box-shadow: 0 12px 28px rgba(168, 15, 26, 0.18);
}

.telegram-link:hover {
  background: var(--red-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(520px, 0.92fr) minmax(420px, 0.88fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 88px);
  max-width: 1320px;
  margin: 0 auto;
  padding: 76px 32px 56px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.07;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.2;
}

.lead {
  max-width: 680px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

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

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

.button.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 16px 34px rgba(168, 15, 26, 0.22);
}

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

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

.button.light {
  background: #fff;
  color: var(--red);
  box-shadow: none;
}

.microcopy {
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
}

.performance-panel {
  width: 100%;
  max-width: 620px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(200, 255, 246, 0.66);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(20, 23, 21, 0.96), rgba(20, 23, 21, 0.88)),
    var(--graphite);
  color: #fff;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 10px;
  color: rgba(255, 255, 255, 0.74);
}

.panel-header strong {
  color: var(--mint);
  font-size: clamp(44px, 5.4vw, 72px);
  font-weight: 300;
  line-height: 1;
}

.chart-area {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  min-height: 310px;
  gap: 18px;
  padding: 44px 28px 26px;
}

.chart-grid {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(200, 255, 246, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 246, 0.18) 1px, transparent 1px);
  background-size: 100% 62px, 70px 100%;
}

.bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 84px;
  padding: 18px;
  border: 1px solid rgba(200, 255, 246, 0.18);
  border-radius: 8px 8px 0 0;
  background: rgba(200, 255, 246, 0.08);
}

.bar.manual {
  height: 92px;
}

.bar.scripts {
  height: 190px;
}

.bar.system {
  height: 260px;
  background: rgba(200, 255, 246, 0.2);
}

.bar span {
  color: var(--mint);
  font-size: 32px;
  font-weight: 360;
}

.bar strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 680;
}

.growth-line {
  position: absolute;
  right: 18px;
  bottom: 56px;
  z-index: 3;
  width: 72%;
  max-width: 430px;
  fill: none;
  pointer-events: none;
}

.growth-line path {
  stroke: var(--mint-strong);
  stroke-width: 5;
  stroke-linecap: round;
}

.growth-line circle {
  fill: var(--mint);
}

.panel-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(200, 255, 246, 0.18);
}

.panel-metrics div {
  padding: 20px 24px;
  background: rgba(20, 23, 21, 0.78);
}

.panel-metrics strong,
.panel-metrics span {
  display: block;
}

.panel-metrics strong {
  margin-bottom: 4px;
  color: var(--mint);
}

.panel-metrics span {
  color: rgba(255, 255, 255, 0.7);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 82px 32px;
}

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

.section-heading h2 {
  margin-bottom: 0;
}

.pain-band {
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.pain-band .section-heading,
.pain-grid {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.pain-grid,
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pain-grid article,
.people-grid article {
  min-height: 166px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.pain-grid p,
.people-grid p,
.contact p {
  margin: 0;
  color: var(--muted);
}

.examples {
  display: grid;
  gap: 12px;
}

.case-feature {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 30px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.case-feature:hover .case-preview img {
  transform: scale(1.02);
}

.case-preview {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--graphite);
}

.case-preview img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.case-preview span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(20, 23, 21, 0.86);
  color: #fff;
  font-size: 14px;
  font-weight: 780;
}

.case-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 30px 30px 0;
}

.case-copy h3 {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.case-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.case-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 380px);
  gap: 14px;
  margin: -6px 0 30px;
  padding-bottom: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.case-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  scroll-snap-align: start;
}

.case-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--graphite);
  transition: transform 220ms ease;
}

.case-card:hover img {
  transform: scale(1.018);
}

.case-card div {
  padding: 18px;
}

.case-card span {
  color: var(--red);
  font-size: 13px;
  font-weight: 780;
}

.case-card h3 {
  margin: 8px 0 10px;
  font-size: 20px;
  line-height: 1.12;
}

.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.example-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  min-height: 84px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}

.example-item:last-child {
  border-bottom: 1px solid var(--line);
}

.example-item span {
  color: var(--red);
  font-weight: 780;
}

.example-item p {
  margin: 0;
  font-size: 18px;
}

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

.freedom {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: 34px;
  align-items: start;
}

.freedom-list {
  display: grid;
  gap: 12px;
}

.freedom-list div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.freedom-list strong {
  color: var(--red);
}

.freedom-list span {
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin-bottom: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--graphite);
  color: #fff;
}

.contact .eyebrow {
  color: #f1a6ad;
}

.contact p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer a {
  color: var(--red);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 26px;
}

.video-modal:target {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 23, 21, 0.78);
}

.modal-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 0;
  width: min(1120px, 100%);
  max-height: calc(100vh - 52px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.modal-content video {
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: #000;
  object-fit: contain;
}

.modal-copy {
  padding: 34px;
}

.modal-copy h2 {
  font-size: clamp(28px, 3vw, 42px);
}

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

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--red);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    padding: 0 20px;
  }

  .nav {
    display: none;
  }

  .hero,
  .freedom,
  .contact,
  .case-feature,
  .modal-content {
    grid-template-columns: 1fr;
  }

  .case-copy {
    padding: 0 24px 28px;
  }

  .modal-content video {
    min-height: 260px;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .performance-panel {
    max-width: none;
    justify-self: stretch;
  }

  .pain-grid,
  .people-grid,
  .people .people-grid,
  .panel-metrics {
    grid-template-columns: 1fr;
  }

  .contact .button {
    width: fit-content;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 42px;
  }

  .site-header,
  .footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .telegram-link.top {
    display: none;
  }

  .hero,
  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .performance-panel {
    margin-right: -4px;
    margin-left: -4px;
  }

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

  .chart-area {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .bar.manual,
  .bar.scripts,
  .bar.system {
    height: auto;
    min-height: 92px;
  }

  .growth-line {
    display: none;
  }

  .example-item,
  .freedom-list div {
    grid-template-columns: 1fr;
  }

  .case-carousel {
    grid-auto-columns: minmax(260px, 86vw);
  }

  .button {
    width: 100%;
  }

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