:root {
  --void: #e4e2dc;
  --cloth: #eceae6;
  --ink: #1a1a1a;
  --muted: #7a756e;
  --wine: #7a2e2a;
  --header-ink: #4a3c31;
  --header-deep: #5c4821;
  --parchment: #f4ead6;
  --parchment-2: #dfd0b4;
  --page: #ede4da;
  --top-design-w: 1920px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius: 8px;
  --radius-lg: 12px;
  --ease: 160ms ease;
  --sheet: 240ms ease-out;
}

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

html, body {
  min-height: 100%;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cloth);
}

body.is-home {
  height: 100%;
  overflow: hidden;
  background: #ccc1b5;
}

body.is-inner:not(.is-contact) {
  background-color: var(--page);
  background-image: url("../img/page-texture.png");
  background-repeat: repeat;
  background-size: 64px 64px;
}

body.is-inner:not(.is-contact)::before {
  content: "";
  position: fixed;
  z-index: 7;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--top-h, 140px) + 16px);
  background: linear-gradient(180deg, var(--page) 72%, transparent);
  pointer-events: none;
}

a { color: inherit; }

[hidden] {
  display: none !important;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--parchment);
  color: var(--header-deep);
  text-decoration: none;
}

.skip:focus {
  top: 8px;
}

.top a:focus-visible,
.top button:focus-visible,
.btn:focus-visible,
.pane:focus-visible,
.enc-drawer a:focus-visible,
.enc-zodiac a:focus-visible,
.contact-links a:focus-visible,
.contact-hours a:focus-visible,
.back a:focus-visible,
.site-sheet a:focus-visible,
.site-sheet button:focus-visible {
  outline: 2px solid var(--header-deep);
  outline-offset: 3px;
}

.top {
  position: fixed;
  z-index: 8;
  top: 0;
  left: 0;
  width: var(--top-design-w);
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 28px;
  padding: 18px 48px 20px;
  background: none;
  color: var(--header-ink);
  pointer-events: none;
  transform-origin: top left;
}

.top a {
  pointer-events: auto;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.top-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.top-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  margin-top: 26px;
  line-height: 1;
  color: var(--header-ink);
}

.top-slogan {
  margin-top: 28px;
  max-width: 16.5rem;
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: 1.48rem;
  line-height: 1.38;
  letter-spacing: 0.02em;
  text-align: center;
  color: #6b5530;
  background: none;
  transform: rotate(-3deg);
  transform-origin: center 30%;
  pointer-events: none;
}

.top-logo-name {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 2.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.top-logo-dot {
  display: block;
  width: 0.26em;
  height: 0.26em;
  fill: currentColor;
  flex-shrink: 0;
}

.top-logo-tag {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: 1.62rem;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #5c4e42;
}

.top-end {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  align-self: flex-start;
  gap: 28px;
  flex-shrink: 0;
  transform-origin: top right;
}

.top-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 12px 35px;
}

.top-nav a {
  position: relative;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 25px;
  padding: 0;
  color: #5c4821;
}

.top-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.2em;
  bottom: -5px;
  height: 2.5px;
  background: currentColor;
  pointer-events: none;
}

.top-nav a:hover {
  color: #4a3918;
}

.top-contact .top-phone:hover {
  color: #4a3918;
}

.top-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.top-contact .top-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
}

.top-contact .top-icon img {
  display: block;
  width: 32px;
  height: 32px;
}

.top-contact .top-icon-vk {
  width: 44px;
  height: 44px;
}

.top-contact .top-icon-vk img {
  width: 40px;
  height: 40px;
}

.top-contact .top-icon::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) rotate(-2.5deg);
  padding: 5px 11px 6px;
  background: linear-gradient(180deg, #f4ead6 0%, #e8dcc4 55%, #dfd0b4 100%);
  color: #5c4821;
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgba(255, 248, 232, 0.7) inset,
    1px 2px 0 rgba(92, 72, 33, 0.12),
    2px 4px 10px rgba(60, 44, 24, 0.14);
  border: 1px solid rgba(92, 72, 33, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
  z-index: 9;
}

.top-contact .top-icon:hover::after,
.top-contact .top-icon:focus-visible::after {
  opacity: 1;
}

.top-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  pointer-events: auto;
}

.top-contact .top-phone {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 20px;
  line-height: 25px;
  padding: 0;
  white-space: nowrap;
  color: #5c4821;
}

.top-mobile,
.site-sheet {
  display: none;
}

.wrap {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
}

