:root {
  --ink: #16120f;
  --paper: #f6f2eb;
  --header-bg: #f6f2eb;
  --header-ink: #16120f;
  --header-phone: rgba(22, 18, 15, 0.62);
  --menu-bg: var(--paper);
  --main-bg: var(--paper);
  --chalk: #fffaf2;
  --gold: #c99b45;
  --red: #8f1d18;
  --display: "Ruslan Display", "PT Serif", Georgia, serif;
  --serif: "PT Serif", Georgia, serif;
  --hero-eyebrow-size-desktop: clamp(0.95rem, 1.15vw, 1.4rem);
  --hero-title-size-desktop: clamp(2.2rem, 3.35vw, 4rem);
  --hero-eyebrow-size-mobile: 0.86rem;
  --hero-title-size-mobile: clamp(1.72rem, 6.8vw, 2.3rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--ink);
  background: var(--main-bg);
  font-family: var(--serif);
}

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

:where(a, button):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.shell {
  display: grid;
  grid-template-columns: clamp(220px, 14vw, 280px) minmax(0, 1fr);
  width: 100vw;
  height: 100dvh;
  min-height: 520px;
  background: var(--main-bg);
}

.sidebar {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
  height: 100%;
  padding: clamp(28px, 2.4vw, 42px) clamp(22px, 1.8vw, 36px);
  background: #f6f2eb !important;
  border-right: 1px solid rgba(22, 18, 15, 0.06);
  box-shadow: 12px 0 26px rgba(22, 18, 15, 0.06);
  z-index: 3;
}

.brand {
  font-family: var(--display);
  line-height: 0.82;
  color: #16120f !important;
  text-align: center;
  max-width: 188px;
  justify-self: center;
  width: 100%;
}

.brand span {
  display: block;
  font-size: clamp(1.05rem, 1.08vw, 1.55rem);
}

.brand strong {
  display: block;
  font-size: clamp(1.28rem, 1.42vw, 2.05rem);
  font-weight: 400;
}

.brand-phone {
  display: none;
  justify-self: center;
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(0.82rem, 0.94vw, 1.08rem);
  color: rgba(22, 18, 15, 0.62) !important;
}

.nav {
  align-self: center;
  transform: translateY(22px);
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(22, 18, 15, 0.08);
  border-bottom: 1px solid rgba(22, 18, 15, 0.08);
  font-family: var(--display);
  font-size: clamp(0.92rem, 1vw, 1.18rem);
  text-transform: uppercase;
}

.nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(22, 18, 15, 0.66);
  border-bottom: 1px solid rgba(22, 18, 15, 0.06);
}

.nav a:last-child {
  border-bottom: 0;
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.phone {
  font-family: var(--display);
  color: rgba(22, 18, 15, 0.62) !important;
  font-size: clamp(0.86rem, 1.02vw, 1.18rem);
}

.side-bottom {
  display: grid;
  position: relative;
  z-index: 1;
  justify-items: center;
}

.stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(34px, 5.2vh, 68px) clamp(18px, 3vw, 48px) clamp(16px, 2.4vh, 26px) clamp(28px, 4vw, 76px);
  background: var(--main-bg);
  overflow-y: auto;
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font-family: var(--display);
  font-size: var(--hero-eyebrow-size-desktop);
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--hero-title-size-desktop);
  line-height: 0.86;
}

.contacts-address {
  margin: 14px 0 0;
  max-width: 1000px;
  font-size: clamp(1rem, 1.28vw, 1.44rem);
  line-height: 1.34;
}

.contacts-map {
  border: 1px solid rgba(22, 18, 15, 0.12);
  background: var(--main-bg);
}

.contacts-map-frame {
  display: block;
  width: 100%;
  height: clamp(420px, 62vh, 760px);
  border: 0;
}

.mobile-bar {
  display: none;
}

@media (max-width: 920px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: absolute;
    inset: 0 0 auto;
    height: 62px;
    padding: 10px 18px;
    border-right: 0;
    background: #f6f2eb !important;
    box-shadow: 0 8px 18px rgba(22, 18, 15, 0.06);
    z-index: 3;
  }

  .brand {
    text-align: left;
    line-height: 0.92;
    justify-self: start;
    max-width: 150px;
    width: 150px;
  }

  .brand span {
    font-size: 0.78rem;
  }

  .brand strong {
    font-size: 1.35rem;
  }

  .nav,
  .phone,
  .side-bottom {
    display: none;
  }

  .brand-phone {
    display: block;
    position: absolute;
    right: 18px;
    top: 20px;
    margin-top: 0;
    justify-self: auto;
    font-size: 0.86rem;
    line-height: 1.05;
  }

  .stage {
    padding: 74px 14px calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .intro {
    padding-top: 10px;
  }

  h1 {
    font-size: var(--hero-title-size-mobile);
  }

  .eyebrow {
    font-size: var(--hero-eyebrow-size-mobile);
  }

  .contacts-address {
    font-size: clamp(0.94rem, 4vw, 1.12rem);
  }

  .contacts-map-frame {
    height: clamp(320px, 56vh, 520px);
  }

  .mobile-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    min-height: 52px;
    position: fixed;
    left: 14px;
    right: max(14px, calc(env(safe-area-inset-right, 0px) + 14px));
    width: auto;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    z-index: 45;
    padding: 8px;
    background: var(--main-bg);
    border: 1px solid rgba(22, 18, 15, 0.08);
    border-radius: 10px;
    box-shadow: 0 -8px 20px rgba(22, 18, 15, 0.08);
    font-family: var(--display);
    text-transform: uppercase;
  }

  .mobile-bar a {
    display: grid;
    place-items: center;
    min-height: 52px;
    background: var(--menu-bg);
    border: 1px solid rgba(22, 18, 15, 0.08);
    color: rgba(22, 18, 15, 0.72);
    font-size: 0.88rem;
    border-radius: 8px;
  }

  .mobile-bar a[aria-current="page"] {
    border-color: rgba(143, 29, 24, 0.62);
    color: var(--red);
    -webkit-text-fill-color: var(--red);
    box-shadow: inset 0 0 0 1px rgba(143, 29, 24, 0.15);
  }
}
