/* components: компоненты страницы (разделено из reviews.css) */

/* ===== components: components ===== */
/* Отзывы (/reviews/) — новый дизайн. Префикс .rv- изолирован от темы. */


.rv-page { background: #fff; }

/* ===== components: components ===== */
/* герой примыкает к шапке без отступа темы */
.rv-page .site-content { padding-top: 0; }

/* ===== components: hero ===== */
/* ---------- hero ---------- */

.rv-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 64px;
  color: #fff;
  background: linear-gradient(135deg, var(--rv-blue-deep) 0%, var(--rv-blue) 70%, var(--color-primary-light) 100%);
}

.rv-hero::before,
.rv-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  pointer-events: none;
}

.rv-hero::before {
  width: 420px; height: 420px;
  top: -180px; right: -80px;
}

.rv-hero::after {
  width: 260px; height: 260px;
  bottom: -140px; left: -60px;
}

.rv-breadcrumbs {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
  font-size: var(--fs-14);
}

.rv-breadcrumbs a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
}

.rv-breadcrumbs a:hover { color: #fff; }

.rv-breadcrumbs span { color: rgba(255, 255, 255, .45); }

.rv-breadcrumbs b { font-weight: 500; }

.rv-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
}

.rv-hero__inner--single {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

/* ===== components: реквизиты ===== */
/* ---------- реквизиты (страница лицензий) ---------- */

.rv-docs-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 36px;
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: var(--radius-6);
  box-shadow: var(--shadow-sm);
}

.rv-docs-list {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px 28px;
  margin: 0;
}

.rv-docs-list dt {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--rv-blue);
}

.rv-docs-list dd {
  margin: 0;
  font-size: var(--fs-15);
  line-height: 1.55;
  color: var(--rv-ink);
}

.rv-hero__title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.01em;
}

.rv-hero__lead {
  margin: 0 0 26px;
  max-width: 480px;
  font-size: var(--fs-17);
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
}

.rv-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.rv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-2);
  font-size: var(--fs-15);
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.rv-btn--light {
  background: #fff;
  color: var(--rv-blue-dark);
  box-shadow: var(--shadow-md);
}

.rv-btn--light:hover {
  transform: translateY(-2px);
  background: var(--color-hover);
}

.rv-btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, .45);
  color: #fff;
}

.rv-btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.rv-hero__rating {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-7);
  padding: 26px 28px;
  text-align: center;
}

.rv-hero__score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.rv-hero__num {
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
}

.rv-hero__of {
  font-size: var(--fs-18);
  color: rgba(255, 255, 255, .7);
}

.rv-hero__rating .rv-stars { justify-content: center; }

.rv-hero__rating-text {
  margin: 10px 0 16px;
  font-size: var(--fs-14);
  line-height: 1.5;
  color: rgba(255, 255, 255, .8);
}

.rv-hero__rating-text b { color: #fff; }

.rv-hero__chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-2);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: var(--fs-13);
  text-decoration: none;
  transition: background .15s ease;
}

.rv-chip:hover { background: rgba(255, 255, 255, .24); }

.rv-chip b { font-weight: 700; }

/* ===== components: звёзды ===== */
/* ---------- звёзды ---------- */

.rv-stars {
  display: inline-flex;
  gap: 2px;
}

.rv-star { fill: #d9e0ec; }

.rv-star.is-filled { fill: var(--rv-gold); }

/* ===== components: секции ===== */
/* ---------- секции ---------- */

.rv-section { padding: 72px 0; }

.rv-section--photos { background: #fff; }

.rv-section--written { background: var(--rv-bg); }

.rv-section__head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.rv-kicker {
  margin: 0 0 10px;
  font-size: var(--fs-13);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rv-blue);
}

.rv-h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--rv-ink);
}

.rv-sub {
  margin: 0;
  font-size: var(--fs-16);
  color: var(--rv-muted);
}

/* ===== components: лайтбокс ===== */
/* ---------- лайтбокс ---------- */

.rv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  background: rgba(13, 18, 45, .55);
  backdrop-filter: blur(4px);
}

.rv-lightbox.is-open { display: flex; }

.rv-lightbox__figure {
  margin: 0;
  max-width: min(86vw, 900px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rv-lightbox__figure img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-3);
  box-shadow: var(--shadow-lg);
}

.rv-lightbox__caption {
  text-align: center;
  color: rgba(255, 255, 255, .85);
  font-size: var(--fs-14);
}

.rv-lightbox__close,
.rv-lightbox__nav {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease;
}

.rv-lightbox__close svg,
.rv-lightbox__nav svg { display: block; }

.rv-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
}

.rv-lightbox__close:hover,
.rv-lightbox__nav:hover { background: rgba(255, 255, 255, .28); }

.rv-lightbox__counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  font-size: var(--fs-14);
}

/* ===== components: title-row ===== */
/* заголовок + ссылка «все» */
.rv-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.rv-title-row .rv-h2 { margin: 0; }

.rv-title-row__all {
  flex: none;
  font-size: var(--fs-15);
  font-weight: 600;
  color: var(--rv-blue);
  text-decoration: none;
}

.rv-title-row__all em { font-style: normal; }

.rv-title-row__all:hover { text-decoration: underline; }

/* ===== components: адаптив ===== */
/* ---------- адаптив ---------- */

