.prod-hero {
    padding-block: 36px 56px;
}

.prod-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.prod-hero__row {
    align-items: flex-start;
    gap: 48px;
}

.prod-hero__content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    max-width: 900px;
}

.prod-hero__head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.prod-hero__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    padding: 8px;
    border-radius: 20px;
    border: 1px solid var(--c-border);
    background: var(--c-white);
    overflow: hidden;
}

.prod-hero__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prod-hero__logo--initial {
    background: var(--c-tint);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 32px;
    color: var(--c-primary);
}

.prod-hero__title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.prod-hero__badge {
    padding: 5px 10px;
    font-size: 12px;
}

.prod-hero__badge--verified {
    background: var(--c-success-bg);
    color: var(--c-success);
}

.prod-hero__notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 780px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-pink-200);
    background: var(--c-pink-50);
    font-size: 15px;
    color: var(--c-ink);
}

.prod-hero__notice .icon {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--c-primary);
}

.prod-hero__meta {
    font-size: 15px;
    color: var(--c-ink-2);
}

.prod-hero__meta a {
    font-weight: 600;
}

.prod-hero__summary {
    max-width: 780px;
}

.prod-hero__summary strong {
    font-weight: 600;
    color: var(--c-ink);
}

.prod-hero .btn-row {
    gap: 10px;
}

.prod-sheet__rings {
    left: -200px;
    top: -100px;
    width: 460px;
    height: 460px;
    color: var(--c-violet-300);
    opacity: .35;
}

.prod-sheet__title {
    max-width: 520px;
}

/* Digital DNA fit */

.prod-match {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 48px;
    align-items: center;
    padding: 64px;
}

.prod-match__ring {
    width: 560px;
    height: 560px;
    right: -180px;
    top: -220px;
}

.prod-match__text {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.prod-match__lead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-on-dark);
}

.prod-match__checks {
    gap: 10px;
}

.prod-match__checks .check-list__item {
    color: var(--c-white);
}

.prod-match__checks .check-list__item .icon {
    width: 22px;
    height: 22px;
    padding: 5px;
    margin-top: 0;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .14);
    stroke-width: 2.4;
}

.prod-match__actions {
    padding-top: 6px;
}

.prod-match__dna .icon {
    color: var(--c-dna);
}

.prod-fit {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.prod-fit__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.prod-fit__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--c-white);
}

.prod-fit__note {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--c-on-dark);
}

.prod-fit__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.prod-fit__row:first-child {
    border-top: 0;
}

.prod-fit__row dt {
    flex-shrink: 0;
    width: 150px;
    font-size: 13px;
    color: var(--c-on-dark);
}

.prod-fit__value {
    flex-grow: 1;
    min-width: 0;
    font-size: 14px;
    color: var(--c-white);
}

.prod-fit__result {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .1);
}

@media (max-width: 1199px) {
    .prod-match {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .prod-fit {
        max-width: 640px;
    }
}

@media (max-width: 991px) {
    .prod-match {
        padding: 48px 40px;
    }
}

@media (max-width: 767px) {
    .prod-hero {
        padding-block: 28px 48px;
    }

    .prod-hero__row {
        gap: 32px;
    }

    .prod-hero__head {
        align-items: flex-start;
    }

    .prod-hero__logo {
        width: 64px;
        height: 64px;
        border-radius: var(--radius);
    }

    .prod-hero__logo--initial {
        font-size: 26px;
    }

    .prod-sheet__rings {
        display: none;
    }
}

@media (max-width: 575px) {
    .prod-hero .btn-row .btn {
        white-space: normal;
        height: auto;
        min-height: 48px;
        padding-block: 10px;
        line-height: 1.3;
        text-align: center;
    }

    .prod-match {
        padding: 36px 20px;
    }

    .prod-fit {
        padding: 20px;
    }

    .prod-fit__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .prod-fit__row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .prod-fit__row dt,
    .prod-fit__row--plain dt {
        width: auto;
    }

    .prod-request__form .segmented__btn {
        padding: 0 6px;
        font-size: 13px;
    }
}

.prod-request {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 64px;
    align-items: center;
    padding: 56px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--c-border);
    background: var(--c-tint);
}