.wrap-wide {
  width: min(1080px, calc(100% - 48px));
}

.page {
  padding: calc(var(--top-h, 140px) + 24px) 0 64px;
}

.page-head {
  margin-bottom: 32px;
  max-width: 40rem;
}

.page-head h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--header-ink);
  margin-bottom: 12px;
}

.page-head p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.hint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.back {
  margin-bottom: 16px;
}

.back a {
  color: var(--header-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(92, 72, 33, 0.35);
}

.back a:hover {
  border-bottom-color: var(--header-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  transition: background var(--ease), color var(--ease), transform 120ms ease-out;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--header-deep);
  color: #f4ead6;
}

.btn-primary:hover {
  background: #4a3918;
}

.btn-ghost {
  background: transparent;
  color: var(--header-deep);
  box-shadow: inset 0 0 0 1px rgba(92, 72, 33, 0.35);
}

.btn-ghost:hover {
  background: rgba(92, 72, 33, 0.06);
}

.page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.table-wrap {
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.price-table th,
.price-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(92, 72, 33, 0.14);
  vertical-align: top;
}

.price-table th {
  font-weight: 600;
  color: var(--header-deep);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

.price-table .price-num,
.price-table td:nth-child(3),
.price-table td:nth-child(4),
.price-table th:nth-child(3),
.price-table th:nth-child(4),
.price-table .price-one {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price-table .price-num {
  width: 3rem;
  color: var(--muted);
}

.price-table .price-group th {
  padding-top: 24px;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  color: var(--header-ink);
  background: transparent;
  border-bottom-color: rgba(92, 72, 33, 0.28);
}

.price-table tbody tr:hover {
  background: rgba(244, 234, 214, 0.45);
}

.price-table .price-group:hover {
  background: none;
}

.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  list-style: none;
}

.works figure {
  margin: 0;
}

.works img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: #d8cfc4;
}

.works figcaption {
  margin-top: 8px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--header-deep);
}

.vitrine {
  background: linear-gradient(180deg, color-mix(in srgb, var(--header-deep) 72%, #c4a56a), var(--header-deep));
  padding: 12px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(60, 44, 24, 0.1);
}

.vitrine-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: color-mix(in srgb, var(--ink) 55%, var(--header-deep));
  padding: 8px;
  height: min(640px, 70vh);
}

.pane {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink);
  min-height: 0;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform var(--ease);
}

.pane:hover {
  transform: translateY(-2px);
}

.pane:active {
  transform: translateY(1px);
}

.pane.is-hero {
  grid-row: 1 / -1;
}

.pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 248, 232, 0.22) 0%, transparent 38%, transparent 62%, rgba(255, 255, 255, 0.06) 100%);
  pointer-events: none;
}

.pane-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 6px 10px;
  background: rgba(244, 234, 214, 0.92);
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--header-ink);
}

.cat-gallery {
  display: grid;
  gap: 24px;
  list-style: none;
  margin: 0 0 32px;
}

.cat-frame {
  margin: 0;
  padding: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--header-deep) 72%, #c4a56a), var(--header-deep));
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(60, 44, 24, 0.1);
}

.cat-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d8cfc4;
  border: 6px solid color-mix(in srgb, var(--ink) 55%, var(--header-deep));
}

.cat-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 32px;
  min-height: 44px;
}

.cat-pages a,
.cat-pages span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--header-deep);
  text-decoration: none;
  font-weight: 600;
}

.cat-pages a {
  border-bottom: 1px solid rgba(92, 72, 33, 0.35);
}

.cat-pages a:hover,
.cat-pages a:focus-visible {
  border-bottom-color: var(--header-deep);
}

.enc-cabinet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.enc-drawer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  padding: 20px 16px 16px;
  background: rgba(244, 234, 214, 0.5);
  border: 1px solid rgba(92, 72, 33, 0.14);
  border-radius: var(--radius-lg);
  scroll-margin-top: calc(var(--top-h, 140px) + 16px);
  transition: background var(--ease);
}

.enc-drawer:hover {
  background: var(--parchment);
}

.enc-drawer:target {
  background: var(--parchment);
  box-shadow: inset 0 0 0 2px var(--header-deep);
}

.enc-drawer-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.enc-glyph {
  display: block;
  flex-shrink: 0;
  overflow: visible;
  color: var(--header-deep);
}

.enc-drawer-head h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--header-ink);
  line-height: 1.2;
}

.enc-drawer-dates {
  margin-top: -4px;
  font-size: 12px;
  color: var(--muted);
}

