:root {
  --shell-ink: #17312f;
  --shell-pine: #0f625b;
  --shell-pine-dark: #093f3b;
  --shell-mint: #d9ede7;
  --shell-lime: #d9ef79;
  --shell-cream: #f6f5ed;
  --shell-line: rgba(23, 49, 47, 0.12);
}

.site-shell-topbar {
  position: relative;
  z-index: 82;
  background: var(--shell-pine-dark);
  color: #fff;
}

.site-shell-topbar__inner,
.site-shell-header__inner,
.site-shell-footer__inner {
  width: min(calc(100% - 40px), 1280px);
  margin-inline: auto;
}

.site-shell-topbar__inner {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  font-weight: 700;
}

.site-shell-topbar p {
  margin: 0;
}

.site-shell-topbar__address {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.site-shell-topbar__address::before {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--shell-lime);
  content: "";
}

.site-shell-topbar__meta {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.75);
}

.site-shell-topbar a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.site-shell-topbar a:hover {
  color: var(--shell-lime);
}

.site-shell-header {
  position: sticky;
  z-index: 80;
  top: 0;
  border-bottom: 1px solid var(--shell-line);
  background: rgba(255, 255, 255, 0.98);
  color: var(--shell-ink);
  transition: box-shadow 0.2s ease;
}

.site-shell-header.is-scrolled {
  box-shadow: 0 12px 34px rgba(9, 63, 59, 0.08);
}

.site-shell-header__inner {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-shell-logo {
  position: relative;
  display: block;
  width: 112px;
  height: 70px;
  flex: none;
  overflow: hidden;
  border-radius: 8px;
}

.site-shell-logo img {
  position: absolute;
  inset: 0 auto auto 0;
  width: 280px;
  height: 70px;
  max-width: none;
  mix-blend-mode: multiply;
}

.site-shell-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.7vw, 26px);
}

