@font-face {
  font-family: "RC";
  src: url("../fonts/rc-800i-cyr.woff2") format("woff2");
  font-weight: 800; font-style: italic; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "RC";
  src: url("../fonts/rc-800i-lat.woff2") format("woff2");
  font-weight: 800; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  --red: #e31b23;
  --red-dark: #b9141b;
  --ink: #1d1d1f;
  --text: #3c3c3c;
  --muted: #6b6b6b;
  --grey: #f4f3f3;
  --line: #e2e0e0;
  --blue: #2e4a7a;
  --head: "RC", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; color: var(--text); background: #fff;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-inline: 20px; }

/* Шапка */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(20, 20, 20, .92); backdrop-filter: blur(6px);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.topbar__logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 36px; }
.nav a {
  color: #fff; text-decoration: none; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { border-color: var(--red); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: .2s; }

/* Первый экран */
.hero {
  position: relative; min-height: min(92vh, 920px); display: grid; place-items: center;
  color: #fff; text-align: center; overflow: hidden; background: #111;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,.45) 60%, rgba(0,0,0,.7)); }
.hero__in { position: relative; padding-block: 120px 40px; }
.hero__logo { width: 130px; height: auto; margin: 0 auto 28px; }
.hero h1 {
  font-family: var(--head); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(30px, 6vw, 64px); line-height: 1.1; margin: 0 0 48px;
}
.hero__down { color: #fff; display: inline-block; animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translateY(8px); } }

/* Секции */
.section { padding-block: 80px; }
.section--grey { background: var(--grey); }
.title {
  font-family: var(--head); font-weight: 800; font-style: italic; text-transform: uppercase;
  color: var(--ink); font-size: clamp(30px, 4vw, 42px); line-height: 1.1;
  text-align: center; margin: 0 0 48px;
}
.title::after { content: ""; display: block; width: 76px; height: 6px; background: var(--red); margin: 16px auto 0; }
.title--left { text-align: left; }
.title--left::after { margin-left: 0; }

/* Услуги */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--grey); display: flex; flex-direction: column; }
.card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 22px 24px 28px; }
.card h3 { color: var(--blue); font-weight: 500; font-size: 19px; line-height: 1.3; margin: 0 0 12px; }
.card ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.card li { margin: 4px 0; }

/* О нас */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about p { margin: 0 0 16px; font-size: 15px; }
.about__logo { width: 100%; max-width: 440px; height: auto; justify-self: center; }

/* Цифры */
.stats { background: var(--red); color: #fff; padding-block: 56px; }
.stats__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-family: var(--head); font-weight: 800; font-style: italic; font-size: clamp(40px, 5vw, 60px); line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }

/* Проекты */
.project { max-width: 880px; margin: 0 auto; background: var(--grey); }
.project__head { display: flex; align-items: center; gap: 24px; padding: 16px 24px; }
.project__head img { width: 100px; height: auto; flex: none; }
.project__head h3 {
  flex: 1; margin: 0; text-align: center; color: var(--ink);
  font-family: var(--head); font-weight: 800; font-style: italic; font-size: clamp(18px, 2.4vw, 26px); line-height: 1.2;
}
.project__video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #222; }

/* Клиенты */
.clients {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 48px;
}
.clients img {
  width: 130px; height: auto; filter: grayscale(1) opacity(.7); transition: filter .25s;
}
.clients img.wide { width: 150px; }
.clients img:hover { filter: none; }

/* Контакты */
.map { height: 380px; background: var(--grey); margin-bottom: 56px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contacts h3 { color: var(--blue); font-weight: 500; font-size: 20px; margin: 0 0 10px; }
.contacts__info h3:not(:first-child) { margin-top: 28px; }
.contacts p { margin: 0 0 12px; font-size: 15px; }
.contacts a { text-decoration: none; }
.contacts a:hover { text-decoration: underline; }

form { display: grid; gap: 12px; margin-top: 20px; }
form label span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 10px 12px;
  border: 1px solid var(--line); background: #fff; border-radius: 0;
}
input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
textarea { resize: vertical; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.agree input { margin-top: 3px; }
.hp { position: absolute; left: -9999px; }
.btn {
  justify-self: end; background: var(--ink); color: #fff; border: 0; cursor: pointer;
  font: 500 15px/1 inherit; padding: 13px 30px; transition: background .2s;
}
.btn:hover { background: var(--red); }
.btn[disabled] { opacity: .6; cursor: wait; }
.form__status { margin: 0; font-size: 14px; }
.form__status.ok { color: #1a7f37; }
.form__status.err { color: var(--red-dark); }

.footer { background: #141414; color: #9a9a9a; font-size: 13px; padding-block: 24px; text-align: center; }

/* Адаптив */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .about, .contacts { grid-template-columns: 1fr; gap: 36px; }
  .about__logo { max-width: 320px; }
  .stats__in { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}
@media (max-width: 720px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #141414; padding: 8px 20px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid #2a2a2a; }
  .burger[aria-expanded=true] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded=true] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .section { padding-block: 56px; }
  .cards { grid-template-columns: 1fr; }
  .project__head { flex-direction: column; gap: 10px; }
  .map { height: 300px; }
  .btn { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__down { animation: none; }
}
