/* Отзывы (16.10.2026): бегущая лента на главной и страница «Отзывы».
   Карточка одна на оба места — тёмная, с крупной кавычкой и буквой-аватаркой. */

/* ===== КАРТОЧКА ===== */
.отзыв-карточка {
    position: relative;
    margin: 0;
    padding: 22px 22px 18px;
    border-radius: 18px;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(99, 102, 241, .14), transparent 60%),
        var(--фон-карточки);
    border: 1px solid rgba(255, 255, 255, .07);
    display: flex; flex-direction: column; gap: 14px;
}
/* Крупная кавычка — знак отзыва, сразу понятно, что это чьи-то слова */
.отзыв-карточка::before {
    content: "\201C";
    position: absolute; right: 18px; top: 2px;
    font-size: 72px; line-height: 1; font-family: Georgia, serif;
    color: rgba(0, 255, 136, .22);
}
.отзыв-карточка img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.отзыв-карточка blockquote { margin: 0; font-size: 15px; line-height: 1.6; color: #e9e9f2; white-space: pre-line; }
/* Имя прижато к низу: в ленте карточки одной высоты, и у короткого отзыва не висит пустота под подписью */
.отзыв-карточка figcaption { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; margin-top: auto; }
.отзыв-буква {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; flex: none;
    font-size: 15px; color: #06210f;
    background: linear-gradient(135deg, var(--салатовый), #22d3c5);
}

/* ===== ГЛАВНАЯ: «Разобраться и вдохновиться» (16.10.2026) — плитки инструкций и отзывов ===== */
.главная-помощь { margin: 46px 0 10px; }
.главная-помощь h2 { font-size: 24px; margin-bottom: 18px; }
.помощь-плитки { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.помощь-плитка {
    display: flex; flex-direction: column; gap: 10px;
    padding: 24px;
    border-radius: 20px;
    background:
        radial-gradient(110% 120% at 0% 0%, rgba(99, 102, 241, .18), transparent 60%),
        radial-gradient(90% 120% at 100% 100%, rgba(0, 255, 136, .08), transparent 60%),
        var(--фон-карточки);
    border: 1px solid rgba(255, 255, 255, .07);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.помощь-плитка:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 136, .5);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 30px rgba(0, 255, 136, .14);
}
.помощь-значок {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center;
    background: rgba(99, 102, 241, .18);
}
.помощь-значок svg { width: 28px; height: 28px; fill: none; stroke: var(--салатовый); stroke-width: 1.6; stroke-linejoin: round; }
.помощь-плитка b { font-size: 20px; }
.помощь-плитка span { color: var(--текст-тусклый); font-size: 15px; line-height: 1.55; }
.помощь-плитка em { margin-top: auto; padding-top: 6px; font-style: normal; font-weight: 700; color: var(--салатовый); }
.помощь-нейроша { margin-top: 16px; color: var(--текст-тусклый); font-size: 14px; text-align: center; }

/* ===== ЛЕНТА НА ГЛАВНОЙ ===== */
.отзывы-блок { margin: 46px 0 10px; }
.отзывы-шапка { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.отзывы-шапка h2 { font-size: 24px; }
.отзывы-все { color: var(--салатовый); font-weight: 600; }
.отзывы-все:hover { text-decoration: underline; }

.отзывы-лента {
    overflow: hidden;
    /* Края растворяются: лента выплывает из темноты и уходит в неё */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.отзывы-дорожка {
    display: flex; gap: 18px; width: max-content;
    padding: 6px 0;
    /* Скорость не зависит от числа отзывов: ~9 секунд на карточку */
    animation: отзывы-бег calc(var(--карточек, 6) * 9s) linear infinite;
}
.отзывы-лента:hover .отзывы-дорожка { animation-play-state: paused; }
.отзывы-дорожка .отзыв-карточка { width: 320px; flex: none; }
.отзывы-дорожка .отзыв-карточка img { aspect-ratio: 16 / 10; }
/* Мало отзывов (меньше ЛЕНТА_БЕЖИТ_ОТ): без полосы прокрутки (не понравилась, 16.10.2026) —
   лента листается сама по карточке и стрелками по бокам; пальцем на телефоне тоже */
.отзывы-окно { position: relative; }
.отзывы-лента.стоит {
    overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
    -webkit-mask-image: none; mask-image: none;
    scrollbar-width: none;                               /* Firefox */
}
.отзывы-лента.стоит::-webkit-scrollbar { display: none; }   /* Chrome, Safari, Яндекс */
.отзывы-лента.стоит .отзывы-дорожка { animation: none; }
.отзывы-лента.стоит .отзыв-карточка { scroll-snap-align: start; }
.отзывы-стрелка {
    position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .15); cursor: pointer;
    background: rgba(20, 20, 26, .85); color: #fff; font-size: 28px; line-height: 1;
    display: grid; place-items: center; backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
    transition: background .2s, border-color .2s;
}
.отзывы-стрелка:hover { background: var(--лиловый); border-color: var(--лиловый); }
.отзывы-стрелка.влево { left: -14px; }
.отзывы-стрелка.вправо { right: -14px; }
.отзывы-окно.всё-влезло .отзывы-стрелка { display: none; }
/* Телефон: стрелки внутри ленты — снаружи они выталкивали страницу вбок */
@media (max-width: 720px) {
    .отзывы-стрелка.влево { left: 4px; }
    .отзывы-стрелка.вправо { right: 4px; }
}

/* Картинка отзыва целиком (16.10.2026): обрезка съедала края снимка. Вписываем без обрезки,
   а поля по краям заполняет тот же снимок, размытый и притемнённый — полосы не выглядят пустыми */
.отзыв-фото {
    position: relative; overflow: hidden;
    aspect-ratio: 4 / 3; border-radius: 12px; background: #111;
}
.отзыв-фото::before {
    content: ""; position: absolute; inset: -20px;
    background: var(--фон) center / cover no-repeat;
    filter: blur(18px) brightness(.55);
}
.отзыв-фото img {
    position: relative; width: 100%; height: 100%;
    object-fit: contain !important; border-radius: 0 !important; aspect-ratio: auto !important;
}
.отзывы-дорожка .отзыв-фото { aspect-ratio: 16 / 10; }

@keyframes отзывы-бег { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 9px)); } }

