/* === Описание секции === */
.section-description {
  max-width: 860px;
  margin: 0 auto 18px;
  font-size: 17px;
  line-height: 1.7;
  color: #444;
  text-align: center;
}

/* === Видео 16:9 (YouTube embed) === */
.ratio {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #000;
}

.ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* === Плейсхолдер видео (до публикации на YouTube) === */
.video-embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  height: 100%;
  padding: 30px 20px;
  background: #f0f4fb;
  border: 1px dashed #b9c8e0;
  border-radius: 12px;
  text-align: center;
}

.video-embed-placeholder-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: #2e5aac;
}

.video-embed-placeholder-text {
  margin: 0;
  font-size: 14px;
  color: #666;
}

/* === Подробный отзыв === */
.single-feedback {
  display: flex;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  margin: 40px auto;
}

/* Фото — 1/3 */
.single-feedback-img {
  flex: 0 0 33.333%;
  overflow: hidden;
  background: #f5f5f5;
}

.single-feedback-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Видео-отзыв — плеер 16:9 сверху, контент снизу */
.single-feedback:has(.single-feedback-video) {
  flex-direction: column;
}

.single-feedback-video {
  flex: 0 0 100%;
  padding: 20px 20px 0;
  width: 100%;
}

.single-feedback:has(.single-feedback-video) .single-feedback-content {
  flex: 0 0 auto;
}

/* Контент — 2/3 */
.single-feedback-content {
  flex: 0 0 66.666%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.single-feedback-text {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #000;
}

.single-feedback-meta {
  font-size: 14px;
  color: #555;
}

/* Номер видео-отзыва */
.single-feedback-num {
  display: inline-block;
  vertical-align: middle;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: #9a3412;
  border-radius: 6px;
  padding: 3px 8px;
  margin-right: 10px;
}

@media (max-width: 420px) {
  .single-feedback-num {
    display: block;
    margin: 0 0 6px;
  }
}

/* === Автор отзыва === */
.single-feedback-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}


.single-feedback-content a {
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: #0052c9;
    transition: color 0.3s;
}

/* Псевдоэлемент применяется только если внутри ссылки НЕТ <img> */
.single-feedback-content a:not(:has(img)):after {
    display: block;
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #F96D00;
    content: "";
    transition: width 0.3s ease-out;
}

.single-feedback-content a:hover,
.single-feedback-content a:focus {
    color: #0056b3;
}

.single-feedback-content a:hover:not(:has(img)):after,
.single-feedback-content a:focus:not(:has(img)):after {
    width: 100%;
}



.single-feedback-author-img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
}

.single-feedback-author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-feedback-author-info p {
  margin: 0;
  line-height: 1.4;
}

/* === Связанное направление в отзыве === */
.single-feedback-related {
  margin: 8px 0 0;
  font-size: 14px;
}

.single-feedback-related a {
  color: #0052c9;
  text-decoration: none;
}

/* === Темы / призыв к действию (оглавление отзывов) === */
.reviews-topics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 860px;
  margin: 10px auto 0;
}

.reviews-topic {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.reviews-topic:hover,
.reviews-topic:focus {
  border-color: #F96D00;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.reviews-topic__title {
  font-size: 17px;
  font-weight: 700;
  color: #002a80;
}

.reviews-topic__text {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

@media (min-width: 768px) {
  .reviews-topics {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Адаптив */
@media (max-width: 768px) {
  .single-feedback {
    flex-direction: column;
  }

  .single-feedback-img,
  .single-feedback-content {
    flex: 0 0 100%;
  }

  .single-feedback-img {
    height: 220px;
  }
}