.prod-request__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prod-request__text .check-list {
    margin-top: 6px;
}

@media (max-width: 1199px) {
    .prod-request {
        grid-template-columns: minmax(0, 1fr) 400px;
        gap: 40px;
        padding: 40px;
    }
}

@media (max-width: 991px) {
    .prod-request {
        grid-template-columns: minmax(0, 1fr);
    }

    .prod-request__form {
        max-width: 560px;
    }
}

@media (max-width: 575px) {
    .prod-request {
        padding: 24px 16px;
        border-radius: var(--radius-lg);
    }
}

/* About the application and the vendor card */

.prod-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
    align-items: start;
}

.prod-about--vendor-only {
    grid-template-columns: minmax(0, 420px);
}

.prod-about__text {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.prod-about__title {
    margin-bottom: 6px;
}

.prod-vendor {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
}

.prod-vendor__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.prod-vendor__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid var(--c-border);
    background: var(--c-white);
    overflow: hidden;
}

.prod-vendor__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prod-vendor__logo--initial {
    background: var(--c-tint);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    color: var(--c-primary);
}

.prod-vendor__head > div {
    min-width: 0;
}

.prod-vendor__name {
    overflow-wrap: anywhere;
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1.25;
    color: var(--c-ink);
}

.prod-vendor__name a:hover {
    color: var(--c-primary);
}

.prod-vendor__verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-success);
}

.prod-vendor__facts {
    display: flex;
    flex-direction: column;
}

.prod-vendor__fact {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid var(--c-border);
    font-size: 14px;
}

.prod-vendor__fact:first-child {
    border-top: 0;
}

.prod-vendor__fact dt {
    color: var(--c-ink-3);
}

.prod-vendor__fact dd {
    font-weight: 600;
    text-align: right;
    color: var(--c-ink);
}

.prod-vendor__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prod-sheet__review {
    align-self: flex-start;
    margin-top: 8px;
}

.prod-fit__row--plain dt {
    width: 130px;
}

.prod-match--text-only {
    grid-template-columns: minmax(0, 1fr);
}

/* Modules and functionalities */

.prod-module__toggle {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-primary);
    cursor: pointer;
}

.prod-module__toggle:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prod-functionalities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.prod-functionality {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
}

.prod-functionality:only-child {
    grid-column: 1 / -1;
}

.prod-functionality h3 a {
    color: var(--c-primary);
}

.prod-functionality__list {
    columns: 2 220px;
    column-gap: 24px;
}

.prod-functionality__list .check-list__item {
    break-inside: avoid;
    margin-bottom: 8px;
}

/* Video and gallery */

.prod-video {
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--c-ink);
}

.prod-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.prod-video + .prod-gallery {
    margin-top: 28px;
}

.prod-gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.prod-gallery__link {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    background: var(--c-white);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.prod-gallery__link:hover {
    border-color: var(--c-border-hover);
    box-shadow: var(--shadow-sm);
}

.prod-gallery__link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prod-gallery__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prod-gallery__caption {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--c-ink-2);
}

/* Full-screen gallery: image that fits the screen, zoom with the buttons, a click or the keyboard, pan by dragging */

.prod-lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(20, 8, 34, .96);
    color: var(--c-white);
    overflow: hidden;
}

.prod-lightbox[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.prod-lightbox::backdrop {
    background: rgba(20, 8, 34, .96);
}

.prod-lightbox__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
}

.prod-lightbox__count {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-on-dark);
}

.prod-lightbox__tools {
    display: flex;
    gap: 8px;
}

.prod-lightbox__tool,
.prod-lightbox__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .08);
    color: var(--c-white);
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}

.prod-lightbox__tool:hover,
.prod-lightbox__nav:hover {
    border-color: rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .18);
}

.prod-lightbox__tool:disabled {
    opacity: .35;
    cursor: default;
}

