/* Визуальная система лендинга ЭВРИСТ.РФ: палитра, плакатная типографика и инженерная графика. */
:root {
  --cream: #f4eddc;
  --cream-deep: #e7dcc4;
  --graphite: #111113;
  --blue: #073456;
  --red: #b71621;
  --yellow: #e8b91b;
  --warm-text: #f5e8c9;
  --black: #050505;
  --muted: #6b665c;
  --line: rgba(5, 5, 5, 0.28);
  --display: "Arial Black", "Arial", sans-serif;
  --text: Arial, Helvetica, sans-serif;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--blue);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.04) 1px, transparent 1px) 0 0 / 120px 120px,
    var(--cream);
  font-family: var(--text);
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header,
.section-shell,
.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.brand__image {
  display: block;
  width: 42px;
  height: 42px;
  max-width: 42px;
  max-height: 42px;
  object-fit: contain;
}

.brand__mark {
  width: 16px;
  height: 16px;
  background:
    linear-gradient(90deg, transparent 44%, var(--black) 44% 56%, transparent 56%),
    radial-gradient(circle at 50% 50%, var(--black) 0 47%, transparent 48%);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-video,
.header-phone,
.max-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--black);
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-family: var(--display);
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.header-video,
.header-phone {
  padding: 8px 12px;
}

.max-link {
  width: 44px;
  color: var(--warm-text);
  background: var(--blue);
}

.header-video:hover,
.header-phone:hover,
.max-link:hover {
  transform: translate(-1px, -1px);
}

.hero > *,
.section-intro > *,
.service-layout > *,
.impact > *,
.impact__grid > *,
.metric > *,
.method > *,
.method__inner > *,
.proof > *,
.proof__frames > *,
.trust > *,
.trust__inner > *,
.faq > *,
.contact > * {
  min-width: 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 2px solid currentColor;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
}

.button--red {
  color: var(--warm-text);
  background: var(--red);
  border-color: var(--red);
  box-shadow: 6px 6px 0 var(--blue);
}

.button--dark,
.button--line {
  color: var(--warm-text);
  background: var(--graphite);
  border-color: var(--graphite);
}

.button--line {
  color: var(--blue);
  background: transparent;
  border-color: var(--blue);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--red);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  min-height: min(820px, calc(100vh - 86px));
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1fr);
  align-items: center;
  gap: 56px;
  padding: 48px 0 70px;
}

.hero__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

h1 {
  max-width: 590px;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: clamp(38px, 3.5vw, 52px);
}

h1 span {
  display: block;
  color: var(--red);
}

.hero__lead {
  max-width: 590px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero__support {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--blue);
  font-size: clamp(16px, 1.3vw, 19px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hero__actions .button {
  min-height: 60px;
  min-width: 220px;
  padding-inline: 28px;
  font-size: 15px;
}

.hero__microcopy {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.hero__poster {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border: 2px solid var(--black);
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(7, 52, 86, 0.12) 38% 39%, transparent 39%),
    var(--cream-deep);
  box-shadow: 14px 14px 0 var(--graphite);
}

.hero-video-slider {
  position: absolute;
  inset: 0;
  --slider-info-height: 172px;
  overflow: hidden;
  background: var(--graphite);
}

.hero-video-slider::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.7), transparent 42%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.58), transparent 48%),
    linear-gradient(90deg, rgba(244, 237, 220, 0.12) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(244, 237, 220, 0.12) 1px, transparent 1px) 0 0 / 42px 42px;
  content: "";
  pointer-events: none;
}

.hero-video-slider::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: var(--slider-info-height);
  background: rgba(5, 5, 5, 0.9);
  content: "";
  pointer-events: none;
}

.hero-video-slider__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 520ms ease,
    transform 1800ms ease;
}

.hero-video-slider__video.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-video-slider__overlay {
  position: absolute;
  left: 28px;
  bottom: 92px;
  z-index: 3;
  max-width: 320px;
  color: var(--warm-text);
}

