:root {
  --graphite: #242321;
  --gold: #c4a05a;
  --cream: #f2ebdd;
  --paper: #faf7f0;
  --stone: #a79a89;
  --sage: #727a68;
  --shell-pad: clamp(20px, 4vw, 64px);
  --shell-display: Georgia, "Times New Roman", serif;
  --shell-sans: Arial, Helvetica, sans-serif;
}

.global-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 12px 16px;
  color: var(--cream);
  background: var(--graphite);
  font-family: var(--shell-sans);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.global-skip-link:focus {
  transform: translateY(0);
}

.global-header {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 78px;
  padding: 12px var(--shell-pad);
  border-bottom: 1px solid rgba(242, 235, 221, 0.22);
  color: #f5f5f2;
  background: #242321;
  font-family: var(--shell-sans);
}

.global-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
}

.global-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: invert(1);
}

.global-brand-copy {
  display: grid;
  gap: 3px;
}

.global-brand-copy strong {
  font-family: var(--shell-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.global-brand-copy > span {
  color: var(--stone);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.global-nav a,
.global-nav-placeholder,
.global-nav-dropdown summary {
  position: relative;
  color: inherit;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
}

.global-nav-dropdown {
  position: relative;
}

.global-nav-dropdown summary {
  gap: 6px;
  list-style: none;
  cursor: pointer;
}

.global-nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.global-nav-dropdown summary::before {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.global-nav-dropdown summary:hover::before,
.global-nav-dropdown summary:focus-visible::before,
.global-nav-dropdown[open] summary::before,
.global-nav-dropdown.is-current summary::before {
  transform: scaleX(1);
  transform-origin: left;
}

.global-nav-dropdown-icon {
  font-size: 13px;
  line-height: 1;
  transition: transform 180ms ease;
}

.global-nav-dropdown[open] .global-nav-dropdown-icon {
  transform: rotate(180deg);
}

.global-nav-submenu {
  position: absolute;
  z-index: 120;
  top: calc(100% - 1px);
  right: -14px;
  display: grid;
  width: min(360px, calc(100vw - 40px));
  padding: 10px;
  border: 1px solid rgba(36, 35, 33, 0.2);
  color: var(--graphite);
  background: #f4f5f3;
  box-shadow: 0 18px 50px rgba(36, 35, 33, 0.14);
}

.global-nav-dropdown:not([open]) .global-nav-submenu {
  display: none;
}

.global-nav-submenu a,
.global-nav-submenu-placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(36, 35, 33, 0.14);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.global-nav-submenu a:last-of-type,
.global-nav-submenu-placeholder:last-child {
  border-bottom: 0;
}

.global-nav-submenu a::after {
  display: none;
}

.global-nav-submenu a:hover,
.global-nav-submenu a:focus-visible {
  color: #8e6a29;
}

.global-nav-submenu-placeholder {
  color: #63543a;
}

.global-nav-submenu-placeholder small {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after,
.global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.global-nav-placeholder {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--stone);
}

.global-nav-placeholder small {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.global-footer {
  display: grid;
  gap: 28px;
  padding: 38px var(--shell-pad) 28px;
  color: var(--stone);
  background: var(--graphite);
  border-top: 1px solid rgba(242, 235, 221, 0.16);
  font-family: var(--shell-sans);
  font-size: 12px;
  letter-spacing: 0.055em;
  line-height: 1.55;
}

.global-footer p {
  margin: 0;
}

.global-footer-primary {
  display: grid;
  grid-template-columns: minmax(160px, 0.65fr) minmax(300px, 1.2fr) auto;
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
}

.global-footer-brand {
  color: var(--cream);
  font-family: var(--shell-display);
  font-size: clamp(28px, 2.6vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
}

.global-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(18px, 2.4vw, 34px);
}

.global-footer-nav a {
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.global-footer-nav a:hover,
.global-footer-nav a:focus-visible {
  color: var(--gold);
}

.global-footer-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, auto) auto;
  gap: 12px 28px;
  align-items: end;
  padding-top: 20px;
  border-top: 1px solid rgba(242, 235, 221, 0.16);
}

.global-footer-requisites,
.global-footer-contacts,
.global-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 18px;
}

.global-footer-requisites span:not(:last-child)::after,
.global-footer-contacts a:not(:last-child)::after,
.global-footer-legal span:not(:last-child)::after {
  position: relative;
  left: 10px;
  color: var(--gold);
  content: "·";
}

.global-footer-contacts a {
  color: var(--cream);
  text-decoration: none;
  transition: color 180ms ease;
}

.global-footer-contacts a:hover,
.global-footer-contacts a:focus-visible {
  color: var(--gold);
}

.global-footer-legal {
  color: #bdb6ac;
}

.global-footer-copyright {
  white-space: nowrap;
}

.global-header :focus-visible,
.global-footer :focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Общая система движения: содержание остаётся видимым без JavaScript. */
[data-motion] {
  opacity: 1;
  transform: none;
}

.has-site-motion [data-motion].motion-pending {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

.has-site-motion [data-motion].motion-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 620ms ease,
    transform 720ms cubic-bezier(0.2, 0.72, 0.2, 1);
  transition-delay: calc(var(--motion-delay, 0) * 70ms);
}

.has-site-motion [data-motion].motion-enter {
  animation: site-content-enter 520ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
  animation-delay: calc(var(--motion-delay, 0) * 55ms);
}

@keyframes site-content-enter {
  from {
    opacity: 0.82;
    transform: translate3d(0, 10px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: site-page-out 160ms ease both;
}

::view-transition-new(root) {
  animation: site-page-in 420ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

@keyframes site-page-out {
  to {
    opacity: 0.72;
  }
}

@keyframes site-page-in {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
}

@media (max-width: 900px) {
  .global-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding-block: 12px 10px;
  }

  .global-nav {
    justify-content: space-between;
    gap: 8px;
    padding-top: 7px;
    border-top: 1px solid rgba(242, 235, 221, 0.22);
  }

  .global-nav a,
  .global-nav-placeholder,
  .global-nav-dropdown summary {
    font-size: 13px;
  }

  .global-nav-dropdown {
    position: static;
  }

  .global-nav-submenu {
    top: 100%;
    right: var(--shell-pad);
    left: var(--shell-pad);
    width: auto;
  }

  .global-footer {
    gap: 24px;
    padding-block: 28px;
  }

  .global-footer-primary,
  .global-footer-meta {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .global-footer-primary {
    gap: 22px;
  }

  .global-footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .global-footer-requisites,
  .global-footer-contacts,
  .global-footer-legal {
    flex-direction: column;
    gap: 2px;
  }

  .global-footer-requisites span::after,
  .global-footer-contacts a::after,
  .global-footer-legal span::after {
    display: none;
  }
}

@media (max-width: 460px) {
  .global-brand img {
    width: 44px;
    height: 44px;
  }

  .global-brand-copy strong {
    font-size: 20px;
  }

  .global-brand-copy > span {
    font-size: 12px;
  }

  .global-nav-placeholder small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  [data-motion],
  .has-site-motion [data-motion].motion-pending,
  .has-site-motion [data-motion].motion-visible,
  .has-site-motion [data-motion].motion-enter {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* Footer links retain comfortable targets on every page using the shell. */
.global-footer-nav a,
.global-footer-contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.global-nav-submenu :focus-visible {
  outline-color: #66501f;
}
@media (min-width: 901px) and (max-width: 1200px) {
  .global-footer-primary,
  .global-footer-meta { grid-template-columns: 1fr 1fr; }
}
