:root {
  --section-pad: 5rem;
}
.section-h2 {
  margin-bottom: 2.5rem;
}

/* ══════════════════════════════════════════
   1. КНОПКИ
══════════════════════════════════════════ */
.btn-primary {
  background: var(--sage-dk);
  color: #fff;
  padding: .6rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--sage); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--sage-dk);
  border: 1px solid rgba(62,94,68,.4);
  padding: .6rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}
.btn-outline:hover { background: var(--sage-10); }

.btn-white {
  background: #fff;
  color: var(--sage-dk);
  padding: .75rem 2rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-md);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
}
.btn-white:hover { background: var(--ivory); }


/* ══════════════════════════════════════════
   2. HERO
══════════════════════════════════════════ */
.hero {
  background: var(--cream);
  border-bottom: var(--border-sage);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-pad) 2rem;
  display: flex;
  align-items: stretch;
  gap: 60px;
}
.hero-left {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.hero-left .section-label { text-align: left; }
.hero-title {
  font-family: var(--serif);
  font-size: var(--text-4xl);
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}
.hero-desc {
  font-size: var(--text-body);
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.hero-since {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--warm);
}
.hero-since::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--warm);
  display: block;
  flex-shrink: 0;
}
.hero-right {
  flex: 0 0 60%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    gap: 24px;
    padding: 2rem 1.25rem;
  }
  .hero-left { flex: none; width: 100%; gap: 14px; }
  .hero-title { font-size: var(--text-2xl); }
  .hero-desc  { font-size: var(--text-sm); }
  .hero-right { flex: none; width: 100%; height: 260px; border-radius: var(--radius-md); }
  .hero-right img { object-position: center top; }
}
@media (max-width: 767px) { .hero-right { height: 220px; } }
@media (max-width: 480px) {
  .hero-right { height: 180px; }
  .hero-title { font-size: var(--text-xl); }
}


/* ══════════════════════════════════════════
   3. SERVICES
══════════════════════════════════════════ */
.services { background: var(--cream); padding: 5rem 2rem; }
.services-inner { max-width: 1200px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; }

/* ── PROMO CARD: позиционирование в сетке главной (стили карточки — в promo_widget.css) ── */
.promo-card {
  grid-column: 1;
  grid-row: auto;
}

/* ── SERVICE CARD ── */
.service-card {
  background: var(--white); border: var(--border-sage);
  border-radius: var(--radius-lg); padding: 1.6rem;
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--sage-lt); transition: background .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(42,36,32,.07); }
.service-card:hover::before { background: var(--sage-dk); }
.service-card__top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }

/* FIX: иконка 40px внутри контейнера 90px — не вылезает */
.service-icon {
  width: 90px; height: 90px; background: transparent;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-icon svg { width: 85px; height: 85px; }

.service-title { font-family: var(--serif); font-size: var(--text-xl); font-weight: 600; color: var(--text); }
.service-desc  { font-size: var(--text-base); color: var(--muted); line-height: 1.65; }
.service-price { margin-top: .85rem; font-size: var(--text-sm); font-weight: 700; color: var(--sage-dk); }

@media (max-width: 600px) {
  .service-card__top { flex-direction: column; align-items: flex-start; gap: .5rem; }
}


/* ══════════════════════════════════════════
   4. ADVANTAGES
══════════════════════════════════════════ */
.advantages { background: var(--sage-dk); padding: 5rem 2rem; }
.advantages-inner { max-width: 1200px; margin: 0 auto; }
.advantages .section-label { color: rgba(255,255,255,.5); border-bottom: .5px solid rgba(255,255,255,.12); }
.advantages .section-h2    { color: #fff; margin-top: .5rem; }
/* FIX: 2 колонки на мобилке вместо 1 — 4 карточки смотрятся лучше 2×2 */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.adv-card {
  background: rgba(255,255,255,.06); border: .5px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 2rem; text-align: center;
}
.adv-card .stat-number    { color: #fff; }
.adv-card .stat-number em { color: var(--sage-lt); }
.adv-card-lbl { font-size: var(--text-sm); color: rgba(255,255,255,.65); margin-top: .75rem; line-height: 1.5; }

@media (max-width: 1100px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
/* FIX: оставляем 2 колонки до 480px, не 1 — смотрится лучше */
@media (max-width: 480px)  { .adv-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }


/* ══════════════════════════════════════════
   5. TEAM — пробковая доска
══════════════════════════════════════════ */
.team { background: var(--cream); padding: 5rem 2rem; }
.team-inner { max-width: 1200px; margin: 0 auto; }

.cork-board {
  background-color: #b8845a;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.025) 2px, rgba(0,0,0,.025) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255,255,255,.03) 3px, rgba(255,255,255,.03) 5px);
  border-radius: var(--radius-lg);
  border: 6px solid #7a4f2a;
  padding: 40px 32px 32px;
  position: relative;
  box-shadow: inset 0 3px 10px rgba(0,0,0,.2), inset 0 -2px 6px rgba(0,0,0,.1);
  /* FIX: overflow:hidden чтобы повёрнутые стикеры не вылезали за края на мобилке */
  overflow: hidden;
}
.cork-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cork-sticker {
  background: #fffef0;
  border-radius: 3px;
  padding: 32px 28px 36px;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 2px 3px 8px rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.1);
  margin-top: 20px;
}
.cork-sticker--1 { transform: rotate(-1.5deg); background: #fffef0; }
.cork-sticker--2 { transform: rotate(1.2deg);  background: #f0fdf4; }
.cork-sticker--3 { transform: rotate(-0.8deg); background: #fff5f0; }
.cork-sticker--4 { transform: rotate(1.8deg);  background: #f0f8ff; }
.cork-sticker--5 { transform: rotate(-1.2deg); background: #fefff0; }
.cork-sticker--6 { transform: rotate(0.9deg);  background: #f5f0ff; }
.cork-sticker--7 { transform: rotate(-1.6deg); background: #fff0f8; }
.cork-sticker--8 { transform: rotate(1.4deg);  background: #f0fffc; }
.cork-sticker:hover {
  transform: rotate(0deg) scale(1.05) !important;
  box-shadow: 4px 8px 20px rgba(0,0,0,.25);
  z-index: 2;
}

.cork-pin {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%; z-index: 3;
  box-shadow: 0 2px 5px rgba(0,0,0,.35), inset 0 -2px 3px rgba(0,0,0,.2), inset 0 2px 3px rgba(255,255,255,.3);
}
.cork-pin::after {
  content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 12px;
  background: linear-gradient(to bottom,#999,#555);
  border-radius: 0 0 2px 2px;
}
.cork-sticker--1 .cork-pin { background: #c0392b; }
.cork-sticker--2 .cork-pin { background: #1f4e89; }
.cork-sticker--3 .cork-pin { background: #E07A3A; }
.cork-sticker--4 .cork-pin { background: #2980b9; }
.cork-sticker--5 .cork-pin { background: #8e44ad; }
.cork-sticker--6 .cork-pin { background: #c0392b; }
.cork-sticker--7 .cork-pin { background: #2D5443; }
.cork-sticker--8 .cork-pin { background: #E07A3A; }

.cork-avatar {
  width: 180px; height: 180px; border-radius: 10%; overflow: hidden;
  border: 3px solid rgba(31,78,137,.25); margin-bottom: 18px; flex-shrink: 0;
}
.cork-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.cork-avatar__placeholder {
  width: 100%; height: 100%; background: #d8e3f0;
  display: flex; align-items: center; justify-content: center; color: #1f4e89;
}
.cork-avatar__placeholder svg { width: 60px; height: 60px; }

.cork-name {
  font-family: Georgia,'Times New Roman',serif; font-size: 20px; font-weight: 600;
  text-align: center; color: #1a2a1a; line-height: 1.3; margin: 0 0 6px;
}
.cork-role  { font-size: 18px; text-align: center; color: #666; margin: 0; line-height: 1.4; }
.cork-divider { width: 100%; height: 1px; background: rgba(0,0,0,.07); margin: 14px 0; }
.cork-exp   { font-size: 14px; text-align: center; color: #1f4e89; font-weight: 600; margin: 0; letter-spacing: .04em; }

.cork-footer { text-align: center; margin-top: 28px; }
.cork-btn {
  display: inline-block; padding: .7rem 2rem;
  background: rgba(255,255,255,.85);
  border: 1.5px solid rgba(31,78,137,.4); border-radius: var(--radius-pill);
  color: #1f4e89; font-size: var(--text-sm); font-weight: 600;
  letter-spacing: .04em; text-decoration: none; transition: background .2s, color .2s;
}
.cork-btn:hover { background: #1f4e89; color: #fff; border-color: #1f4e89; }

.cork-group-label {
  font-family: Georgia,'Times New Roman',serif; font-size: 13px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.55); text-align: center; margin-bottom: 8px; position: relative;
}
.cork-group-label::before,
.cork-group-label::after {
  content: ''; position: absolute; top: 50%; width: 60px; height: 1px;
  background: rgba(255,255,255,.18);
}
.cork-group-label::before { right: calc(50% + 90px); }
.cork-group-label::after  { left:  calc(50% + 90px); }
.cork-divider-section {
  height: 1px; background: rgba(0,0,0,.15); margin: 28px 0 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

@media (max-width: 1100px) { .cork-grid { grid-template-columns: repeat(3,1fr); gap: 20px; } }
@media (max-width: 900px) {
  .cork-grid    { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .cork-board   { padding: 28px 16px 24px; border-width: 4px; }
  .cork-sticker { padding: 22px 16px 24px; }
  .cork-avatar  { width: 120px; height: 120px; }
}
@media (max-width: 767px) {
  .cork-board   { padding: 28px 16px 24px; border-width: 4px; }
  .cork-grid    { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .cork-sticker { padding: 22px 16px 24px; }
  .cork-avatar  { width: 100px; height: 100px; }
  .cork-name    { font-size: 16px; }
  .cork-role    { font-size: 13px; }
}
@media (max-width: 480px) {
  .cork-grid    { grid-template-columns: 1fr; gap: 12px; }
  .cork-avatar  { width: 90px; height: 90px; }
  .cork-name    { font-size: 15px; }
  .cork-role    { font-size: 12px; }
  /* FIX: убираем наклон стикеров на очень узких экранах — не вылезают */
  .cork-sticker--1,.cork-sticker--2,.cork-sticker--3,
  .cork-sticker--4,.cork-sticker--5,.cork-sticker--6,
  .cork-sticker--7,.cork-sticker--8 { transform: none; }
}


/* ══════════════════════════════════════════
   6. BEFORE / AFTER
══════════════════════════════════════════ */
.portfolio { padding: 4rem 2rem; background: var(--cream); }
.portfolio-inner { max-width: 1200px; margin: 0 auto; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 2.5rem; }

.ba-card { background: var(--white); border: var(--border-sage); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.ba-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(42,36,32,.07); }

/* FIX: aspect-ratio вместо фиксированной высоты — корректно на всех экранах */
.ba-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
}
.ba-after { position: absolute; inset: 0; z-index: 1; background-size: cover; background-position: center; }
.ba-label-after {
  position: absolute; top: .75rem; right: .75rem;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); padding: .2rem .6rem; border-radius: var(--radius-sm);
  background: var(--sage-dk-85); pointer-events: none;
}
.ba-before { position: absolute; top: 0; left: 0; bottom: 0; width: 20%; z-index: 3; overflow: hidden; }
/* FIX: ширина ba-before-img ставится через JS (syncImgWidth), не фиксированная 500px */
.ba-before-img { position: absolute; top: 0; left: 0; bottom: 0; width: 100%; background-size: cover; background-position: left center; }
.ba-label-before {
  position: absolute; top: .75rem; left: .75rem;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); padding: .2rem .6rem; border-radius: var(--radius-sm);
  background: var(--text-55); z-index: 4; pointer-events: none;
}
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 20%;
  width: 2px; background: rgba(255,255,255,.9); z-index: 5; transform: translateX(-50%);
}
.ba-handle-circle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; background: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(42,36,32,.25); color: var(--sage-dk);
  border: 1.5px solid var(--sage-20);
}
.ba-info { padding: 1.25rem; border-top: var(--border-sage); }
.ba-title { font-family: var(--serif); font-size: var(--text-lg); font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.ba-desc  { font-size: var(--text-sm); color: var(--muted); line-height: 1.65; }

.ba-card--hidden { display: none; }
.ba-card--hidden.ba-card--visible { display: block; }

.portfolio-more { text-align: center; margin-top: 2rem; }
.btn-portfolio-more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .7rem 2rem;
  border: 1.5px solid rgba(62,94,68,.4); border-radius: var(--radius-pill);
  background: transparent; color: var(--sage-dk);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: .04em;
  cursor: pointer; transition: background .2s, color .2s;
}
.btn-portfolio-more svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform .3s; }
.btn-portfolio-more:hover { background: var(--sage-dk); color: #fff; }
.btn-portfolio-more.is-open svg { transform: rotate(180deg); }


/* ══════════════════════════════════════════
   7. REVIEWS
══════════════════════════════════════════ */
.reviews { background: var(--ivory); padding: 5rem 2rem; }
.reviews-inner { max-width: 1200px; margin: 0 auto; }
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 2.5rem; }

.review-card { background: var(--white); border: var(--border-sage); border-radius: var(--radius-lg); padding: 1.75rem; }
.review-stars { display: flex; align-items: center; gap: 4px; margin: 0.5rem 0 1rem 0; }
.review-stars--center { justify-content: center; margin-top: .25rem; margin-bottom: 0; }
.star { width: 18px; height: 18px; fill: var(--warm); }
.review-text   { font-size: var(--text-md); line-height: 1.75; color: var(--text); margin-bottom: 1.25rem; font-family: var(--serif); font-style: italic; }
.review-author { display: flex; align-items: center; gap: .75rem; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sage-10); border: 1px solid var(--sage-25); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: var(--text-md); color: var(--sage-dk); flex-shrink: 0; }
.review-name   { font-weight: 600; font-size: var(--text-sm); }
.review-source { font-size: var(--text-xs); color: var(--muted); }

.reviews-rating { display: flex; align-items: center; gap: 2rem; justify-content: center; margin-top: 2.5rem; padding-top: 2rem; border-top: var(--border-sage); }
.rating-block   { text-align: center; }
.rating-val     { font-family: var(--serif); font-size: var(--text-4xl); color: var(--sage-dk); }
.rating-src     { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .15em; color: var(--muted); margin-top: .3rem; }
.rating-divider { width: 1px; height: 60px; background: var(--sage-20); flex-shrink: 0; }


/* ══════════════════════════════════════════
   8. DIAGNOSTICS
══════════════════════════════════════════ */
.diagnostics { background: linear-gradient(135deg,var(--sage-dk) 0%,#2a4030 100%); padding: 4rem 2rem; }
.diagnostics-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.diagnostics-text h2 { color: #fff; font-size: var(--text-4xl); margin-bottom: 1rem; }
.diagnostics-text p  { color: rgba(255,255,255,.7); font-size: var(--text-md); line-height: 1.8; margin-bottom: 1.5rem; }
.diagnostics-label   { color: rgba(255,255,255,.5) !important; }
.diag-features { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.diag-features li { display: flex; align-items: center; gap: .75rem; color: rgba(255,255,255,.85); font-size: var(--text-md); }
.diag-check { width: 20px; height: 20px; background: var(--sage); border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.diag-check svg { width: 11px; height: 11px; stroke: #fff; stroke-width: 2.5; fill: none; }
.diag-visual { background: rgba(255,255,255,.06); border: .5px solid rgba(255,255,255,.15); border-radius: var(--radius-lg); padding: 2rem; text-align: center; }
.diag-visual svg { width: 100px; height: 100px; stroke: rgba(255,255,255,.3); fill: none; stroke-width: 1; margin: 0 auto; }
.diag-note { font-size: var(--text-sm); color: rgba(255,255,255,.45); margin-top: 1rem; }


/* ══════════════════════════════════════════
   9. TECHNOLOGIES
══════════════════════════════════════════ */
.technologies { padding: 5rem 2rem; background: var(--ivory); }
.technologies-inner { max-width: 1200px; margin: 0 auto; }
.tech-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-top: 2.5rem; }
.tech-item { text-align: center; padding: 2rem 1rem; background: var(--white); border: var(--border-sage); border-radius: var(--radius-lg); }
/* FIX: контейнер иконки overflow:hidden — SVG 80px не вылезает из круга 56px */
.tech-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  background: var(--sage-10); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.tech-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--sage-dk); stroke-width: 1.5; flex-shrink: 0; }
.tech-name { font-family: var(--serif); font-size: var(--text-xl); margin-bottom: .4rem; }
.tech-desc { font-size: var(--text-sm); color: var(--muted); line-height: 1.6; }


/* ══════════════════════════════════════════
   10. FINANCING
══════════════════════════════════════════ */
.financing { padding: var(--section-pad) 2rem; background: var(--sage-10); border-top: var(--border-sage); border-bottom: var(--border-sage); }
.financing-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 4rem; flex-wrap: wrap; }
.financing-text  { flex: 1; min-width: 280px; }
.financing-title { font-family: var(--serif); font-size: var(--text-3xl); color: var(--text); margin: .75rem 0 1rem; font-weight: 400; }
.financing-desc  { color: var(--muted); max-width: 420px; font-size: var(--text-md); }
.financing-options { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.fin-option { background: var(--white); border: var(--border-sage); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; text-align: center; min-width: 140px; }
.fin-option-val { font-family: var(--serif); font-size: var(--text-2xl); color: var(--sage-dk); }
.fin-option-lbl { font-size: var(--text-xs); color: var(--muted); margin-top: .25rem; }


/* ══════════════════════════════════════════
   11. FAQ
══════════════════════════════════════════ */
.faq { padding: 5rem 2rem; background: var(--cream); }
.faq-inner { max-width: 860px; margin: 0 auto; }
.faq-list  { margin-top: 2.5rem; display: flex; flex-direction: column; gap: .75rem; }

.faq-item { background: var(--white); border: .5px solid var(--sage-28); border-radius: var(--radius-md); overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; cursor: pointer; gap: 1rem;
  font-size: var(--text-lg); font-family: var(--serif); color: var(--text); list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-chevron {
  width: 20px; height: 20px; flex-shrink: 0;
  background: var(--sage-10); border: .5px solid var(--sage-40); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s, background .2s;
}
.faq-chevron svg { width: 10px; height: 10px; stroke: var(--sage-dk); fill: none; stroke-width: 2.5; }
details[open] .faq-chevron { transform: rotate(180deg); background: var(--sage-dk); }
details[open] .faq-chevron svg { stroke: #fff; }
.faq-a { padding: 1rem 1.5rem 1.25rem; font-size: var(--text-md); color: var(--muted); line-height: 1.8; border-top: .5px solid var(--sage-18); }

/* ── Врач под ответом ── */
.faq-doctor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 1.5rem 1.25rem;
  padding-top: 1rem;
  border-top: .5px solid var(--sage-18);
  text-decoration: none;
  color: inherit;
  transition: opacity .2s;
}
.faq-doctor:hover { opacity: .7; }

.faq-doctor__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sage-10);
}
.faq-doctor__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.faq-doctor__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-dk);
  opacity: .45;
}
.faq-doctor__placeholder svg { width: 58%; height: 58%; }

.faq-doctor__info { display: flex; flex-direction: column; line-height: 1.35;}
.faq-doctor__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sage-dk);
  opacity: .7;
}
.faq-doctor__name { font-weight: 600; font-size: var(--text-base); color: var(--text); }
.faq-doctor__role { font-size: var(--text-sm); color: var(--muted); }

/* ══════════════════════════════════════════
   12. CERTIFICATES
══════════════════════════════════════════ */
.certificates { padding: 5rem 2rem; background: var(--ivory); }
.certificates-inner { max-width: 1200px; margin: 0 auto; }

/* cert-grid: брейкпоинты совпадают с JS getVisible() */
.cert-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1rem; margin-top: 2.5rem; }
@media (max-width: 900px)  { .cert-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 600px)  { .cert-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 420px)  { .cert-grid { grid-template-columns: 1fr; } }

.cert-item {
  background: var(--white); border: .5px solid var(--sage-28);
  border-radius: var(--radius-md); padding: 1rem; text-align: center;
  cursor: zoom-in;
}
.cert-photo {
  width: 100%; aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm); overflow: hidden;
  margin-bottom: .75rem; border: .5px solid var(--sage-20);
}
/* FIX: фиксируем высоту на мобилке чтобы фото не растягивалось */
@media (max-width: 700px) {
  .cert-photo { aspect-ratio: unset; height: 260px; }
}
@media (max-width: 420px) {
  /* 1 карточка — можно выше */
  .cert-photo { height: 320px; }
  /* стрелки слайдера чуть меньше */
  .cert-arrow { width: 34px; height: 34px; }
}
.cert-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.cert-item:hover .cert-photo img { transform: scale(1.04); }
.cert-title { font-size: var(--text-sm); font-weight: 600; color: var(--text); line-height: 1.4; }
.cert-year  { font-size: var(--text-xs); color: var(--muted); margin-top: .3rem; }

.cert-slider-wrap { display: flex; align-items: center; gap: 12px; margin-top: 2.5rem; }
.cert-viewport { flex: 1; overflow: hidden; min-width: 0; }
.cert-slider { display: flex; gap: 12px; transition: transform .35s ease; will-change: transform; }
.cert-slider .cert-item { flex-shrink: 0; }

.cert-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(62,94,68,.4); background: var(--white); color: var(--sage-dk);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: background .15s, color .15s;
}
.cert-arrow svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cert-arrow:hover    { background: var(--sage-dk); color: #fff; }
.cert-arrow:disabled { opacity: .3; cursor: default; }

.cert-dots { display: flex; gap: 6px; justify-content: center; margin-top: 1rem; }
.cert-dot  {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage-20); cursor: pointer;
  transition: background .2s, transform .2s; border: none; padding: 0;
}
.cert-dot.active { background: var(--sage-dk); transform: scale(1.3); }


/* ══════════════════════════════════════════
   13. SCROLL-REVEAL
══════════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible  { opacity: 1; transform: none; }
.reveal-delay-1  { transition-delay: .1s; }
.reveal-delay-2  { transition-delay: .2s; }
.reveal-delay-3  { transition-delay: .3s; }
.reveal-delay-4  { transition-delay: .4s; }


/* ══════════════════════════════════════════
   14. ОБЩИЙ АДАПТИВ
══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .team-grid,
  .tech-grid     { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .promo-card    { grid-row: auto; }
}

@media (max-width: 991px) {
  .dh-wrap,
  .diagnostics-inner,
  .contacts-inner { grid-template-columns: 1fr; }
  .portfolio-grid,
  .reviews-grid   { grid-template-columns: repeat(2,1fr); }
  .dh-scene        { max-width: 320px; }
  .dh-r1           { width: 280px; height: 280px; }
  .dh-r2           { width: 220px; height: 220px; }
  .dh-r3           { width: 166px; height: 166px; }
  .dh-rspin        { width: 258px; height: 258px; }
  .dh-rspin2       { width: 142px; height: 142px; }
  .dh-tooth-anchor { width: 150px; height: 150px; }
}

@media (max-width: 767px) {
  .services-grid,
  .portfolio-grid,
  .reviews-grid,
  .team-grid,
  .tech-grid      { grid-template-columns: 1fr; }
  .financing-inner { flex-direction: column; gap: 2rem; }
  .reviews-rating  { flex-direction: column; gap: 1.5rem; }
  .rating-divider  { width: 60px; height: 1px; }
  .contacts-inner  { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .dh-wrap       { padding: 28px 16px; gap: 24px; }
  .dh-scene-wrap { display: none; }
}


/* ══════════════════════════════════════════
   15. LAB BLOCK
══════════════════════════════════════════ */
.lab-wrap {
  background: #09489C; border-radius: 18px;
  padding: var(--section-pad) 3rem;
  display: flex; gap: 48px; align-items: center;
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  color: #fff;
}
.lab-text { flex: 1; min-width: 0; }
.lab-label {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: #8EC7F5; margin-bottom: 16px; display: block;
}
.lab-h2   { font-family: 'Playfair Display',serif; font-weight: 400; line-height: 1.25; margin: 0 0 14px; color: #fff; }
.lab-desc { line-height: 1.75; color: rgba(255,255,255,.62); margin: 0 0 26px; }
.lab-list { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.lab-list li { display: flex; align-items: center; gap: 10px; font-size: var(--text-base); color: rgba(255,255,255,.88); }
.lab-chk { width: 18px; height: 18px; border-radius: 50%; background: rgba(142,199,245,.15); border: 1px solid rgba(142,199,245,.5); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lab-chk svg { width: 9px; height: 9px; stroke: #8EC7F5; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.btn-lab {
  display: inline-block; padding: 12px 28px;
  background: rgba(142,199,245,.18); border: 1px solid rgba(142,199,245,.55);
  color: #fff; border-radius: 100px; font-size: var(--text-base); font-weight: 500;
  text-decoration: none; cursor: pointer; transition: background .2s;
}
.btn-lab:hover { background: rgba(142,199,245,.3); }

.lab-visual { flex-shrink: 0; width: 300px; height: 300px; position: relative; }
.lab-note   { text-align: center; font-size: var(--text-sm); color: rgba(255,255,255,.38); margin-top: 12px; line-height: 1.5; }

@keyframes spin-slow  { to { transform: rotate(360deg);  transform-origin: 150px 150px; } }
@keyframes spin-rev   { to { transform: rotate(-360deg); transform-origin: 150px 150px; } }
@keyframes pulse-ring { 0%,100% { opacity: .25; } 50% { opacity: .6; } }
@keyframes scan-line  { 0% { transform: translateY(-60px); opacity: 0; } 30% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(60px); opacity: 0; } }
@keyframes blink-dot  { 0%,100% { opacity: 1; } 50% { opacity: .15; } }

#ring1  { animation: spin-slow  18s linear infinite; transform-origin: 150px 150px; }
#ring2  { animation: spin-rev   12s linear infinite; transform-origin: 150px 150px; }
#ring3  { animation: spin-slow   8s linear infinite; transform-origin: 150px 150px; }
#pulse1 { animation: pulse-ring  3s ease-in-out infinite; }
#pulse2 { animation: pulse-ring  3s ease-in-out infinite .8s; }
#pulse3 { animation: pulse-ring  3s ease-in-out infinite 1.6s; }
#scanl  { animation: scan-line  3.5s ease-in-out infinite; }
.d1 { animation: blink-dot 2.4s ease-in-out infinite; }
.d2 { animation: blink-dot 2.4s ease-in-out infinite .4s; }
.d3 { animation: blink-dot 2.4s ease-in-out infinite .8s; }
.d4 { animation: blink-dot 2.4s ease-in-out infinite 1.2s; }
.d5 { animation: blink-dot 2.4s ease-in-out infinite 1.6s; }
.d6 { animation: blink-dot 2.4s ease-in-out infinite 2.0s; }

@media (max-width: 991px) {
  .lab-wrap { flex-direction: column; padding: 3rem 2rem; gap: 32px; border-radius: 14px; }
  .lab-visual { width: 220px; height: 220px; margin: 0 auto; }
  .lab-visual svg { width: 220px !important; height: 220px !important; }
}
@media (max-width: 767px) {
  .lab-wrap { padding: 2.5rem 1.5rem; gap: 24px; border-radius: 12px; }
  .lab-h2   { font-size: 1.4rem; }
  .lab-desc { font-size: var(--text-sm); }
  .lab-visual { width: 180px; height: 180px; }
  .lab-visual svg { width: 180px !important; height: 180px !important; }
  .lab-note { font-size: var(--text-xs); }
}
@media (max-width: 480px) {
  .lab-wrap { padding: 2rem 1.25rem; border-radius: 10px; }
  .lab-h2   { font-size: 1.2rem; }
  .lab-list li  { font-size: var(--text-sm); }
  .lab-list     { margin-bottom: 20px; }
  .lab-visual   { width: 150px; height: 150px; }
  .lab-visual svg { width: 150px !important; height: 150px !important; }
}


/* ══════════════════════════════════════════
   16. КАРУСЕЛЬ ВРАЧЕЙ
══════════════════════════════════════════ */
.doctors-carousel-wrap { position: relative; display: flex; align-items: center; gap: 12px; margin: 2rem 0 1.5rem; }
.doctors-carousel { display: flex; gap: 18px; overflow: hidden; scroll-behavior: smooth; flex: 1; }

.doc-slide { flex: 0 0 calc(33.333% - 12px); background: var(--white); border: 1px solid var(--sage-dk-18); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.doc-slide:hover { box-shadow: 0 8px 32px rgba(62,94,68,.13); transform: translateY(-4px); }

.doc-slide__photo { position: relative; width: 100%; height: 260px; overflow: hidden; background: var(--ivory); flex-shrink: 0; }
.doc-slide__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .35s ease; }
.doc-slide:hover .doc-slide__photo img { transform: scale(1.04); }
.doc-slide__no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: var(--text-5xl); }
.doc-slide__badge { position: absolute; top: 12px; left: 12px; background: var(--sage-dk); color: var(--white); font-size: var(--text-xs); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill); }

.doc-slide__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.doc-slide__name { font-family: var(--serif); font-size: var(--text-md); font-weight: 600; color: var(--text); line-height: 1.2; }
.doc-slide__pos  { font-size: var(--text-xs); color: var(--muted); letter-spacing: .04em; margin-top: -6px; }
.doc-slide__specs { display: flex; flex-wrap: wrap; gap: 5px; }

.doc-slide__stats { display: flex; gap: 0; margin-top: auto; border-top: .5px solid var(--sage-20); padding-top: 10px; }
.doc-slide__stat { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 4px 8px; border-right: .5px solid var(--sage-15); }
.doc-slide__stat:last-child { border-right: none; }
.doc-slide__stat-val { font-family: var(--serif); font-size: var(--text-xl); font-weight: 700; color: var(--sage-dk); line-height: 1; }
.doc-slide__stat-lbl { font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; text-align: center; }

.carousel-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--sage-dk-40); background: var(--white); color: var(--sage-dk); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background .15s, color .15s; }
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn:hover    { background: var(--sage-dk); color: var(--white); }
.carousel-btn:disabled { opacity: .3; cursor: default; }


/* ══════════════════════════════════════════
   17. TEAM SECTION (альтернативная)
══════════════════════════════════════════ */
.team-section {
  background:
    radial-gradient(ellipse at 0% 0%,   rgba(168,210,160,.7) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%,  rgba(200,225,170,.6) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%,rgba(140,190,150,.5) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 100%,  rgba(210,230,185,.6) 0%, transparent 50%),
    #deecd8;
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem,4vw,2.5rem);
  margin: 2rem 0 1.5rem;
}
.team-layout  { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; }
.team-left    { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.team-heading { color: #1a3a20; font-family: var(--serif); font-size: clamp(1rem,4vw,2rem); font-weight: 700; line-height: 1.05; letter-spacing: -.5px; margin: 0 0 16px; align-self: flex-start; }
.team-card {
  background: linear-gradient(145deg,#2d5235 0%,#3e6b46 50%,#2a4a32 100%);
  border-radius: var(--radius-lg); padding: 14px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: inherit; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 3px 16px rgba(30,70,35,.2); max-height: 280px;
}
.team-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 45%; background: radial-gradient(ellipse at 50% 0%,rgba(255,255,255,.08) 0%,transparent 70%); pointer-events: none; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(30,70,35,.3); }
.team-card.featured { padding: 20px 14px 18px; background: linear-gradient(145deg,#243d2a 0%,#3a6040 50%,#2a4a30 100%); max-height: none; }
.team-grid .team-card:nth-child(even) { background: linear-gradient(145deg,#2a4d38 0%,#3d6648 50%,#284530 100%); }

.avatar { width: 75%; aspect-ratio: 1; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); overflow: hidden; flex-shrink: 0; box-shadow: 0 3px 12px rgba(0,0,0,.2); }
.avatar.large { width: 80%; border-width: 4px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .35s ease; }
.team-card:hover .avatar img { transform: scale(1.07); }
.avatar-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#4a7a52,#3a6040); display: flex; align-items: center; justify-content: center; }
.avatar-placeholder svg { width: 55%; height: 55%; fill: rgba(255,255,255,.55); }

.team-badge  { display: inline-block; background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 3px 12px; border-radius: var(--radius-pill); border: .5px solid rgba(255,255,255,.3); }
.member-name { font-family: var(--serif); font-size: var(--text-sm); font-weight: 400; color: #fff; text-align: center; line-height: 1.25; margin: 0; }
.member-name.large { font-size: var(--text-md); }
.member-role { font-size: var(--text-xs); color: rgba(168,210,160,.85); text-align: center; margin: 0; letter-spacing: .03em; }
.member-exp  { font-size: var(--text-xs); font-weight: 700; color: rgba(255,255,255,.4); letter-spacing: .05em; margin: 0; }

.team-grid { display: grid; grid-template-columns: repeat(3,minmax(0,220px)); gap: 14px; justify-content: space-around; }
.team-footer-inner { text-align: center; margin-top: 1.4rem; }
.btn-team-all { display: inline-block; padding: .7rem 2rem; border: 1.5px solid rgba(30,70,35,.4); border-radius: var(--radius-pill); color: #1a3a20; font-size: var(--text-sm); font-weight: 600; letter-spacing: .04em; text-decoration: none; transition: background .2s, color .2s; }
.btn-team-all:hover { background: #2d5235; color: #fff; border-color: #2d5235; }

@media (max-width: 900px) {
  .team-layout { grid-template-columns: 180px 1fr; }
  .team-grid   { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .team-layout { grid-template-columns: 1fr; }
  .team-grid   { grid-template-columns: repeat(2,1fr); }
  .team-heading { text-align: center; }
  .team-card.featured { max-width: 220px; margin: 0 auto; }
}


/* ══════════════════════════════════════════
   18. LIGHTBOX — сертификаты
══════════════════════════════════════════ */
.cert-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.cert-lightbox.is-open { opacity: 1; pointer-events: all; }

.cert-lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(10,20,12,.88);
  backdrop-filter: blur(6px); cursor: pointer;
}

/* FIX: safe-area для iPhone с notch/Dynamic Island */
.cert-lightbox__close {
  position: absolute;
  top: max(20px, env(safe-area-inset-top, 20px));
  right: max(20px, env(safe-area-inset-right, 20px));
  z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, transform .2s;
}
.cert-lightbox__close:hover { background: rgba(255,255,255,.25); transform: rotate(90deg); }
.cert-lightbox__close svg   { width: 16px; height: 16px; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; fill: none; }

/* FIX: padding-top чтобы картинка не залезала под кнопку закрытия */
.cert-lightbox__content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  max-width: min(90vw, 640px);
  padding-top: 60px;
  transform: scale(.9) translateY(16px); transition: transform .3s ease;
}
.cert-lightbox.is-open .cert-lightbox__content { transform: scale(1) translateY(0); }

/* FIX: dvh учитывает адресную строку iOS/Android */
#certLightboxImg {
  max-width: 100%; max-height: 75dvh;
  object-fit: contain; border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0,0,0,.6); display: block;
}
/* FIX: fallback для старых браузеров без dvh */
@supports not (max-height: 1dvh) {
  #certLightboxImg { max-height: 70vh; }
}

.cert-lightbox__caption {
  color: rgba(255,255,255,.6); font-size: var(--text-sm);
  text-align: center; margin: 0;
  /* FIX: Home Indicator на iPhone */
  padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
}



/* ── СЕКЦИЯ ОТЗЫВОВ ── */
.reviews { padding: 80px 0; }
.reviews-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* общий контейнер: задаёт одинаковую ширину награде и плашкам */
.reviews-stats {
  max-width: 720px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* награда — во всю ширину контейнера */
.award-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 22px;
  border: 1px solid rgba(62, 94, 68, 0.15);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.award-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}
.award-icon { flex: 0 0 auto; display: flex; align-items: center; }
.award-icon svg { width: 52px; height: auto; }
.award-text { display: flex; flex-direction: column; gap: 4px; }
.award-title { font-weight: 700; color: var(--sage-dk, #3E5E44); font-size: 16px; }
.award-desc { font-size: 13px; color: #8a8a8a; line-height: 1.35; }

/* плашки — две равные половины той же ширины */
.aspects {
  display: flex;
  gap: 16px;
}
.aspect-card {
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  border: 1px solid rgba(62, 94, 68, 0.15);
  border-radius: 12px;
  background: #fff;
}
.aspect-top { display: flex; align-items: baseline; gap: 10px; }
.aspect-name { font-weight: 600; color: var(--sage-dk, #3E5E44); }
.aspect-pct  { font-size: 18px; font-weight: 700; color: #2e8b57; margin-left: auto; }
.aspect-count { font-size: 13px; color: #8a8a8a; }

/* виджет отзывов */
.reviews-widget__frame {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 1100px;
  margin: 32px auto 0;
  overflow: hidden;
  border-radius: 8px;
}
.reviews-widget__frame iframe {
  width: 100%;
  height: 100%;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  box-sizing: border-box;
}
.reviews-widget__link {
  box-sizing: border-box;
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  padding: 0 16px;
  text-align: center;
  text-decoration: none;
  color: #b3b3b3;
  font-size: 10px;
  font-family: "YS Text", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 14px;
  display: block;
}

/* мобилка */
@media (max-width: 600px) {
  .reviews-widget__frame { height: 600px; }
  .aspects { flex-direction: column; }   /* плашки в столбик */
}


/* ── КАРУСЕЛЬ ОТЗЫВОВ ── */
.reviews-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2.5rem;
}
.reviews-carousel {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  flex: 1;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.reviews-carousel::-webkit-scrollbar { display: none; }

.review-slide {
    flex: 0 0 calc((100% - 36px) / 3); /* 3 карточки, 2 зазора по 18px */
    scroll-snap-align: start;
}

@media (max-width: 991px) {
    .review-slide {
        flex-basis: calc((100% - 18px) / 2); /* 2 карточки, 1 зазор */
    }
}

@media (max-width: 600px) {
    .review-slide {
        flex-basis: 100%; /* 1 карточка + небольшой край следующей видно */
    }
    .reviews-carousel-wrap { gap: 8px; }
}
/* ── БЕЙДЖ РЕЙТИНГА 2ГИС ── */
.twogis-badge {
display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(62,94,68,.15);
  border-radius: var(--radius-pill);
  background: #fff;
  text-decoration: none;
  margin: 12px auto 0;
  transition: box-shadow .2s ease, transform .2s ease;
}
.twogis-badge:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.twogis-badge__rating { font-weight: 700; font-size: 18px; color: var(--sage-dk); }
.twogis-badge__stars { display: flex; gap: 1px; }
.twogis-badge__stars .star { width: 14px; height: 14px; fill: #ffb01a; }
.twogis-badge__stars .twogis-star--empty { fill: #d7d7d7; }
.twogis-badge__count { font-size: 13px; color: #8a8a8a; }

.review-date {
  margin-left: 8px;
  font-size: var(--text-sm);
  color: var(--muted);
}

.reviews-2gis .review-text {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-style: normal;
}

.reviews-2gis .review-stars .star {
  fill: #ffb01a;
}

.reviews-2gis .review-avatar {
  color: #fff;
}

.reviews-2gis .review-text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reviews-2gis .review-text--expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.review-read-more {
    background: none;
    border: none;
    padding: 0;
    margin-top: -4px;
    color: var(--sage-dk);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
}
.review-read-more:hover { text-decoration: underline; }