.enc-drawer-gems,
.enc-drawer-metals {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
}

.enc-drawer-gems {
  flex: 1;
}

.enc-drawer-metals {
  padding-top: 8px;
  border-top: 1px solid rgba(92, 72, 33, 0.12);
}

.enc-drawer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 8px 4px 4px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  transition: background var(--ease);
}

.enc-drawer a:hover {
  background: rgba(92, 72, 33, 0.08);
}

.enc-icon {
  flex-shrink: 0;
}

.enc-photo {
  margin: 0 0 32px;
}

.enc-photo img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: #d8cfc4;
}

.enc-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  max-width: 40rem;
  margin: 0 0 32px;
}

.enc-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(92, 72, 33, 0.12);
}

.enc-specs dt {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.enc-specs dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.4;
}

.enc-section {
  max-width: 40rem;
  margin-bottom: 24px;
}

.enc-section h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--header-deep);
  margin-bottom: 8px;
}

.enc-section p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.enc-section p:last-child {
  margin-bottom: 0;
}

.enc-facts {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr;
  gap: 24px;
  max-width: 48rem;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(92, 72, 33, 0.12);
}

.enc-facts h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--header-deep);
  margin-bottom: 8px;
}

.enc-facts p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.enc-facts .enc-zodiac {
  color: var(--wine);
}

.enc-zodiac-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.enc-zodiac {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wine);
}

.enc-zodiac a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
}

.enc-zodiac a span {
  border-bottom: 1px solid rgba(122, 46, 42, 0.35);
}

.enc-zodiac .enc-glyph {
  color: var(--wine);
}

.enc-zodiac a:hover span {
  border-bottom-color: currentColor;
}

.enc-article > p {
  max-width: 40rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.site-foot {
  padding: 32px 0 48px;
  border-top: 1px solid rgba(92, 72, 33, 0.12);
}

.site-foot .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-foot p {
  color: var(--muted);
}

body.is-contact {
  height: 100%;
  overflow: hidden;
  background: var(--page);
}

.contact-page {
  position: relative;
  min-height: 100vh;
}

.contact-page > picture,
.contact-stage > picture {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.contact-stage > picture {
  position: absolute;
}

.contact-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.contact-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.contact-stage .contact-bg {
  position: absolute;
}

.contact-spot {
  position: absolute;
  z-index: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.contact-spot:focus {
  outline: none;
}

.contact-spot:focus-visible {
  outline: 2px solid var(--header-deep);
  outline-offset: 3px;
}

.contact-spot-phone {
  border-radius: 28px;
}

.contact-spot-note {
  border-radius: 6px;
  transform-origin: center center;
}

.contact-spot-note .contact-spot-tip {
  transform: translateX(-50%) rotate(22deg) rotate(-2.5deg);
}

.contact-spot-plaque {
  border-radius: 12px;
}

.contact-spot-shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.contact-spot-note .contact-spot-shine::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 22%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 248, 232, 0.2) 38%,
    rgba(255, 248, 232, 0.5) 50%,
    rgba(255, 248, 232, 0.2) 62%,
    transparent 100%
  );
  transform: translateX(-140%);
  opacity: 0;
}

.contact-spot-note.is-shine .contact-spot-shine::after {
  animation: zg-gleam-note 220ms ease-out;
}

@keyframes zg-gleam-note {
  0% {
    transform: translateX(-140%);
    opacity: 0;
  }
  24% {
    opacity: 1;
  }
  100% {
    transform: translateX(500%);
    opacity: 0;
  }
}

.contact-spot-tip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) rotate(-2.5deg);
  padding: 5px 11px 6px;
  background: linear-gradient(180deg, #f4ead6 0%, #e8dcc4 55%, #dfd0b4 100%);
  color: #5c4821;
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgba(255, 248, 232, 0.7) inset,
    1px 2px 0 rgba(92, 72, 33, 0.12),
    2px 4px 10px rgba(60, 44, 24, 0.14);
  border: 1px solid rgba(92, 72, 33, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
  z-index: 3;
}

.contact-spot:hover .contact-spot-tip,
.contact-spot:focus-visible .contact-spot-tip,
.contact-spot.is-copied .contact-spot-tip {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .contact-spot-note.is-shine .contact-spot-shine::after {
    animation: none;
  }

  .contact-spot-note:hover .contact-spot-shine,
  .contact-spot-note:focus-visible .contact-spot-shine {
    background: rgba(255, 248, 232, 0.14);
  }
}

.contact-card {
  position: fixed;
  z-index: 2;
  left: 48px;
  top: calc(var(--top-h, 140px) + 24px);
  width: min(360px, calc(100% - 72px));
  max-height: calc(100vh - var(--top-h, 140px) - 48px);
  margin: 0;
  padding: 32px 24px;
  overflow-y: auto;
  background: #f4ead6;
  border: 1px solid rgba(92, 72, 33, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(60, 44, 24, 0.12);
}

.contact-card .eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-card h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--header-ink);
  margin-bottom: 12px;
}