/* Телефон и «меньше движения»: лента не едет сама, а листается пальцем */
@media (max-width: 720px), (prefers-reduced-motion: reduce) {
    .отзывы-лента { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x mandatory; }
    .отзывы-дорожка { animation: none; }
    .отзывы-дорожка .отзыв-карточка { width: 280px; scroll-snap-align: start; }
    .отзывы-дорожка .отзыв-карточка[aria-hidden="true"] { display: none; }
}

/* ===== СТРАНИЦА «ОТЗЫВЫ» ===== */
.отзывы-заголовок { text-align: center; max-width: 720px; margin: 12px auto 34px; }
.отзывы-заголовок h1 {
    font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -1px; margin-bottom: 14px;
    background: linear-gradient(100deg, #6c7bff 0%, #22d3c5 45%, var(--салатовый) 70%, #e9fff4 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.отзывы-заголовок .ведущий { color: var(--текст-тусклый); font-size: 17px; margin-bottom: 18px; }

/* Ровная сетка, все карточки одной высоты (просьба Натальи 16.10.2026; было «кирпичами»).
   Текст ограничен 300 знаками, строки сетки равны самой высокой карточке, а у отзыва без
   картинки её место держит пустая рамка — иначе он был бы вдвое ниже соседей */
.отзывы-сетка {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 1fr;
    gap: 18px;
}
.отзывы-сетка .отзыв-карточка:not(:has(.отзыв-фото))::after {
    /* Пустая рамка скучала — в ней крупная кавычка, знак отзыва */
    content: "\201C"; order: -1; aspect-ratio: 4 / 3; border-radius: 12px;
    display: grid; place-items: center;
    font: 140px/1 Georgia, serif; color: rgba(0, 255, 136, .28);
    background: radial-gradient(80% 80% at 50% 40%, rgba(99, 102, 241, .18), transparent 70%), #17171d;
}

/* Выбор картинки к отзыву: свои генерации плитками, выбранная — с зелёной рамкой */
.выбор-картинки { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--текст-тусклый); }
.мои-генерации { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.плитка-генерации {
    position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; cursor: pointer;
    border: 2px solid var(--граница); background: #141414;
    display: grid; place-items: center; text-align: center; padding: 0;
}
.плитка-генерации input { position: absolute; opacity: 0; pointer-events: none; }
.плитка-генерации img { width: 100%; height: 100%; object-fit: cover; display: block; }
.плитка-генерации.без-картинки span { font-size: 12px; padding: 6px; }
.плитка-генерации:has(input:checked) { border-color: var(--салатовый); box-shadow: 0 0 14px rgba(0, 255, 136, .35); }
.счётчик-знаков { align-self: flex-end; }
.отзывы-пусто { text-align: center; color: var(--текст-тусклый); padding: 40px 0; }

.отзывы-форма {
    margin: 40px auto 0; max-width: 640px;
    padding: 26px; border-radius: 20px;
    background: var(--фон-карточки); border: 1px solid var(--граница);
}
.отзывы-форма h2 { font-size: 22px; margin-bottom: 8px; }
.отзывы-форма form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.отзывы-форма label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--текст-тусклый); }
.отзывы-форма input[type=text], .отзывы-форма textarea {
    padding: 10px 12px; border-radius: 12px; border: 1px solid var(--граница);
    background: #141414; color: var(--текст); font: inherit;
}
.отзывы-форма textarea { resize: vertical; }
.отзывы-форма input[type=file] { color: var(--текст-тусклый); font: inherit; font-size: 13px; }
/* Выбор файла в стиле сайта, не системная серая кнопка */
.отзывы-форма input[type=file]::file-selector-button {
    margin-right: 10px; padding: 8px 14px; border-radius: 10px;
    border: 1px solid var(--лиловый); background: rgba(99, 102, 241, .14);
    color: var(--текст); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.отзывы-форма button { align-self: flex-start; }
.отзывы-форма a { color: var(--салатовый); }

/* Бонус за отзыв (16.10.2026): заметная зелёная строка над формой */
.отзывы-бонус {
    margin: 6px 0 14px; padding: 12px 16px; border-radius: 12px;
    background: rgba(0, 255, 136, .08); border: 1px solid rgba(0, 255, 136, .35);
    color: #d9ffe9; font-weight: 600;
}
/* Свои отзывы на модерации — видит только автор */
.на-модерации {
    display: flex; flex-direction: column; gap: 8px; margin: 6px 0 16px; padding: 14px 16px;
    border-radius: 12px; border: 1px dashed rgba(99, 102, 241, .6); background: rgba(99, 102, 241, .07);
}
.на-модерации-отзыв { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.на-модерации-отзыв img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; }
