﻿.home-reviews {
    padding: 12px 0 56px;
}

.reviews-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.reviews-head h2 {
    max-width: 520px;
    font-size: 34px;
    line-height: 1.15;
}

.reviews-kicker {
    color: #1E3A2B;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.reviews-swiper {
    overflow: hidden;
    margin-right: -20px;
    padding: 0 20px 36px 0;
}

.reviews-swiper .swiper-slide {
    display: flex;
    height: auto;
}

.reviews-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.reviews-swiper:not(.swiper-initialized) .swiper-slide {
    width: auto !important;
}

.review-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 360px;
    padding: 24px;
    border-radius: 8px;
    background: var(--brand-accent);
}

.review-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.review-rating span {
    color: var(--brand-accent-ink);
    font-size: 20px;
    letter-spacing: 1px;
    text-shadow: 0 1px 0 rgba(30, 58, 43, 0.12);
}

.review-rating strong {
    color: #1E3A2B;
    font-size: 15px;
}

.review-product {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(168, 200, 160, 0.42);
    color: #1E3A2B;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.review-product:hover {
    background: #A8C8A0;
}

@media (max-width: 768px) {
    body.home-page .reviews-swiper .review-card {
        height: auto !important;
        min-height: 350px !important;
        max-height: none !important;
        padding: 18px !important;
        border-radius: 16px !important;
    }

    body.home-page .review-card .review-author {
        margin-bottom: 10px !important;
        font-size: 17px !important;
    }

    body.home-page .review-card .review-rating {
        gap: 12px !important;
        margin-bottom: 12px !important;
    }

    body.home-page .review-card .review-rating span {
        font-size: 28px !important;
        line-height: 1.1 !important;
        letter-spacing: 2px !important;
        white-space: nowrap;
    }

    body.home-page .review-card .review-rating strong {
        font-size: 16px !important;
    }

    body.home-page .review-card .review-product {
        display: block;
        max-width: 100%;
        margin-bottom: 12px !important;
        padding: 7px 10px !important;
        border-radius: 12px;
        overflow: visible;
        white-space: normal;
        overflow-wrap: anywhere;
        text-overflow: clip;
        font-size: 16px !important;
        line-height: 1.35 !important;
    }

    body.home-page .review-card .review-text {
        margin-bottom: 12px !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
        -webkit-line-clamp: 4 !important;
    }

    body.home-page .review-card .review-more {
        min-height: 44px !important;
        margin: auto 0 0 !important;
        padding: 6px 0 !important;
        font-size: 16px !important;
    }
}

.review-text {
    flex: 0 0 auto;
    display: -webkit-box;
    min-height: 118px;
    margin-bottom: 12px;
    color: #1E3A2B;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-height: 1.48;
}

.review-more {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    margin: 0 0 18px;
    padding: 0;
    color: #1E3A2B;
    font-size: 14px;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.review-more:focus-visible {
    outline: 3px solid #A8C8A0;
    outline-offset: 4px;
}

.review-author {
    order: -2;
    display: block;
    margin: 0 0 12px;
    color: #1E3A2B;
    font-size: 16px;
    font-weight: 900;
}

.reviews-pagination {
    position: static;
    margin-top: 20px;
    text-align: center;
}

.reviews-pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: #A8C8A0;
    opacity: 1;
}

.reviews-pagination .swiper-pagination-bullet-active {
    background: #1E3A2B;
}

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

.review-dialog {
    width: min(620px, calc(100% - 32px));
    max-width: none;
    max-height: min(82dvh, 720px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1E3A2B;
    box-shadow: 0 28px 80px rgba(12, 37, 25, 0.32);
}

.review-dialog::backdrop {
    background: rgba(10, 28, 20, 0.68);
    backdrop-filter: blur(4px);
}

.review-dialog-panel {
    display: flex;
    flex-direction: column;
    max-height: min(82dvh, 720px);
    animation: review-dialog-enter 0.2s ease-out;
}

.review-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 28px 20px;
    border-bottom: 1px solid #D8E2D4;
}

.review-dialog-kicker {
    display: block;
    margin-bottom: 5px;
    color: #5D7468;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.review-dialog-author {
    margin: 0;
    font-size: 25px;
    line-height: 1.15;
}

.review-dialog-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: var(--brand-accent);
    color: #1E3A2B;
    font-size: 30px;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.review-dialog-close:hover {
    background: #1E3A2B;
    color: #FFFFFF;
}

.review-dialog-close:focus-visible {
    outline: 3px solid #A8C8A0;
    outline-offset: 3px;
}