.contact-lead,
.contact-address {
  color: var(--muted);
  margin-bottom: 16px;
}

.contact-address {
  font-style: normal;
  font-weight: 600;
  color: var(--header-ink);
  line-height: 1.45;
  max-width: 22rem;
}

.contact-hours {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.contact-hours li {
  padding: 16px 0;
  border-top: 1px solid rgba(92, 72, 33, 0.12);
}

.contact-hours-when {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--header-deep);
}

.contact-name {
  margin: 0 0 4px;
  color: var(--header-ink);
  font-weight: 600;
}

.contact-phones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.contact-hours a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--header-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(92, 72, 33, 0.35);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.contact-hours a:hover {
  border-bottom-color: var(--header-deep);
}

.contact-links {
  list-style: none;
  margin-top: 24px;
}

.contact-links li + li {
  margin-top: 12px;
}

.contact-links a {
  color: var(--header-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(92, 72, 33, 0.35);
}

.contact-links a:hover {
  border-bottom-color: var(--header-deep);
}

@media (max-width: 960px) {
  html,
  body {
    overflow-x: hidden;
  }

  .top {
    width: 100%;
    max-width: 100%;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 16px;
    pointer-events: auto;
  }

  .top-end {
    display: none;
  }

  .top-mobile {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 4px;
    margin-left: auto;
    pointer-events: auto;
  }

  .top-m-call,
  .top-m-menu,
  .site-sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    background: none;
    font-family: "Source Sans 3", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--header-deep);
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--radius);
  }

  .top-m-call {
    font-weight: 700;
  }

  .top-m-call:active,
  .top-m-menu:active,
  .site-sheet-close:active,
  .btn:active {
    transform: translateY(1px);
  }

  .top-brand {
    min-width: 0;
    max-width: 60%;
    align-items: flex-start;
  }

  .top-logo {
    margin-top: 0;
    align-items: flex-start;
    gap: 4px;
    max-width: 100%;
  }

  .top-logo-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    white-space: normal;
  }

  .top-logo-dot {
    display: inline-block;
    vertical-align: 0.08em;
  }

  .top-logo-tag {
    max-width: 100%;
    font-size: 12px;
    letter-spacing: 0.08em;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .home-lead {
    position: fixed;
    z-index: 7;
    left: 16px;
    top: calc(var(--top-h, 64px) + 8px);
    width: min(15.5rem, calc(100% - 32px));
    max-width: calc(100% - 32px);
    max-height: calc(100dvh - var(--top-h, 64px) - 24px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  .top-slogan {
    position: static;
    left: auto;
    top: auto;
    margin-top: 0;
    max-width: 100%;
    font-size: 22px;
    text-align: left;
    overflow-wrap: break-word;
    transform: rotate(-3deg);
    transform-origin: left center;
  }

  body.is-home {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.is-home .top {
    background: linear-gradient(180deg, rgba(237, 228, 218, 0.78) 0%, transparent);
  }

  body.is-inner:not(.is-contact) .top {
    background: linear-gradient(180deg, var(--page) 72%, transparent);
  }

  body.is-contact .top {
    background: linear-gradient(180deg, rgba(237, 228, 218, 0.82) 0%, transparent);
  }

  .wrap,
  .wrap-wide {
    width: min(920px, calc(100% - 32px));
  }

  .page {
    padding-top: calc(var(--top-h, 64px) + 16px);
  }

  .page-head h1 {
    font-size: 32px;
  }

  .back a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .enc-cabinet,
  .enc-specs,
  .enc-facts {
    grid-template-columns: 1fr;
  }

  .enc-drawer {
    min-height: 0;
    padding: 16px;
  }

  .enc-drawer-head h2 {
    font-size: 20px;
  }

  .enc-drawer a {
    min-height: 44px;
  }

  .enc-photo img {
    max-height: 240px;
  }

  .price-table thead {
    display: none;
  }

  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table th,
  .price-table td {
    display: block;
    width: 100%;
  }

  .price-table th,
  .price-table td {
    padding: 0;
    border: 0;
    text-align: left;
  }

  .price-table .price-num,
  .price-table td:nth-child(3),
  .price-table td:nth-child(4),
  .price-table th:nth-child(3),
  .price-table th:nth-child(4),
  .price-table .price-one {
    text-align: left;
  }

  .price-table tbody tr {
    display: grid;
    grid-template-columns: 1.5rem 1fr;
    gap: 8px 12px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(92, 72, 33, 0.14);
  }

  .price-table tbody tr:hover {
    background: none;
  }

  .price-table .price-group {
    display: block;
    padding: 24px 0 8px;
    border-bottom: 0;
  }

  .price-table .price-group th {
    padding: 0;
    font-size: 14px;
  }

  .price-table .price-num {
    width: auto;
    grid-row: 1;
    padding-top: 2px;
  }

  .price-table td:nth-child(2) {
    grid-column: 2;
  }

  .price-table td:nth-child(3),
  .price-table td:nth-child(4),
  .price-table .price-one {
    grid-column: 2;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-variant-numeric: tabular-nums;
  }

  .price-table td[data-label]:not(:empty)::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 13px;
  }

  .price-table td:empty {
    display: none;
  }

  body.is-catalog .vitrine-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  body.is-catalog .pane.is-hero {
    grid-column: auto;
    grid-row: auto;
  }

  body.is-catalog .pane img,
  body.is-catalog .pane.is-hero img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .cat-frame {
    padding: 8px;
  }

  .cat-frame img {
    border-width: 4px;
  }

  body.is-catalog .page-cta .btn-ghost {
    display: none;
  }

  .page-cta {
    display: grid;
  }

  .page-cta .btn {
    width: 100%;
  }

  .site-foot .wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .site-foot .btn {
    width: 100%;
  }

  body.is-contact {
    height: auto;
    overflow: auto;
  }

  .contact-page {
    min-height: 0;
    padding-bottom: 32px;
  }

  .contact-stage {
    position: relative;
    inset: auto;
    height: 40vh;
    min-height: 200px;
  }

  .contact-page > picture,
  .contact-stage > picture,
  .contact-bg,
  .contact-stage .contact-bg {
    position: relative;
    inset: auto;
    height: 40vh;
    min-height: 200px;
  }

  .contact-bg,
  .contact-stage .contact-bg {
    object-position: center 18%;
  }

  .contact-stage > picture,
  .contact-stage .contact-bg {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 0;
  }

  .contact-spot {
    display: none;
  }

  .contact-card {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    max-height: none;
    margin: -24px 16px 0;
    overflow: visible;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
  }

  .site-sheet {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 12;
    overflow: hidden;
    pointer-events: none;
  }

  .site-sheet.is-open {
    pointer-events: auto;
  }

  .site-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(60, 44, 24, 0.28);
    opacity: 0;
    transition: opacity var(--sheet);
  }

  .site-sheet.is-open .site-sheet-backdrop {
    opacity: 1;
  }

  .site-sheet-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 86%);
    padding: 16px 20px 32px;
    overflow-y: auto;
    background: var(--parchment);
    box-shadow: -4px 0 16px rgba(60, 44, 24, 0.1);
    transform: translateX(100%);
    transition: transform var(--sheet);
  }

  .site-sheet.is-open .site-sheet-panel {
    transform: translateX(0);
  }

  .site-sheet-close {
    display: flex;
    margin: 0 0 8px auto;
    padding: 0 4px;
  }

  .site-sheet-nav {
    list-style: none;
    margin-bottom: 32px;
  }

  .site-sheet-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #5c4821;
    text-decoration: none;
  }

  .site-sheet-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0.2em;
    bottom: 8px;
    height: 2px;
    background: currentColor;
  }

  .site-sheet-phone {
    display: block;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--header-deep);
  }

  .site-sheet-links {
    list-style: none;
    margin-bottom: 24px;
  }

  .site-sheet-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--header-deep);
    text-decoration: none;
  }

  .site-sheet-addr {
    font-size: 14px;
    color: var(--muted);
  }

  body.sheet-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  body.is-catalog .pane:hover,
  body.is-catalog .pane:active {
    transform: none;
  }

  .contact-spot-note.is-shine .contact-spot-shine::after {
    animation: none;
  }

  .contact-spot-note:hover .contact-spot-shine,
  .contact-spot-note:focus-visible .contact-spot-shine {
    background: rgba(255, 248, 232, 0.14);
  }
}
