/* Brand hierarchy: the header wordmark stays above the content type scale. */
:root {
  --meltis-title-size: 22px;
  --meltis-section-size: 20px;
  --meltis-card-size: 18px;
  --meltis-intro-size: 18px;
}
#content :is(h1, h2, h3, h4, h5, h6) {
  font-family: Manrope, Arial, Helvetica, sans-serif;
  font-weight: 400 !important;
  line-height: 1.4;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
#content h1 { font-size: var(--meltis-title-size) !important; }
#content h2 { font-size: var(--meltis-section-size) !important; }
#content :is(h3, h4, h5, h6) { font-size: var(--meltis-card-size) !important; }
#content :is(h1, h2, h3, h4, h5, h6) :is(strong, b, span, a) {
  font-size: inherit;
  font-weight: inherit;
}
.meltis-home-category__title,
.meltis-series-card__title,
.meltis-catalog-card__title {
  font-size: var(--meltis-card-size) !important;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.meltis-product-intro__text {
  font-size: var(--meltis-intro-size) !important;
  line-height: 1.6;
  letter-spacing: 0;
}
.meltis-product-price,
.meltis-contact-phones a {
  font-size: var(--meltis-section-size) !important;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}
.meltis-product-price :is(bdi, span, b, strong) { font-weight: inherit; }
.meltis-product-configurations figcaption { font-size: 15px; font-weight: 400; }
.meltis-home-intro { padding-top: 28px; }
.meltis-home-intro__copy { max-width: 840px; font-size: 14px; }
.meltis-catalog { padding-top: 38px; }
.meltis-catalog__header { margin-bottom: 28px; }
.meltis-catalog-nav { margin: 0 auto 36px; }
.meltis-favorites-page,
.meltis-contacts-page { padding-top: 40px; }
.meltis-favorites-hero,
.meltis-contacts-hero { gap: 12px; margin-bottom: 36px; }
.meltis-contact-block { gap: 14px; min-height: 0; padding: 24px 0; }
.meltis-contact-block--address { min-height: 0; align-content: start; }
.meltis-contacts-form-card { padding-top: 28px; }
.meltis-favorites-empty { min-height: 240px; align-content: center; }

/* A quiet, right-hand navigation drawer. */
html { scrollbar-gutter: stable; }
.meltis-overlay { visibility: hidden; transition: visibility 260ms; }
.meltis-overlay.is-open { visibility: visible; }
.meltis-menu-panel { justify-items: end; }
.meltis-menu-panel > .meltis-overlay__scrim { background: rgba(15, 15, 15, 0.22); }
.meltis-menu-panel.is-open > .meltis-overlay__scrim { backdrop-filter: blur(3px); }
.meltis-menu-panel__sheet {
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  border-left: 1px solid var(--meltis-line);
  box-shadow: -12px 0 48px rgba(15, 15, 15, 0.06);
  transform: translateX(100%);
  opacity: 1;
  overscroll-behavior: contain;
}
.meltis-menu-panel.is-open .meltis-menu-panel__sheet { transform: translateX(0); }
.meltis-menu-panel .meltis-overlay__top {
  flex: 0 0 auto;
  min-height: 100px;
  margin: 0 32px;
  padding: 0;
  border-bottom: 1px solid var(--meltis-line);
}
.meltis-menu-panel .meltis-logo--small { width: 110px; }
.meltis-menu-panel .meltis-logo--small img { width: 108px; }
.meltis-menu { display: block; min-height: 0; padding: 34px 32px; }
.meltis-menu__label {
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meltis-muted);
  text-align: left;
}
.meltis-menu__list,
.meltis-menu ul { width: 100%; gap: 0; text-align: left; }
.meltis-menu li,
.meltis-menu-panel.is-open .meltis-menu li {
  opacity: 1;
  transform: none;
  transition: none;
  border-bottom: 1px solid var(--meltis-line);
}
.meltis-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 64px;
  padding: 16px 0;
  border-radius: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: wrap;
  transition: color 160ms, padding 160ms, background-color 160ms;
}
.meltis-menu a::after {
  content: '';
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.5;
}
.meltis-menu a:hover,
.meltis-menu a[aria-current='page'] {
  padding-left: 10px;
  padding-right: 10px;
  background: var(--meltis-soft);
  transform: none;
}
.meltis-menu-panel__footer { margin-top: auto; padding: 24px 32px 32px; }
.meltis-menu-panel__footer p {
  max-width: 260px;
  margin: 0 0 20px;
  color: var(--meltis-muted);
  font-size: 13px;
  line-height: 1.7;
}
.meltis-menu-panel__utility { display: flex; flex-wrap: wrap; gap: 24px; }
.meltis-menu-panel__utility a { font-size: 13px; font-weight: 400; }
.meltis-menu-panel__utility a:hover { text-decoration: underline; text-underline-offset: 4px; }
.meltis-menu-panel__utility a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* The standalone Telegram page uses the same logo and type hierarchy. */
.meltis-primerka :is(h1, h2, h3) {
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.meltis-primerka h1 { font-size: var(--meltis-title-size) !important; }
.meltis-primerka h2 { font-size: var(--meltis-section-size) !important; }
.meltis-primerka h3 { font-size: var(--meltis-card-size) !important; }
.meltis-primerka :is(.def .big, .quote, .slogan, .stat b, .advrow .big, .facts b) {
  font-family: var(--body);
  font-size: var(--meltis-section-size);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}
.meltis-primerka .advrow .big { color: var(--muted-d); -webkit-text-stroke: 0; }
.meltis-primerka .mark img { width: 108px; height: auto; }
.meltis-primerka .mark small { font-weight: 400; font-size: 7px; letter-spacing: 0.08em; }
.meltis-primerka .hbar { min-height: 70px; gap: 14px; }
.meltis-primerka .hero .wrap { padding-top: 52px; padding-bottom: 48px; }
.meltis-primerka .hero .lead { margin-top: 20px; }
.meltis-primerka .hero .eyebrow { margin-bottom: 20px; }
.meltis-primerka section { padding-top: 60px; padding-bottom: 60px; }
.meltis-primerka section.hero { padding: 0; }
.meltis-primerka .sheet { margin-bottom: 28px; }
.meltis-primerka .shead { margin-bottom: 28px; }
.meltis-primerka .slogan { margin-bottom: 36px; }
.meltis-primerka .opt .nm { font-size: var(--meltis-card-size); font-weight: 400; }

@media (max-width: 921px) {
  :root {
    --meltis-title-size: 18px;
    --meltis-section-size: 17px;
    --meltis-card-size: 16px;
    --meltis-intro-size: 16px;
  }
  .meltis-home-intro { padding-top: 22px; }
  .meltis-catalog { padding-top: 26px; }
  .meltis-catalog__header { margin-bottom: 22px; }
  .meltis-catalog-nav { margin: 0 auto 28px; }
  .meltis-favorites-page,
  .meltis-contacts-page { padding-top: 28px; }
  .meltis-favorites-hero,
  .meltis-contacts-hero { margin-bottom: 28px; }
  .meltis-menu-panel .meltis-overlay__top { min-height: 80px; margin: 0 24px; }
  .meltis-menu-panel .meltis-logo--small { width: 82px; }
  .meltis-menu-panel .meltis-logo--small img { width: 80px; }
  .meltis-menu { padding: 28px 24px; }
  .meltis-menu a { min-height: 60px; font-size: 17px; }
  .meltis-menu-panel__footer { padding: 24px 24px max(24px, env(safe-area-inset-bottom)); }
  .meltis-primerka .mark img { width: 80px; }
  .meltis-primerka .hbar { min-height: 64px; }
  .meltis-primerka .lead { font-size: 16px; }
  .meltis-primerka section { padding-top: 40px; padding-bottom: 40px; }
  .meltis-primerka .hero .wrap { padding-top: 36px; padding-bottom: 36px; }
  .meltis-primerka .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .meltis-primerka .seg button { min-width: 0; white-space: normal; line-height: 1.5; padding: 12px 10px; }
}
@media (max-width: 480px) {
  .meltis-menu-panel__sheet { width: 100%; border-left: 0; }
  .meltis-primerka .hbar .btn { padding: 10px 12px; font-size: 12px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .meltis-overlay,
  .meltis-overlay__scrim,
  .meltis-menu-panel__sheet,
  .meltis-menu a { transition: none; }
}