.review-dialog-body {
    padding: 24px 28px 30px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.review-dialog-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.review-dialog-stars {
    color: var(--brand-accent-ink);
    font-size: 22px;
    letter-spacing: 1px;
}

.review-dialog-score {
    font-size: 16px;
}

.review-dialog-product {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(168, 200, 160, 0.42);
    color: #1E3A2B;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.review-dialog-product:hover {
    background: #A8C8A0;
}

.review-dialog-text {
    margin: 0;
    color: #294A39;
    font-size: 17px;
    line-height: 1.65;
}

@keyframes review-dialog-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 992px) {
    .reviews-swiper:not(.swiper-initialized) .swiper-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .reviews-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .reviews-head h2 {
        font-size: 28px;
    }

    .reviews-swiper:not(.swiper-initialized) .swiper-wrapper {
        grid-template-columns: 1fr;
    }

    .review-dialog {
        width: calc(100% - 20px);
        max-height: calc(100dvh - 20px);
    }

    .review-dialog-panel {
        max-height: calc(100dvh - 20px);
    }

    .review-dialog-header {
        gap: 16px;
        padding: 20px 18px 16px;
    }

    .review-dialog-author {
        font-size: 22px;
    }

    .review-dialog-body {
        padding: 20px 18px 24px;
    }

    .review-dialog-text {
        font-size: 16px;
        line-height: 1.58;
    }
}

@media (prefers-reduced-motion: reduce) {
    .review-dialog-panel {
        animation: none;
    }
}

