:root {
  --color-bg: #ffffff;
  --color-soft: #f3f8fc;
  --color-soft-strong: #e8f2f8;
  --color-heading: #071d3a;
  --color-text: #26384c;
  --color-muted: #667789;
  --color-border: #dde6ee;
  --color-accent: #d89218;
  --color-accent-hover: #c27d0d;
  --color-accent-soft: #fff4df;
  --color-dark: #061b35;
  --color-dark-2: #092746;
  --shadow-card: 0 14px 34px rgba(7, 29, 58, 0.08);
  --shadow-soft: 0 8px 22px rgba(7, 29, 58, 0.06);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-base);
}

a {
  color: inherit;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
  font-weight: 800;
  line-height: 1.08;
}

h1 {
  font-size: clamp(42px, 5.2vw, 74px);
}

h2 {
  font-size: clamp(30px, 3.2vw, 44px);
}

h3 {
  font-size: clamp(20px, 2vw, 26px);
}

p {
  margin-bottom: 0;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 7vw, 104px) 0;
}

.section--soft {
  background: linear-gradient(180deg, var(--color-soft), #ffffff);
}

.section--blue {
  background: var(--color-soft);
}

.content-flow > * + * {
  margin-top: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--color-heading);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::after,
.section-title::after {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  content: "";
}

.section-title {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: clamp(32px, 5vw, 56px);
  text-align: center;
}

.button,
button,
input[type="button"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #ffffff;
  background: var(--color-heading);
  box-shadow: 0 8px 18px rgba(7, 29, 58, 0.14);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  background: #0c2b51;
  box-shadow: 0 10px 22px rgba(7, 29, 58, 0.18);
}

.button--accent {
  color: #ffffff;
  background: var(--color-accent);
  box-shadow: 0 8px 18px rgba(216, 146, 24, 0.24);
}

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

.button--outline {
  color: var(--color-heading);
  background: rgba(255, 255, 255, 0.74);
  border-color: #b9c6d3;
  box-shadow: none;
}

.button--outline:hover {
  color: #ffffff;
  background: var(--color-heading);
  border-color: var(--color-heading);
}

.card {
  background: #ffffff;
  border: 1px solid rgba(221, 230, 238, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.icon-card {
  display: grid;
  place-items: center;
  min-height: 172px;
  padding: 30px 22px;
  text-align: center;
}

.icon-card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  color: var(--color-heading);
}

.icon-card h3 {
  max-width: 220px;
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.28;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--color-text);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(216, 146, 24, 0.22);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(221, 230, 238, 0.85);
  box-shadow: 0 8px 24px rgba(7, 29, 58, 0.04);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 84px;
}

.site-logo {
  color: var(--color-heading);
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav {
  margin-left: auto;
}

.primary-menu,
.footer-menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu a,
.footer-menu a {
  color: var(--color-heading);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.primary-menu a:hover {
  color: var(--color-accent-hover);
}

.hero-section {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  color: var(--color-heading);
  background:
    linear-gradient(90deg, rgba(244, 249, 252, 0.98) 0%, rgba(244, 249, 252, 0.86) 45%, rgba(244, 249, 252, 0.28) 76%),
    var(--hero-image, url("../images/hero-reference.png"));
  background-position: center;
  background-size: cover;
}

.hero-section__inner {
  max-width: var(--container);
  margin-inline: auto;
  text-align: left;
}

.hero-section h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--color-heading);
  font-size: clamp(38px, 4vw, 58px);
}

.hero-section p {
  max-width: 560px;
  color: #1e2f42;
  font-size: 20px;
  line-height: 1.65;
}

.hero-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.services-grid {
  background: #ffffff;
}

.services-grid__items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  display: grid;
  place-items: center;
  min-height: 166px;
  padding: 28px 18px;
  text-align: center;
}