.hero-video-slider__overlay span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-video-slider__overlay strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.hero-video-slider__controls {
  position: absolute;
  right: 36px;
  bottom: 72px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-video-slider__note {
  position: absolute;
  right: 36px;
  bottom: 28px;
  left: 28px;
  z-index: 3;
  margin: 0;
  color: rgba(245, 232, 201, 0.82);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.hero-video-slider__dots {
  display: flex;
  gap: 8px;
}

.hero-video-slider__dots button,
.hero-video-slider__arrow {
  border: 1px solid var(--warm-text);
  border-radius: 0;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.hero-video-slider__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  background: transparent;
}

.hero-video-slider__dots button.is-active {
  background: var(--red);
  border-color: var(--red);
}

.hero-video-slider__arrow {
  display: none;
}

.hero-video-slider__dots button:hover,
.hero-video-slider__arrow:hover {
  border-color: var(--yellow);
  transform: translate(-1px, -1px);
}

.poster-grid {
  position: absolute;
  inset: 36px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 15% 85%, transparent);
}

.poster-axis {
  position: absolute;
  background: var(--black);
  transform-origin: left center;
}

.poster-axis--one {
  width: 300px;
  height: 3px;
  left: 54px;
  top: 190px;
  transform: rotate(-34deg);
}

.poster-axis--two {
  width: 260px;
  height: 2px;
  right: 44px;
  bottom: 120px;
}

.poster-number {
  position: absolute;
  right: -12px;
  bottom: -28px;
  color: rgba(7, 52, 86, 0.16);
  font-family: var(--display);
  font-size: 210px;
  line-height: 0.75;
  letter-spacing: -0.1em;
}

.poster-label {
  position: absolute;
  left: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  font-weight: 900;
  text-transform: uppercase;
}

.poster-label::before {
  width: 17px;
  height: 17px;
  border: 1px solid var(--black);
  border-radius: 50%;
  content: "";
}

.poster-label--blue {
  top: 52px;
}

.poster-label--blue::before {
  background: #4b79a8;
}

.poster-label--red {
  top: 96px;
}

.poster-label--red::before {
  background: var(--red);
}

.poster-label--yellow {
  top: 140px;
}

.poster-label--yellow::before {
  background: var(--yellow);
}

.poster-figure {
  position: absolute;
  bottom: 66px;
  width: 145px;
  height: 260px;
  clip-path: polygon(42% 0, 67% 13%, 59% 38%, 86% 100%, 54% 100%, 42% 62%, 24% 100%, 0 100%, 30% 39%, 20% 12%);
}

.poster-figure::before {
  position: absolute;
  top: -46px;
  left: 38px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.poster-figure--main {
  right: 168px;
  background: var(--yellow);
}

.poster-figure--dark {
  right: 72px;
  bottom: 46px;
  background: var(--blue);
  transform: scale(0.94);
}

.poster-figure--light {
  right: 262px;
  bottom: 40px;
  background: #fffaf0;
  transform: scale(0.9);
}

.ticker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
}

.ticker span {
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(16px, 1.6vw, 24px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-align: center;
  text-transform: uppercase;
}

.ticker span:last-child {
  border-right: 0;
}

.services,
.impact,
.proof,
.trust,
.faq,
.contact {
  padding: 84px 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 36px;
}

.services h2,
.impact h2,
.method h2,
.proof h2,
.trust h2,
.faq h2,
.contact h2 {
  max-width: 920px;
  margin-bottom: 0;
  color: var(--blue);
  font-size: clamp(34px, 4.2vw, 60px);
}

.services h2 span,
.impact h2 span {
  color: var(--red);
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 20px;
}

.panel {
  position: relative;
  min-width: 0;
  min-height: 260px;
  overflow: hidden;
  padding: 30px;
  border: 2px solid var(--black);
}

.panel::after {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 132px;
  height: 132px;
  background:
    linear-gradient(90deg, currentColor 2px, transparent 2px) 0 0 / 24px 24px,
    linear-gradient(currentColor 2px, transparent 2px) 0 0 / 24px 24px;
  opacity: 0.38;
  content: "";
}

.panel--blue {
  grid-row: span 2;
  color: var(--warm-text);
  background: var(--blue);
}

.panel--cream {
  color: var(--blue);
  background: var(--cream-deep);
}

.panel--dark {
  color: var(--warm-text);
  background: var(--graphite);
}

.panel__index {
  margin-bottom: 42px;
  font-family: var(--display);
  font-size: 17px;
}

.panel h3 {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: clamp(26px, 2.4vw, 38px);
}

.panel p:not(.panel__index) {
  max-width: 600px;
  margin-bottom: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.line-list {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.line-list li {
  padding-top: 10px;
  border-top: 1px solid rgba(245, 232, 201, 0.38);
  font-weight: 700;
  line-height: 1.35;
}

.impact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

.impact__grid {
  display: grid;
  gap: 0;
  border-top: 2px solid var(--black);
}

.metric {
  display: grid;
  grid-template-columns: 72px minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 2px solid var(--black);
}

.metric span,
.process-list span {
  color: var(--red);
  font-family: var(--display);
}

.metric strong,
.trust__item strong {
  font-family: var(--display);
  font-size: 20px;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.metric p,
.trust__item p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.method {
  width: 100%;
  padding: 70px 0;
  color: var(--warm-text);
  background: var(--graphite);
}

.method__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  grid-template-areas:
    "rail list"
    "copy list";
  gap: 28px 32px;
  align-items: start;
}

.method .section-kicker,
.method h2 {
  color: var(--warm-text);
}

.method h2 {
  max-width: 100%;
  margin-bottom: 18px;
  font-size: clamp(32px, 3.7vw, 50px);
  line-height: 0.95;
}

.method__rail {
  grid-area: rail;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  border-right: 0;
  border-bottom: 1px solid rgba(245, 232, 201, 0.36);
  padding-bottom: 20px;
  color: var(--yellow);
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.method__copy {
  grid-area: copy;
  min-width: 0;
}

.method__copy p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(245, 232, 201, 0.84);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.process-list {
  display: grid;
  grid-area: list;
  gap: 0;
  min-width: 0;
  align-self: stretch;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(245, 232, 201, 0.32);
  list-style: none;
}

.process-list li {
  padding: 20px;
  border-bottom: 1px solid rgba(245, 232, 201, 0.32);
  background:
    linear-gradient(rgba(245, 232, 201, 0.1) 1px, transparent 1px) 0 0 / 30px 30px,
    transparent;
}

.process-list li:last-child {
  border-bottom: 0;
}

.process-list strong {
  display: block;
  margin: 12px 0 8px;
  font-family: var(--display);
  font-size: 20px;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.process-list p {
  margin-bottom: 0;
  color: rgba(245, 232, 201, 0.8);
  font-weight: 700;
  line-height: 1.35;
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

.proof__frames {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "company product"
    "company ad"
    "explain ad";
  gap: 18px;
}

.work-frame {
  min-width: 0;
  min-height: 250px;
  padding: 24px;
  border: 12px solid var(--cream);
  outline: 2px solid var(--black);
  background:
    linear-gradient(90deg, var(--blue) 0 10px, transparent 10px),
    linear-gradient(180deg, var(--red) 0 10px, transparent 10px),
    var(--cream-deep);
  box-shadow: 8px 8px 0 rgba(5, 5, 5, 0.18);
}

.work-frame--large {
  grid-area: company;
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(232, 185, 27, 0.9) 0 24%, transparent 24%),
    radial-gradient(circle at 72% 28%, var(--red) 0 18px, transparent 19px),
    linear-gradient(90deg, var(--blue) 0 10px, transparent 10px),
    var(--graphite);
  color: var(--warm-text);
}

.work-frame:nth-child(2) {
  grid-area: product;
}

.work-frame:nth-child(3) {
  grid-area: ad;
}

.work-frame:nth-child(4) {
  grid-area: explain;
}

.work-frame p {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-frame h3 {
  max-width: 360px;
  margin-bottom: 18px;
  font-size: clamp(20px, 1.9vw, 29px);
  overflow-wrap: normal;
}

.work-frame span {
  display: block;
  max-width: 320px;
  font-weight: 800;
}

.work-frame--clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.work-frame--clickable:hover,
.work-frame--clickable:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 rgba(5, 5, 5, 0.22);
}

.work-frame--clickable:focus {
  outline: none;
}

.work-frame--clickable:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.trust {
  width: 100%;
  padding: 84px 0;
  color: var(--warm-text);
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(245, 232, 201, 0.08) 48% 49%, transparent 49%),
    var(--graphite);
}

.trust__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
}

.trust .section-kicker,
.trust h2 {
  color: var(--warm-text);
}

.trust h2 {
  max-width: 100%;
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 0.95;
}

.trust__grid {
  display: grid;
  align-content: center;
  border-top: 1px solid rgba(245, 232, 201, 0.36);
}

.trust__item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(245, 232, 201, 0.36);
}

.trust__item p {
  color: rgba(245, 232, 201, 0.78);
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: 42px;
  align-items: start;
}

.faq__title {
  position: sticky;
  top: 110px;
}

.faq__list {
  border-top: 2px solid var(--black);
}

details {
  border-bottom: 2px solid var(--black);
}

summary {
  position: relative;
  padding: 22px 54px 22px 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

summary::after {
  position: absolute;
  top: 22px;
  right: 0;
  width: 30px;
  height: 30px;
  border: 2px solid var(--blue);
  color: var(--red);
  content: "+";
  display: grid;
  place-items: center;
  font-family: var(--display);
  line-height: 1;
}

details[open] summary::after {
  content: "–";
}

details p {
  max-width: 760px;
  margin: -6px 0 22px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
}

.contact__copy {
  max-width: 920px;
}

.contact h2 {
  max-width: 800px;
  font-size: clamp(32px, 3.3vw, 48px);
  line-height: 0.96;
}

.contact__copy p:last-child {
  max-width: 760px;
  margin-top: 20px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.25vw, 20px);
  font-weight: 700;
  line-height: 1.35;
}

.contact-form {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  width: 100%;
  padding: 30px;
  border: 2px solid var(--black);
  background: var(--cream-deep);
  box-shadow: 10px 10px 0 var(--graphite);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label:first-child {
  grid-column: 1 / -1;
}

.contact-form span {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 2px solid var(--black);
  border-radius: 0;
  padding: 14px;
  color: var(--blue);
  background: var(--cream);
  font-weight: 700;
  resize: vertical;
}

.contact-form textarea {
  min-height: 136px;
}

.contact-form .button {
  align-self: end;
  min-height: 58px;
}

.contact-form__note {
  grid-column: 2;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--yellow);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer a {
  color: inherit;
}

.footer-contacts {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-contacts .max-link {
  min-height: 30px;
  width: 40px;
  color: var(--warm-text);
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 19, 0.78);
}

.video-modal__panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border: 2px solid var(--black);
  background: var(--cream);
  box-shadow: 14px 14px 0 var(--graphite);
}

.video-modal__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.video-modal__head h2 {
  max-width: 720px;
  margin: 0;
  color: var(--blue);
  font-size: clamp(36px, 5vw, 72px);
}

.video-modal__close {
  width: 44px;
  height: 44px;
  border: 2px solid var(--black);
  background: var(--red);
  color: var(--warm-text);
  cursor: pointer;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
}

.video-modal__frame {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--black);
  background: var(--graphite);
  aspect-ratio: 16 / 9;
}

.video-modal__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--graphite);
}

