.site-offer-detail {
    padding-bottom: 64px;
    background: #fff;
}

.offer-detail__breadcrumbs {
    display: flex;
    gap: 5px;
    align-items: center;
    padding-top: 36px;
    padding-bottom: 28px;
    color: #4f4f4f;
    font-size: 14px;
}

.offer-detail__breadcrumbs a {
    color: #4f4f4f;
    text-decoration: none;
}

.offer-detail__breadcrumbs a:hover {
    color: var(--color-primary);
}

.offer-detail__overview {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
    gap: 64px;
    align-items: start;
    padding-top: 20px;
    padding-bottom: 76px;
}

.offer-detail__brand-row,
.offer-detail__brand,
.offer-detail__rating {
    display: flex;
    align-items: center;
}

.offer-detail__brand-row {
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding-bottom: 22px;
    border-bottom: 1px solid #ddd;
}

.offer-detail__brand {
    min-width: 0;
    gap: 16px;
}

.offer-detail__brand img {
    display: block;
    width: auto;
    max-width: 145px;
    height: 54px;
    object-fit: contain;
}

.offer-detail__brand h1 {
    margin: 0;
    color: #2c2c2c;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 500;
}

.offer-detail__rating {
    flex: 0 0 auto;
    gap: 3px;
    font-size: 13px;
}

.offer-detail__rating > span {
    color: #f67b09;
    font-size: 18px;
}

.offer-detail__rating strong {
    font-weight: 500;
}

.offer-detail__rating a {
    margin-left: 3px;
    color: #828282;
    text-decoration: none;
}

.offer-detail__parameters {
    margin: 0;
}

.offer-detail__parameters > div {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 21px 0;
    border-bottom: 1px solid #ddd;
}

.offer-detail__parameters > div:last-child {
    border-bottom: 0;
}

.offer-detail__parameters dt {
    color: #828282;
    font-size: 16px;
    line-height: 1.35;
}

.offer-detail__parameters dd {
    margin: 0;
    color: #222;
    font-size: 16px;
    line-height: 1.35;
}

.offer-detail__calculator .calculator {
    width: 100%;
}

.offer-reviews,
.offer-recommendations {
    padding-top: 24px;
    padding-bottom: 24px;
}

.offer-reviews h2,
.offer-recommendations h2 {
    margin: 0 0 32px;
    color: #2c2c2c;
    font-size: 25px;
    line-height: 1.25;
}

.offer-reviews__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 365px;
    gap: 20px;
    align-items: start;
}

.offer-reviews__list {
    display: grid;
    gap: 20px;
}

.offer-review,
.offer-reviews__empty {
    margin: 0;
    padding: 28px 22px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 14px rgba(102, 111, 116, .18);
}

.offer-review__author {
    display: flex;
    gap: 12px;
    align-items: center;
}

.offer-review__avatar {
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 9px;
    background: #f2f2f2;
}

.offer-review__avatar::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 14px;
    width: 8px;
    height: 8px;
    border: 2px solid #333;
    border-radius: 50%;
}

.offer-review__avatar::after {
    content: '';
    position: absolute;
    left: 9px;
    bottom: 6px;
    width: 18px;
    height: 10px;
    border: 2px solid #333;
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
}

.offer-review__author strong,
.offer-review__author time {
    display: block;
}

.offer-review__author strong {
    margin-bottom: 3px;
    color: #555;
    font-size: 14px;
}

.offer-review__author time {
    color: #828282;
    font-size: 13px;
}

.offer-review__stars {
    display: flex;
    gap: 8px;
    margin: 17px 0;
}

.offer-review__stars span {
    color: #ddd;
    font-size: 20px;
}

.offer-review__stars span.is-filled {
    color: #f67b09;
}

.offer-review > p {
    margin: 0;
    color: #222;
    font-size: 16px;
    line-height: 1.4;
}

.offer-reviews__cta {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}

.offer-reviews__cta h3 {
    margin: 0 0 16px;
    color: #2c2c2c;
    font-size: 19px;
}

.offer-reviews__cta p {
    margin: 0 0 16px;
    color: #333;
    font-size: 15px;
    line-height: 1.25;
}

.offer-reviews__cta button,
.review-modal__success button {
    width: 100%;
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: 6px;
    background: var(--color-primary);
    box-shadow: 0 6px 10px var(--color-primary-shadow);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.offer-recommendations {
    padding-top: 18px;
}

.offer-recommendations__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.offer-recommendations__grid .offer-compact {
    width: auto;
    min-width: 0;
}

.review-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, .42);
    overflow-y: auto;
}

.review-modal[hidden],
.review-modal [hidden] {
    display: none !important;
}

.review-modal__dialog {
    position: relative;
    width: min(668px, 100%);
    padding: 46px 52px 48px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .22);
}

