.theme-violet { --scene: #2b103c; --tint: #ede0fb; --light: #ecc4ff; }
.theme-blue { --scene: #06183f; --tint: #e1edfc; --light: #a3f0ff; }
.theme-red { --scene: #410b08; --tint: #f9e7e2; --light: #ffd0a8; }
.theme-green { --scene: #153429; --tint: #e6f0e9; --light: #c4f0d0; }
.theme-pink { --scene: #4d2036; --tint: #f9e6ef; --light: #ffd7ef; }

.portal-banner { position: relative; display: grid; isolation: isolate; color: #fff; background: var(--scene); overflow: hidden; }
.portal-banner::after {
  position: absolute; inset: 0; z-index: -1; content: "";
  background: linear-gradient(90deg, var(--scene) 5%, color-mix(in srgb, var(--scene), transparent 12%) 38%, transparent 78%);
}
.portal-banner .portal-banner-photo {
  position: absolute; inset: 0 0 0 auto; width: min(77%, 1560px); height: 100%;
  object-fit: cover; object-position: center 37%; z-index: -2;
}
.portal-banner-copy { padding-block: clamp(48px, 8vw, 111px); min-height: clamp(285px, 29vw, 460px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.portal-banner h1 { font-size: clamp(3.15rem, 6.8vw, 7.2rem); max-width: 14ch; overflow-wrap: anywhere; }
.portal-banner-copy > p:not(.overline) { max-width: 46ch; color: #fff6fd; font-size: clamp(1rem, 1.4vw, 1.21rem); }
.portal-banner .overline { color: var(--light); }
.portal-banner-copy > .inline-actions { margin-top: 7px; }
.portal-outline { border-color: #fff9; color: #fff; background: #2013283d; }
.portal-outline:hover { background: #ffffff25; border-color: #fff; }
.portal-banner :focus-visible { outline-color: #fff; }
.portal-crumbs { display: flex; flex-wrap: wrap; gap: 6px 9px; margin-block: 20px 18px; font-size: .88rem; color: var(--muted); }
.portal-crumbs a { text-decoration: underline; text-underline-offset: .24em; color: var(--wine); }

.portal-tile-grid, .portal-info-grid, .portal-video-grid, .portal-journal-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.portal-tile, .portal-feature {
  position: relative; overflow: hidden; display: grid; align-items: end; isolation: isolate;
  border-radius: 9px; min-height: 265px; background: var(--scene, #321738); color: #fff;
}
.portal-tile > img, .portal-feature > img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; z-index: -2; transition: transform .4s ease; }
.portal-tile::after, .portal-feature::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(0deg, #180e22, #180e2299 35%, transparent 80%); }
.portal-tile:hover > img, .portal-feature:hover > img { transform: scale(1.035); }
.portal-tile > div, .portal-feature > div { padding: 22px; }
.portal-tile h3 { font: 650 clamp(1.7rem, 3vw, 2.65rem)/1.05 var(--serif); }
.portal-tile p, .portal-feature p { color: #f7e8fa; margin-top: 6px; }
.portal-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.portal-feature { min-height: 335px; }
.portal-feature h2 { font-size: clamp(2.1rem, 4vw, 3.75rem); }

.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.collection-card { display: grid; grid-template-columns: minmax(76px, .42fr) minmax(0, .58fr); align-items: stretch; border: 1px solid #e2d8e9; border-radius: 8px; overflow: hidden; background: var(--white); }
.collection-card:hover { border-color: #a977b5; }
.collection-card > span { display: grid; place-items: center; padding: 12px; background: #eee8f0; }
.collection-card > span img { width: 100%; height: 100px; object-fit: contain; mix-blend-mode: multiply; }
.collection-card > div { display: grid; align-content: center; gap: 5px; padding: 12px 14px; }
.collection-card small { color: var(--muted); font-size: .8rem; }
.collection-card h3 { font-size: 1.08rem; line-height: 1.24; overflow-wrap: anywhere; }
.collection-card p { font-size: .85rem; color: var(--wine); }
.collection-card:hover p { text-decoration: underline; text-underline-offset: .23em; }
.product-card { height: 100%; }

.product-page-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 76px); align-items: start; margin-block: 20px 72px; }
.product-page-photo { background: var(--tint); border-radius: 11px; display: grid; place-items: center; padding: 26px; min-height: 390px; position: sticky; top: 105px; }
.product-page-photo img { display: block; object-fit: contain; max-width: 100%; width: 100%; height: min(55vw, 480px); mix-blend-mode: multiply; }
[data-source="wildberries"] .product-page-photo img { mix-blend-mode: normal; }
.product-page-title .overline a { text-decoration: underline; text-underline-offset: .24em; }
.product-page-title h1 { font-size: clamp(2.5rem, 4.6vw, 4.65rem); line-height: 1.03; margin: 7px 0 15px; overflow-wrap: anywhere; }
.product-page-intro { font-size: 1.08rem; line-height: 1.65; margin-bottom: 16px; }
.product-page-details { margin-top: 26px; }
.product-page-details > section { padding: 18px 0 16px; border-top: 1px solid #dfd1e9; }
.product-page-details h2 { font-size: 1.65rem; margin-bottom: 8px; }
.product-page-details p { color: #554759; white-space: pre-line; }
.product-page-details dl { display: grid; grid-template-columns: minmax(110px, .75fr) minmax(0, 1.25fr); margin: 5px 0 0; gap: 0 22px; }
.product-page-details dt, .product-page-details dd { padding-block: 6px; }
.product-page-details dt { color: var(--muted); font-size: .9rem; }
.product-page-details dd { margin: 0; overflow-wrap: anywhere; }

.portal-news-filters { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 12px; max-width: 630px; margin: 0 0 22px; }
.portal-news-filters input { padding-inline: 12px; }
.portal-journal-grid .journal-card { border: 1px solid #e4dbea; border-radius: 9px; overflow: hidden; background: var(--white); }
.portal-journal-grid .journal-card picture { display: block; }
.portal-journal-grid .journal-card img { border-radius: 0; }
.news-card-copy { padding: 12px 16px 14px; }
.news-card-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.news-card-copy time, .news-topic { display: inline; margin: 0; font-size: .78rem; color: var(--wine); }
.news-card-copy .news-card-title { font: 670 1.15rem/1.3 var(--sans); margin: 5px 0 6px; overflow-wrap: anywhere; }
.journal-card a:hover .news-card-title { text-decoration: underline; text-underline-offset: .2em; }
.news-more { margin: 20px auto 0; min-height: 44px; }
.news-more:not([hidden]) { display: flex; width: fit-content; }
.portal-article { margin-bottom: 80px; }
.portal-article > header { max-width: 845px; padding: 14px 0 22px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; color: var(--wine); font-size: .9rem; margin-bottom: 11px; }
.portal-article h1 { font-size: clamp(2.75rem, 5.6vw, 6.25rem); overflow-wrap: anywhere; }
.portal-article > header p { color: var(--muted); font-size: 1.21rem; margin-top: 16px; }
.article-photo { width: 100%; max-height: 500px; object-fit: cover; object-position: center 40%; border-radius: 9px; }
.article-text { max-width: 760px; margin: 24px auto; }
.article-text > p { margin: 0 0 17px; line-height: 1.69; }
.article-text > a { display: inline-block; margin-top: 16px; }
.article-text .article-back { display: inline-flex; align-items: center; min-height: 44px; }
.article-text .portal-video { margin-block: 22px; }
.portal-video video {
  width: 100%; min-height: 180px; aspect-ratio: 16 / 9; display: block; border-radius: 8px;
  object-fit: contain; background: #170b20;
}
.video-card h3 { padding: 9px 3px 5px; font-size: 1.06rem; line-height: 1.25; }
.video-part { margin: 9px 0 5px; font-size: .84rem; color: var(--muted); }
.video-card { min-width: 0; }
.factory-story .portal-video { max-width: 820px; }
.portal-info-card { background: var(--white); border: 1px solid #e5d8eb; border-radius: 8px; padding: 18px 20px; }
.portal-info-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.portal-info-card a { display: block; margin-top: 5px; overflow-wrap: anywhere; }
.portal-info-card p:empty { display: none; }
.where-inner { display: block; }
.where-inner .region-card { max-width: 720px; }
main > .pro:first-child { margin-top: 0; }
.pro-copy h1 { font-size: clamp(3.4rem, 5vw, 5.65rem); margin: 12px 0 19px; }
.pro-copy h1 em { color: #e9afc6; }
.consult-nav { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; min-height: 44px; border: 1px solid #af84cf; border-radius: 22px; padding: 0 11px; color: #f7e7ff; font-size: .83rem; font-weight: 730; }
.consult-nav:hover { background: #422a58; }
.consult-nav span { color: #eea8ff; }
.consult-product-link { font-weight: 730; }
.language-menu, .mobile-control nav { max-height: calc(100dvh - 84px); overflow-y: auto; overscroll-behavior: contain; }

@media (max-width: 1170px) {
  .main-nav { gap: clamp(10px, 1.1vw, 16px); }
  .mast-inner { gap: 16px; }
  .header-actions { gap: 7px; }
}

@media (max-width: 1050px) {
  .main-nav { display: none; }
  .mobile-control { display: block; }
  .portal-info-grid, .portal-video-grid, .collection-grid, .portal-journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 625px) {
  .portal-news-banner .portal-banner-copy { min-height: 0; padding-block: 27px 30px; gap: 9px; }
  .portal-banner.portal-news-banner h1 { font-size: clamp(1.8rem, 8.4vw, 3.1rem); max-width: 21ch; }
  .portal-news-banner .portal-banner-copy > p { font-size: .94rem; line-height: 1.45; }
  .news-feed { margin-block: 23px 40px; }
  .portal-news-filters { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 8px; margin-bottom: 14px; }
  .portal-news-filters .field { align-self: end; }
  .portal-news-filters input, .portal-news-filters select { font-size: 1rem; min-height: 44px; }
  .portal-journal-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .portal-journal-grid .journal-card > a { display: grid; grid-template-columns: clamp(82px, 25%, 118px) minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px; }
  .portal-journal-grid .journal-card img { display: block; aspect-ratio: 4/3; border-radius: 5px; }
  .news-card-copy { padding: 0; }
  .news-card-copy .news-card-title { font-size: clamp(.98rem, 4vw, 1.16rem); margin-block: 4px; }
  .news-card-copy p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .87rem; line-height: 1.4; }
  .portal-article { margin-bottom: 40px; }
  .portal-article > header { padding-block: 2px 16px; }
  .article-meta { margin-bottom: 8px; }
  .portal-article h1 { font-size: clamp(1.85rem, 7.3vw, 3rem); line-height: 1.12; }
  .portal-article > header p { margin-top: 10px; font-size: 1.05rem; line-height: 1.55; }
  .article-photo { display: block; max-height: min(48svh, 340px); object-fit: contain; background: var(--lavender); }
  .article-text { margin-block: 16px 0; }
  .article-text > p { overflow-wrap: anywhere; }
  .portal-video video { min-height: 0; }
  .language-menu a { min-height: 44px; display: flex; align-items: center; }
}
@media (max-width: 730px) {
  .portal-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-tile { min-height: 205px; }
  .portal-banner-copy { padding-block: 37px; }
  .portal-feature { min-height: 255px; }
  .product-page-layout { grid-template-columns: 1fr; }
  .product-page-photo { position: static; min-height: 0; padding: 18px; }
  .product-page-photo img { height: min(62vw, 375px); }
}
@media (max-width: 520px) {
  .portal-banner::after { background: linear-gradient(90deg, var(--scene) 0%, color-mix(in srgb, var(--scene), transparent 22%) 100%); }
  .portal-banner .portal-banner-photo { width: 100%; object-position: 70% center; }
  .portal-banner h1 { font-size: clamp(2.55rem, 11.5vw, 3.9rem); }
  .portal-banner-copy { min-height: 265px; }
  .portal-feature-grid, .portal-info-grid, .portal-video-grid, .collection-grid { grid-template-columns: 1fr; }
  .portal-tile > div { padding: 10px 11px; }
  .portal-tile > div, .section-head > div, .footer nav, .footer-grid > div { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .portal-tile { min-height: 170px; }
  .portal-tile h3 { font-size: 1.35rem; }
  .portal-tile p { font-size: .79rem; line-height: 1.28; }
  .portal-feature { min-height: 252px; }
  .product-page-layout { margin-bottom: 47px; }
  .product-page-title h1 { font-size: clamp(2rem, 8.6vw, 3rem); }
  :lang(hy) .product-page-title h1 { font-size: clamp(1.85rem, 8.1vw, 2.7rem); }
  .product-page-details dl { gap: 0 12px; }
  .pro-copy h1 { font-size: clamp(2.7rem, 10vw, 4rem); }
  .mast-inner { gap: 4px; }
  .header-actions { gap: 1px; }
  .header-actions .search-control { display: none; }
  .consult-nav { padding-inline: 7px; min-height: 44px; font-size: .75rem; gap: 3px; }
  .language-control summary, .mobile-control summary { min-height: 44px; }
  .mobile-control nav a { min-height: 44px; display: flex; align-items: center; }
  .hero-toolbar :is(.hero-choice, .hero-playback), .category-tabs button { min-height: 44px; }
  .hero-toolbar .hero-playback { min-width: 44px; }
  :is(.filter-fields, .portal-news-filters) :is(input, select) { font-size: 1rem; min-height: 44px; }
  .product-page-layout .inline-actions { align-items: stretch; }
  .product-page-layout .inline-actions .text-link { min-height: 44px; display: inline-flex; align-items: center; }
  .portal-crumbs, .product-page-title h1, .collection-card h3, .portal-info-card { overflow-wrap: anywhere; }
}
@media (max-width: 374px) {
  .brand-word { font-size: .83rem; }
  .brand-mark { width: 33px; height: 33px; }
  .brand-mark img { width: 30px; height: 30px; }
  .consult-nav { max-width: 105px; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 42px; }
  .hero-toolbar { gap: 5px; }
  .hero-choices { gap: 5px; }
  .hero-choice { font-size: .72rem; }
  .filter-fields { grid-template-columns: minmax(0, 1fr); }
  .filter-fields .field-search { grid-column: auto; }
}
@media (max-width: 340px) {
  .mast-inner .brand { min-width: 44px; min-height: 44px; justify-content: center; }
  .mast-inner .brand-word { display: none; }
}
