@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&family=Oswald:wght@300;400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #111;
  --bg-2: #080808;
  --paper: #111;
  --ink: #f7f7f7;
  --muted: #b8b8b8;
  --dark-text: #f7f7f7;
  --red: #f2072a;
  --line: rgba(255, 255, 255, 0.16);
  --container: 1240px;
  --radius: 0;
  --font-text: "Inter", Arial, Helvetica, sans-serif;
  --font-display: "Oswald", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(100% - 64px, var(--container)); margin: 0 auto; }

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 18px 52px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(17,17,17,.9);
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
  backdrop-filter: blur(16px);
  transition: padding .28s ease, background .28s ease, box-shadow .28s ease;
}
.header.is-scrolled { padding-block: 14px; background: rgba(17,17,17,.96); box-shadow: 0 12px 34px rgba(0,0,0,.24); }
.brand {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}
.nav { display: flex; justify-content: center; gap: 52px; color: #d8d8d8; font-weight: 800; }
.nav a:hover { color: var(--red); }
.header__right { display: flex; align-items: center; gap: 16px; font-weight: 800; }
.social {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 13px;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.social:hover { transform: translateY(-1px); background: var(--red); color: #fff; }
.phone { text-align: right; }

.section-dark { background: var(--bg); color: var(--ink); }
.section-light { background: var(--paper); color: var(--dark-text); }
.section { padding: 120px 0; }
.kicker {
  margin: 0 0 16px;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1, h2, h3, p { margin: 0; }
h1 {
  font-family: var(--font-display);
  font-size: 176px;
  line-height: .9;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
h2 {
  max-width: 920px;
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}
h3 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}
.accent-title span,
.hero__subtitle span {
  color: var(--red);
}

.hero {
  min-height: clamp(680px, 100vh, 820px);
  display: grid;
  align-items: center;
  padding: 88px 0 44px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .55;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(480px, 1fr);
  gap: 40px;
  align-items: center;
}
.hero__content {
  min-width: 0;
  position: relative;
  z-index: 2;
}
.hero__subtitle {
  margin-top: 28px;
  max-width: 680px;
  font-family: var(--font-display);
  font-size: 62px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero__point {
  display: grid;
  grid-template-columns: 22px minmax(0, 520px);
  gap: 28px;
  align-items: start;
  margin-top: 56px;
  color: #e8e8e8;
  font-size: 22px;
}
.hero__point span {
  width: 22px;
  height: 22px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--red);
}
.hero__actions { display: flex; gap: 0; margin-top: 52px; }
.btn {
  min-height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 38px;
  border: 2px solid currentColor;
  font-weight: 950;
  cursor: pointer;
}
.btn--light { background: #fff; color: #111; }
.btn--line { color: #fff; background: transparent; }
.btn span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-left: -28px;
  background: #fff;
  color: #111;
}
.hero__visual {
  position: relative;
  width: 100%;
  height: clamp(520px, 62vh, 650px);
  overflow: hidden;
  z-index: 1;
  mask-image: linear-gradient(90deg, transparent 0, transparent 22%, #000 36%, #000 100%);
}
.hero__visual img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center right;
  filter: grayscale(1) contrast(1.08);
  opacity: .96;
}

.section-head { margin-bottom: 54px; }
.section-light {
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  color: var(--ink);
}
.cards--services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #151515;
}
.service__num { color: var(--red); font-size: 20px; font-weight: 950; }
.service h3 { margin-top: 28px; }
.service p { margin-top: 18px; color: var(--muted); }
.service ul { margin: 28px 0; padding: 0; list-style: none; color: #e7e7e7; }
.service li + li { margin-top: 8px; }
.service li::before { content: "•"; color: var(--red); margin-right: 9px; }
.service strong { margin-top: auto; color: var(--red); font-size: 26px; }

.process {
  display: grid;
  grid-template-columns: minmax(320px, .72fr) minmax(520px, 1.28fr);
  gap: 72px;
  align-items: start;
}
.process h2 { max-width: 640px; font-size: 72px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.steps li {
  display: grid;
  grid-template-columns: 64px minmax(140px, 170px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.steps span { color: var(--red); font-size: 28px; font-weight: 950; }
.steps b { font-size: 24px; }
.steps b, .steps p { min-width: 0; }
.steps p { color: var(--muted); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.case {
  min-height: 330px;
  padding: 34px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(242,7,42,.18), transparent 45%),
    #151515;
}
.case span { color: var(--red); font-weight: 950; text-transform: uppercase; }
.case h3 { margin-top: 80px; font-size: 42px; }
.case p { margin-top: 18px; color: var(--muted); }

.blog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}
.blog article {
  min-width: 0;
  overflow: hidden;
  padding: clamp(30px, 3vw, 46px);
  background: #151515;
  border: 1px solid var(--line);
}
.blog h2 {
  max-width: 100%;
  font-size: 64px;
  letter-spacing: 0;
  overflow-wrap: break-word;
}
.blog p:last-child { margin-top: 24px; color: var(--muted); font-size: 20px; }

.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.contacts p { margin-top: 30px; max-width: 620px; color: var(--muted); font-size: 22px; }
.form {
  display: grid;
  gap: 16px;
  padding: 40px;
  border: 1px solid var(--line);
  background: #151515;
}
.form label { display: grid; gap: 8px; color: #e8e8e8; font-weight: 800; }
.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0f0f0f;
  color: #fff;
  padding: 16px;
  outline: none;
}
.form input:focus, .form textarea:focus { border-color: var(--red); }
.form .btn { width: 100%; border-color: #fff; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #0c0c0c;
}
.footer span:first-child { color: var(--red); font-weight: 950; text-transform: uppercase; }
.chat {
  position: fixed;
  right: 42px;
  bottom: 36px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 28px;
  z-index: 30;
  transition: transform .22s ease, box-shadow .22s ease;
}
.chat:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(242,7,42,.28); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .72s ease,
    transform .72s cubic-bezier(.2,.72,.18,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.hero__visual.reveal { transform: translateY(22px) scale(.985); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .header { grid-template-columns: 1fr; gap: 16px; padding: 24px; position: absolute; }
  .nav { justify-content: flex-start; flex-wrap: wrap; gap: 18px; }
  .header__right { justify-content: flex-start; }
  h1 { font-size: 132px; }
  h2 { font-size: 72px; }
  h3 { font-size: 32px; }
  .hero__subtitle { font-size: 54px; }
  .hero__grid, .process, .contacts__grid { grid-template-columns: 1fr; }
  .process { gap: 42px; }
  .process h2 { max-width: 780px; font-size: 64px; }
  .blog h2 { font-size: 58px; }
  .hero__visual { position: relative; inset: auto; width: 100%; height: 520px; mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 100%); }
  .cards--services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-grid, .blog { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 76px 0; }
  h1, h2 { letter-spacing: 0; }
  h1 { font-size: 84px; }
  h2 { font-size: 50px; }
  h3 { font-size: 30px; }
  .header { padding: 28px 16px; }
  .nav {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: flex-start;
    gap: 12px 16px;
    font-size: 15px;
  }
  .header__right { flex-wrap: wrap; }
  .hero { padding-top: 230px; }
  .hero__subtitle { max-width: 340px; font-size: 38px; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; min-height: 58px; }
  .hero__point { grid-template-columns: 16px 1fr; font-size: 18px; gap: 16px; }
  .hero__point p { max-width: 300px; }
  .cards--services { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 1fr; }
  .process h2, .blog h2 { font-size: 50px; }
  .hero__visual { height: 380px; min-height: 0; margin-top: 24px; }
  .hero__visual img { width: 100%; height: 100%; right: 0; top: 0; bottom: auto; object-position: 70% center; }
  .footer { flex-direction: column; padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
