:root {
  color-scheme: light dark;
  --surface: #f2f5f1;
  --surface-soft: #e8ede8;
  --surface-strong: #dce5dd;
  --text: #18201c;
  --muted: #56625b;
  --line: #cbd4cc;
  --accent: #6f9277;
  --accent-deep: #294f35;
  --accent-ink: #102818;
  --accent-button-text: #f5f8f5;
  --header-bg: rgba(242, 245, 241, 0.9);
  --shadow: 0 28px 70px rgba(37, 61, 44, 0.12);
  --radius: 12px;
  --shell: 1320px;
  --header-height: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #151a17;
    --surface-soft: #1c231f;
    --surface-strong: #25302a;
    --text: #edf2ed;
    --muted: #aab5ad;
    --line: #37443b;
    --accent: #82a88b;
    --accent-deep: #a7c8ad;
    --accent-ink: #102818;
    --accent-button-text: #102818;
    --header-bg: rgba(21, 26, 23, 0.9);
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--text);
  font-family: Aptos, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1,
h2 {
  font-weight: 560;
  line-height: 1.03;
}

.site-shell {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
  padding-inline: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1030;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  padding: 10px 16px;
  transition: transform 180ms var(--ease);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navbar {
  min-height: 72px;
  padding: 0;
}

.navbar-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.03rem;
  font-weight: 720;
}

.navbar-brand img,
.footer-brand img {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.footer-brand img {
  width: 30px;
  height: 30px;
}

.navbar-brand:hover,
.navbar-brand:focus,
.footer-brand:hover,
.footer-brand:focus {
  color: var(--accent-deep);
}

.navbar-nav {
  gap: 4px;
}

.nav-link {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 560;
  padding: 10px 15px !important;
  transition: color 180ms var(--ease);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--text);
}

.nav-cta {
  margin-left: 12px;
}

.navbar-toggler {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px;
  color: var(--text);
}

.navbar-toggler:focus {
  box-shadow: none;
}

@media (prefers-color-scheme: dark) {
  .navbar-toggler-icon {
    filter: invert(1);
  }
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 0.98rem;
  font-weight: 680;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 220ms var(--ease),
    background-color 220ms var(--ease),
    color 220ms var(--ease),
    border-color 220ms var(--ease);
}

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

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button-small {
  min-height: 42px;
  background: var(--text);
  color: var(--surface);
  padding: 11px 18px;
  font-size: 0.9rem;
}

.button-small:hover,
.button-small:focus {
  background: var(--accent-deep);
  color: var(--surface);
}

.button-primary {
  background: var(--accent-deep);
  color: var(--accent-button-text);
  box-shadow: 0 12px 30px rgba(41, 79, 53, 0.18);
}

.button-primary:hover,
.button-primary:focus {
  background: var(--text);
  color: var(--surface);
}

.hero {
  min-height: clamp(584px, calc(100dvh - 136px), 820px);
  display: flex;
  align-items: center;
  padding: 32px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.76fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}

.hero-copy {
  max-width: 720px;
  padding-left: clamp(0px, 3vw, 44px);
}

.hero-copy h1 {
  max-width: 21ch;
  margin-bottom: 26px;
  font-size: clamp(3.3rem, 4.1vw, 5.2rem);
}

.hero-copy p {
  max-width: 500px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  line-height: 1.52;
}

.hero-media {
  position: relative;
  height: clamp(460px, calc(100dvh - 220px), 640px);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.hero-media img {
  object-position: 50% 50%;
}

.section {
  padding: clamp(96px, 11vw, 164px) 0;
}

.section-intro h2,
.process-heading h2,
.quality-copy h2,
.contact h2 {
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 5vw, 5rem);
}

.section-intro p,
.process-heading p,
.quality-copy > p,
.contact p {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.services {
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(64px, 9vw, 140px);
}

.section-intro {
  align-self: start;
  position: sticky;
  top: 116px;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: minmax(230px, 0.9fr) minmax(220px, 1fr);
  gap: 36px;
  padding: 38px 0 42px;
  border-bottom: 1px solid var(--line);
}

.service-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.service-mark {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--accent);
}

.service-item h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 640;
  line-height: 1.25;
}

.service-item p {
  margin: 0;
  color: var(--muted);
}

