/* Client reviews carousel — shared by the home page and /gotovye-furshetnye-boksy/ (markup: tools/build_boxes_page.py). */
.reviews { padding:64px 0 56px; background:#f8f7f4; scroll-margin-top:calc(var(--header-h, 96px) + 18px); }
.reviews-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:30px; }
.reviews-head .eyebrow { margin-bottom:14px; letter-spacing:.14em; }
.reviews-head h2 { margin:0; font-size:clamp(34px,4.6vw,64px); line-height:1; font-weight:800; letter-spacing:-.05em; }
.reviews-arrows { display:flex; gap:14px; flex:0 0 auto; }
.reviews-arrow { display:inline-flex; align-items:center; justify-content:center; width:56px; height:56px; padding:0; border:1.5px solid var(--text); border-radius:50%; background:transparent; color:var(--text); cursor:pointer; transition:opacity .15s ease; }
.reviews-next { border-color:var(--accent); background:var(--accent); }
.reviews-arrow svg { display:block; }
.reviews-arrow:disabled { opacity:.35; cursor:default; }

.reviews-track { display:flex; gap:18px; margin:0; padding:0 0 4px; list-style:none; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; scrollbar-width:none; overscroll-behavior-x:contain; }
.reviews-track::-webkit-scrollbar { display:none; }
.review-card { flex:0 0 calc((100% - 36px) / 3); display:flex; flex-direction:column; margin:0; padding:26px 26px 30px; background:var(--bg); border:1px solid #ebe8e1; border-radius:14px; scroll-snap-align:start; }
.review-quote { display:block; height:34px; color:var(--accent); font-family:Georgia,"Times New Roman",serif; font-size:72px; font-weight:700; line-height:.9; }
.review-date { margin:8px 0 14px; color:var(--text-muted); font-size:15px; }
.review-text { min-height:calc(1.55em * 4); margin-bottom:22px; font-size:19px; line-height:1.55; }
.review-text p { margin:0; }
.review-more { padding:0; border:0; background:none; color:var(--text); font:inherit; font-size:15px; font-weight:700; text-decoration:underline; text-underline-offset:3px; cursor:pointer; white-space:nowrap; }
.review-shot { display:block; margin-top:auto; padding:10px; background:#f6f5f2; border:1px solid #ebe8e1; border-radius:12px; cursor:zoom-in; }
.review-shot img { display:block; width:100%; height:auto; aspect-ratio:16 / 10; object-fit:cover; object-position:center top; border-radius:8px; }

.reviews-progress { display:flex; justify-content:center; gap:10px; margin-top:44px; }
.reviews-dot { position:relative; width:34px; height:14px; padding:0; border:0; background:none; cursor:pointer; }
.reviews-dot::before { content:""; position:absolute; left:0; right:0; top:5px; height:4px; border-radius:2px; background:#e2dfd8; transition:background .2s ease; }
.reviews-dot[aria-current="true"] { width:56px; }
.reviews-dot[aria-current="true"]::before { background:var(--accent); }
.reviews-count { margin:14px 0 0; text-align:center; color:var(--text-muted); font-size:15px; font-variant-numeric:tabular-nums; }

.reviews-track:focus-visible, .reviews-arrow:focus-visible, .reviews-dot:focus-visible, .review-shot:focus-visible, .review-more:focus-visible { outline:2px solid var(--text); outline-offset:3px; }

@media (max-width:900px) { .review-card { flex-basis:calc((100% - 18px) / 2); } }
@media (max-width:680px) {
  .reviews { padding:44px 0 40px; }
  .reviews-head { margin-bottom:22px; }
  .reviews-head h2 { font-size:30px; }
  .reviews-arrows { gap:10px; }
  .reviews-arrow { width:44px; height:44px; }
  .reviews-track { gap:12px; }
  .review-card { flex-basis:84%; padding:20px 20px 22px; }
  .review-quote { height:28px; font-size:60px; }
  .review-text { min-height:0; font-size:17px; margin-bottom:18px; }
  .reviews-progress { margin-top:28px; gap:8px; }
  .reviews-dot { width:24px; }
  .reviews-dot[aria-current="true"] { width:40px; }
}
@media (prefers-reduced-motion:reduce) { .reviews-track { scroll-behavior:auto; } }

.review-lightbox { max-width:min(92vw,900px); max-height:92vh; padding:0; border:0; background:transparent; overflow:visible; }
.review-lightbox::backdrop { background:rgba(0,0,0,.75); }
.review-lightbox img { display:block; max-width:100%; max-height:86vh; height:auto; margin:0 auto; border-radius:10px; }
.review-lightbox-close { position:absolute; top:-48px; right:0; width:40px; height:40px; border:0; border-radius:50%; background:#fff; color:#111; font-size:26px; line-height:1; cursor:pointer; }
.review-popup { width:min(92vw,560px); max-height:86vh; padding:28px 26px 26px; border:0; border-radius:14px; background:var(--bg); color:var(--text); overflow:auto; }
.review-popup::backdrop { background:rgba(0,0,0,.6); }
.review-popup .review-date { margin:0 0 12px; padding-right:40px; }
.review-popup-text p { margin:0 0 10px; font-size:17px; line-height:1.55; }
.review-popup-close { position:absolute; top:12px; right:12px; width:36px; height:36px; padding:0; border:0; border-radius:50%; background:#f1efea; color:#111; font-size:24px; line-height:1; cursor:pointer; }