.video-modal__fallback {
  margin-top: 18px;
}

.video-modal__fallback[hidden] {
  display: none;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 0.8fr) minmax(420px, 0.92fr);
    gap: 38px;
  }

  h1 {
    max-width: 520px;
    font-size: clamp(38px, 4.2vw, 50px);
  }

  .hero__lead {
    max-width: 520px;
    font-size: clamp(15px, 1.5vw, 17px);
  }

  .hero__actions .button {
    min-height: 54px;
    min-width: 185px;
    font-size: 14px;
  }

  .hero__poster {
    min-height: 540px;
    box-shadow: 8px 8px 0 var(--graphite);
  }

  .hero-video-slider__overlay {
    bottom: 104px;
    max-width: 280px;
  }

  .hero-video-slider {
    --slider-info-height: 164px;
  }

  .hero-video-slider__overlay strong {
    font-size: clamp(22px, 2.6vw, 30px);
  }

  .hero-video-slider__note {
    right: 36px;
  }

  .service-layout {
    grid-template-columns: 1fr;
  }

  .panel--blue {
    grid-row: auto;
  }

  .impact,
  .proof,
  .faq,
  .contact {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .proof__frames {
    grid-template-columns: 1fr;
    grid-template-areas:
      "company"
      "product"
      "ad"
      "explain";
    gap: 16px;
  }

  .work-frame {
    min-height: 220px;
  }

  .work-frame--large {
    min-height: 300px;
  }

  .impact h2,
  .proof h2,
  .faq h2,
  .contact h2 {
    max-width: 820px;
    font-size: clamp(32px, 4.8vw, 50px);
  }

  .contact h2 {
    max-width: 760px;
    font-size: clamp(32px, 3.8vw, 40px);
  }

  .trust__inner {
    grid-template-columns: 1fr;
  }

  .trust h2 {
    max-width: 760px;
  }

  .faq__title {
    position: static;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .header-phone {
    display: none;
  }

  .hero,
  .section-intro,
  .impact,
  .proof,
  .trust__inner,
  .faq,
  .contact {
    grid-template-columns: 1fr;
  }

  .method__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "rail"
      "copy"
      "list";
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  h1 {
    max-width: 760px;
    font-size: clamp(42px, 8vw, 72px);
  }

  .hero__poster {
    min-height: 430px;
  }

  .ticker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ticker span:nth-child(2) {
    border-right: 0;
  }

  .service-layout {
    grid-template-columns: 1fr;
  }

  .panel--blue {
    grid-row: auto;
  }

  .method__rail {
    gap: 12px 18px;
    font-size: clamp(30px, 9vw, 44px);
  }

  .metric {
    grid-template-columns: 56px minmax(0, 1fr);
  }

}

@media (max-width: 640px) {
  .site-header,
  .section-shell,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    position: relative;
    padding: 14px 0;
  }

  .header-cta {
    display: none;
  }

  .header-video {
    padding: 8px 10px;
    font-size: 11px;
  }

  .brand {
    font-size: 16px;
  }

  .hero {
    gap: 24px;
    padding: 26px 0 52px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(30px, 9.2vw, 40px);
  }

  h1 span {
    text-indent: 0;
  }

  .hero__lead {
    font-size: 16px;
    line-height: 1.18;
  }

  .hero__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero__poster {
    min-height: 360px;
    box-shadow: 8px 8px 0 var(--graphite);
  }

  .hero-video-slider__overlay {
    left: 18px;
    right: 18px;
    bottom: 98px;
    max-width: none;
  }

  .hero-video-slider {
    --slider-info-height: 150px;
  }

  .hero-video-slider__overlay strong {
    font-size: 25px;
  }

  .hero-video-slider__controls {
    right: 22px;
    bottom: 66px;
  }

  .hero-video-slider__note {
    right: 18px;
    bottom: 18px;
    left: 18px;
    font-size: 11px;
  }

  .poster-grid {
    inset: 24px;
    background-size: 30px 30px;
  }

  .poster-label {
    left: 22px;
    font-size: 12px;
  }

  .poster-figure {
    width: 104px;
    height: 190px;
  }

  .poster-figure--main {
    right: 108px;
  }

  .poster-figure--dark {
    right: 38px;
  }

  .poster-figure--light {
    right: 178px;
  }

  .poster-number {
    font-size: 150px;
  }

  .ticker {
    grid-template-columns: 1fr;
  }

  .ticker span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ticker span:last-child {
    border-bottom: 0;
  }

  .services,
  .impact,
  .proof,
  .trust,
  .faq,
  .contact,
  .method {
    padding: 64px 0;
  }

  .services h2,
  .impact h2,
  .method h2,
  .proof h2,
  .trust h2,
  .faq h2,
  .contact h2 {
    font-size: clamp(28px, 8.8vw, 40px);
  }

  .contact h2 {
    font-size: clamp(28px, 8.4vw, 38px);
  }

  .panel {
    min-height: 260px;
    padding: 22px;
  }

  .panel h3 {
    font-size: 23px;
  }

  .panel p:not(.panel__index),
  .line-list li {
    font-size: 16px;
  }

  .metric {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .method {
    padding: 46px 0;
  }

  .method__rail {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: clamp(28px, 11vw, 38px);
  }

  .metric {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .process-list li {
    padding: 18px;
  }

  .proof__frames {
    grid-template-columns: 1fr;
    grid-template-areas:
      "company"
      "product"
      "ad"
      "explain";
  }

  .work-frame--large {
    min-height: 320px;
  }

  .work-frame h3 {
    font-size: clamp(22px, 7vw, 30px);
  }

  summary {
    font-size: clamp(18px, 6vw, 24px);
  }

  .trust {
    padding-inline: 0;
  }

  summary {
    padding-right: 48px;
  }

  .contact {
    padding-bottom: 72px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 20px;
    box-shadow: 7px 7px 0 var(--graphite);
  }

  .contact-form textarea {
    min-height: 120px;
  }

  .contact-form__note {
    grid-column: 1;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-contacts {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-modal {
    padding: 14px;
  }

  .video-modal__panel {
    padding: 18px;
    box-shadow: 7px 7px 0 var(--graphite);
  }

  .video-modal__head h2 {
    font-size: clamp(32px, 10vw, 46px);
  }
}
