:root {
  --ink: #15191f;
  --muted: #66717f;
  --line: #d9e0e7;
  --soft: #f3f6f8;
  --paper: #ffffff;
  --deep: #17232c;
  --steel: #2d566b;
  --accent: #d25b2a;
  --accent-dark: #ad431d;
  --green: #4f7563;
  --shadow: 0 20px 55px rgba(28, 41, 51, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(217, 224, 231, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--deep);
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

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

.nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 22px;
  color: #394653;
  font-size: 15px;
}

.nav a:hover,
.header-phone:hover,
.footer a:hover {
  color: var(--accent);
}

.header-phone {
  font-weight: 700;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(44px, 7vw, 92px) clamp(18px, 4vw, 64px);
  background:
    linear-gradient(120deg, rgba(243, 246, 248, 0.96), rgba(255, 255, 255, 0.78) 48%, rgba(222, 232, 235, 0.58)),
    radial-gradient(circle at 16% 22%, rgba(210, 91, 42, 0.11), transparent 30%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.08;
}

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

.lead {
  max-width: 760px;
  color: #3e4a55;
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--deep);
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button.primary {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.ghost {
  color: var(--deep);
  background: rgba(255, 255, 255, 0.6);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 40px 0 0;
}

.metrics div {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.metrics dt {
  margin-bottom: 8px;
  color: var(--deep);
  font-size: 28px;
  font-weight: 900;
}

.metrics dd {
  margin: 0;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border: 1px solid rgba(23, 35, 44, 0.14);
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(56px, 7vw, 96px) clamp(18px, 4vw, 64px);
}

.band {
  background: var(--soft);
}

.dark {
  color: #eef4f5;
  background: var(--deep);
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

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

.dark .section-head p,
.dark article p {
  color: #c3d0d5;
}

.service-grid,
.audience-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-grid article,
.audience-grid article,
.case-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.dark .audience-grid article {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

.service-grid span {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--green);
  font-weight: 900;
}

.service-grid p,
.case-card p,
.split p,
.workflow span,
.contact-copy p,
.form-note {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.problem-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.problem-list a {
  min-height: 86px;
  padding: 18px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
  font-weight: 800;
}

.problem-list a:hover {
  background: #e7edf1;
}

.case-card {
  min-height: 250px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 1)),
    linear-gradient(90deg, rgba(210, 91, 42, 0.16), transparent);
}

.case-type {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow {
  background: #eef3f4;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 180px;
  padding: 58px 24px 24px;
  background: #fff;
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  top: 22px;
  left: 24px;
  color: var(--accent);
  content: "0" counter(step);
  font-weight: 900;
}

.steps strong,
.steps span {
  display: block;
}

.steps strong {
  margin-bottom: 10px;
  font-size: 20px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(56px, 7vw, 96px) clamp(18px, 4vw, 64px);
  color: #fff;
  background: linear-gradient(135deg, #16222b, #244453 64%, #394b45);
}

.contact-copy p {
  color: #d1dce0;
  font-size: 18px;
}

.contact-links a {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form label,
.contact-form span {
  display: grid;
  gap: 7px;
}

.contact-form span {
  color: #43505c;
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c8d2da;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--steel);
  outline: 3px solid rgba(45, 86, 107, 0.16);
}

.form-note {
  margin: 0;
  font-size: 13px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 64px);
  color: #b8c3c8;
  background: #10171d;
}

.footer p {
  margin: 0;
}

@media (max-width: 1060px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    max-width: 760px;
  }

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

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

  .brand {
    min-width: 0;
  }

  .header-phone {
    width: 100%;
  }

  .metrics,
  .service-grid,
  .audience-grid,
  .case-grid,
  .steps,
  .problem-list {
    grid-template-columns: 1fr;
  }

  .metrics div,
  .problem-list a,
  .service-grid article,
  .audience-grid article,
  .case-card,
  .steps li {
    min-height: auto;
  }

  .footer {
    flex-direction: column;
  }
}
