:root {
  --ink: #111111;
  --paper: #f1efe7;
  --paper-deep: #e8e5da;
  --blue: #3155ff;
  --blue-dark: #2444df;
  --acid: #d9ff43;
  --white: #fffef8;
  --line: rgba(17, 17, 17, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

main {
  overflow: hidden;
}

.site-header {
  min-height: 88px;
  padding: 18px clamp(24px, 4.5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}

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

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.04em;
  border-radius: 50%;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: 0.01em;
}

.brand-copy small {
  margin-top: 5px;
  color: rgba(17, 17, 17, 0.58);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
  font-weight: 700;
}

nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--blue);
  transition: right 180ms ease;
}

nav a:hover::after {
  right: 0;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease;
}

.header-cta:hover {
  background: var(--ink);
  color: var(--white);
}

.hero {
  min-height: calc(100vh - 88px);
  padding: clamp(58px, 8vw, 120px) clamp(24px, 4.5vw, 72px) 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: clamp(54px, 8vw, 130px);
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  left: -170px;
  top: 38%;
  border: 1px solid rgba(49, 85, 255, 0.35);
  border-radius: 50%;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(49, 85, 255, 0.12);
}

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

h1 {
  max-width: 930px;
  margin-bottom: 34px;
  font-size: clamp(56px, 7.2vw, 116px);
  line-height: 0.89;
  letter-spacing: -0.075em;
  font-weight: 800;
}

h1 em,
.contact h2 em {
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 630px;
  margin-bottom: 38px;
  color: rgba(17, 17, 17, 0.7);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

.button {
  min-height: 56px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--blue);
  color: var(--white);
}

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

.text-link {
  padding: 7px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.hero-photo {
  min-height: 580px;
  margin: 0;
  background: var(--blue);
  position: relative;
  overflow: hidden;
  transform: rotate(1.6deg);
  box-shadow: 18px 20px 0 var(--acid);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.88), transparent 48%);
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 580px;
  display: block;
  object-fit: cover;
  object-position: 50% 40%;
  filter: saturate(0.86) contrast(1.04);
}

.photo-service,
.photo-monogram,
.hero-photo figcaption {
  position: absolute;
  z-index: 1;
}

