:root {
  --ink: #171a1d;
  --muted: #56585e;
  --blue: #4a90e2;
  --blue-dark: #3478c5;
  --aqua: #def7fa;
  --line: #d8dde4;
  --white: #ffffff;
  --footer: #181818;
  --shadow: 0 6px 22px rgba(20, 30, 45, 0.11);
  --radius: 18px;
  --container: 1224px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 84px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--container));
  height: 100%;
  margin-inline: auto;
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: 156px; height: auto; }

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

.nav-link {
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active { border-color: currentColor; }

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 622px;
  color: var(--white);
  background: url("hero.jpg") center 51% / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 10, 15, 0.62) 0%, rgba(22, 10, 8, 0.42) 55%, rgba(22, 10, 8, 0.48) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 90px;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero h1 { max-width: 730px; font-size: clamp(3rem, 5.2vw, 4.1rem); }
.hero p { max-width: 520px; margin: 22px 0 30px; font-size: 1.05rem; }

.button {
  display: inline-flex;
  min-width: 192px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 9px 20px rgba(74, 144, 226, 0.3); }
.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible { outline: 3px solid #1e68bd; outline-offset: 3px; }

.section { padding: 84px 0; }
.section-heading { margin-bottom: 50px; }
.section-heading.centered { text-align: center; }
.section-heading h2 { font-size: clamp(2.3rem, 4vw, 3.25rem); }
.section-heading p { margin: 20px 0 0; color: var(--muted); }

.service-grid,
.journey-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.service-card {
  overflow: hidden;
  background: var(--aqua);
}

.service-copy { min-height: 181px; padding: 34px 55px 30px; }
.service-copy h3,
.journey-copy h3 { margin: 0 0 15px; font-size: 1.05rem; }
.service-copy p,
.journey-copy p { margin: 0; color: var(--muted); }
.service-card img { width: 100%; height: 345px; object-fit: cover; }

.journey { padding-top: 30px; }
.journey-panel { padding: 70px 50px 42px; background: var(--aqua); }
.journey-panel > h2 { margin-bottom: 52px; font-size: clamp(2.3rem, 4vw, 3.2rem); }
.journey-grid { gap: 68px; }
.journey-item { display: flex; flex-direction: column; }
.journey-copy { min-height: 185px; }
.journey-item img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 22px;
}

.testimonial { margin: 0; padding: 10px 0; text-align: center; }
.testimonial figcaption { margin-bottom: 22px; font-size: 1.45rem; font-weight: 700; }
.testimonial blockquote { margin: 0; font-size: 1.06rem; font-style: italic; line-height: 1.45; }
.testimonial p { margin: 4px 0 0; font-weight: 700; }

.contact { padding-top: 58px; }
.contact-wrap { width: min(calc(100% - 40px), 570px); margin-inline: auto; }
.contact .section-heading { margin-bottom: 34px; }
.contact .section-heading p { margin-top: 12px; }

.contact-form { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.92rem; }
.field input,
.field textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b8c0cc;
  border-radius: 10px;
  font: inherit;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: var(--ink); }
.contact-form .button { justify-self: start; margin-top: 4px; }
.form-note { margin: 0; color: var(--muted); font-size: 0.85rem; }
.form-status { margin: 0 0 24px; padding: 12px 14px; border-radius: 8px; }
.form-status.success { color: #145a32; background: #e7f7ed; }
.form-status.error { color: #8a1c1c; background: #fdeaea; }

.site-footer { margin-top: 30px; color: var(--white); background: var(--footer); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 55px;
  min-height: 344px;
  padding-top: 100px;
  padding-bottom: 28px;
}
.footer-grid p { max-width: 280px; margin: 0; }
.footer-grid address { display: grid; align-content: start; gap: 6px; font-style: normal; }
.footer-grid address a { text-decoration: none; }
.footer-grid address a:hover { text-decoration: underline; }
.social-links { display: flex; gap: 20px; margin-top: 22px; }
.social-links a {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  font-weight: 700;
  text-decoration: none;
}
.copyright { grid-column: 1 / -1; align-self: end; font-size: 0.9rem; }

@media (max-width: 800px) {
  html { scroll-padding-top: 66px; }
  .site-header { height: 66px; }
  .header-inner { width: min(calc(100% - 32px), var(--container)); }
  .brand img { width: 138px; }
  nav { gap: 18px; }
  .hero { min-height: 545px; background-position: 48% 51%; }
  .hero-content { padding-block: 70px; }
  .hero h1 { font-size: clamp(2.65rem, 11vw, 3.7rem); }
  .section { padding: 64px 0; }
  .service-grid,
  .journey-grid,
  .testimonial-grid { grid-template-columns: 1fr; }
  .service-grid { gap: 24px; }
  .service-copy { min-height: 0; padding: 28px 24px; }
  .service-card img { height: 260px; }
  .journey { padding-top: 12px; }
  .journey-panel { width: min(calc(100% - 24px), var(--container)); padding: 48px 22px 30px; }
  .journey-panel > h2 { margin-bottom: 38px; }
  .journey-grid { gap: 40px; }
  .journey-copy { min-height: 0; margin-bottom: 24px; }
  .journey-item img { height: 270px; }
  .testimonial-grid { gap: 16px; margin-top: 34px; }
  .testimonial { padding: 18px 6px; }
  .testimonial figcaption { margin-bottom: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; min-height: 385px; padding-top: 64px; }
  .copyright { grid-column: auto; margin-top: 28px; }
}

@media (max-width: 480px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .nav-link:last-child { display: none; }
  .hero { min-height: 520px; }
  .hero p { font-size: 1rem; }
  .service-card img,
  .journey-item img { height: 220px; }
  .contact-wrap { width: min(calc(100% - 32px), 570px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
