:root {
  --ink: #17212a;
  --deep: #12364f;
  --blue: #0c4f82;
  --warm: #e79823;
  --warm-soft: #f4c36f;
  --paper: #f4f0e8;
  --paper-light: #fbf8f1;
  --graphite: #252a2e;
  --muted: #69747d;
  --line: #d8d0c3;
  --white: #ffffff;
  --shadow: 0 28px 90px rgba(23, 33, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid rgba(23, 33, 42, 0.12);
  background: rgba(244, 240, 232, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 clamp(18px, 3vw, 44px);
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand span {
  display: grid;
  gap: 3px;
}

.brand strong {
  color: var(--deep);
  font-size: 24px;
  line-height: 1;
}

.brand em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.site-nav {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  color: #3e4a53;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a,
.header-contacts a,
.contact-links a {
  transition: color 220ms ease;
}

.site-nav a:hover,
.header-contacts a:hover,
.contact-links a:hover {
  color: var(--warm);
}

.header-contacts {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  padding: 0 clamp(18px, 3vw, 44px);
  color: var(--deep);
  font-weight: 900;
}

.header-contacts a:last-child {
  color: #a86512;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-right: 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--deep);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 82px;
  background:
    linear-gradient(90deg, rgba(244, 240, 232, 1) 0 52%, rgba(244, 240, 232, 0.86)),
    radial-gradient(circle at 86% 28%, rgba(231, 152, 35, 0.22), transparent 31rem),
    repeating-linear-gradient(90deg, rgba(23, 33, 42, 0.038) 0 1px, transparent 1px 108px),
    repeating-linear-gradient(0deg, rgba(23, 33, 42, 0.03) 0 1px, transparent 1px 108px);
}

.hero-bg {
  position: absolute;
  inset: 82px 0 0;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(calc(100% - 56px), 1320px);
  min-height: calc(100vh - 82px);
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 0.92fr);
  gap: clamp(34px, 5.6vw, 86px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(46px, 6vw, 82px) 0 clamp(48px, 6vw, 84px);
}

.eyebrow,
.card-label {
  margin: 0 0 16px;
  color: #a86512;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 660px;
  margin-bottom: 24px;
  color: var(--deep);
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(34px, 4.1vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h3 {
  color: var(--deep);
}

.lead {
  max-width: 610px;
  margin-bottom: 24px;
  color: #46535d;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.55;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 640px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.hero-benefits li {
  position: relative;
  min-height: 38px;
  padding: 9px 13px 9px 30px;
  border: 1px solid rgba(18, 54, 79, 0.16);
  background: rgba(251, 248, 241, 0.72);
  color: var(--deep);
  font-size: 14px;
  font-weight: 900;
}

.hero-benefits li::before {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--warm);
  transform: translateY(-50%);
}

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

.button {
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

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

.button-primary {
  background: var(--warm);
  color: #1e1204;
  box-shadow: 0 16px 36px rgba(231, 152, 35, 0.28);
}

.button-primary:hover {
  background: #f0a72f;
  box-shadow: 0 20px 44px rgba(231, 152, 35, 0.34);
}

.button-secondary {
  border-color: rgba(18, 54, 79, 0.44);
  background: rgba(251, 248, 241, 0.44);
  color: var(--deep);
}

.button-secondary:hover {
  border-color: var(--warm);
  background: rgba(251, 248, 241, 0.78);
}

.hero-visual {
  position: relative;
  min-height: min(66vh, 670px);
  overflow: hidden;
  background: var(--graphite);
  box-shadow: var(--shadow);
}

.hero-visual::before {
  position: absolute;
  inset: 18px;
  z-index: 2;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(18, 54, 79, 0.06), rgba(18, 54, 79, 0.56)),
    linear-gradient(90deg, rgba(23, 33, 42, 0.18), transparent 46%);
  pointer-events: none;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(66vh, 670px);
  object-fit: cover;
  transform: scale(1.01);
}

.visual-panel {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  z-index: 3;
  display: grid;
  gap: 14px;
  padding: 24px;
  background: rgba(37, 42, 46, 0.92);
  color: var(--white);
}

.visual-panel h2 {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.05;
}

.visual-panel p:not(.card-label) {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.56;
}

.contact-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-mini a {
  color: var(--warm-soft);
  font-size: 16px;
  font-weight: 900;
}

.services,
.steps,
.contacts,
.site-footer {
  width: min(calc(100% - 56px), 1240px);
  margin: 0 auto;
}

.services,
.steps,
.contacts {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section-title {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  margin-bottom: 34px;
}

.section-title h2 {
  max-width: 820px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-list article {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(18, 54, 79, 0.12);
  background: rgba(251, 248, 241, 0.78);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.service-list article::after {
  position: absolute;
  right: 26px;
  bottom: 24px;
  width: 44px;
  height: 2px;
  content: "";
  background: var(--warm);
  transform: scaleX(0.48);
  transform-origin: right;
  transition: transform 220ms ease;
}

.service-list article:hover {
  border-color: rgba(231, 152, 35, 0.42);
  background: var(--paper-light);
  box-shadow: 0 18px 54px rgba(23, 33, 42, 0.1);
  transform: translateY(-4px);
}

.service-list article:hover::after {
  transform: scaleX(1);
}

.service-number {
  display: block;
  margin-bottom: 18px;
  color: #a86512;
  font-weight: 900;
}

.service-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 34px;
  place-items: center;
  border: 1px solid rgba(18, 54, 79, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(244, 240, 232, 0.42)),
    rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.54);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.service-icon svg {
  width: 38px;
  height: 38px;
  overflow: visible;
}

.service-icon path {
  fill: none;
  stroke: var(--deep);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-icon .accent-line {
  stroke: var(--warm);
}

.service-list article:hover .service-icon {
  border-color: rgba(231, 152, 35, 0.46);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(231, 152, 35, 0.11)),
    var(--paper-light);
  transform: translateY(-2px);
}

.service-list h3,
.step-list h3 {
  margin-bottom: 14px;
  color: var(--deep);
  font-size: 25px;
  line-height: 1.12;
}

.service-list p,
.step-list p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.steps {
  width: 100%;
  padding: clamp(66px, 8vw, 110px) max(28px, calc((100% - 1240px) / 2));
  border-top: 1px solid rgba(18, 54, 79, 0.12);
  border-bottom: 1px solid rgba(18, 54, 79, 0.12);
  background:
    linear-gradient(90deg, rgba(18, 54, 79, 0.04), transparent 34%),
    var(--paper-light);
}

.steps .section-title {
  width: min(100%, 1240px);
  margin-right: auto;
  margin-left: auto;
}

.step-list {
  position: relative;
  display: grid;
  gap: 0;
  width: min(100%, 980px);
  margin: 6px auto 0;
  padding-left: 66px;
}

.step-list::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 21px;
  width: 1px;
  content: "";
  background: rgba(18, 54, 79, 0.22);
}

.step-list article {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 20px 0 20px;
  border-bottom: 1px solid rgba(18, 54, 79, 0.12);
}

.step-list article::before {
  position: absolute;
  top: 50%;
  left: -57px;
  width: 14px;
  height: 14px;
  content: "";
  border: 4px solid var(--warm);
  background: var(--paper-light);
  transform: translateY(-50%);
}

.step-list span {
  color: #a86512;
  font-size: 28px;
  font-weight: 900;
}

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

.contacts {
  padding-bottom: clamp(54px, 7vw, 92px);
}

.contacts-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 52px;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid rgba(18, 54, 79, 0.14);
  background: var(--paper-light);
  box-shadow: 0 18px 60px rgba(23, 33, 42, 0.08);
}

.contacts-inner p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.contact-links {
  display: grid;
  border-top: 1px solid var(--line);
}

.contact-links a {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--deep);
  font-size: 20px;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 200ms ease, transform 200ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-nav,
  .header-contacts {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav.is-open {
    position: absolute;
    top: 82px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 12px 24px 20px;
    background: var(--paper-light);
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open a {
    padding: 14px 0;
  }

  .hero-grid,
  .contacts-inner,
  .section-title {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 520px;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: 72px;
  }

  .brand {
    padding: 0 14px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .brand em {
    display: none;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-bg {
    inset: 72px 0 0;
  }

  .hero-grid,
  .services,
  .contacts,
  .site-footer {
    width: calc(100% - 28px);
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 42px;
    padding-bottom: 52px;
  }

  h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

  h2 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 520px;
  }

  .visual-panel {
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 18px;
  }

  .service-list,
  .step-list article {
    grid-template-columns: 1fr;
  }

  .service-list article {
    min-height: auto;
  }

  .step-list {
    padding-left: 52px;
  }

  .step-list::before {
    left: 17px;
  }

  .step-list article {
    gap: 10px;
    align-items: start;
    padding: 22px 0;
  }

  .step-list article::before {
    left: -43px;
  }

}