.photo-service {
  top: 24px;
  left: 24px;
  padding: 8px 12px;
  background: var(--acid);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.photo-monogram {
  top: 0;
  right: 0;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.hero-photo figcaption {
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  color: var(--white);
}

.hero-photo figcaption > span:first-child {
  display: grid;
  gap: 4px;
}

.hero-photo figcaption strong {
  font-size: 19px;
  letter-spacing: -0.03em;
}

.hero-photo figcaption small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.photo-badge {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ticker {
  min-height: 74px;
  padding: 18px clamp(24px, 4.5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink);
  color: var(--white);
  font-size: clamp(14px, 1.25vw, 19px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ticker i {
  color: var(--acid);
  font-style: normal;
}

.section {
  padding: clamp(100px, 12vw, 180px) clamp(24px, 4.5vw, 72px);
}

.section-heading {
  margin-bottom: 70px;
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(420px, 1fr) minmax(250px, 0.46fr);
  gap: 40px;
  align-items: end;
}

.section-heading .section-kicker {
  align-self: start;
  margin-top: 15px;
}

.section-heading h2,
.about h2 {
  margin: 0;
  font-size: clamp(48px, 6.2vw, 94px);
  line-height: 0.93;
  letter-spacing: -0.07em;
}

.section-heading h2 span,
.about h2 span {
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.section-heading > p:last-child {
  margin: 0;
  color: rgba(17, 17, 17, 0.64);
  line-height: 1.65;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  min-height: 520px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  transition: background 200ms ease, transform 200ms ease;
}

.service-card:hover {
  background: var(--white);
  transform: translateY(-8px);
}

.service-number {
  width: 42px;
  height: 42px;
  margin-bottom: 70px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.service-card h3 {
  max-width: 350px;
  margin-bottom: 24px;
  font-size: clamp(27px, 2.4vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.service-card > p {
  min-height: 94px;
  color: rgba(17, 17, 17, 0.65);
  line-height: 1.55;
}

.service-card ul {
  margin: 18px 0 32px;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.service-card li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.service-card li span {
  margin-right: 8px;
  color: var(--blue);
}

.service-note {
  margin-top: auto;
  width: fit-content;
  padding: 7px 12px;
  background: var(--acid);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.diagnostic {
  margin: 0 clamp(12px, 2.5vw, 38px);
  padding: clamp(48px, 6vw, 90px);
  display: grid;
  grid-template-columns: 1.1fr 0.65fr auto;
  align-items: center;
  gap: 50px;
  background: var(--blue);
  color: var(--white);
}

.diagnostic-label {
  display: block;
  margin-bottom: 23px;
  color: var(--acid);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.diagnostic h2 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(38px, 4.6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.diagnostic p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}

.button-light {
  background: var(--white);
  color: var(--ink);
  white-space: nowrap;
}

.button-light:hover {
  background: var(--acid);
}

.section-heading.compact {
  grid-template-columns: minmax(180px, 0.35fr) 1fr;
  align-items: start;
}

.process-list {
  margin-left: calc(26% + 38px);
  border-top: 1px solid var(--ink);
}

.process-item {
  padding: 30px 0;
  display: grid;
  grid-template-columns: 80px minmax(190px, 0.5fr) 1fr;
  gap: 30px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
}

.process-number {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.process-item h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.04em;
}

.process-item p {
  max-width: 560px;
  margin: 0;
  color: rgba(17, 17, 17, 0.62);
}

.about {
  padding: clamp(100px, 12vw, 180px) clamp(24px, 4.5vw, 72px);
  display: grid;
  grid-template-columns: minmax(280px, 0.47fr) 1fr;
  gap: clamp(60px, 10vw, 180px);
  background: var(--paper-deep);
}

.about-label {
  min-height: 580px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 50% 36%, var(--acid) 0 18%, transparent 18.2%),
    linear-gradient(145deg, transparent 0 45%, var(--blue) 45% 67%, var(--ink) 67%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-label::after {
  content: "ЕМ";
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: clamp(100px, 13vw, 190px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.13em;
  mix-blend-mode: difference;
}

.about-label span,
.about-label small {
  position: relative;
  z-index: 1;
}

.about-label span {
  font-size: 18px;
  font-weight: 800;
}

.about-label small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.about-copy {
  align-self: center;
}

.about-copy h2 {
  margin-bottom: 60px;
}

.about-text {
  max-width: 780px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  color: rgba(17, 17, 17, 0.69);
  font-size: 16px;
  line-height: 1.7;
}

.about-tags {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-tags span {
  padding: 10px 15px;
  border: 1px solid rgba(17, 17, 17, 0.42);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.contact {
  padding: clamp(90px, 11vw, 170px) clamp(24px, 4.5vw, 72px) 50px;
  background: var(--ink);
  color: var(--white);
}

.contact-top {
  margin-bottom: 80px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-top > span {
  color: var(--acid);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact h2 {
  max-width: 1220px;
  margin-bottom: 38px;
  font-size: clamp(50px, 7.2vw, 112px);
  line-height: 0.91;
  letter-spacing: -0.07em;
}

.contact h2 em {
  color: var(--acid);
}

.contact-lead {
  max-width: 610px;
  margin-bottom: 70px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 17px;
  line-height: 1.65;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-links a {
  min-height: 150px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  background: var(--ink);
  transition: background 180ms ease, color 180ms ease;
}

.contact-links a:hover {
  background: var(--acid);
  color: var(--ink);
}

.contact-links span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.58;
}

.contact-links strong {
  align-self: end;
  font-size: clamp(23px, 2.4vw, 38px);
  letter-spacing: -0.04em;
}

.contact-links i {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 28px;
  font-style: normal;
}

footer {
  min-height: 90px;
  padding: 26px clamp(24px, 4.5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

footer a {
  justify-self: end;
  color: var(--white);
}

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

  nav {
    display: none;
  }

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

  .hero-copy {
    max-width: 900px;
  }

  .hero-photo {
    max-width: 660px;
  }

  .section-heading {
    grid-template-columns: 0.32fr 1fr;
  }

  .section-heading > p:last-child {
    grid-column: 2;
  }

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

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

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

  .service-card > p {
    min-height: 0;
  }

  .diagnostic {
    grid-template-columns: 1fr 0.8fr;
  }

  .diagnostic .button {
    justify-self: start;
  }

  .about {
    grid-template-columns: 0.7fr 1fr;
    gap: 65px;
  }

  .about-text {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

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

  .brand-copy small {
    display: none;
  }

  .header-cta {
    padding: 11px 15px;
  }

  .header-cta span {
    display: none;
  }

  .hero {
    padding-top: 70px;
  }

  h1 {
    font-size: clamp(48px, 15.5vw, 78px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 19px;
  }

  .hero-photo {
    min-height: 520px;
    box-shadow: 10px 12px 0 var(--acid);
    transform: rotate(0);
  }

  .hero-photo img {
    height: 520px;
  }

  .hero-photo figcaption {
    left: 20px;
    right: 20px;
    bottom: 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .ticker {
    justify-content: flex-start;
    overflow: hidden;
  }

  .ticker span:nth-of-type(n + 3),
  .ticker i:nth-of-type(n + 3) {
    display: none;
  }

  .section-heading,
  .section-heading.compact {
    display: block;
  }

  .section-heading .section-kicker {
    margin-bottom: 28px;
  }

  .section-heading > p:last-child {
    max-width: 520px;
    margin-top: 30px;
  }

  .service-card {
    padding: 24px;
  }

  .diagnostic {
    margin: 0;
    padding: 58px 24px;
    display: block;
  }

  .diagnostic p {
    margin: 28px 0;
  }

  .process-list {
    margin-left: 0;
  }

  .process-item {
    grid-template-columns: 48px 1fr;
  }

  .process-item p {
    grid-column: 2;
  }

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

  .about-label {
    min-height: 440px;
  }

  .contact-top {
    margin-bottom: 55px;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }

  .contact-links a {
    min-height: 120px;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer span:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
