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

/* ===== home: hero1 ===== */
/* ---------- главная: hero 1 в 1 с kontinent ---------- */

.rv-hero1 {
  background-color: rgba(22, 171, 223, .10);
  background-image: url(/static/img/home/fon-main.svg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border-radius: 0 0 24px 24px;
  min-height: calc(100vh - 197px);
}

.rv-hero1__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
}

.rv-hero1__flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 24px 0 28px;
}

.rv-hero1__left { flex: 1 1 58%; min-width: 300px; padding-right: 20px; }

.rv-hero1__title {
  margin: 0 0 18px;
  font-size: clamp(27px, 3.4vw, 43px);
  line-height: 1.15;
  font-weight: 700;
  color: #262F33;
}

.rv-hero1__excerpt {
  margin-bottom: 36px;
  font-size: var(--fs-18);
  color: #686E71;
}

.rv-hero1__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 580px;
}

.rv-hero1__btns > * { flex: 0 1 auto; min-width: 240px; }

.rv-hero1__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 25px;
  border-radius: var(--radius-2);
  font: inherit;
  font-size: var(--fs-15);
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.rv-hero1__btn--main {
  border: 0;
  background: var(--color-primary);
  color: #fff;
}

.rv-hero1__btn--main:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

.rv-hero1__btn--border {
  border: 1px solid #16ABDF;
  background: transparent;
  color: #16ABDF;
}

.rv-hero1__btn--border:hover { background: rgba(22, 171, 223, .1); }

.rv-hero1__right {
  flex: 1 1 38%;
  min-width: 280px;
  height: 100%;
  min-height: 420px;
  background: url(/static/img/home/hero-patient.png) center bottom / contain no-repeat;
}

.rv-hero1__services {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.rv-hero1__cards {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.rv-hero1__item {
  display: flex;
  height: 100%;
  padding: 10px;
  background: #fff;
  border: 1px solid #DBDEE3;
  border-radius: var(--radius-7);
  text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease;
}

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

.rv-hero1__item-img {
  flex: none;
  width: 42%;
  margin-right: 16px;
  border-radius: var(--radius-2);
  background-color: #F5F6F8;
  background-position: center center;
  background-size: cover;
}

.rv-hero1__item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rv-hero1__item-icons {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.rv-hero1__item-icons svg:last-child { margin-left: auto; }

.rv-hero1__item-title {
  font-size: var(--fs-16);
  line-height: 1.2;
  font-weight: 500;
  color: #262F33;
}

.rv-hero1__all {
  flex: none;
  width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin-left: 12px;
  border-radius: var(--radius-2);
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: var(--fs-16);
  line-height: 1.2;
  transition: background var(--transition), transform .18s ease;
}

.rv-hero1__all:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
  color: #fff;
}

@media (max-width: 1100px) {
  .rv-hero1 { height: auto; }
  .rv-hero1__services { flex-wrap: wrap; }
  .rv-hero1__cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .rv-hero1 { min-height: 0; border-radius: 0 0 18px 18px; }
  .rv-hero1__flex { flex-direction: column; align-items: stretch; padding: 28px 0; }
  .rv-hero1__left { padding-right: 0; }
  .rv-hero1__right { min-height: 320px; width: 100%; }
  .rv-hero1__cards { grid-template-columns: repeat(2, 1fr); }

  /* мобильная карточка услуги: фото сверху, текст снизу */
  .rv-hero1__item { flex-direction: column; }
  .rv-hero1__item-img {
    width: 100%;
    height: 110px;
    margin-right: 0;
    margin-bottom: 10px;
  }
  .rv-hero1__item-icons svg:first-child { width: 40px; height: 40px; }
  .rv-hero1__item-icons svg:last-child { width: 38px; height: 38px; }

  .rv-hero1__all { width: 100%; flex-direction: row; justify-content: center; gap: 12px; margin-left: 0; }
  .rv-hero1__all-text br { display: none; }
}

/* ===== home: сторис ===== */
/* сторис на главной */
.rv-shorts-section { padding-top: 8px; }

.rv-shorts {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}

.rv-shorts::-webkit-scrollbar { display: none; }

.rv-short {
  flex: none;
  width: 132px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.rv-short__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: var(--rv-bg);
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(29, 86, 199, .25);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.rv-short:hover .rv-short__img { border-color: var(--rv-blue); }

.rv-short:hover { background: none; color: inherit; }

.rv-short:hover .rv-short__img {
  transform: scale(1.05);
}

.rv-short__name { font-size: var(--fs-14); color: var(--rv-ink); }

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

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

.rv-short-modal__panel {
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  max-height: 88vh;
  background: #fff;
  border-radius: var(--radius-8);
  overflow: hidden;
  animation: rv-modal-in .22s ease;
}

.rv-short-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--rv-line);
}

.rv-short-modal__title { font-size: var(--fs-19); font-weight: 700; color: var(--rv-ink); }

.rv-short-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--color-surface-alt);
  color: var(--color-muted);
  cursor: pointer;
}

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