.site-shell-nav > a,
.site-shell-nav summary {
  color: var(--shell-ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.site-shell-nav > a:hover,
.site-shell-nav summary:hover,
.site-shell-nav a[aria-current="page"] {
  color: var(--shell-pine);
}

.site-shell-dropdown {
  position: relative;
}

.site-shell-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
}

.site-shell-dropdown summary::-webkit-details-marker {
  display: none;
}

.site-shell-dropdown summary::after {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.16s ease;
}

.site-shell-dropdown[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.site-shell-dropdown__menu {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  display: grid;
  width: 310px;
  gap: 2px;
  border: 1px solid var(--shell-line);
  border-radius: 16px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(9, 63, 59, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.site-shell-dropdown__menu::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 10px;
  content: "";
}

.site-shell-dropdown[open] .site-shell-dropdown__menu,
.site-shell-dropdown:hover .site-shell-dropdown__menu,
.site-shell-dropdown:focus-within .site-shell-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.site-shell-dropdown__menu a {
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--shell-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.site-shell-dropdown__menu a:hover,
.site-shell-dropdown__menu a[aria-current="page"] {
  background: var(--shell-mint);
  color: var(--shell-pine-dark);
}

.site-shell-header__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.site-shell-home-link {
  margin-right: 3px;
  color: var(--shell-pine);
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(15, 98, 91, 0.25);
  text-underline-offset: 4px;
  white-space: nowrap;
}

.site-shell-home-link:hover {
  text-decoration-color: currentColor;
}

.site-shell-icon-button,
.site-shell-menu-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border: 1px solid var(--shell-line);
  border-radius: 50%;
  padding: 0;
  background: #fff;
  color: var(--shell-ink);
  cursor: pointer;
  text-decoration: none;
}

.site-shell-icon-button:hover,
.site-shell-menu-button:hover {
  border-color: var(--shell-pine);
  color: var(--shell-pine);
}

.site-shell-icon-button svg,
.site-shell-menu-button svg {
  width: 20px;
  height: 20px;
}

.site-shell-appointment {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--shell-pine);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.site-shell-appointment:hover {
  background: var(--shell-pine-dark);
}

.site-shell-menu-button,
.site-shell-phone-mobile,
.site-shell-mobile,
.site-shell-backdrop {
  display: none;
}

.site-shell-mobile {
  position: absolute;
  inset: 100% 0 auto;
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  border-top: 1px solid var(--shell-line);
  padding: 16px 20px 24px;
  background: #fff;
  box-shadow: 0 24px 55px rgba(9, 63, 59, 0.16);
}

.site-shell-mobile.is-open {
  display: block;
}

.site-shell-mobile__inner {
  width: min(100%, 720px);
  margin-inline: auto;
}

.site-shell-mobile__home,
.site-shell-mobile__link,
.site-shell-mobile-subnav summary {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--shell-line);
  padding: 11px 4px;
  background: transparent;
  color: var(--shell-ink);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.site-shell-mobile__home {
  color: var(--shell-pine);
}

.site-shell-mobile-subnav summary {
  list-style: none;
}

.site-shell-mobile-subnav summary::-webkit-details-marker {
  display: none;
}

.site-shell-mobile-subnav summary::after {
  color: var(--shell-pine);
  content: "+";
  font-size: 22px;
  font-weight: 500;
}

.site-shell-mobile-subnav[open] summary::after {
  content: "−";
}

.site-shell-mobile-subnav__links {
  display: grid;
  border-bottom: 1px solid var(--shell-line);
  padding: 7px 0 12px 14px;
}

.site-shell-mobile-subnav__links a {
  padding: 9px 4px;
  color: rgba(23, 49, 47, 0.72);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.site-shell-mobile-subnav__links a:hover,
.site-shell-mobile-subnav__links a[aria-current="page"] {
  color: var(--shell-pine);
}

.site-shell-mobile .site-shell-appointment {
  width: 100%;
  margin-top: 18px;
}

.site-shell-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  border: 0;
  background: rgba(9, 37, 35, 0.55);
}

.site-shell-backdrop.is-open {
  display: block;
}

body.site-shell-menu-open {
  overflow: hidden;
}

.site-shell-footer {
  border-top: 1px solid var(--shell-line);
  background: #fff;
  color: var(--shell-ink);
}

.site-shell-footer__inner {
  padding: 48px 0 42px;
}

.site-shell-footer__top {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 42px;
  border-bottom: 1px solid var(--shell-line);
  padding-bottom: 34px;
}

.site-shell-footer__disclaimer {
  max-width: 560px;
  margin: 8px 0 0;
  color: rgba(23, 49, 47, 0.52);
  font-size: 12px;
  line-height: 1.7;
}

.site-shell-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.site-shell-footer__links a {
  color: rgba(23, 49, 47, 0.62);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
  text-decoration: none;
}

.site-shell-footer__links a:hover,
.site-shell-footer__links a[aria-current="page"] {
  color: var(--shell-pine);
}

.site-shell-footer__bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 24px;
  padding-top: 26px;
  color: rgba(23, 49, 47, 0.5);
  font-size: 11px;
  line-height: 1.75;
}

.site-shell-footer__bottom p {
  margin: 0;
}

.site-shell-footer__company {
  font-style: normal;
  text-align: right;
}

.site-shell-footer__company a {
  color: inherit;
  font-weight: 700;
}

.site-shell-footer .license-document-link {
  text-underline-offset: 3px;
}

.site-shell-header :focus-visible,
.site-shell-footer :focus-visible {
  outline: 3px solid var(--shell-lime);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .site-shell-nav {
    gap: 14px;
  }

  .site-shell-nav > a,
  .site-shell-nav summary {
    font-size: 13px;
  }

  .site-shell-home-link,
  .site-shell-search {
    display: none;
  }
}

@media (max-width: 980px) {
  .site-shell-topbar__inner,
  .site-shell-header__inner,
  .site-shell-footer__inner {
    width: min(calc(100% - 32px), 1280px);
  }

  .site-shell-nav,
  .site-shell-appointment--desktop,
  .site-shell-search {
    display: none;
  }

  .site-shell-menu-button,
  .site-shell-phone-mobile {
    display: inline-grid;
  }

  .site-shell-mobile {
    display: none;
  }

  body.site-shell-menu-open .site-shell-topbar {
    position: fixed;
    z-index: 84;
    inset: 0 0 auto;
  }

  body.site-shell-menu-open .site-shell-header {
    position: fixed;
    z-index: 85;
    inset: 36px 0 auto;
  }

  body.site-shell-menu-open .site-shell-mobile {
    position: fixed;
    inset: 116px 0 0;
    width: 100%;
    max-height: none;
    overscroll-behavior: contain;
  }

  .site-shell-footer__top {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .site-shell-footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell-topbar__inner {
    min-height: 34px;
    gap: 10px;
    font-size: 10px;
  }

  .site-shell-topbar__address span {
    display: none;
  }

  .site-shell-topbar__address::after {
    content: "Пенза · Тернопольская, 14";
    white-space: nowrap;
  }

  .site-shell-topbar__meta {
    gap: 0;
    white-space: nowrap;
  }

  .site-shell-topbar__meta a {
    display: none;
  }

  .site-shell-header__inner {
    min-height: 72px;
    gap: 10px;
  }

  body.site-shell-menu-open .site-shell-header {
    top: 34px;
  }

  body.site-shell-menu-open .site-shell-mobile {
    top: 106px;
  }

  .site-shell-logo {
    width: 104px;
    height: 65px;
  }

  .site-shell-logo img {
    width: 260px;
    height: 65px;
  }

  .site-shell-header__actions {
    gap: 6px;
  }

  .site-shell-icon-button,
  .site-shell-menu-button {
    width: 42px;
    height: 42px;
  }

  .site-shell-footer__inner {
    padding: 38px 0 34px;
  }

  .site-shell-home-page .site-shell-footer__inner {
    padding-bottom: 112px;
  }

  .site-shell-footer__links {
    display: grid;
    gap: 12px;
  }

  .site-shell-footer__bottom {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .site-shell-footer__company {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .site-shell-phone-mobile {
    display: none;
  }
}

html.is-accessible .site-shell-topbar,
html.is-accessible .site-shell-header,
html.is-accessible .site-shell-mobile,
html.is-accessible .site-shell-footer {
  border-color: #000 !important;
  background: #fff !important;
  color: #000 !important;
}

html.is-accessible .site-shell-topbar *,
html.is-accessible .site-shell-header *,
html.is-accessible .site-shell-mobile *,
html.is-accessible .site-shell-footer * {
  color: #000 !important;
}

html.is-accessible .site-shell-appointment {
  border: 2px solid #000 !important;
  background: #000 !important;
  color: #fff !important;
}
