:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --paper-rgb: 247, 246, 241;
  --ink: #1f1f1d;
  --muted: #62625b;
  --yellow: #eeea00;
  --yellow-soft: rgba(238, 234, 0, 0.2);
  --line: rgba(31, 31, 29, 0.11);
  --glass: rgba(247, 246, 241, 0.72);
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px;
  background: var(--glass);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  backdrop-filter: blur(22px) saturate(1.08);
}

.brand {
  min-width: 0;
  overflow: hidden;
  color: rgba(31, 31, 29, 0.82);
  font-size: 17px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-left: 18px;
  color: rgba(31, 31, 29, 0.7);
  font-size: 17px;
  line-height: 1.25;
  transition: color 180ms ease;
}

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

.panel {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: var(--header-height);
}

.panel + .panel {
  border-top: 1px solid rgba(31, 31, 29, 0.07);
}

.panel-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  filter: saturate(0.72) contrast(0.94) brightness(1.08);
}

.panel-intro .panel-image {
  object-position: 58% center;
}

.panel-services .panel-image {
  object-position: 62% center;
}

.panel-contact .panel-image {
  object-position: 62% center;
}

.panel-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--paper-rgb), 0.96) 0%, rgba(var(--paper-rgb), 0.86) 36%, rgba(var(--paper-rgb), 0.24) 72%),
    linear-gradient(180deg, rgba(var(--paper-rgb), 0.52), rgba(var(--paper-rgb), 0.18) 36%, rgba(var(--paper-rgb), 0.42));
}

.panel-content {
  position: relative;
  z-index: 2;
  width: min(100% - 80px, 1180px);
  margin: 0 auto;
  padding-top: var(--header-height);
}

.panel-content-left {
  justify-self: stretch;
}

h1,
.service-list,
.address {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: 64px;
  line-height: 1.03;
}

.service-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  font-size: 58px;
  line-height: 1.02;
}

.address {
  display: grid;
  gap: 10px;
  font-size: 54px;
  line-height: 1.04;
}

.contact-content {
  display: grid;
  gap: 34px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.contact-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: rgba(31, 31, 29, 0.74);
  font-size: 16px;
  line-height: 1.25;
}

.contact-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: var(--yellow);
  opacity: 0.46;
  transform: scaleX(0.55);
  transform-origin: left;
  transition: transform 180ms ease, opacity 180ms ease;
}

.contact-links a:hover::after,
.contact-links a:focus-visible::after {
  opacity: 0.72;
  transform: scaleX(1);
}

.is-revealed {
  animation: quiet-rise 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 40px 26px;
  color: rgba(31, 31, 29, 0.48);
  background: var(--paper);
  border-top: 1px solid rgba(31, 31, 29, 0.06);
  font-size: 12px;
  line-height: 1.4;
}

@keyframes quiet-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding: 0 20px;
    gap: 16px;
  }

  .brand,
  .nav-link {
    font-size: 13px;
  }

  .nav-link {
    padding-left: 0;
    font-size: 13px;
  }

  .panel {
    min-height: 94svh;
  }

  .panel-shade {
    background:
      linear-gradient(90deg, rgba(var(--paper-rgb), 0.96), rgba(var(--paper-rgb), 0.72) 62%, rgba(var(--paper-rgb), 0.2)),
      linear-gradient(180deg, rgba(var(--paper-rgb), 0.24), rgba(var(--paper-rgb), 0.42));
  }

  .panel-intro .panel-image,
  .panel-services .panel-image,
  .panel-contact .panel-image {
    object-position: 68% center;
  }

  .panel-contact .panel-image {
    object-position: 72% center;
  }

  .panel-content {
    width: calc(100% - 40px);
  }

  h1 {
    max-width: 480px;
    font-size: 42px;
    line-height: 1.06;
  }

  .service-list {
    gap: 12px;
    font-size: 40px;
    line-height: 1.07;
  }

  .address {
    gap: 8px;
    font-size: 38px;
    line-height: 1.08;
  }

  .contact-content {
    gap: 26px;
  }

}

@media (max-width: 460px) {
  .site-header {
    padding: 0 16px;
  }

  .brand,
  .nav-link {
    font-size: 12px;
  }

  .panel {
    min-height: 92svh;
  }

  .panel-content {
    width: calc(100% - 32px);
  }

  h1 {
    font-size: 34px;
  }

  .service-list {
    font-size: 34px;
  }

  .address {
    font-size: 32px;
  }

  .contact-links {
    gap: 8px 22px;
  }

  .site-footer {
    padding: 18px 16px 22px;
  }

}

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

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