/* ILZE Google reviews ("Why choose us?") on the home page */
.igr { margin: 8px 0 44px; }
/* heading like on ilze.lt: big centred orange title, soft light halo, fading orange underline */
.igr__head { position: relative; isolation: isolate; margin: 0 0 22px; text-align: center; }
/* soft light halo behind the title (on the wrapper: a pseudo-element of the gradient-clipped h2 would cover its text) */
.igr__head::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(760px, 100%);
  height: 150%;
  transform: translate(-50%, -50%);
  border-radius: 40px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .6) 42%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}
.igr__title {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 14px 36px 22px;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.5px;
  color: #f26f21;
  background: linear-gradient(180deg, #ff7f2e 0%, #f26f21 50%, #e0590f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.igr__title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: min(220px, 60%);
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(242, 111, 33, 0) 0%, #f7944f 22%, #e0540f 50%, #f7944f 78%, rgba(242, 111, 33, 0) 100%);
  box-shadow: 0 2px 10px rgba(242, 111, 33, .35);
}
.igr__sample { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: #fff4e5; color: #8a4b00; font-size: 13px; font-weight: 600; }

.igr__box {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-areas: "summary carousel" "summary note";
  column-gap: 20px;
  row-gap: 6px;
  padding: 26px 24px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(26, 45, 82, .06);
}

/* summary */
.igr__summary { grid-area: summary; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding-right: 20px; border-right: 1px solid #eef0f4; text-align: center; }
.igr__rating { font-size: 44px; font-weight: 700; line-height: 1; color: #1a1a1a; }
.igr__count { font-size: 15px; color: #1a1a1a; }
.igr__google { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: inherit; text-decoration: none !important; }
.igr__google-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.igr__google-txt b { font-size: 19px; font-weight: 600; color: #5f6368; letter-spacing: .2px; }
.igr__google-txt small { font-size: 12px; color: #80868b; }

/* stars: grey row, gold part by --igr-fill */
.igr__stars {
  --igr-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E");
  width: 110px;
  height: 20px;
  background: linear-gradient(90deg, #f7c600 var(--igr-fill, 100%), #dfe2e6 var(--igr-fill, 100%));
  -webkit-mask: var(--igr-star) left center / 22px 20px repeat-x;
  mask: var(--igr-star) left center / 22px 20px repeat-x;
}
.igr__stars--lg { width: 190px; height: 34px; -webkit-mask-size: 38px 34px; mask-size: 38px 34px; }

/* carousel */
.igr__carousel { grid-area: carousel; position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; }
.igr__track { display: flex; gap: 28px; flex: 1; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px; }
.igr__track::-webkit-scrollbar { display: none; }
.igr__card { flex: 0 0 calc((100% - 56px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.igr__text { margin: 0; font-size: 15px; line-height: 1.45; color: #1a1a1a; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.igr__card.is-open .igr__text { display: block; -webkit-line-clamp: unset; }
.igr__text[hidden] { display: none !important; }
.igr__more { align-self: flex-start; margin: -4px 0 0; padding: 0; border: 0; background: none; color: #6b7385; font-size: 13px; text-decoration: underline; cursor: pointer; }
.igr__tr { margin: -4px 0 0; font-size: 12px; line-height: 1.45; color: #8892aa; }
.igr__tr svg { margin-right: 3px; vertical-align: -2px; color: #8892aa; }
.igr__tr-toggle { display: block; margin-top: 2px; padding: 0; border: 0; background: none; color: #6b7385; font-size: 12px; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.igr__author { font-size: 14.5px; color: #3d4a63; }
.igr__author a, .igr__author span:first-child { font-weight: 600; color: #3d4a63; text-decoration: none; }
.igr__when { font-weight: 400 !important; color: #8892aa !important; }
.igr__nav { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #1a1a1a; cursor: pointer; transition: background-color .15s, opacity .15s; }
.igr__nav:hover { background: #f1f2f5; }
.igr__nav[disabled] { opacity: .25; cursor: default; background: transparent; }

.igr__note { grid-area: note; margin: 10px 0 0 42px; font-size: 13px; color: #8892aa; }
.igr__note a { color: #6b7385; text-decoration: underline; }

@media (max-width: 991px) {
  .igr__card { flex-basis: calc((100% - 28px) / 2); }
}
/* dots: phones only (desktop has the arrows) */
.igr__dots { display: none; }

@media (max-width: 767px) {
  /* compact phone layout (2026-09-25): one-line title, rating in one row, smaller cards and note */
  .igr { margin: 4px 0 30px; }
  .igr__head { margin: 0 0 12px; }
  .igr__title { padding: 6px 12px 14px; font-size: 24px; letter-spacing: -.3px; }
  .igr__title::after { width: 120px; height: 3px; bottom: 3px; }

  .igr__box { grid-template-columns: minmax(0, 1fr); grid-template-areas: "summary" "carousel" "dots" "note"; row-gap: 0; padding: 14px 12px 12px; border-radius: 16px; }

  /* 4,4 | stars / "На основе 19 отзывов" | Google */
  .igr__summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "rating stars google" "rating count google";
    align-items: center;
    column-gap: 12px;
    row-gap: 3px;
    padding: 2px 2px 12px;
    border-right: 0;
    border-bottom: 1px solid #eef0f4;
    text-align: left;
  }
  .igr__rating { grid-area: rating; font-size: 38px; letter-spacing: -.5px; }
  .igr__summary .igr__stars--lg { grid-area: stars; width: 105px; height: 19px; -webkit-mask-size: 21px 19px; mask-size: 21px 19px; }
  .igr__count { grid-area: count; font-size: 12.5px; color: #6b7385; }
  .igr__google { grid-area: google; margin: 0; gap: 5px; }
  .igr__google svg { width: 26px; height: 26px; }
  .igr__google-txt b { font-size: 15px; }
  .igr__google-txt small { font-size: 10.5px; }

  .igr__nav { display: none; }
  .igr__track { gap: 10px; padding: 12px 2px 2px; align-items: stretch; }
  .igr__card { flex-basis: 84%; gap: 7px; padding: 12px 12px 11px; border: 1px solid #eef0f4; border-radius: 12px; background: #fcfcfd; }
  .igr__card .igr__stars { width: 85px; height: 15px; -webkit-mask-size: 17px 15px; mask-size: 17px 15px; }
  .igr__text { font-size: 14px; line-height: 1.45; -webkit-line-clamp: 4; }
  .igr__more { margin-top: -3px; font-size: 12px; }
  /* "Автоперевод Google · язык оригинала …" + "Показать оригинал" as one small line */
  .igr__tr { margin-top: -2px; font-size: 11px; line-height: 1.4; }
  .igr__tr-toggle { display: inline; margin: 0 0 0 4px; font-size: 11px; }
  .igr__author { margin-top: auto; font-size: 13px; }

  .igr__dots { grid-area: dots; display: flex; justify-content: center; gap: 6px; margin: 10px 0 2px; }
  .igr__dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: #dfe2e8; cursor: pointer; transition: width .25s, background-color .25s; }
  .igr__dot.is-active { width: 18px; background: #f26f21; }

  .igr__note { margin: 8px 0 0; font-size: 11px; line-height: 1.45; text-align: center; }
}
