:root {
  --bg: #070707;
  --surface: #101010;
  --surface-2: #171717;
  --text: #f4f4f4;
  --muted: #a7a7a7;
  --line: rgba(255, 255, 255, 0.12);
  --red: #e20d18;
  --red-dark: #95060e;
  --white-soft: #f8f6f2;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px clamp(18px, 4vw, 64px);
  background: rgba(7, 7, 7, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 7, 7, 0.94);
  border-bottom-color: var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.logo-image {
  display: block;
  width: 190px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.main-nav a {
  transition: color 0.18s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
}

.nav-phone {
  padding: 11px 14px;
  background: rgba(226, 13, 24, 0.14);
  border: 1px solid rgba(226, 13, 24, 0.5);
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 150px clamp(18px, 5vw, 72px) 54px;
}

.hero-media,
.image-panel {
  background-color: #151515;
  background-image:
    linear-gradient(120deg, rgba(226, 13, 24, 0.22), transparent 32%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 16px),
    linear-gradient(90deg, rgba(7, 7, 7, 0.04), rgba(7, 7, 7, 0.24)),
    url("zaezd.png");
  background-position: center;
  background-size: cover;
}

.image-panel {
  background-image:
    linear-gradient(120deg, rgba(226, 13, 24, 0.22), transparent 32%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 16px),
    linear-gradient(90deg, rgba(7, 7, 7, 0.04), rgba(7, 7, 7, 0.24)),
    url("work.jpeg");
}

.hero-media {
  position: absolute;
  inset: 0;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.92) 0%, rgba(7, 7, 7, 0.68) 42%, rgba(7, 7, 7, 0.2) 100%),
    linear-gradient(0deg, rgba(7, 7, 7, 0.98) 0%, rgba(7, 7, 7, 0) 42%);
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
}

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

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(56px, 12vw, 152px);
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

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

.hero-lead {
  width: min(690px, 100%);
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2.3vw, 24px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 16px 32px rgba(226, 13, 24, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ff1b27;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.11);
}

.hero-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(840px, 100%);
  margin-top: 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.hero-info div {
  min-height: 96px;
  padding: 22px;
  background: rgba(11, 11, 11, 0.82);
}

.hero-info span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.hero-info strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.hero-info small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.section {
  padding: 92px clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.2fr);
  gap: 28px 70px;
  align-items: end;
  margin-bottom: 36px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -12px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.section-heading.compact {
  display: block;
  width: min(850px, 100%);
}

.section-heading.compact .eyebrow {
  margin-bottom: 8px;
}

.services-section {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.service-card {
  min-height: 260px;
  padding: 28px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease, transform 0.18s ease;
}

.service-card:hover {
  background: var(--surface-2);
}

.service-card:nth-child(3n) {
  border-right: 0;
}

.service-card:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.service-number {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.service-card p,
.content-panel p,
.step p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 46px;
  align-items: stretch;
  background: #0c0c0c;
}

.image-panel {
  min-height: 650px;
  border-radius: 8px;
  background-position: center left;
  box-shadow: var(--shadow);
}

.content-panel {
  align-self: center;
}

.content-panel > p:not(.eyebrow) {
  margin-bottom: 30px;
  font-size: 18px;
}

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

.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(226, 13, 24, 0.12);
  border: 1px solid rgba(226, 13, 24, 0.42);
  border-radius: 6px;
  color: #fff;
  font-weight: 900;
}

.step h3,
.step p {
  margin-bottom: 0;
}

.works-section {
  background: var(--white-soft);
  color: #111;
  padding-top: 72px;
  padding-bottom: 72px;
}

.works-section .eyebrow {
  color: var(--red-dark);
}

.works-section .section-heading p {
  color: #5b5b5b;
}

.work-comparison {
  --position: 50%;
  position: relative;
  width: min(860px, 100%);
  max-height: 640px;
  aspect-ratio: 1195 / 896;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  background: #111;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.comparison-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.comparison-after {
  clip-path: inset(0 0 0 var(--position));
}

.comparison-label {
  position: absolute;
  z-index: 3;
  top: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  background: rgba(7, 7, 7, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.comparison-label-before {
  left: 18px;
}

.comparison-label-after {
  right: 18px;
  background: rgba(226, 13, 24, 0.82);
}

.comparison-divider {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 0;
  pointer-events: none;
}

.comparison-divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 0 22px rgba(0, 0, 0, 0.42);
}

.comparison-handle {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: var(--red);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
}

.comparison-handle::before,
.comparison-handle::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
}

.comparison-handle::before {
  transform: translateX(-7px) rotate(-45deg);
}

.comparison-handle::after {
  transform: translateX(7px) rotate(135deg);
}

.comparison-range {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  background:
    linear-gradient(110deg, rgba(7, 7, 7, 0.93), rgba(7, 7, 7, 0.66)),
    repeating-linear-gradient(135deg, rgba(226, 13, 24, 0.12) 0 1px, transparent 1px 18px),
    url("offer.png");
  background-position: center;
  background-size: cover;
}

.contact-card {
  padding: clamp(24px, 4vw, 42px);
  background: rgba(12, 12, 12, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-lines {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.contact-lines a {
  color: #fff;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 72px);
  background: #050505;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span {
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-brand img {
  display: block;
  width: 132px;
  height: auto;
}

@media (max-width: 980px) {
  .section-heading,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .service-card:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .service-card:nth-child(2n) {
    border-right: 0;
  }

  .service-card:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .service-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .image-panel {
    min-height: 430px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 8px 18px;
  }

  .logo-image {
    width: 150px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: 66px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 4px;
    padding: 16px;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 12px;
  }

  .nav-phone {
    text-align: center;
  }

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

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 7, 7, 0.95), rgba(7, 7, 7, 0.7)),
      linear-gradient(0deg, rgba(7, 7, 7, 0.98) 0%, rgba(7, 7, 7, 0) 48%);
  }

  .hero-info {
    grid-template-columns: 1fr;
  }

  .hero-info div {
    min-height: auto;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .works-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(2n),
  .service-card:nth-child(3n),
  .service-card:nth-last-child(-n + 2),
  .service-card:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .service-card {
    min-height: auto;
  }

  .service-number {
    margin-bottom: 22px;
  }

  .image-panel {
    min-height: 330px;
  }

  .comparison-label {
    top: 12px;
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .comparison-label-before {
    left: 12px;
  }

  .comparison-label-after {
    right: 12px;
  }

  .comparison-handle {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 440px) {
  .logo-image {
    width: 136px;
  }

  h1 {
    font-size: 50px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .comparison-label {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 12px;
  }

  .comparison-handle {
    width: 38px;
    height: 38px;
  }
}