.process {
  background: var(--surface-soft);
}

.process-heading {
  max-width: 780px;
  margin-bottom: clamp(64px, 8vw, 108px);
}

.process-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.process-step {
  position: relative;
  min-height: 250px;
  padding: 28px 34px 16px 0;
}

.process-step::before {
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 3px solid var(--surface-soft);
  border-radius: 50%;
  background: var(--accent-deep);
  content: "";
}

.process-step h3 {
  margin: 48px 0 14px;
  font-size: 1.55rem;
  font-weight: 660;
}

.process-step p {
  max-width: 245px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.quality-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  align-items: center;
  gap: clamp(52px, 8vw, 128px);
}

.quality-media {
  height: 620px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.quality-copy {
  max-width: 570px;
}

.quality-points {
  margin: 44px 0 0;
}

.quality-points > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.quality-points dt {
  font-weight: 680;
}

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

.contact {
  padding-top: 80px;
}

.contact-inner {
  display: flex;
  min-height: 480px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  padding: clamp(42px, 7vw, 96px);
}

.contact h2 {
  max-width: 720px;
}

.contact p {
  margin-bottom: 34px;
  color: rgba(16, 40, 24, 0.78);
}

.button-contact {
  border-color: var(--accent-ink);
  background: var(--accent-ink);
  color: #f1f5f1;
}

.button-contact:hover,
.button-contact:focus {
  background: transparent;
  color: var(--accent-ink);
}

.site-footer {
  padding: 34px 0 42px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.footer-inner > a:last-child {
  color: var(--muted);
}

.footer-inner > a:last-child:hover,
.footer-inner > a:last-child:focus {
  color: var(--text);
}

.motion-ready .reveal {
  transform: translateY(24px);
  opacity: 0;
  transition:
    transform 720ms var(--ease),
    opacity 720ms var(--ease);
}

.motion-ready .reveal-late {
  transition-delay: 120ms;
}

.motion-ready .reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 991.98px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
    gap: 42px;
  }

  .hero-copy h1 {
    font-size: clamp(3.3rem, 5vw, 4.7rem);
  }

  .services-grid,
  .quality-grid {
    gap: 56px;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-step {
    padding-right: 24px;
  }

  .quality-media {
    height: 520px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --header-height: 66px;
  }

  .site-shell {
    width: min(100% - 32px, var(--shell));
  }

  .navbar {
    min-height: 66px;
  }

  .navbar-collapse {
    padding: 18px 0 24px;
  }

  .navbar-nav {
    align-items: stretch !important;
    gap: 2px;
  }

  .nav-link {
    padding: 12px 0 !important;
    font-size: 1.05rem;
  }

  .nav-cta {
    margin: 12px 0 0;
  }

  .nav-cta .button {
    width: 100%;
  }

  .no-js .navbar-collapse {
    display: block !important;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 68px;
  }

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

  .hero-grid {
    gap: 50px;
  }

  .hero-copy {
    max-width: none;
    padding-left: 0;
  }

  .hero-copy h1 {
    max-width: none;
    margin-bottom: 20px;
    font-size: clamp(2.45rem, 10.5vw, 3.75rem);
  }

  .hero-copy p {
    margin-bottom: 28px;
    font-size: 1.06rem;
  }

  .hero-media {
    height: auto;
    aspect-ratio: 5 / 4;
  }

  .section {
    padding: 92px 0;
  }

  .section-intro {
    position: static;
  }

  .section-intro h2,
  .process-heading h2,
  .quality-copy h2,
  .contact h2 {
    font-size: clamp(2.45rem, 12vw, 3.75rem);
  }

  .service-item {
    padding: 30px 0 34px;
  }

  .process-heading {
    margin-bottom: 64px;
  }

  .process-track {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .process-step {
    min-height: 0;
    padding: 0 0 44px 34px;
  }

  .process-step::before {
    top: 6px;
    left: -6px;
  }

  .process-step h3 {
    margin-top: 0;
  }

  .quality-media {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .quality-points > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact {
    padding-top: 28px;
  }

  .contact-inner {
    min-height: 430px;
  }

  .button-contact {
    max-width: 100%;
    font-size: 0.9rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .motion-ready .reveal {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