.service-card__icon,
.why-choose__icon,
.process-step__icon {
  display: grid;
  place-items: center;
  color: var(--color-heading);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.service-card svg,
.why-choose svg,
.process-step svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.service-card h3 {
  max-width: 230px;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.32;
}

.why-choose {
  position: relative;
  overflow: hidden;
}

.why-choose::before {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background:
    linear-gradient(rgba(243, 248, 252, 0.72), rgba(243, 248, 252, 0.94)),
    url("../images/hero-reference.png") center bottom / cover;
  opacity: 0.28;
  content: "";
}

.why-choose .container {
  position: relative;
  z-index: 1;
}

.why-choose__items {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.why-choose__item {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.why-choose__icon {
  width: 56px;
  height: 56px;
}

.why-choose__item h3 {
  max-width: 190px;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.35;
}

.process-steps {
  background: #ffffff;
}

.process-steps__items {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 34px;
}

.process-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.process-step:not(:last-child)::after {
  position: absolute;
  top: 48px;
  right: -28px;
  width: 28px;
  height: 2px;
  background: #bdcbd8;
  content: "";
}

.process-step__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin-bottom: 6px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.process-step__number {
  position: absolute;
  top: -8px;
  left: -2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #ffffff;
  background: var(--color-heading);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.process-step__icon {
  width: 48px;
  height: 48px;
}

.process-step h3 {
  max-width: 190px;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.35;
}

.process-step p {
  max-width: 180px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
}

.contact-section {
  padding-top: 24px;
  background: #ffffff;
}

.contact-section__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  overflow: hidden;
}

.contact-section__aside {
  position: relative;
  min-height: 322px;
  color: #ffffff;
  background: var(--color-dark);
}

.contact-section__image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 27, 53, 0.96), rgba(6, 27, 53, 0.66)),
    url("../images/contact-reference.png") center / cover;
}

.contact-section__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 100%;
  padding: clamp(34px, 5vw, 52px);
}

.contact-section h2 {
  max-width: 360px;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(28px, 3vw, 40px);
}

.contact-section p {
  max-width: 280px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  line-height: 1.55;
}

.contact-section__form {
  padding: clamp(28px, 4vw, 44px);
}

.contact-section__form form {
  display: grid;
  gap: 18px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-form__grid p {
  display: contents;
}

.contact-form__grid br {
  display: none;
}

.contact-section__form p {
  margin: 0;
}

.contact-section__form .wpcf7-form-control-wrap {
  display: block;
}

.contact-section__form input[type="submit"] {
  width: 100%;
  background: var(--color-accent);
}

.contact-section__form input[type="submit"]:hover {
  background: var(--color-accent-hover);
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 15% 20%, rgba(29, 78, 118, 0.45), transparent 28%),
    linear-gradient(135deg, var(--color-dark), var(--color-dark-2));
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.7fr) minmax(220px, 0.7fr);
  gap: clamp(32px, 7vw, 120px);
  padding: clamp(44px, 6vw, 72px) 0;
}

.site-footer .site-logo,
.site-footer h2,
.site-footer h3 {
  color: #ffffff;
}

.site-footer p {
  max-width: 320px;
  margin-top: 14px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer .footer-menu {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.site-footer .footer-menu a {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 980px) {
  .site-header__inner {
    flex-wrap: wrap;
    min-height: auto;
    padding: 18px 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .primary-menu {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-section {
    min-height: 560px;
  }

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

  .why-choose__items,
  .process-steps__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

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

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

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header__inner,
  .primary-menu {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header .button {
    width: 100%;
  }

  .hero-section {
    min-height: 520px;
    background:
      linear-gradient(rgba(244, 249, 252, 0.92), rgba(244, 249, 252, 0.92)),
      var(--hero-image, url("../images/hero-reference.png"));
  }

  .hero-section p {
    font-size: 17px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .services-grid__items,
  .why-choose__items,
  .process-steps__items {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 146px;
  }

  .contact-section__aside {
    min-height: 280px;
  }
}
