.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #111;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.hero-bg .overlay {
  position: absolute;
  inset: 0;
  background: url("/assets/img/overlay.png") repeat;
  opacity: 0.5;
}

.site-header {
  color: #fff;
}

.brand {
  max-width: var(--container);
  margin: 0 auto;
  min-height: 190px;
  padding: 15px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
}

.logo {
  display: block;
  line-height: 0;
  flex: 0 0 auto;
}

.logo img {
  width: 170px;
  height: 160px;
  object-fit: contain;
}

.contacts {
  width: min(360px, 42%);
  margin: 20px 0 0;
}

.contacts p {
  margin: 0 0 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  line-height: 1.3;
}

.contacts a {
  color: #fff;
  text-decoration: none;
}

.contacts a:hover {
  text-decoration: underline;
}

.contacts img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  flex: 0 0 25px;
}

.nav-toggle {
  display: none;
  width: 100%;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

#access {
  background: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 100%);
  margin-bottom: -13px;
}

#access ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--container);
  display: flex;
  justify-content: center;
}

#access a {
  display: block;
  padding: 17px 45px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 19px;
  text-transform: uppercase;
  line-height: 1.2;
}

#access li:hover {
  background: var(--accent);
}

.hero {
  text-align: center;
  color: #fff;
  padding: 28px 16px 0;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 45px;
  line-height: 1.15;
  color: #fff;
}

.hero h1 span {
  display: block;
  font-size: 65px;
  line-height: 1.05;
}

.hero h2 {
  margin: 45px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  color: #fff;
}

.pay-band {
  background: rgba(0, 0, 0, 0.45);
  margin-top: 8px;
  padding: 16px 16px 22px;
}

.pay-row {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pay-row img {
  width: 100px;
  height: 60px;
  object-fit: contain;
}

.welcome,
.sheet {
  background: #fff;
  position: relative;
}

.welcome {
  padding: 100px 0;
}

.welcome-grid,
.sheet-inner,
.split {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.welcome-grid,
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.welcome h2,
.sheet h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 45px;
  line-height: 1.05;
  color: var(--heading);
}

.welcome h2 span {
  color: var(--accent);
}

.welcome p,
.prose p {
  margin: 0 0 1em;
}

.welcome .lead {
  margin-top: 20px;
}

.btn {
  display: inline-block;
  margin-top: 34px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 20px 40px;
  border-radius: 10px;
  transition: background 0.4s;
  line-height: 1;
}

.btn:hover {
  background: var(--heading);
  color: #fff;
}

.welcome-photo {
  padding-top: 60px;
}

.welcome-photo img,
.split img.photo {
  width: 100%;
  height: auto;
  display: block;
}

.services {
  padding: 100px 0 70px;
  color: #fff;
  text-align: center;
}

.services h2 {
  margin: 0 0 36px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 45px;
  color: #fff;
}

.services-grid {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 30px;
}

.services-grid figure {
  margin: 0;
}

.services-grid img {
  width: min(100%, 250px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  filter: grayscale(100%);
  box-shadow: 0 0 20px 5px rgba(0, 0, 0, 1);
  transition: filter 0.4s, border-color 0.4s;
}

.services-grid figure:hover img {
  filter: grayscale(0);
  border-color: var(--accent);
}

.services-grid figcaption {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.gallery img {
  width: 100%;
  aspect-ratio: 690 / 565;
  object-fit: cover;
  display: block;
}

.sheet {
  padding: 100px 0 80px;
}

.sheet h1 {
  margin-bottom: 28px;
}

.svc-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.svc-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 16px;
}

.svc-list img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.map-frame {
  width: 100%;
  height: 340px;
  border: 0;
}

.form label {
  display: block;
  font-size: 16px;
  margin: 0 0 6px;
}

.form .req {
  color: var(--accent);
}

.form p {
  margin: 0 0 14px;
}

.form input,
.form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #000;
  color: #fff;
  border: 0;
  min-height: 34px;
  padding: 8px 10px;
  font: inherit;
}

.form textarea {
  min-height: 180px;
  resize: vertical;
}

.form button {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 8px 16px;
  font: inherit;
  cursor: pointer;
}

.form button:hover {
  background: var(--accent-dark);
}

.form .note {
  font-size: 14px;
}

.form-feedback {
  min-height: 1.4em;
  margin: 8px 0 0;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.article time {
  display: block;
  margin: -12px 0 18px;
  color: #777;
}

.article .more {
  margin-top: 28px;
}

.article .more a {
  margin-right: 18px;
}

.site-footer {
  background: var(--footer);
  color: var(--footer-text);
  position: relative;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  box-sizing: border-box;
}

.site-footer h2 {
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #cccccc;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: #555555;
}

.site-footer p {
  margin: 0 0 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.45;
}

.site-footer a {
  color: #999999;
  text-decoration: none;
}

.site-footer a:hover {
  color: #555555;
}

.site-footer strong {
  font-weight: 700;
  color: inherit;
}

.site-footer img.icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
  flex: 0 0 25px;
  margin-top: 1px;
}

.footer-map {
  width: 100%;
  height: 150px;
  border: 0;
}

.footer-logo {
  text-align: center;
}

.footer-logo img {
  width: 170px;
  height: 160px;
  object-fit: contain;
}

.footer-bar {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 35px 16px 22px;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px solid #9a1213;
  padding: 7px 14px;
}

.footer-nav a:hover {
  border-color: #ae2627;
  color: #fff;
}

.footer-social {
  display: inline-block;
  margin-top: 26px;
  line-height: 0;
}

.footer-social img {
  width: 26px;
  height: 26px;
}

#toTop {
  position: fixed;
  right: 40px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.06);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.28);
  color: #777;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, color 0.2s;
  z-index: 20;
}

#toTop.is-on {
  opacity: 1;
  pointer-events: auto;
}

#toTop:hover {
  color: var(--accent);
}

@media (max-width: 1174px) {
  .nav-toggle {
    display: block;
  }

  #access ul {
    display: none;
    flex-direction: column;
    background: #111;
    max-width: none;
  }

  #access.is-open ul {
    display: flex;
  }

  #access a {
    padding: 14px 20px;
  }
}

@media (max-width: 800px) {
  .brand {
    min-height: 0;
    height: auto;
    flex-direction: column;
    text-align: center;
    padding-top: 18px;
  }

  .contacts {
    width: min(100%, 420px);
    margin-top: 8px;
  }

  .contacts p {
    justify-content: flex-start;
    text-align: left;
  }

  .hero h1 span {
    font-size: 42px;
  }

  .hero h1,
  .welcome h2,
  .sheet h1,
  .services h2 {
    font-size: 34px;
  }

  .welcome,
  .sheet,
  .services {
    padding: 48px 0;
  }

  .welcome-grid,
  .split,
  .services-grid,
  .footer-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .welcome-photo {
    padding-top: 10px;
  }

  .services-grid img {
    width: min(78vw, 280px);
  }

  .pay-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .gallery img {
    aspect-ratio: 16 / 10;
  }

  #toTop {
    right: 12px;
    bottom: 12px;
  }
}