.rv-short-modal__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px 22px 26px;
  overflow-y: auto;
}

.rv-short-modal__grid img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-3);
}

@media (max-width: 760px) {
  .rv-shorts { justify-content: flex-start; }

  .rv-short { width: 108px; }
  .rv-short-modal { padding: 0; align-items: flex-end; }
  .rv-short-modal__panel { max-height: 92dvh; border-radius: 18px 18px 0 0; }
  .rv-short-modal__grid { grid-template-columns: repeat(2, 1fr); }
  .rv-short-modal__grid img { height: 150px; }
}

/* ===== home: акции ===== */
/* акции на главной */
.rv-stock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rv-stock-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 20px;
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: var(--radius-7);
  transition: transform .18s ease, box-shadow .18s ease;
}

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

.rv-stock-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  margin-bottom: 8px;
  border-radius: var(--radius-5);
  overflow: hidden;
  background: var(--color-surface-soft);
}

.rv-stock-card__img img { max-width: 100%; max-height: 100%; object-fit: cover; }

.rv-stock-card__title { margin: 0 0 2px; font-size: var(--fs-18); font-weight: 600; color: var(--rv-ink); }

.rv-stock-card__text { margin: 0 0 8px; font-size: var(--fs-14); line-height: 1.55; color: var(--rv-muted); flex: 1; }

.rv-stock-card__more { font-size: var(--fs-14); font-weight: 600; color: var(--rv-blue); text-decoration: none; }

.rv-stock-card__more:hover { text-decoration: underline; }

.rv-stock-card__more em { font-style: normal; }

@media (max-width: 1000px) { .rv-stock-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 640px) { .rv-stock-grid { grid-template-columns: 1fr; } }

/* ===== home: преимущества ===== */
/* преимущества */
.rv-adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rv-adv-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 190px;
  padding: 26px;
  background: var(--rv-bg);
  border-radius: var(--radius-7);
}

.rv-adv-card__title { font-size: var(--fs-17); line-height: 1.4; font-weight: 600; color: var(--rv-ink); }

.rv-adv-card p { margin: 0; font-size: var(--fs-14-5); line-height: 1.6; color: var(--rv-muted); }

.rv-adv-card__bottom { display: flex; align-items: flex-end; justify-content: space-between; }

.rv-adv-card__bottom svg { width: 44px; height: 44px; color: var(--rv-blue); }

.rv-adv-card__num { font-size: var(--fs-14); font-weight: 600; color: var(--rv-muted); }

.rv-adv-card--main {
  grid-row: span 2;
  justify-content: flex-start;
  background: linear-gradient(135deg, var(--rv-blue-deep) 0%, var(--rv-blue) 100%);
}

.rv-adv-card--main .rv-adv-card__title { color: #fff; font-size: var(--fs-22); }

.rv-adv-card--main p { color: rgba(255, 255, 255, .8); }

.rv-adv-card--main .rv-adv-card__num { color: rgba(255, 255, 255, .6); font-size: var(--fs-16); }

/* ===== home: сценарии ===== */
/* сценарии услуг */
.rv-scen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rv-scen-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: var(--radius-7);
}

.rv-scen-card__title { margin: 0 0 2px; font-size: var(--fs-18); font-weight: 600; color: var(--rv-ink); }