@media (max-width: 900px) {
  .rv-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .rv-hero { padding-bottom: 48px; }
  .rv-section { padding: 52px 0; }
}

@media (max-width: 560px) {
  .rv-hero__rating { padding: 22px 18px; }
  .rv-hero__num { font-size: 44px; }
  .rv-review-grid { grid-template-columns: 1fr; }
  .rv-photo-card__img-wrap { height: 240px; }
  .rv-docs-card { padding: 24px 20px; }
  .rv-docs-list { grid-template-columns: 1fr; gap: 4px 0; }
  .rv-docs-list dt { margin-top: 10px; }
  .rv-lightbox { padding: 12px; gap: 8px; }
  .rv-lightbox__nav { width: 38px; height: 38px; }
}


/* ===== модальное окно записи (глобальная, из header) ===== */
/* ---------- модальное окно записи ---------- */

.rv-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 18, 45, .55);
  backdrop-filter: blur(4px);
}

.rv-modal.is-open { display: flex; }

.rv-modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(640px, 100%);
  max-height: 84vh;
  padding: 34px 34px 30px;
  background: #fff;
  border-radius: var(--radius-8);
  box-shadow: var(--shadow-lg);
  animation: rv-modal-in .22s ease;
}

@keyframes rv-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.rv-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 50%;
  background: #f1f5fb;
  color: var(--color-muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.rv-modal__close:hover { background: #e3eaf5; color: var(--rv-ink, var(--color-ink)); }

.rv-modal__panel--form {
  width: min(440px, 100%);
  gap: 14px;
  padding: 34px 30px 28px;
}

.rv-modal__title {
  margin: 0;
  padding-right: 44px;
  font-size: var(--fs-22);
  font-weight: 700;
  color: var(--rv-ink, var(--color-ink));
}

.rv-modal__subtitle {
  margin: 0;
  font-size: var(--fs-14-5);
  line-height: 1.55;
  color: var(--color-muted);
}

.rv-form { display: flex; flex-direction: column; gap: 12px; }

.rv-form input[type="text"],
.rv-form input[type="tel"] {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-3);
  background: #f7f9fd;
  font: inherit;
  font-size: var(--fs-15);
  color: var(--color-ink);
  transition: border-color .15s ease, background .15s ease;
}

.rv-form input[type="text"]:focus,
.rv-form input[type="tel"]:focus {
  outline: none;
  border-color: var(--rv-blue, var(--color-primary));
  background: #fff;
}

.rv-form .agreed {
  font-size: var(--fs-12);
  line-height: 1.55;
  color: var(--color-muted-2);
}

.rv-form .agreed a { color: var(--color-primary); text-decoration: none; }

.rv-form .agreed a:hover { text-decoration: underline; }

.rv-form .rv-form__agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.rv-form .rv-form__agree input {
  margin: 2px 0 0;
  accent-color: var(--color-primary);
}

.rv-form .rv-form__agree span { flex: 1; }

@media (max-width: 640px) {
  .rv-form input[type="text"],
  .rv-form input[type="tel"] {
    border-radius: var(--radius-1);
    padding: 11px 14px;
  }

  .rv-form .wpcf7-submit {
    border-radius: var(--radius-1);
    padding: 12px;
  }
}

.rv-form .wpcf7-submit {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: var(--radius-2);
  background: var(--rv-blue, var(--color-primary));
  color: #fff;
  font: inherit;
  font-size: var(--fs-15);
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}

.rv-form .wpcf7-submit:hover { background: var(--rv-blue-dark, var(--color-primary-dark)); }

.rv-form .wpcf7-response-output {
  margin: 4px 0 0;
  font-size: var(--fs-14);
  line-height: 1.5;
  color: var(--rv-blue, var(--color-primary));
}


/* ===== карточка отзыва (главная + /reviews/) ===== */
.rv-review-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 26px;
  background: #fff;
  border-radius: var(--radius-6);
  border: 1px solid var(--rv-line);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}

.rv-review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rv-shadow);
}

.rv-review-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rv-review-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
  min-width: 0;
}

.rv-review-card__name {
  font-weight: 600;
  color: var(--rv-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rv-review-card__date {
  font-size: var(--fs-13);
  color: var(--rv-muted);
}

.rv-avatar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  font-size: var(--fs-19);
  font-weight: 700;
}

.rv-avatar--1 { background: linear-gradient(135deg, var(--color-primary), #2f8fe0); }
.rv-avatar--2 { background: linear-gradient(135deg, var(--color-primary-deep), var(--color-primary)); }
.rv-avatar--3 { background: linear-gradient(135deg, #0e9f8a, #35c3ad); }
.rv-avatar--4 { background: linear-gradient(135deg, #eb661f, #f79b4b); }
.rv-avatar--5 { background: linear-gradient(135deg, #7a4fd0, #a583e8); }



/* у всех синих кнопок текст при ховере остаётся белым (шаблон — главная кнопка hero) */
/* у СИНИХ кнопок текст при ховере остаётся белым;
   у БЕЛЫХ кнопок (rv-btn--light, футер CTA, контурная hero) текст свой и не меняется */
.rv-btn:hover:not(.rv-btn--light),
.rv-hero1__btn:hover:not(.rv-hero1__btn--border),
.rv-mini-card--all:hover,
.rv-doctor-card__btn:hover,
.rv-form__submit:hover {
  color: #fff;
}
