@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-regular-cyrillic.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-regular-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-italic-cyrillic.woff2") format("woff2");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-regular-cyrillic.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-regular-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.palekh {
  --palekh-black: #090806;
  --palekh-panel: #15110d;
  --palekh-ivory: #fff0d7;
  --palekh-text: #dfd0b9;
  --palekh-gold: #ebbc70;
  --palekh-line: #70502d;
  --palekh-line-soft: #3f2d1c;
  --palekh-serif: "Cormorant Garamond", Georgia, serif;
  --mw-container: 78rem;
  --mw-header-height: 5.25rem;
  color: var(--palekh-text);
  background: var(--palekh-black);
  font-family: "Golos Text", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.palekh h1,
.palekh h2,
.palekh h3 {
  color: var(--palekh-ivory);
  font-family: var(--palekh-serif);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.palekh h2 {
  font-size: clamp(2.55rem, 5vw, 4.45rem);
}

.palekh a {
  color: var(--palekh-gold);
}

.palekh a:hover {
  color: var(--palekh-ivory);
}

.palekh :focus-visible {
  outline-color: var(--palekh-gold);
}

.palekh .site-header {
  background: rgb(9 8 6 / 94%);
  border-color: var(--palekh-line-soft);
}

.palekh .site-header__inner {
  gap: clamp(0.9rem, 2.4vw, 2rem);
}

.palekh .site-brand__link {
  min-width: 0;
  gap: 0.5rem;
  color: var(--palekh-ivory);
}

.palekh .site-brand__name {
  font-family: var(--palekh-serif);
  font-size: clamp(1.5rem, 2.18vw, 1.95rem);
  font-weight: 600;
  line-height: 1;
  text-wrap: balance;
}

.palekh .site-footer .site-brand__link {
  max-width: 100%;
}

.palekh .site-footer .site-brand__name {
  font-size: clamp(1.5rem, 2.05vw, 1.8rem);
}

.palekh .site-brand__logo {
  flex: none;
  width: clamp(2.75rem, 4.4vw, 3.625rem);
  height: auto;
}

.palekh .primary-menu {
  gap: clamp(0.6rem, 1.2vw, 1.15rem);
}

.palekh .primary-menu a,
.palekh .site-header .contact-link {
  color: var(--palekh-text);
  font-size: 0.875rem;
  font-weight: 500;
}

.palekh .primary-menu a:hover,
.palekh .primary-menu .current-menu-item > a,
.palekh .site-header .contact-link:hover {
  color: var(--palekh-gold);
}

.palekh .primary-menu .sub-menu {
  top: 100%;
  background: var(--palekh-panel);
  border-color: var(--palekh-line);
}

.palekh .primary-menu .sub-menu a:hover {
  background: var(--palekh-line-soft);
}

.palekh .site-header__actions {
  gap: clamp(0.6rem, 1vw, 1rem);
}

.palekh .button {
  min-height: 3.1rem;
  padding: 0.75rem 1.35rem;
  color: #fff5df;
  background: linear-gradient(#a32518, #781510 56%, #590f0d);
  border: 1px solid var(--palekh-gold);
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgb(255 209 136 / 14%), 0 6px 18px rgb(95 15 10 / 24%);
  font: 600 0.938rem/1.25 "Golos Text", system-ui, sans-serif;
  text-align: center;
}

.palekh .button:hover {
  color: #fff5df;
  background: linear-gradient(#bf3020, #881710 56%, #66100c);
  box-shadow: inset 0 0 0 2px rgb(255 209 136 / 23%), 0 6px 20px rgb(144 30 20 / 30%);
  filter: none;
  transform: translateY(-1px);
}

.palekh .button--small {
  min-height: 2.7rem;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.palekh .button--secondary,
.palekh .site-header .button,
.palekh .nav-toggle {
  color: var(--palekh-ivory);
  background: #14100c;
  border: 1px solid var(--palekh-line);
  box-shadow: none;
}

.palekh .button--secondary:hover,
.palekh .site-header .button:hover {
  color: var(--palekh-ivory);
  background: #21170e;
  border-color: var(--palekh-gold);
  box-shadow: none;
}

.palekh .text-link {
  display: inline;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--palekh-line);
}

.palekh .text-link:hover {
  text-decoration-color: var(--palekh-gold);
}

.palekh .text-link::after {
  content: none;
}

.palekh .eyebrow {
  gap: 0.8rem;
  margin: 0 0 0.8rem;
  color: var(--palekh-gold);
  font: 600 0.875rem/1.45 "Golos Text", system-ui, sans-serif;
  letter-spacing: 0.13em;
  text-wrap: balance;
}

.palekh .eyebrow::before,
.palekh .eyebrow::after {
  flex: 0 0 clamp(1rem, 3vw, 2.6rem);
  width: auto;
  height: 0.5rem;
  content: "";
  background: center / 100% 1px no-repeat linear-gradient(90deg, transparent, #a6763a), right center / 0.65rem 0.65rem no-repeat radial-gradient(closest-side, #f0c476 36%, transparent 56%);
}

.palekh .eyebrow::after {
  transform: scaleX(-1);
}

.palekh .site-footer {
  padding-block: 0 1.5rem;
  color: var(--palekh-text);
  background: #0d0a07;
  border-top: 1px solid var(--palekh-line);
}

.palekh .site-footer__grid {
  gap: clamp(1.4rem, 3.3vw, 2.9rem);
  padding-block: clamp(1.7rem, 4vw, 3.25rem);
}

.palekh .site-footer__brand p {
  max-width: 22rem;
  margin: 0.7rem 0 0;
}

.palekh .site-footer .footer-heading {
  font: 600 0.938rem/1.45 "Golos Text", system-ui, sans-serif;
  letter-spacing: 0;
}

.palekh .footer-menu {
  gap: 0.45rem;
}

.palekh .footer-menu a,
.palekh .site-footer__contacts a {
  color: var(--palekh-text);
}

.palekh .footer-menu a:hover,
.palekh .site-footer__contacts a:hover {
  color: var(--palekh-gold);
}

.palekh .site-footer__legal {
  border-color: var(--palekh-line-soft);
}

@media (min-width: 1101px) and (max-width: 1220px) {
  .palekh .site-header__actions .contact-link {
    display: none;
  }
}

@media (1100px < width < 1320px) {
  .palekh .site-header .site-brand__name {
    max-width: 7.8em;
  }
}

@media (max-width: 1100px) {
  .palekh .site-header__inner {
    grid-template-columns: minmax(0, auto) auto;
  }

  .palekh {
    --mw-header-height: 4.45rem;
  }

  .palekh .site-navigation {
    z-index: 1;
    height: calc(100dvh - var(--mw-header-height));
    background: #100d09;
    border-top: 1px solid var(--palekh-line-soft);
  }

  .palekh .primary-menu {
    gap: 0;
  }

  .palekh .primary-menu > li > a {
    border-color: var(--palekh-line-soft);
    font-size: 1rem;
  }

  .palekh .primary-menu .sub-menu {
    background: transparent;
  }

  .palekh .nav-toggle__icon span {
    background: var(--palekh-gold);
  }
}

@media (max-width: 760px) {
  .palekh {
    --mw-header-height: 4rem;
  }
}

@media (max-width: 365px) {
  .palekh {
    --mw-header-height: 3.75rem;
  }

  .palekh .site-header .site-brand__name {
    font-size: 1.25rem;
  }

  .palekh .site-header .site-brand__logo {
    width: 2.45rem;
  }
}

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

  .palekh *,
  .palekh *::before,
  .palekh *::after {
    transition: none;
  }
}