.rv-scen-card__sub { margin: 0 0 12px; font-size: var(--fs-14); color: var(--rv-muted); }

.rv-scen-card__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: var(--fs-14-5);
  line-height: 1.45;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px dashed var(--rv-line);
  transition: color .12s ease;
}

.rv-scen-card__link em { color: var(--rv-blue); font-style: normal; }

.rv-scen-card__link:hover span { color: var(--rv-blue); }

/* ===== home: о клинике ===== */
/* о клинике */
.rv-about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px;
  align-items: center;
}

.rv-about__photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-7); }

.rv-about__text p { margin: 0 0 16px; font-size: var(--fs-15-5); line-height: 1.7; color: var(--color-text); }

/* ===== home: врачи на главной ===== */
/* врачи на главной — компактные карточки */
.rv-home-doctors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 300px));
  gap: 24px;
}

.rv-home-doctors .rv-doctor-card__btn { display: none; }

/* ===== home: отзывы на главной ===== */
/* отзывы на главной */
.rv-home-reviews {
  display: grid;
  grid-template-columns: 300px repeat(3, 1fr);
  gap: 24px;
}

.rv-home-photo { cursor: zoom-in; }

.rv-home-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-2);
}

.rv-home-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--rv-line);
  border-radius: var(--radius-7);
}

.rv-home-rating__num { font-size: 54px; font-weight: 700; line-height: 1; color: var(--rv-ink); }

.rv-home-rating__stars span {
  color: var(--rv-gold);
  font-size: var(--fs-22);
  letter-spacing: 2px;
}

.rv-home-rating p { margin: 0 0 14px; font-size: var(--fs-14); line-height: 1.5; color: var(--rv-muted); }

.rv-home-doctors .rv-doctor-card__body { padding: 18px; gap: 6px; }

.rv-home-doctors .rv-doctor-card__name { font-size: var(--fs-15-5); }

.rv-home-doctors .rv-doctor-card__spec { font-size: var(--fs-13-5); }

.rv-home-review__text {
  margin: 0;
  font-size: var(--fs-14-5);
  line-height: 1.6;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

/* ===== home: лицензии на главной ===== */
/* лицензии на главной */
.rv-home-licenses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.rv-home-licenses .rv-doc-card {
  margin: 0;
  padding: 8px;
  border-radius: var(--radius-3);
  cursor: zoom-in;
}

.rv-home-licenses .rv-doc-card img { border-radius: 6px; }

/* CTA */
.rv-home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 44px 48px;
  border-radius: var(--radius-9);
  background: linear-gradient(120deg, var(--rv-blue-deep) 0%, var(--rv-blue) 100%);
  color: #fff;
}

.rv-home-cta__text h2 { margin: 0 0 10px; font-size: var(--fs-30); line-height: 1.2; font-weight: 700; color: #fff; }

.rv-home-cta__text p { margin: 0; font-size: var(--fs-16); line-height: 1.55; color: rgba(255, 255, 255, .82); }

.rv-home-cta__btn { flex: none; }

@media (max-width: 1100px) {
  .rv-home-hero__cards { grid-template-columns: repeat(3, 1fr); }
  .rv-adv-grid { grid-template-columns: repeat(2, 1fr); }
  .rv-home-reviews { grid-template-columns: repeat(2, 1fr); }
  .rv-home-licenses { grid-template-columns: repeat(3, 1fr); }
  .rv-scen-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .rv-home-hero { padding-top: 44px; }
  .rv-home-hero__cards { grid-template-columns: repeat(2, 1fr); }
  .rv-scen-grid { grid-template-columns: 1fr; }
  .rv-adv-grid { grid-template-columns: repeat(2, 1fr); }
  .rv-adv-card--main { grid-column: span 2; grid-row: auto; }
  .rv-about { grid-template-columns: 1fr; gap: 24px; }
  .rv-home-reviews { grid-template-columns: repeat(2, 1fr); }
  .rv-home-rating { grid-column: span 2; }
  .rv-home-licenses { grid-template-columns: repeat(2, 1fr); }
  .rv-home-cta { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .rv-title-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}
