:root {
  --night: #12181f;
  --cobalt: #1e4d7b;
  --cobalt-deep: #163a5c;
  --sun: #e6a317;
  --sun-deep: #c7890d;
  --porcelain: #f2f5f7;
  --mist: #d7e0e8;
  --fog: #5d6b78;
  --white: #ffffff;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Onest", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  font-family: var(--sans);
  color: var(--night);
  background: var(--porcelain);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--night);
  color: var(--white);
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 1.15rem 0;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.topbar.is-solid {
  background: rgba(242, 245, 247, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(18, 24, 31, 0.08);
  padding: 0.8rem 0;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: color 0.25s ease;
}

.topbar.is-solid .logo {
  color: var(--night);
}

.logo__mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  background: var(--sun);
  color: var(--night);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 400;
}

.topbar.is-solid .logo__mark {
  background: var(--cobalt);
  color: var(--white);
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--sun);
}

.topbar.is-solid .menu a {
  color: rgba(18, 24, 31, 0.78);
}

.topbar.is-solid .menu a:hover,
.topbar.is-solid .menu a:focus-visible {
  color: var(--cobalt);
}

.menu__call {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--sun);
  color: var(--night) !important;
  font-weight: 700;
  text-decoration: none;
}

.topbar.is-solid .menu__call {
  background: var(--cobalt);
  color: var(--white) !important;
}

.burger {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(18, 24, 31, 0.25);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.topbar.is-solid .burger {
  border-color: var(--mist);
  background: var(--white);
}

.burger span {
  width: 1.1rem;
  height: 1.5px;
  background: var(--white);
}

.topbar.is-solid .burger span {
  background: var(--night);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: drift 22s var(--ease) infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 24, 31, 0.72) 0%, rgba(18, 24, 31, 0.28) 48%, rgba(18, 24, 31, 0.18) 100%),
    linear-gradient(180deg, rgba(18, 24, 31, 0.2) 0%, rgba(18, 24, 31, 0.15) 40%, rgba(18, 24, 31, 0.78) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 7.5rem 0 4.75rem;
  max-width: 40rem;
  animation: rise 0.95s var(--ease) both;
}

.hero__brand {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}

.hero__text {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.84);
  max-width: 32rem;
  margin-bottom: 1.8rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease;
}

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

.button:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
}

.button--sun {
  background: var(--sun);
  color: var(--night);
}

.button--sun:hover {
  background: var(--sun-deep);
}

.button--clear {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button--clear:hover {
  background: rgba(255, 255, 255, 0.16);
}

.block {
  padding: 6.5rem 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}

.about__copy h2,
.services__copy h2,
.visit__info h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.2rem;
}

.about__copy p + p {
  margin-top: 1rem;
}

.about__copy p {
  color: var(--fog);
  font-size: 1.06rem;
  max-width: 36rem;
}

.about__mission {
  margin-top: 1.6rem !important;
  padding-top: 1.4rem;
  border-top: 1px solid var(--mist);
  color: var(--cobalt) !important;
  font-family: var(--serif);
  font-size: 1.45rem !important;
  line-height: 1.35;
  font-style: italic;
}

.about__figure {
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 1.5rem 4rem;
  box-shadow: 0 30px 60px rgba(18, 24, 31, 0.14);
}

.about__figure img,
.services__lead img,
.services__side img,
.moment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__figure img {
  aspect-ratio: 4 / 3;
}

.moment {
  position: relative;
  min-height: 58vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.moment img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.moment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 24, 31, 0.05), rgba(18, 24, 31, 0.72));
}

.moment__caption {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0;
}

.moment__caption p {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 28rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.services {
  background:
    linear-gradient(180deg, var(--porcelain), #e8eef3 40%, var(--porcelain));
}

.services__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 0.72fr;
  gap: 1.5rem;
  align-items: stretch;
}

.services__lead,
.services__side {
  overflow: hidden;
  border-radius: 1.4rem;
  box-shadow: 0 20px 40px rgba(18, 24, 31, 0.1);
}

.services__lead img {
  aspect-ratio: 4 / 5;
  min-height: 100%;
}

.services__side img {
  aspect-ratio: 3 / 4;
  min-height: 100%;
}

.services__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0.25rem;
}

.services__list {
  list-style: none;
  margin-top: 0.5rem;
}

.services__list li {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--mist);
  display: grid;
  gap: 0.2rem;
}

.services__list strong {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.services__list span {
  color: var(--fog);
  font-size: 0.98rem;
}

.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.visit__info > p {
  color: var(--fog);
  font-size: 1.05rem;
  max-width: 32rem;
}

.visit__details {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

.visit__details div {
  display: grid;
  gap: 0.25rem;
}

.visit__details dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.visit__details dd {
  color: rgba(18, 24, 31, 0.88);
}

.visit__details a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.visit__details a:hover {
  border-bottom-color: currentColor;
  color: var(--cobalt);
}

.visit__form {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: grid;
  gap: 0.9rem;
  box-shadow: 0 24px 50px rgba(18, 24, 31, 0.08);
}

.visit__form label {
  display: grid;
  gap: 0.35rem;
}

.visit__form span {
  font-size: 0.88rem;
  font-weight: 600;
}

.visit__form input,
.visit__form textarea {
  width: 100%;
  border: 1px solid var(--mist);
  border-radius: 0.85rem;
  padding: 0.85rem 0.95rem;
  font: inherit;
  background: var(--porcelain);
  color: var(--night);
}

.visit__form input:focus,
.visit__form textarea:focus {
  outline: 2px solid rgba(30, 77, 123, 0.28);
  border-color: var(--cobalt);
  background: var(--white);
}

.visit__form .button {
  width: 100%;
  margin-top: 0.2rem;
}

.visit__status {
  min-height: 1.2rem;
  color: var(--cobalt-deep);
  font-size: 0.92rem;
}

.footer {
  border-top: 1px solid var(--mist);
  padding: 2.5rem 0 2.25rem;
  color: var(--fog);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.footer__brand {
  font-family: var(--serif);
  color: var(--night);
  font-size: 1.35rem;
}

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

@keyframes drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, 0.8%, 0);
  }
}

@media (max-width: 980px) {
  .about__grid,
  .visit__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services__grid {
    grid-template-columns: 1fr 1fr;
  }

  .services__side {
    display: none;
  }

  .about__figure {
    border-radius: 1.25rem;
  }
}

@media (max-width: 760px) {
  .burger {
    display: inline-flex;
  }

  .menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 1.25rem;
    right: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.85rem;
    background: var(--white);
    border: 1px solid var(--mist);
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(18, 24, 31, 0.14);
  }

  .menu.is-open {
    display: flex;
  }

  .menu a,
  .topbar.is-solid .menu a {
    color: var(--night);
    padding: 0.75rem 0.8rem;
    border-radius: 0.7rem;
  }

  .menu__call,
  .topbar.is-solid .menu__call {
    background: var(--cobalt);
    color: var(--white) !important;
    text-align: center;
  }

  .topbar__inner {
    position: relative;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding-bottom: 3.5rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
  }

  .moment {
    min-height: 48vh;
  }

  .block {
    padding: 4.5rem 0;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(1180px, calc(100% - 1.35rem));
  }

  .logo span {
    font-size: 1.15rem;
  }
}
