:root {
  --navy: #071525;
  --navy-soft: #10243a;
  --blue: #1677ff;
  --red: #ed2637;
  --gold: #c99700;
  --white: #ffffff;
  --text: #101828;
  --muted: #5f6b7a;
  --light: #f3f5f8;
  --border: #dfe4ea;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(7, 21, 37, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 21, 37, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-main {
  color: var(--white);
  font-size: 1.28rem;
  font-weight: 800;
}

.brand-sub {
  color: #9eacbc;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a:hover {
  color: #77aefe;
}

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 21, 37, 0.93) 0%, rgba(7, 21, 37, 0.57) 48%, rgba(7, 21, 37, 0.08) 78%),
    linear-gradient(0deg, rgba(7, 21, 37, 0.78) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 130px 0 90px;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9fc6ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--red));
}

.eyebrow.dark {
  color: var(--blue);
}

.hero h1 {
  max-width: 780px;
  margin: 18px 0;
  font-size: clamp(3.4rem, 8vw, 7.3rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.75);
}

.hero p {
  max-width: 590px;
  margin: 0 0 30px;
  color: #dce5ef;
  font-size: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 25px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(110deg, #183a57 0%, #c99400 100%);
  box-shadow: 0 12px 30px rgba(201, 151, 0, 0.24);
}

.btn-dark {
  color: var(--white);
  background: var(--navy);
}

.section {
  padding: 100px 0;
}

.section-dark {
  color: var(--white);
  background: var(--navy);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2,
.step-content h2,
.result-content h2,
.cta h2 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-head p,
.step-content p,
.result-content p,
.cta p {
  color: var(--muted);
  font-size: 1.04rem;
}

.section-head.light p {
  color: #b8c6d4;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.spec-card {
  min-height: 155px;
  padding: 27px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--light);
}

.spec-card span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.spec-card strong {
  font-size: 1.25rem;
}

.comparison {
  position: relative;
  max-width: 1080px;
  height: min(68vw, 620px);
  min-height: 390px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.comparison-after,
.comparison-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-after {
  object-position: center;
}

.comparison-before {
  max-width: none;
  object-position: center 38%;
}

.comparison-before-wrap {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
}

.comparison-line {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  pointer-events: none;
}

.comparison-line span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--white);
  transform: translate(-50%, -50%);
  font-weight: 900;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

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

.comparison-label {
  position: absolute;
  z-index: 3;
  top: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(7, 21, 37, 0.76);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.label-before {
  left: 22px;
}

.label-after {
  right: 22px;
}

.timeline {
  display: grid;
  gap: 96px;
}

.step {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 70px;
}

.step.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.step.reverse .step-image {
  order: 2;
}

.step-image {
  position: relative;
}

.step-image::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -18px;
  bottom: -18px;
  width: 58%;
  height: 54%;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(22, 119, 255, 0.24), rgba(237, 38, 55, 0.16));
}

.step-image img {
  width: 100%;
  height: 520px;
  display: block;
  object-fit: cover;
  border-radius: 25px;
  box-shadow: var(--shadow);
}

.step:nth-child(1) .step-image img {
  object-position: center 38%;
}

.step:nth-child(2) .step-image img {
  object-position: center 48%;
}

.step:nth-child(3) .step-image img {
  object-position: center 55%;
}

.step:nth-child(4) .step-image img {
  object-position: center 48%;
}

.step:nth-child(5) .step-image img {
  object-position: center 45%;
}

.step-content {
  position: relative;
}

.step-number {
  display: block;
  margin-bottom: -18px;
  color: #edf1f6;
  font-size: 6rem;
  line-height: 1;
  font-weight: 900;
}

.result-section {
  background: var(--light);
}

.result-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
}

.result-image img {
  width: 100%;
  min-height: 560px;
  display: block;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.result-list {
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}

.result-list li {
  position: relative;
  margin: 12px 0;
  padding-left: 30px;
  font-weight: 700;
}

.result-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--light);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.gallery-wide {
  grid-column: span 2;
}

.cta {
  padding: 75px 0;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(7, 21, 37, 0.97), rgba(16, 36, 58, 0.95)),
    url("images/r4-finale.jpg") center / cover;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta h2 {
  margin-bottom: 8px;
}

.cta p {
  margin: 0;
  color: #c0ccda;
}

.site-footer {
  padding: 30px 0;
  color: var(--white);
  background: #030d19;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 0.82rem;
}

.lightbox {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 45px;
  background: rgba(1, 8, 16, 0.94);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .main-nav {
    gap: 15px;
  }

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

  .step,
  .step.reverse,
  .result-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .step.reverse .step-image {
    order: initial;
  }

  .step-image img {
    height: 480px;
  }

  .result-image img {
    min-height: 460px;
  }

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

  .gallery-wide {
    grid-column: span 1;
  }
}

@media (max-width: 650px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-sub {
    display: none;
  }

  .main-nav a:not(:last-child) {
    display: none;
  }

  .hero {
    min-height: 610px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(7, 21, 37, 0.95) 0%, rgba(7, 21, 37, 0.48) 75%, rgba(7, 21, 37, 0.16) 100%);
  }

  .hero-content {
    padding: 100px 0 58px;
  }

  .hero h1 {
    font-size: 4.25rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .section {
    padding: 72px 0;
  }

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

  .comparison {
    height: 520px;
    min-height: 0;
  }

  .comparison-after {
    object-position: center;
  }

  .comparison-before {
    object-position: center 35%;
  }

  .timeline {
    gap: 70px;
  }

  .step-image img {
    height: 410px;
  }

  .result-image img {
    min-height: 380px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 330px;
  }

  .cta-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .lightbox {
    padding: 18px;
  }
}