.review-modal__dialog h2 {
    margin: 0 0 28px;
    padding-bottom: 26px;
    border-bottom: 1px solid #ddd;
    color: #2c2c2c;
    font-size: 24px;
    line-height: 1.25;
}

.review-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.review-form__honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

.review-form__rating {
    margin: 0 0 25px;
    padding: 0;
    border: 0;
}

.review-form__rating legend {
    margin-bottom: 16px;
    color: #333;
    font-size: 14px;
}

.review-form__rating > div {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 14px;
}

.review-form__rating input {
    position: absolute;
    opacity: 0;
}

.review-form__rating label {
    color: #ddd;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition: color 120ms ease;
}

.review-form__rating input:checked ~ label,
.review-form__rating label:hover,
.review-form__rating label:hover ~ label {
    color: #f67b09;
}

.review-form__rating input:focus-visible + label {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.review-form__field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 20px;
    color: #333;
    font-size: 14px;
}

.review-form__field small {
    color: #555;
}

.review-form__field input,
.review-form__field textarea {
    grid-column: 1 / -1;
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 12px 14px;
    color: #222;
    font: inherit;
    outline: none;
}

.review-form__field input {
    min-height: 48px;
}

.review-form__field textarea {
    min-height: 112px;
    resize: vertical;
}

.review-form__field input:focus,
.review-form__field textarea:focus {
    border-color: var(--color-primary);
}

.review-form__captcha {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 16px;
    margin: 0 0 22px;
    color: #333;
    font-size: 14px;
}

.review-form__captcha > span {
    grid-column: 1 / -1;
}

.review-form__captcha-row {
    display: flex;
    grid-column: 1;
    align-items: center;
    gap: 10px;
}

.review-form__captcha-row strong {
    display: grid;
    place-items: center;
    min-width: 150px;
    min-height: 46px;
    padding: 8px 16px;
    border: 2px solid var(--color-primary);
    border-radius: 6px;
    background: #f8fff6;
    font-size: 18px;
    letter-spacing: 1px;
}

.review-form__captcha-row button {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 24px;
    cursor: pointer;
}

.review-form__captcha-row button:disabled {
    opacity: .5;
    cursor: wait;
}

.review-form__captcha label {
    display: flex;
    grid-column: 2;
    gap: 10px;
    align-items: center;
}

.review-form__captcha input[type="number"] {
    min-height: 44px;
    width: min(160px, 100%);
    padding: 9px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font: inherit;
    outline: none;
}

.review-form__captcha input[type="number"]:focus {
    border-color: var(--color-primary);
}

.review-form__error {
    margin: -4px 0 14px;
    color: #c62828;
    font-size: 14px;
}

.review-form__submit {
    width: 100%;
    min-height: 50px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: var(--color-primary);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.review-form__submit:disabled {
    background: #fff;
    color: #999;
    cursor: not-allowed;
}

.review-modal__success {
    text-align: center;
}

.review-modal__success h2 {
    margin-bottom: 18px;
    padding: 0;
    border: 0;
}

.review-modal__success p {
    margin: 0 0 20px;
    font-size: 17px;
}

.review-modal__success-icon {
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    margin: 72px auto;
    border: 8px solid #8cc63f;
    border-radius: 50%;
    background: #a7dd4f;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .24);
    color: #fff;
    font-size: 66px;
    font-weight: 800;
}

body.review-modal-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .offer-detail__overview {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .offer-reviews__layout {
        grid-template-columns: 1fr;
    }

    .offer-reviews__cta {
        order: -1;
    }

    .offer-recommendations__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    .offer-recommendations__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .site-offer-detail {
        padding-bottom: 36px;
    }

    .offer-detail__breadcrumbs {
        padding-top: 20px;
        padding-bottom: 12px;
    }

    .offer-detail__overview {
        padding-top: 10px;
        padding-bottom: 42px;
    }

    .offer-detail__brand-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .offer-detail__parameters > div {
        grid-template-columns: 115px minmax(0, 1fr);
        gap: 14px;
    }

    .offer-recommendations__grid {
        gap: 10px;
    }

    .review-modal {
        align-items: end;
        padding: 0;
    }

    .review-modal__dialog {
        width: 100%;
        max-height: 94vh;
        padding: 38px 20px 24px;
        border-radius: 14px 14px 0 0;
        overflow-y: auto;
    }

    .review-modal__dialog h2 {
        font-size: 21px;
    }

    .review-modal__success-icon {
        margin: 45px auto;
    }

    .review-form__captcha {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .review-form__captcha-row strong {
        min-width: 118px;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 16px;
    }

    .review-form__captcha label {
        gap: 6px;
    }

    .review-form__captcha input[type="number"] {
        width: 80px;
    }
}