.prod-lightbox__stage {
    position: relative;
    display: flex;
    min-height: 0;
    touch-action: none;
    padding: 0 76px;
    overflow: auto;
    overscroll-behavior: contain;
    cursor: zoom-in;
}

.prod-lightbox__stage.is-zoomed {
    cursor: grab;
}

.prod-lightbox__stage.is-dragging {
    cursor: grabbing;
}

.prod-lightbox__image {
    flex-shrink: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

.prod-lightbox__stage.is-zoomed .prod-lightbox__image {
    width: var(--zoom-width);
    max-width: none;
    max-height: none;
}

.prod-lightbox__nav {
    position: absolute;
    top: 50%;
    width: 52px;
    height: 52px;
    transform: translateY(-50%);
}

.prod-lightbox__nav--prev {
    left: 16px;
}

.prod-lightbox__nav--next {
    right: 16px;
}

.prod-lightbox__caption {
    min-height: 24px;
    padding: 12px 20px 0;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    color: var(--c-white);
}

.prod-lightbox__caption:empty {
    padding-top: 0;
}

.prod-lightbox__thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 20px 18px;
    overflow-x: auto;
    justify-content: safe center;
}

.prod-lightbox__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 54px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, .92);
    overflow: hidden;
    opacity: .6;
    cursor: pointer;
    transition: opacity .2s, border-color .2s;
}

.prod-lightbox__thumb:hover,
.prod-lightbox__thumb[aria-current="true"] {
    opacity: 1;
}

.prod-lightbox__thumb[aria-current="true"] {
    border-color: var(--c-pink-300);
}

.prod-lightbox__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prod-module__image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 4px;
    padding: 0;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    background: var(--c-tint);
    overflow: hidden;
    cursor: zoom-in;
}

.prod-module__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s var(--ease-out);
}

.prod-module__image:hover img {
    transform: scale(1.03);
}

.prod-module__zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-pill);
    background: var(--c-white);
    box-shadow: var(--shadow-sm);
    color: var(--c-primary);
}

/* Reviews */

.prod-reviews {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.prod-rating {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
}

.prod-rating__score {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.prod-rating__value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 48px;
    line-height: 1;
    color: var(--c-ink);
}

.prod-rating__of {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--c-ink-3);
}

.prod-rating__criteria {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prod-rating__criterion {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.prod-rating__criterion dt {
    color: var(--c-ink-2);
}

.prod-rating__criterion dd {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--c-ink);
}

.prod-reviews__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prod-reviews__more {
    align-self: center;
}

.prod-rating {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.prod-review {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
}

.prod-review__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.prod-review__title {
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1.35;
    color: var(--c-ink);
}

.prod-review__meta {
    margin-top: 4px;
    color: var(--c-ink-3);
}

.prod-review__score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--c-ink);
}

.prod-review__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--c-ink-2);
}

.prod-review__text strong {
    color: var(--c-ink);
}

.prod-similar__more {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

@media (max-width: 1199px) {
    .prod-about {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .prod-about,
    .prod-reviews,
    .prod-functionalities {
        grid-template-columns: minmax(0, 1fr);
    }

    .prod-vendor,
    .prod-rating {
        position: static;
        max-width: 560px;
    }
}

@media (max-width: 575px) {
    .prod-vendor,
    .prod-functionality,
    .prod-rating {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .prod-lightbox__bar {
        padding: 12px 16px;
    }

    .prod-lightbox__stage {
        padding: 0;
    }

    .prod-lightbox__nav {
        top: auto;
        bottom: 104px;
        width: 44px;
        height: 44px;
        transform: none;
    }

    .prod-lightbox__nav--prev {
        left: 12px;
    }

    .prod-lightbox__nav--next {
        right: 12px;
    }

    .prod-lightbox__caption {
        padding-inline: 72px;
        font-size: 15px;
    }

    .prod-lightbox__thumb {
        width: 60px;
        height: 45px;
    }
}

.prod-module-dialog {
    width: 760px;
}

.prod-module-dialog__panel .prose {
    font-size: 16px;
}

.prod-module-dialog__image {
    max-width: 420px;
    margin-bottom: 0;
}