/* contact-icons-unified-v2 */
.contact-card__icon,
.contact-method__icon,
.contact-channel__icon,
.contact-icon,
.contacts-page .contact-card [class*="icon"],
.contact-page .contact-card [class*="icon"],
.contacts-section .contact-card [class*="icon"],
.contact-section .contact-card [class*="icon"],
.contact-card > [class*="icon"]:first-child {
  width: 58px !important;
  min-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--color-primary, var(--green-dark, #183f2c)) !important;
  border: 1px solid var(--color-primary, var(--green-dark, #183f2c)) !important;
  color: var(--color-white, #fff) !important;
  box-shadow: 0 12px 26px rgba(24, 63, 44, 0.16) !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
}

.contact-card__icon svg,
.contact-method__icon svg,
.contact-channel__icon svg,
.contact-icon svg,
.contacts-page .contact-card [class*="icon"] svg,
.contact-page .contact-card [class*="icon"] svg,
.contacts-section .contact-card [class*="icon"] svg,
.contact-section .contact-card [class*="icon"] svg,
.contact-card > [class*="icon"]:first-child svg {
  width: 26px !important;
  height: 26px !important;
  color: currentColor !important;
  stroke: currentColor !important;
}

.contact-card__icon svg *:not([fill="none"]),
.contact-method__icon svg *:not([fill="none"]),
.contact-channel__icon svg *:not([fill="none"]),
.contact-icon svg *:not([fill="none"]),
.contacts-page .contact-card [class*="icon"] svg *:not([fill="none"]),
.contact-page .contact-card [class*="icon"] svg *:not([fill="none"]),
.contacts-section .contact-card [class*="icon"] svg *:not([fill="none"]),
.contact-section .contact-card [class*="icon"] svg *:not([fill="none"]),
.contact-card > [class*="icon"]:first-child svg *:not([fill="none"]) {
  fill: currentColor !important;
}

.contact-card__icon img,
.contact-method__icon img,
.contact-channel__icon img,
.contact-icon img,
.contacts-page .contact-card [class*="icon"] img,
.contact-page .contact-card [class*="icon"] img,
.contacts-section .contact-card [class*="icon"] img,
.contact-section .contact-card [class*="icon"] img,
.contact-card > [class*="icon"]:first-child img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
}

/* contact-icons-unified-v3 */
.contact-card__icon,
.contact-method__icon,
.contact-channel__icon,
.contact-icon,
.contacts-page .contact-card [class*="icon"],
.contact-page .contact-card [class*="icon"],
.contacts-section .contact-card [class*="icon"],
.contact-section .contact-card [class*="icon"],
.contact-card > [class*="icon"]:first-child {
  width: 58px !important;
  min-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--color-primary, var(--green-dark, #183f2c)) !important;
  border: 1px solid var(--color-primary, var(--green-dark, #183f2c)) !important;
  color: var(--color-white, #fff) !important;
  box-shadow: 0 12px 26px rgba(24, 63, 44, 0.16) !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
}

.contact-card__icon svg,
.contact-method__icon svg,
.contact-channel__icon svg,
.contact-icon svg,
.contacts-page .contact-card [class*="icon"] svg,
.contact-page .contact-card [class*="icon"] svg,
.contacts-section .contact-card [class*="icon"] svg,
.contact-section .contact-card [class*="icon"] svg {
  width: 26px !important;
  height: 26px !important;
  color: currentColor !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
}

.contact-card__icon img,
.contact-method__icon img,
.contact-channel__icon img,
.contact-icon img,
.contacts-page .contact-card [class*="icon"] img,
.contact-page .contact-card [class*="icon"] img,
.contacts-section .contact-card [class*="icon"] img,
.contact-section .contact-card [class*="icon"] img {
  width: 27px !important;
  height: 27px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

.contact-card__icon::before,
.contact-method__icon::before,
.contact-channel__icon::before,
.contact-icon::before,
.contacts-page .contact-card [class*="icon"]::before,
.contact-page .contact-card [class*="icon"]::before,
.contacts-section .contact-card [class*="icon"]::before,
.contact-section .contact-card [class*="icon"]::before {
  color: currentColor !important;
}

/* contact-icons-unified-v4 */
.contact-card [class*="icon"],
.contact-card [class*="logo"],
.contacts-card [class*="icon"],
.contacts-card [class*="logo"],
.contact-method [class*="icon"],
.contact-method [class*="logo"],
.contacts-method [class*="icon"],
.contacts-method [class*="logo"],
.contacts-grid [class*="icon"],
.contacts-grid [class*="logo"],
.contacts-list [class*="icon"],
.contacts-list [class*="logo"],
.contact-links [class*="icon"],
.contact-links [class*="logo"] {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    border-radius: 999px !important;
    display: inline-grid !important;
    place-items: center !important;
    background: #1b4330 !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 14px 28px rgba(27, 67, 48, 0.16) !important;
    overflow: hidden !important;
}

.contact-card [class*="icon"]::before,
.contact-card [class*="icon"]::after,
.contact-card [class*="logo"]::before,
.contact-card [class*="logo"]::after,
.contacts-card [class*="icon"]::before,
.contacts-card [class*="icon"]::after,
.contacts-card [class*="logo"]::before,
.contacts-card [class*="logo"]::after,
.contact-method [class*="icon"]::before,
.contact-method [class*="icon"]::after,
.contact-method [class*="logo"]::before,
.contact-method [class*="logo"]::after,
.contacts-method [class*="icon"]::before,
.contacts-method [class*="icon"]::after,
.contacts-method [class*="logo"]::before,
.contacts-method [class*="logo"]::after {
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.contact-card [class*="icon"] svg,
.contact-card [class*="logo"] svg,
.contacts-card [class*="icon"] svg,
.contacts-card [class*="logo"] svg,
.contact-method [class*="icon"] svg,
.contact-method [class*="logo"] svg,
.contacts-method [class*="icon"] svg,
.contacts-method [class*="logo"] svg,
.contacts-grid [class*="icon"] svg,
.contacts-grid [class*="logo"] svg,
.contacts-list [class*="icon"] svg,
.contacts-list [class*="logo"] svg,
.contact-links [class*="icon"] svg,
.contact-links [class*="logo"] svg {
    width: 28px !important;
    height: 28px !important;
    color: #ffffff !important;
    stroke: currentColor !important;
}

.contact-card [class*="icon"] svg [stroke],
.contact-card [class*="logo"] svg [stroke],
.contacts-card [class*="icon"] svg [stroke],
.contacts-card [class*="logo"] svg [stroke],
.contact-method [class*="icon"] svg [stroke],
.contact-method [class*="logo"] svg [stroke],
.contacts-method [class*="icon"] svg [stroke],
.contacts-method [class*="logo"] svg [stroke],
.contacts-grid [class*="icon"] svg [stroke],
.contacts-grid [class*="logo"] svg [stroke],
.contacts-list [class*="icon"] svg [stroke],
.contacts-list [class*="logo"] svg [stroke],
.contact-links [class*="icon"] svg [stroke],
.contact-links [class*="logo"] svg [stroke] {
    stroke: currentColor !important;
}

.contact-card [class*="icon"] svg [fill]:not([fill="none"]),
.contact-card [class*="logo"] svg [fill]:not([fill="none"]),
.contacts-card [class*="icon"] svg [fill]:not([fill="none"]),
.contacts-card [class*="logo"] svg [fill]:not([fill="none"]),
.contact-method [class*="icon"] svg [fill]:not([fill="none"]),
.contact-method [class*="logo"] svg [fill]:not([fill="none"]),
.contacts-method [class*="icon"] svg [fill]:not([fill="none"]),
.contacts-method [class*="logo"] svg [fill]:not([fill="none"]),
.contacts-grid [class*="icon"] svg [fill]:not([fill="none"]),
.contacts-grid [class*="logo"] svg [fill]:not([fill="none"]),
.contacts-list [class*="icon"] svg [fill]:not([fill="none"]),
.contacts-list [class*="logo"] svg [fill]:not([fill="none"]),
.contact-links [class*="icon"] svg [fill]:not([fill="none"]),
.contact-links [class*="logo"] svg [fill]:not([fill="none"]) {
    fill: currentColor !important;
}

.contact-card [class*="icon"] img,
.contact-card [class*="logo"] img,
.contacts-card [class*="icon"] img,
.contacts-card [class*="logo"] img,
.contact-method [class*="icon"] img,
.contact-method [class*="logo"] img,
.contacts-method [class*="icon"] img,
.contacts-method [class*="logo"] img,
.contacts-grid [class*="icon"] img,
.contacts-grid [class*="logo"] img,
.contacts-list [class*="icon"] img,
.contacts-list [class*="logo"] img,
.contact-links [class*="icon"] img,
.contact-links [class*="logo"] img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
    mix-blend-mode: normal !important;
}
/* end-contact-icons-unified-v4 */

