@import url('https://fonts.googleapis.com/css?family=Montserrat:700&display=swap');

/* Figma QxVA1MFZzOGQPlPK0zjhnA, 127:1426; product content stays dynamic. */
.product-page {
    --product-accent: #5ad295;
    --product-ink: #1d1d1b;
    --product-muted: #666;
    color: var(--product-ink);
    line-height: 1.5;
}
.product-page.page_top { padding-top: 0; }
body:has(.product-page) :is(
    h1, h2, h3, h4, h5, h6, legend, button,
    input[type="submit"], input[type="button"],
    .product-action, .product-section__all, .product-card__more-label,
    .showcase__drawing-count, .showcase__no-image, .product-docs__files a,
    .projects__name, .popup__name
) {
    text-transform: lowercase;
}
.product-page > .projects { color: var(--mainColor); line-height: var(--lineHeight_100); }
.product-page button:focus-visible,
.product-page a:focus-visible,
.product-page summary:focus-visible,
.showcase__gallery:focus-visible {
    outline: 2px solid #208b58;
    outline-offset: 4px;
}
.product-page [hidden] { display: none !important; }
.product-page img { background: none; }
.showcase {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr) 420px;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 40px 60px;
    min-height: 900px;
    padding: 114px 40px 40px;
    background: #bfc0c2;
}
.showcase::before { content: ''; position: absolute; z-index: 0; inset: 0; background: url('../img/product/background-clean.svg') repeat; pointer-events: none; }
.showcase::after { content: ''; position: absolute; z-index: 0; inset: 0; background: linear-gradient(270deg, #ffffffbf 0%, #fff0 34.615%, #fff0 65.385%, #ffffffbf 100%); pointer-events: none; }
.showcase:has(.showcase__no-image)::before { background-image: none; }
/* Fit the image between the side panels, below the header and above the selection. */
.showcase__gallery { position: absolute; z-index: 0; grid-column: 2 / 3; grid-row: 1 / 3; inset: 0; overflow: hidden; touch-action: pan-y; }
.showcase__gallery-item { position: absolute; inset: 0; cursor: zoom-in; }
.showcase__image { position: absolute; top: 0; left: 50%; width: 100%; height: 100%; max-width: 900px; max-height: 900px; transform: translateX(-50%); object-fit: contain; }
.showcase__image--drawing { max-width: 800px; }
/* Fit the visible subject; transparent file margins may extend outside the gallery. */
.showcase__gallery .showcase__image--fitted { top: var(--subject-top); left: var(--subject-left); width: var(--subject-width); height: var(--subject-height); max-width: none; max-height: none; transform: none; }
.showcase__no-image { display: grid; place-items: center; width: 100%; height: 100%; margin: auto; padding: 20px; font-size: clamp(28px, 4vw, 64px); text-align: center; overflow-wrap: anywhere; color: var(--product-muted); }
.showcase-panel { position: relative; z-index: 1; min-width: 0; }
.showcase-panel::before {
    content: '';
    position: absolute;
    inset: -1px;
    color: var(--product-ink);
    background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
    background-position: left top, right top, left bottom, right bottom, left top, right top;
    background-size: 9% 2px, 31.5% 2px, 32.5% 2px, 8% 2px, 2px 100%, 2px 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    transition: background-size .4s ease, color .4s ease;
}
.showcase-panel:is(:hover, :focus-within, :active)::before {
    color: var(--product-accent);
    background-size: 32.5% 2px, 8% 2px, 9% 2px, 31.5% 2px, 2px 100%, 2px 100%;
}
.showcase__config { grid-column: 1; grid-row: 1 / 3; min-height: 746px; padding: 20px; }
.showcase__article { position: relative; margin-bottom: 4px; font-size: 14px; line-height: 16px; color: var(--product-muted); overflow-wrap: anywhere; }
.showcase__article button { text-align: left; font-size: inherit; line-height: inherit; text-transform: lowercase; }
.showcase__copy-status { position: absolute; top: -22px; left: 0; color: #26744b; background: #fff; }
.showcase__heading { position: relative; padding-bottom: 12px; margin-bottom: 20px; }
.showcase__heading::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: url('../img/product/heading-divider.svg') center / 100% 1px no-repeat; }
.showcase__heading h1 { min-width: 0; font-size: 32px; font-weight: 400; line-height: 36px; overflow-wrap: normal; word-break: normal; hyphens: none; text-wrap: balance; }
.showcase__models { margin-bottom: 20px; }
.showcase__parameters { display: flex; flex-direction: column; gap: 20px; }
.showcase-parameter { min-width: 0; }
.showcase-parameter--fixed { display: none; }
.showcase-parameter--frame { order: -1; }
.showcase-parameter legend { padding: 0; margin-bottom: 4px; font-size: 14px; font-weight: 700; line-height: 20px; }
.showcase-parameter__scroller { display: flex; align-items: center; gap: 4px; min-width: 0; box-shadow: inset 0 -1px 0 #666; }
.showcase-parameter__values { display: flex; flex: 1; min-width: 0; height: 36px; overflow-x: auto; scrollbar-width: none; }
.showcase-parameter__values::-webkit-scrollbar { display: none; }
.showcase-parameter__value { position: relative; flex: 1 0 0; min-width: max-content; height: 36px; padding: 8px 12px; font-size: 16px; line-height: 20px; white-space: nowrap; transition: color .2s; }
.showcase-parameter__value::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.showcase-parameter__value[aria-pressed="true"] { color: var(--product-ink); font-weight: 700; }
.showcase-parameter__value[aria-pressed="true"]::after { background: var(--product-accent); }
.showcase-parameter__value:not([aria-pressed="true"]):hover { color: #26744b; }
.showcase-parameter__value:focus-visible { outline-offset: -3px; }
.showcase-parameter__arrow { display: grid; place-items: center; flex: 0 0 36px; height: 36px; color: #e0e0e0; transition: color .2s, opacity .2s; }
.showcase-parameter__arrow svg { display: block; }
.showcase-parameter__arrow:is(:hover, :focus-visible, :active):not(:disabled) { color: var(--product-accent); }
.showcase-parameter__arrow:disabled { opacity: .45; cursor: default; }
.showcase-parameter__arrow--previous svg { transform: rotate(180deg); }
.showcase__info { position: relative; z-index: 1; grid-column: 3; grid-row: 1 / 3; display: grid; grid-template-rows: 284px minmax(0, 1fr); gap: 40px; min-width: 0; padding-top: 2px; }
.showcase__description { min-width: 0; padding: 20px; font-size: 16px; line-height: 20px; }
.showcase__description-content { max-height: 244px; overflow: auto; overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: var(--product-accent) transparent; }
.showcase__description-content::-webkit-scrollbar { width: 6px; height: 6px; }
.showcase__description-content::-webkit-scrollbar-track { background: transparent; }
.showcase__description-content::-webkit-scrollbar-thumb { background: var(--product-accent); border-radius: 3px; }
.showcase__description p + p { margin-top: 12px; }
.showcase__description p { text-align: left !important; }
.showcase__description img { max-width: 100%; height: auto; }
.showcase__technical { grid-row: 2; align-self: end; width: 100%; aspect-ratio: 1; }
.showcase__technical:not(:has(.showcase__drawing)) { aspect-ratio: auto; min-height: 64px; }
.showcase__drawing { position: relative; display: block; width: 100%; height: 100%; }
.showcase__drawing img { display: block; width: 100%; height: 100%; object-fit: contain; }
.showcase__drawing--multiple img { padding-top: 44px; }
.showcase__technical--with-documents .showcase__drawing img { padding-bottom: 64px; }
.showcase__drawing-count { position: absolute; top: 12px; left: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px); padding: 6px 10px; background: #fff; color: var(--product-ink); font-size: 14px; line-height: 20px; display: none;}
.showcase__drawing:hover .showcase__drawing-count { background: #dff5e9; }
.product-drawings-lightbox .fancybox-image,
.product-images-lightbox .fancybox-image { background: #fff; }
.showcase__documents { position: absolute; bottom: 12px; left: 12px; display: flex; justify-content: center; align-items: center; gap: 8px; width: calc(100% - 24px); padding: 8px 12px; background: #666; color: #fff; font-size: 16px; font-weight: 500; line-height: 24px; }
.showcase__documents:hover { background: #444; }
.product-download { display: inline-grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; }
.showcase__gallery-controls { position: relative; z-index: 1; grid-column: 2; grid-row: 1; align-self: start; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: calc(100% - 40px); margin: 326px 20px 0; pointer-events: none; }
.showcase__gallery-arrow { display: grid; flex-shrink: 0; place-items: center; width: 40px; height: 40px; border: 1px solid #000; border-radius: 50%; pointer-events: auto; transition: background-color .2s, border-color .2s; }
.showcase__gallery-arrow img { display: block; }
.showcase__gallery-arrow--previous img { transform: scaleX(-1); }
.showcase__gallery-arrow:is(:hover, :focus-visible, :active):not(:disabled) { background-color: var(--product-accent); border-color: var(--product-accent); }
.showcase__gallery-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.showcase__selection { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 10px; min-height: 96px; padding: 20px; }
.showcase__selection::before { top: -3px; }
.showcase__selection p { flex: 1; min-width: 0; font-size: 24px; line-height: 28px; overflow-wrap: anywhere; text-transform: lowercase;}
.showcase__selection-divider { display: grid; align-self: stretch; align-items: center; flex-shrink: 0; width: 1px; }
.showcase__selection-divider img { display: block; }
.product-action { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 16px 32px; background: var(--product-accent); color: var(--product-ink); font-size: 16px; font-weight: 500; line-height: 24px; white-space: nowrap; transition: background .2s; }
.product-action:hover { background: #3cbd7b; }
.product-section { max-width: 1200px; margin: 100px auto; padding: 0 24px; }
.product-section h2 { font-size: 40px; line-height: 48px; font-weight: 400; }
.product-section__heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.product-section__heading h2 { max-width: 859px; }
.product-section__heading h2 a { display: inline; color: #5ad296; }
.product-section__all { flex-shrink: 0; padding: 8px 12px; background: #666; color: #fff; font-size: 16px; font-weight: 500; line-height: 24px; }
.product-section__all:hover { background: #444; }
.product-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; width: calc(100% + 1px); }
.product-card { position: relative; min-width: 0; background: linear-gradient(180deg, #ececec, #ececec00); }
/*.product-card::before { content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; background: rgb(29 29 27 / .1); }*/
.product-card:focus-within, .product-card:has(.product-card__link.__active) { z-index: 2; }
.product-card__link { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 20px; }
.product-card h3 { margin-bottom: 8px; color: rgb(29 29 27 / .32); font-size: 32px; font-weight: 400; line-height: 36px; text-align: center; }
.product-card__visual { position: relative; }
.product-card__picture { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: var(--product-image-background); }
.product-card__picture img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform .4s; }
.product-card__picture--switchable .product-card__image:first-child { opacity: calc(1 - var(--card-preview-opacity, 0)); }
.product-card__image--lit { opacity: var(--card-preview-opacity, 0); }
.product-card__link:is(:focus-visible, .__active) { --card-preview-opacity: 1; --card-details-visibility: visible; }
@media (any-hover: hover) {
    .product-card:hover { z-index: 2; }
    .product-card__link:hover { --card-preview-opacity: 1; --card-details-visibility: visible; }
}
.product-card__link:hover .product-card__picture img { transform: scale(1.035); }
.product-card__details { position: absolute; z-index: 1; top: 100%; left: 0; width: 100%; padding: 12px; opacity: var(--card-preview-opacity, 0); visibility: var(--card-details-visibility, hidden); transition: opacity .3s var(--e), visibility .3s; }
.product-card__details::before { content: ''; position: absolute; z-index: -1; top: 0; left: 0; width: 100%; height: calc(var(--card-preview-opacity, 0) * 100%); background: linear-gradient(180deg, #f4f4f4, #fff); pointer-events: none; transition: height .5s cubic-bezier(.33, 1.4, .4, 1.1); }
.product-card__description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; height: 48px; font-size: 16px; line-height: 24px; }
.product-card__specs { display: flex; align-items: center; gap: 8px; min-height: 24px; margin-top: 8px; font-size: 16px; font-weight: 500; line-height: 24px; }
.product-card__specs img { flex-shrink: 0; }
.product-card__specs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-card__more { display: flex; align-items: center; justify-content: end; gap: 8px; min-height: 24px; margin-top: auto; padding-top: 16px; font-size: 16px; line-height: 24px; }
.product-card__more-label { color: var(--product-accent); }
.product-card__more img { display: none; }
.product-section__more { margin-top: 24px; text-align: center; }
.product-docs { width: 960px; max-width: 100%; padding: 40px; color: #1d1d1b; line-height: 1.5; }
.product-docs h2 { padding-right: 24px; font-size: 32px; font-weight: 400; line-height: 40px; }
.product-docs__product { margin-top: 8px; color: #666; font-size: 16px; line-height: 24px; }
.product-docs img { background: none; }
.product-docs__files { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 28px; }
.product-docs__files a { display: flex; align-items: center; justify-content: space-between; gap: 25px; background: #f1f1f1; padding: 18px 22px; font-size: 16px; line-height: 24px; }
.product-docs__files .product-download { filter: brightness(.4); }
.product-docs__files a:hover { background: #dff5e9; }
.product-docs__text { margin-top: 25px; font-size: 16px; line-height: 1.7; overflow-x: auto; }
.product-docs__text img { max-width: 100%; height: auto; }
@media (min-width: 1200px) and (max-width: 1699px) {
    .showcase { grid-template-columns: 320px minmax(0, 1fr) 300px; column-gap: 32px; padding-left: 24px; padding-right: 24px; }
    .showcase__heading h1 { font-size: 28px; line-height: 36px; }
    .showcase__selection { flex-wrap: wrap; gap: 16px; }
    .showcase__selection p { flex-basis: 100%; font-size: 20px; line-height: 28px; }
    .showcase__selection-divider { display: none; }
    .showcase__selection .product-action { margin-left: auto; }
    .product-card__link { min-height: 0; }
    .product-card h3 { font-size: 28px; }
}
@media (max-width: 1199px) {
    .showcase { grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: minmax(420px, 1fr) auto auto; gap: 24px; padding: 110px 24px 24px; }
    .showcase__config { grid-row: 1 / 3; min-height: 0; }
    .showcase__heading h1 { font-size: 26px; line-height: 32px; }
    .showcase__image { max-width: 760px; max-height: 760px; }
    .showcase__gallery-controls { width: calc(100% - 16px); margin: 250px 8px 0; }
    .showcase__selection { flex-direction: column; align-items: stretch; gap: 16px; }
    .showcase__selection p { flex: auto; font-size: 20px; line-height: 28px; }
    .showcase__selection-divider { display: none; }
    .showcase__selection .product-action { align-self: end; }
    .showcase__info { grid-column: 1 / 3; grid-row: 3; display: flex; align-items: start; gap: 24px; padding-top: 0; }
    .showcase__description { flex: 1; }
    .showcase__description-content { max-height: none; }
    .showcase__technical { align-self: start; flex: 0 0 300px; width: 300px; }
    .product-section { margin-top: 70px; margin-bottom: 70px; }
    .product-section h2 { font-size: 32px; line-height: 40px; }
    .product-card__link { min-height: 0; }
    .product-card h3 { font-size: 24px; line-height: 32px; }
}
@media (max-width: 767px) {
    .showcase { display: flex; flex-direction: column; gap: 24px; min-height: 0; padding: 0 20px 24px; }
    .showcase::before, .showcase::after { display: none; }
    .showcase__gallery { position: relative; inset: auto; flex-shrink: 0; width: calc(100% + 40px); aspect-ratio: 1; order: 0; margin: 0 -20px; background: #bfc0c2 url('../img/product/background-clean.svg') repeat; }
    .showcase__gallery::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #ffffff60, #fff0 35%, #fff0 65%, #ffffff60); pointer-events: none; }
    .showcase__gallery:has(.showcase__no-image) { background-image: none; }
    .showcase__image { inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: none; transform: none; }
    .showcase__no-image { width: 100%; height: 100%; min-height: 280px; margin: 0; padding-top: 90px; }
    .showcase__gallery-controls { position: absolute; top: calc(50vw - 4px); left: 16px; right: 16px; width: auto; margin: 0; transform: translateY(-50%); }
    .showcase__gallery-arrow { width: 44px; height: 44px; }
    .showcase__config { order: 1; padding: 20px; }
    .showcase__heading h1 { font-size: clamp(26px, 7.5vw, 28px); line-height: 36px; }
    .showcase-parameter__values { height: 44px; }
    .showcase-parameter__value { height: 44px; padding-top: 12px; padding-bottom: 12px; }
    .showcase-parameter__arrow { flex-basis: 44px; height: 44px; }
    .showcase__selection { order: 2; padding: 20px; }
    .showcase__selection p { font-size: 18px; line-height: 26px; }
    .showcase__selection .product-action { align-self: stretch; padding-left: 16px; padding-right: 16px; }
    .showcase__info { order: 3; flex-direction: column; align-items: stretch; padding: 0; }
    .showcase__description { flex: auto; padding: 20px; }
    .showcase__technical { align-self: stretch; flex: auto; width: 100%; }
    .product-section { margin: 50px auto; padding-left: 20px; padding-right: 20px; }
    .product-section__heading { flex-direction: column; align-items: start; gap: 20px; margin-bottom: 24px; }
    .product-section h2 { font-size: 26px; line-height: 34px; }
    .product-section__all { font-size: 14px; line-height: 20px; }
    .product-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
    .product-card__link { padding: 12px; }
    .product-card::before { left: 12px; right: 12px; }
    .product-card h3 { font-size: 16px; line-height: 24px; }
    .product-card__description { height: 40px; margin-top: 12px; font-size: 12px; line-height: 20px; }
    .product-card__specs { font-size: 12px; line-height: 20px; }
    .product-card__more { font-size: 12px; line-height: 20px; }
    .product-section__more { margin-top: 24px; }
    .product-docs__files { flex-direction: column; }
    .product-docs { padding: 32px 20px 24px; }
    .product-docs h2 { font-size: 26px; line-height: 34px; }
    .product-docs__files a { gap: 16px; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
    .product-page *, .product-page *::before, .product-page *::after { transition: none !important; scroll-behavior: auto !important; }
}
