:root {
  --bg: #080808;
  --bg-soft: #121212;
  --panel: #181818;
  --panel-strong: #202020;
  --text: #f6f6f6;
  --muted: #b7b7b7;
  --line: rgba(255, 255, 255, 0.12);
  --red: #e62b2e;
  --red-dark: #b91f22;
  --green: #6ec35d;
  --yellow: #f2c94c;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body::selection {
  background: var(--red);
  color: #fff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(230, 43, 46, 0.7);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(8, 8, 8, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img,
.footer-brand img {
  width: 142px;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.nav a,
.header-phone {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.header-phone:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 780px;
  padding: 170px 0 80px;
  isolation: isolate;
}

.hero__media,
.hero__bg,
.hero__media::after {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -2;
  overflow: hidden;
  background: #070707;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero__media::after {
  content: "";
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.96), rgba(8, 8, 8, 0.56) 48%, rgba(8, 8, 8, 0.88)),
    linear-gradient(180deg, rgba(8, 8, 8, 0.5), rgba(8, 8, 8, 0.95));
}

.hero__accent {
  position: absolute;
  z-index: 2;
  opacity: 0.42;
  filter: saturate(1.25);
  pointer-events: none;
}

.hero__accent--vk {
  width: 230px;
  top: 96px;
  left: 5%;
}

.hero__accent--ig {
  width: 148px;
  right: 7%;
  top: 125px;
}

.hero__content {
  max-width: 900px;
  margin-left: max(20px, calc((100vw - var(--max)) / 2));
  margin-right: auto;
}

.eyebrow,
.kicker,
.case-card__label {
  margin: 0 0 14px;
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow {
  color: #fff;
  font-size: 1.15rem;
  text-transform: none;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

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

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 28px;
  font-size: 4.8rem;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

h2 {
  font-size: 3.1rem;
}

h3 {
  font-size: 1.35rem;
}

.hero__text {
  max-width: 670px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 15px 22px;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button--primary {
  background: var(--red);
  box-shadow: 0 18px 40px rgba(230, 43, 46, 0.24);
}

.button--primary:hover {
  background: #ff383c;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 0;
}

.hero__stats div,
.platform,
.process-list li,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.hero__stats div {
  padding: 20px;
}

.hero__stats dt {
  font-size: 1.7rem;
  font-weight: 900;
  color: #fff;
}

.hero__stats dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.section {
  padding: 92px 0;
}

.section--cases {
  background: #0d0d0d;
}

.section--platforms {
  background:
    linear-gradient(180deg, #0d0d0d, #111),
    #111;
}

.section--process {
  background: #080808;
}

.section-head {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-head h2 {
  margin-bottom: 18px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head--compact {
  margin: 0;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  min-width: 0;
}

.case-card__image {
  width: 100%;
  aspect-ratio: 1.16;
  object-fit: cover;
  background: #222;
}

.case-card__body {
  padding: 24px;
}

.case-card h3 {
  margin-bottom: 20px;
}

.case-card__label {
  font-size: 0.78rem;
}

.metric-list {
  display: grid;
  gap: 9px;
  margin-bottom: 0;
}

.metric-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.metric-list dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.metric-list dd {
  margin: 0;
  color: #fff;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.platforms {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

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

.platform {
  min-height: 190px;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 22px;
  text-align: center;
}

.platform img {
  width: 76px;
  max-height: 76px;
  object-fit: contain;
}

.platform span {
  color: #fff;
  font-weight: 800;
}

.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
}

.process-list li {
  min-height: 250px;
  padding: 28px;
  background: var(--panel);
}

.process-list span {
  display: block;
  margin-bottom: 36px;
  color: var(--red);
  font-size: 0.92rem;
  font-weight: 900;
}

.process-list p {
  color: var(--muted);
}

.lead-section {
  position: relative;
  overflow: hidden;
  padding: 104px 0;
  isolation: isolate;
  background: #070707;
}

.lead-section__bg,
.lead-section__bg::after {
  position: absolute;
  inset: 0;
}

.lead-section__bg {
  z-index: -2;
}

.lead-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
}

.lead-section__bg::after {
  content: "";
  background: linear-gradient(90deg, rgba(8, 8, 8, 0.97), rgba(8, 8, 8, 0.62));
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: center;
}

.lead-layout h2 {
  max-width: 680px;
  margin-bottom: 20px;
}

.lead-layout p {
  max-width: 590px;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.contact-row a,
.footer-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: rgba(18, 18, 18, 0.92);
}

.lead-form label:not(.checkbox) {
  color: #fff;
  font-weight: 800;
}

.lead-form input[type="tel"] {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0 16px;
  background: #f2f2f2;
  color: #111;
}

.checkbox {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.92rem;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--red);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-note.is-success {
  color: var(--green);
}

.site-footer {
  padding: 28px 0;
  background: #020202;
  border-top: 1px solid var(--line);
}

.footer-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 1020px) {
  .site-header {
    grid-template-columns: auto auto;
  }

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

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

  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .case-grid,
  .platforms,
  .process-list,
  .lead-layout,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .case-grid {
    max-width: 700px;
  }

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

  .lead-form {
    max-width: 520px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    position: absolute;
    gap: 12px;
    padding: 14px;
    background: rgba(8, 8, 8, 0.92);
  }

  .brand img,
  .footer-brand img {
    width: 118px;
  }

  .header-phone {
    display: none;
    justify-self: end;
    font-size: 0.82rem;
    padding-inline: 8px;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .nav a {
    justify-content: center;
    min-height: 34px;
    padding: 7px 5px;
    font-size: 0.78rem;
  }

  .hero {
    padding: 180px 0 58px;
  }

  .hero__content {
    width: min(calc(100% - 28px), var(--max));
    margin: 0 auto;
  }

  .hero__accent--vk {
    width: 150px;
    left: -20px;
    top: 130px;
  }

  .hero__accent--ig {
    width: 92px;
    right: 10px;
    top: 180px;
  }

  h1 {
    max-width: 360px;
    font-size: 1.68rem;
    line-height: 1.12;
  }

  h2 {
    font-size: 1.6rem;
    line-height: 1.12;
  }

  h3 {
    font-size: 1.18rem;
  }

  .hero__text,
  .section-head p,
  .lead-layout p {
    font-size: 1rem;
  }

  .hero__text,
  .section-head,
  .hero__actions,
  .hero__stats {
    max-width: 360px;
  }

  .hero__actions,
  .contact-row {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero__stats,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .lead-section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .case-card__body,
  .lead-form,
  .process-list li {
    padding: 20px;
  }

  .metric-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .metric-list dd {
    text-align: left;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.05rem;
  }

  h2 {
    font-size: 1.72rem;
  }

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

  .hero {
    padding-top: 180px;
  }
}
