/* Homepage: reference structure, remastered tokens. Catalog page styles stay below. */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 600;
  font-display: optional;
  src: url('../fonts/CormorantGaramond-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 600;
  font-display: optional;
  src: url('../fonts/CormorantGaramond-latin.woff2') format('woff2');
  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';
  font-style: italic;
  font-weight: 500 600;
  font-display: optional;
  src: url('../fonts/CormorantGaramond-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500 600;
  font-display: optional;
  src: url('../fonts/CormorantGaramond-italic-latin.woff2') format('woff2');
  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;
}

.imm-home-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}
.imm-site-page {
  background: #fff;
}

.imm-home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(calc(100vh - var(--mmr-header-h, 72px)), 880px);
  min-height: min(calc(100dvh - var(--mmr-header-h, 72px)), 880px);
  margin: 0;
  overflow: hidden;
  background: #fff;
}
.imm-home-hero__media {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
}
.imm-home-hero__media img,
.imm-home-hero__video,
.imm-home-hero__lottie {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.imm-home-hero__lottie {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.imm-home-hero__lottie svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.imm-home-hero__media .imm-home-hero__wave {
  position: absolute;
  top: 50%;
  left: 40%;
  display: block;
  width: 96%;
  max-width: none;
  height: auto;
  max-height: none;
  aspect-ratio: 1440 / 560;
  overflow: visible;
  transform: translateY(-47%);
  pointer-events: none;
}
.imm-home-hero__shade {
  display: none;
}
.imm-home-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px clamp(24px, 5vw, 96px) 88px;
  text-align: left;
}
.imm-home-hero__content h1,
.imm-home-hero__content h1 span,
.imm-home-hero__content h1 em {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif !important;
}
.imm-home-hero__content h1 {
  max-width: 11.5em;
  margin: 0;
  color: var(--im-text, #142437);
  font-size: clamp(38px, 3.9vw, 74px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.03em;
  text-shadow: none;
}
.imm-home-hero__title-accent {
  color: #c02838;
  font-weight: 600;
}
.imm-home-hero__title-italic {
  font-style: italic;
  font-weight: 600;
}
.imm-home-hero__content > p {
  max-width: 30em;
  margin: 26px 0 0;
  color: var(--im-muted, #5b6b7c);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
}
.imm-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 32px;
}
.imm-home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid #d6dee7;
  border-radius: 8px;
  background: #fff;
  color: var(--im-text, #142437) !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.imm-home-cta:hover,
.imm-home-cta:focus {
  border-color: var(--im-accent, #4f94cd);
  background: #fff;
  color: var(--im-accent, #4f94cd) !important;
}
.imm-home-cta--primary {
  background: var(--im-text, #142437);
  border-color: var(--im-text, #142437);
  color: #fff !important;
}
.imm-home-cta--primary::after {
  content: "\2192";
  margin-left: 10px;
  font-weight: 500;
  transition: transform .2s ease;
}
.imm-home-cta--primary:hover,
.imm-home-cta--primary:focus {
  background: #1f3350;
  border-color: #1f3350;
  color: #fff !important;
}
.imm-home-cta--primary:hover::after {
  transform: translateX(3px);
}

.imm-home-block {
  margin: 0;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 48px);
}
.imm-home-block__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 28px;
  text-align: center;
}
.imm-home-block__head h2 {
  margin: 0 0 10px;
  color: var(--im-text);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.imm-home-block__head p {
  max-width: 42em;
  margin: 0 auto 18px;
  color: var(--im-muted);
  font-size: 16px;
  line-height: 1.55;
}
.imm-home-block__head .imm-home-cta {
  margin-top: 4px;
}

.imm-home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.imm-home-grid:not(.imm-home-grid--products) {
  align-items: stretch;
  grid-auto-rows: minmax(300px, 1fr);
}
.imm-home-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none !important;
}
.imm-home-grid:not(.imm-home-grid--products) .imm-home-card {
  height: 100%;
  min-height: 0;
}
.imm-home-card--lead {
  grid-column: span 2;
  grid-row: span 2;
}
.imm-home-block--alt .imm-home-card--lead {
  grid-column: 3 / 5;
  grid-row: 1 / 3;
}
.imm-home-card__media {
  position: relative;
  display: block;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 10px;
  background: var(--im-surface);
}
.imm-home-card__media picture {
  display: contents;
}
.imm-home-card--lead .imm-home-card__media {
  aspect-ratio: 3 / 2;
}
.imm-home-grid:not(.imm-home-grid--products) .imm-home-card__media {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
}
.imm-home-grid:not(.imm-home-grid--products) .imm-home-card--lead .imm-home-card__media {
  aspect-ratio: auto;
}
.imm-home-block--products {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.imm-home-grid--products {
  grid-template-columns: repeat(4, minmax(0, 250px));
  justify-content: center;
  gap: 24px 80px;
}
.imm-home-card--product .imm-home-card__media {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: 12px;
}
#content .imm-home-card__media img,
.imm-home-card__media img {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
}
#content .imm-home-card--product .imm-home-card__media img,
.imm-home-card--product .imm-home-card__media img {
  object-fit: contain !important;
  object-position: center;
  padding: 0;
}
.imm-home-card--product .imm-home-card__body {
  align-items: center;
  gap: 4px;
  padding-top: 12px;
  text-align: center;
}
.imm-home-card--product .imm-home-card__title {
  display: block;
  overflow: hidden;
  max-height: 2.7em;
  -webkit-line-clamp: unset;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
.imm-home-card--product .imm-home-card__price {
  display: block;
  margin-top: 0;
  font-size: 15px;
  text-align: center;
}
.imm-home-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 2px 0;
}
.imm-home-grid:not(.imm-home-grid--products) .imm-home-card:not(.imm-home-card--lead) .imm-home-card__body {
  flex: 0 0 38%;
  min-height: 0;
  overflow: hidden;
}
.imm-home-grid:not(.imm-home-grid--products) .imm-home-card--lead .imm-home-card__body {
  flex: 0 0 20%;
  min-height: 0;
  overflow: hidden;
}
.imm-home-card__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--im-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.imm-home-card--lead .imm-home-card__title {
  font-size: 22px;
}
.imm-home-card:hover .imm-home-card__title {
  color: var(--im-accent);
}
.imm-home-card__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--im-muted);
  font-size: 14px;
  line-height: 1.5;
}
.imm-home-card--lead .imm-home-card__text {
  -webkit-line-clamp: 3;
}
.imm-home-card__price {
  margin-top: 4px;
  color: var(--im-text);
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .imm-home-hero__media .imm-home-hero__wave {
    left: 44%;
    width: 100%;
  }
}

@media (max-width: 991px) {
  .imm-home-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 56px 20px 40px;
  }
  .imm-home-hero__content {
    display: contents;
    padding: 0;
  }
  .imm-home-hero__content h1 {
    order: 1;
    width: 100%;
    max-width: none;
    font-size: clamp(36px, 7vw, 56px);
    text-align: center;
  }
  .imm-home-hero__content > p {
    order: 2;
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .imm-home-hero__media {
    position: relative;
    inset: auto;
    order: 3;
    width: 100vw;
    max-width: 100vw;
    margin: 4px calc(50% - 50vw) -8px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 82%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 18%, #000 82%, transparent 100%);
  }
  .imm-home-hero__media .imm-home-hero__wave {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: 130%;
    max-width: none !important;
    height: auto;
    margin-left: -8%;
    transform: none;
  }
  .imm-home-hero__actions {
    order: 4;
    justify-content: center;
    margin-top: 8px;
  }
  .imm-home-block__head h2 {
    font-size: 26px;
  }
  .imm-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .imm-home-grid--products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
  }
  .imm-home-grid:not(.imm-home-grid--products) {
    grid-auto-rows: auto;
  }
  .imm-home-card--lead,
  .imm-home-block--alt .imm-home-card--lead {
    grid-column: span 2;
    grid-row: auto;
  }
  .imm-home-grid:not(.imm-home-grid--products) .imm-home-card__media,
  .imm-home-grid:not(.imm-home-grid--products) .imm-home-card--lead .imm-home-card__media {
    flex: none;
    aspect-ratio: 5 / 4;
  }
  .imm-home-grid:not(.imm-home-grid--products) .imm-home-card__body,
  .imm-home-grid:not(.imm-home-grid--products) .imm-home-card--lead .imm-home-card__body {
    flex: none;
    overflow: visible;
  }
  .imm-home-card--lead .imm-home-card__title {
    font-size: 16px;
  }
  .imm-home-card--lead .imm-home-card__text {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }
  .imm-home-card--product .imm-home-card__title {
    max-height: none;
    font-size: 16px;
    line-height: 1.35;
  }
  .imm-home-card--product .imm-home-card__price {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  #logo img.mmr-brand__logo {
    width: 42px !important;
    height: 39px !important;
  }
  .imm-home-hero__content h1 {
    font-size: 34px;
  }
  .imm-home-hero__actions {
    width: 100%;
    flex-direction: column;
  }
  .imm-home-cta {
    width: 100%;
  }
  .imm-home-grid {
    grid-template-columns: 1fr;
  }
  .imm-home-grid--products {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .imm-home-card--lead,
  .imm-home-block--alt .imm-home-card--lead {
    grid-column: auto;
  }
  .imm-home-block__head .imm-home-cta {
    width: 100%;
  }
  .imm-home-grid:not(.imm-home-grid--products) .imm-home-card__body,
  .imm-home-grid:not(.imm-home-grid--products) .imm-home-card__title,
  .imm-home-grid:not(.imm-home-grid--products) .imm-home-card__text {
    text-align: center;
  }
}

/* Article catalog — same tokens as product listing */
.imm-catalog-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4px 0 28px;
  text-align: center;
}
.imm-site-page .imm-catalog-head h1,
.imm-site-page .pos-9 > h1 {
  margin: 0 0 12px;
  color: var(--im-text);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.02em;
  text-align: center;
}
.imm-catalog-head .imm-site-lead {
  max-width: 42em;
  margin: 0 auto;
  text-align: center;
}
.imm-site-lead {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--im-muted);
  font-size: 16px;
  line-height: 1.6;
}
.imm-article-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 22px;
}
.imm-article-toolbar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.imm-article-toolbar__meta {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 14px;
}
.imm-article-count {
  margin: 0;
  color: var(--im-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}
.imm-article-filters {
  min-width: 0;
  margin: 0;
  flex: 1 1 auto;
}
.imm-article-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.imm-article-sort {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  margin: 0;
}
.imm-article-sort label {
  margin: 0;
  color: var(--im-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.imm-article-sort select {
  min-width: 188px;
  min-height: 39px;
  padding: 9px 28px 9px 12px;
  border: 1px solid var(--im-border);
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.2 1.5L6 6.3l4.8-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--im-text);
  color-scheme: light;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  -webkit-appearance: none;
  appearance: none;
}
.imm-article-sort select:hover,
.imm-article-sort select:focus {
  background-color: #fff;
  border-color: var(--im-border);
  outline: none;
}
.imm-article-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 9px 14px;
  border: 1px solid rgba(var(--im-accent-rgb), 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--im-accent) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none !important;
}
.imm-article-filters--sub .imm-article-filter {
  min-height: 32px;
  padding: 5px 11px;
  font-size: 13px;
}
.imm-article-filter:hover,
.imm-article-filter:focus {
  background: var(--im-accent-soft);
  border-color: rgba(var(--im-accent-rgb), 0.35);
  color: var(--im-accent) !important;
}
.imm-article-filters--sub .imm-article-filter:hover,
.imm-article-filters--sub .imm-article-filter:focus {
  background: var(--im-accent-soft);
  border-color: rgba(var(--im-accent-rgb), 0.35);
  color: var(--im-accent) !important;
}
#content a.imm-article-filter.is-active,
#content a.imm-article-filter.is-active:link,
#content a.imm-article-filter.is-active:visited,
#content a.imm-article-filter.is-active:hover,
#content a.imm-article-filter.is-active:focus,
#content a.imm-article-filter.is-active:not([class*="btn"]):not(.button):not(.faq_mod):not(.selected):not(.imm-blog-section),
#content a.imm-article-filter.is-active:not([class*="btn"]):not(.button):not(.faq_mod):not(.selected):not(.imm-blog-section):link,
#content a.imm-article-filter.is-active:not([class*="btn"]):not(.button):not(.faq_mod):not(.selected):not(.imm-blog-section):visited,
#content a.imm-article-filter.is-active:not([class*="btn"]):not(.button):not(.faq_mod):not(.selected):not(.imm-blog-section):hover,
#content a.imm-article-filter.is-active:not([class*="btn"]):not(.button):not(.faq_mod):not(.selected):not(.imm-blog-section):focus {
  background: var(--im-accent);
  border-color: var(--im-accent);
  color: #fff !important;
}

.imm-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}
.imm-article-teaser {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none !important;
}
#content a.imm-article-teaser,
#content a.imm-article-teaser:link,
#content a.imm-article-teaser:visited,
#content a.imm-article-teaser:hover,
#content a.imm-article-teaser:focus,
#content a.imm-article-teaser:not([class*="btn"]):not(.button):not(.faq_mod):not(.selected):not(.imm-blog-section),
#content a.imm-article-teaser:not([class*="btn"]):not(.button):not(.faq_mod):not(.selected):not(.imm-blog-section):link,
#content a.imm-article-teaser:not([class*="btn"]):not(.button):not(.faq_mod):not(.selected):not(.imm-blog-section):visited,
#content a.imm-article-teaser:not([class*="btn"]):not(.button):not(.faq_mod):not(.selected):not(.imm-blog-section):hover,
#content a.imm-article-teaser:not([class*="btn"]):not(.button):not(.faq_mod):not(.selected):not(.imm-blog-section):focus {
  color: inherit !important;
  text-decoration: none !important;
}
.imm-article-teaser__media {
  position: relative;
  display: block;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 10px;
  background: var(--im-surface);
}
#content .imm-article-teaser__media img,
.imm-article-teaser__media img {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
}
.imm-article-teaser__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
}
.imm-article-teaser__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--im-text);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
}
.imm-article-teaser:hover .imm-article-teaser__title {
  color: var(--im-accent);
}
.imm-article-teaser__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--im-muted);
  font-size: 14px;
  line-height: 1.55;
}
.imm-article-teaser__date {
  margin-top: 2px;
  color: var(--im-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
}

/* Hover sound wave along the inner edge of card media (injected by imm-wave.js) */
.imm-card-wave {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.imm-card-wave.is-on {
  opacity: 1;
}
.imm-card-wave svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

@media (max-width: 991px) {
  .imm-site-page .imm-catalog-head h1,
  .imm-site-page .pos-9 > h1 {
    font-size: 28px;
  }
  .imm-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
}
@media (max-width: 560px) {
  .imm-site-page .imm-catalog-head h1,
  .imm-site-page .pos-9 > h1 {
    font-size: 26px;
  }
  .imm-article-toolbar__top {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .imm-article-toolbar__meta {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  .imm-article-sort {
    margin-left: auto;
  }
  .imm-article-sort select {
    min-width: 0;
  }
  .imm-article-grid {
    grid-template-columns: 1fr;
  }
}
