/* Страница отзывов: шапка и подвал как на uskovalife.ru (Тильда, меню T228, подвал T144) */
@font-face { font-family:'TildaSans'; font-style:normal; font-weight:250 1000; font-display:swap; src:url('TildaSans-VF.woff2') format('woff2'); }
:root { --ink:#000; --text:#090909; --muted:#6b6b6b; --line:#e5e5e5; --accent:#ff9933; --foot:#333; --bg:#fff; }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--ink); font:300 18px/1.55 'TildaSans', Arial, sans-serif; }
a { color:inherit; }

/* ---------- шапка ---------- */
.sh { position:sticky; top:0; z-index:10; background:#fff; }
.sh-in { max-width:1200px; height:90px; margin:0 auto; padding:0 20px; display:flex; align-items:center; gap:20px; }
.sh-logo { flex:none; display:block; line-height:0; }
.sh-logo img { width:200px; height:auto; }
.sh-right { flex:1; display:flex; justify-content:flex-end; align-items:center; gap:30px; }
.sh-nav { display:flex; align-items:center; gap:30px; }
.sh-top { font-weight:600; font-size:16px; color:var(--text); text-decoration:none; cursor:pointer; white-space:nowrap; padding:10px 0; }
.sh-top:hover, .sh-top:focus-visible { opacity:.7; outline:none; }
.sh-top.is-active { color:var(--accent); }
.sh-dd { position:relative; }
.sh-sub { position:absolute; top:100%; left:50%; transform:translate(-50%, 8px); min-width:150px; max-width:200px; padding:15px 20px; background:#fff;
  box-shadow:0 0 10px rgba(0,0,0,.2); display:none; flex-direction:column; align-items:center; gap:2px; z-index:5; }
.sh-sub::before { content:""; position:absolute; left:0; right:0; top:-14px; height:14px; } /* мостик, чтобы меню не закрывалось */
.sh-sub a { display:block; padding:5px 0; font-weight:600; font-size:15px; line-height:1.25; text-align:center; text-decoration:none; color:var(--text); }
.sh-sub a:hover { opacity:.6; }
.sh-dd:hover .sh-sub, .sh-dd:focus-within .sh-sub { display:flex; }
.sh-soc { display:flex; gap:15px; }
.sh-soc a { display:block; width:30px; height:30px; line-height:0; }
.sh-soc a:hover { opacity:.8; }
.sh-soc svg { width:30px; height:30px; }
.sh-toggle { position:absolute; opacity:0; pointer-events:none; }
.sh-burger { display:none; }

@media (max-width:980px) {
  .sh-in { height:auto; min-height:80px; flex-wrap:wrap; padding:5px 20px; justify-content:space-between; }
  .sh-logo img { width:200px; }
  .sh-burger { display:block; position:relative; width:28px; height:20px; cursor:pointer; }
  .sh-burger i { position:absolute; left:0; right:0; height:3px; background:var(--accent); transition:transform .25s, opacity .25s; }
  .sh-burger i:nth-child(1) { top:0; } .sh-burger i:nth-child(2) { top:8px; } .sh-burger i:nth-child(3) { top:16px; }
  .sh-toggle:checked ~ .sh-burger i:nth-child(1) { transform:translateY(8px) rotate(45deg); }
  .sh-toggle:checked ~ .sh-burger i:nth-child(2) { opacity:0; }
  .sh-toggle:checked ~ .sh-burger i:nth-child(3) { transform:translateY(-8px) rotate(-45deg); }
  .sh-toggle:focus-visible ~ .sh-burger { outline:2px solid var(--accent); outline-offset:4px; }
  .sh-right { display:none; flex-basis:100%; flex-direction:column; align-items:flex-start; gap:18px; padding:10px 0 24px; max-height:calc(100vh - 80px); overflow:auto; }
  .sh-toggle:checked ~ .sh-right { display:flex; }
  .sh-nav { flex-direction:column; align-items:flex-start; gap:10px; width:100%; }
  .sh-top { font-size:18px; padding:4px 0; }
  .sh-sub { position:static; transform:none; display:flex; align-items:flex-start; box-shadow:none; padding:2px 0 8px 16px; max-width:none; }
  .sh-sub::before { display:none; }
  .sh-sub a { text-align:left; font-size:16px; font-weight:500; }
}

/* ---------- содержимое ---------- */
.rv { max-width:760px; margin:0 auto; padding:40px 20px 90px; }
.rv-back { display:inline-block; margin-bottom:24px; font-size:16px; font-weight:500; color:var(--muted); text-decoration:none; }
.rv-back:hover { color:var(--ink); }
.rv-head { display:flex; gap:32px; align-items:flex-start; margin-bottom:36px; }
.rv-cover { flex:none; width:150px; height:auto; border-radius:4px; box-shadow:0 10px 30px rgba(0,0,0,.15); }
h1 { font-weight:600; font-size:36px; line-height:1.23; margin:0 0 8px; text-wrap:balance; }
h2 { font-weight:600; font-size:28px; line-height:1.23; margin:0 0 24px; }
.rv-sub { margin:0 0 14px; font-weight:500; color:var(--muted); }
.rv-lead { margin:0; }

.rv-form { display:flex; flex-direction:column; gap:22px; padding:32px; border:1px solid var(--line); border-radius:15px; }
.rv-f { display:flex; flex-direction:column; gap:8px; font-weight:600; font-size:16px; border:0; margin:0; padding:0; min-width:0; }
.rv-f legend { padding:0; margin-bottom:8px; }
.rv-hint { font-weight:300; font-size:14px; color:var(--muted); }
input[type=text], select, textarea { font:400 17px/1.45 'TildaSans', Arial, sans-serif; color:var(--ink); background:#fff; width:100%;
  padding:12px 14px; border:1px solid #c9c9c9; border-radius:8px; }
textarea { resize:vertical; min-height:150px; }
input[type=text]:focus, select:focus, textarea:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(255,153,51,.25); }
.rv-stars { display:inline-flex; flex-direction:row-reverse; justify-content:flex-end; gap:4px; }
.rv-stars input { position:absolute; opacity:0; width:1px; height:1px; }
.rv-stars label { font-size:38px; line-height:1; color:#d6d6d6; cursor:pointer; transition:color .15s, transform .15s; }
.rv-stars label:hover, .rv-stars label:hover ~ label, .rv-stars input:checked ~ label { color:var(--accent); }
.rv-stars label:active { transform:scale(.9); }
.rv-stars input:focus-visible + label { outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }
.rv-check { display:flex; gap:12px; align-items:flex-start; font-size:15px; line-height:1.45; cursor:pointer; }
.rv-check input { flex:none; width:20px; height:20px; margin:1px 0 0; accent-color:var(--accent); }
.rv-check a { text-decoration:underline; }
.rv-btn { align-self:flex-start; font:600 16px/1 'TildaSans', Arial, sans-serif; color:#000; background:var(--accent); border:2px solid var(--accent);
  border-radius:8px; height:60px; padding:0 40px; cursor:pointer; transition:background .2s, color .2s; }
.rv-btn:hover { background:#fff; }
.rv-btn:focus-visible { outline:2px solid #000; outline-offset:3px; }
.rv-err { margin:0; padding:12px 16px; border-radius:8px; background:#fff1f0; color:#a8071a; font-weight:500; }
.rv-done { padding:28px 32px; border-radius:15px; background:#fff6ec; border:1px solid #ffd9b0; }
.rv-done b { font-size:22px; font-weight:600; }
.rv-done p { margin:8px 0 0; }
.rv-hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.rv-empty { color:var(--muted); max-width:760px; margin:0 auto; }

/* ---------- отзывы: как виджет Ozon/WB на uskovalife.ru ---------- */
.rvw { max-width:1200px; margin:0 auto; padding:24px 20px 72px; }
.rvw-title { font-weight:500; font-size:32px; line-height:1.25; text-align:center; margin:0 0 40px; text-wrap:balance; }
.rvw-panel { background:#f6f6f6; padding:16px 16px 14px; margin-bottom:28px; }
.rvw-tabs { display:flex; flex-wrap:wrap; gap:8px 6px; margin-bottom:12px; }
.rvw-tab { display:inline-flex; align-items:center; gap:9px; height:42px; padding:0 14px; border-radius:4px; text-decoration:none; color:#212121; font-size:20px; }
.rvw-tab span { font-weight:700; }
.rvw-tab b { font-size:17px; font-weight:700; }
.rvw-tab img { height:22px; width:auto; display:block; }
.rvw-tab-ozon img { height:20px; }
.rvw-tab:hover { background:#ececec; }
.rvw-tab.is-on { background:#e7e7e7; }
.rvw-sum { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; padding:0 14px; }
.rvw-avg { font-size:21px; font-weight:400; letter-spacing:.3px; }
.rvw-count { font-size:21px; font-weight:400; color:#6b6b6b; }
.rvw-btn { margin-left:auto; display:inline-block; padding:5px 20px; font-size:16px; line-height:24px; color:#212121; text-decoration:none; background:#fff; border-radius:4px;
  box-shadow:0 2px 2px rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.12), 0 1px 5px rgba(0,0,0,.2); transition:box-shadow .2s; }
.rvw-btn:hover, .rvw-more:hover { box-shadow:0 4px 8px rgba(0,0,0,.16), 0 1px 3px rgba(0,0,0,.2); }

.rv-st { display:inline-flex; gap:2px; vertical-align:middle; }
.rv-st svg { width:18px; height:18px; }
.rv-st svg.on { fill:#ffc107; }
.rv-st svg.off { fill:#d9d9d9; }
.rv-st-big svg { width:24px; height:24px; }

.rv-toggle { position:absolute; opacity:0; pointer-events:none; width:1px; height:1px; }
.rvw-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:20px; align-items:start; }
.rv-card { position:relative; display:flex; flex-direction:column; background:#fff; color:#212121; border-radius:10px; padding:15px; min-height:254px;
  box-shadow:0 2px 2px rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.12), 0 1px 5px rgba(0,0,0,.2); }
.rvw-grid .rv-card:nth-child(n+10) { display:none; }
#rvmore:checked ~ .rvw-grid .rv-card { display:flex; }
#rvmore:checked ~ .rvw-more { display:none; }
.rv-card-head { display:flex; gap:10px; align-items:flex-start; margin-bottom:14px; }
.rv-ava { flex:none; width:50px; height:50px; margin-right:10px; border-radius:50%;
  background:url("data:image/svg+xml,%3Csvg viewBox='0 0 123.96 124.31' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform='translate(-54.068 -77.525)' fill='%23b3b3b3'%3E%3Ccircle cx='116.18' cy='112.13' r='34.607'/%3E%3Cpath d='m54.068 201.84h123.96v-7.6073c-3.3235-20.13-29.184-36.953-61.047-37.012-37.638 0.90944-59.352 17.834-62.914 37.012z'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; }
.rv-name { display:flex; align-items:center; gap:6px; font-weight:700; font-size:15px; line-height:21px; }
.rv-ok { width:17px; height:17px; flex:none; }
.rv-ok circle { fill:#1a73e8; }
.rv-date { font-size:13px; margin-top:2px; }
.rv-body { font-size:16px; line-height:1.3; overflow-wrap:anywhere; flex:1; }
.rv-body.is-long { display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; flex:none; }
.rv-toggle:checked + .rv-body.is-long { -webkit-line-clamp:unset; display:block; }
.rv-readmore { align-self:flex-start; margin-top:8px; font-size:13px; font-weight:300; cursor:pointer; user-select:none; }
.rv-readmore:hover { text-decoration:underline; }
.rv-readmore span + span, .rv-toggle:checked ~ .rv-readmore span:first-child { display:none; }
.rv-toggle:checked ~ .rv-readmore span + span { display:inline; }
.rv-toggle:focus-visible ~ .rv-readmore { outline:2px solid var(--accent); outline-offset:2px; }
.rv-card-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:16px; }
.rv-src { display:block; line-height:0; }
.rv-src img { height:16px; width:auto; }
.rv-src-site { font-size:13px; font-weight:600; color:var(--accent); }
.rv-book { font-size:13px; color:#6b6b6b; text-align:right; }
.rvw-more { display:table; margin:28px auto 0; padding:5px 20px; font-size:16px; line-height:24px; background:#fff; border-radius:4px; cursor:pointer;
  box-shadow:0 2px 2px rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.12), 0 1px 5px rgba(0,0,0,.2); }
.rv-formwrap { padding-top:8px; }
.rv-formwrap h2 { margin-bottom:20px; }

@media (max-width:980px) { .rvw-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:640px) {
  .rvw { padding:16px 0 56px; }
  .rvw-title { font-size:26px; padding:0 16px; margin-bottom:24px; }
  .rvw-panel { text-align:center; padding:16px 10px 18px; }
  .rvw-tabs { justify-content:center; }
  .rvw-tab { font-size:16px; height:38px; padding:0 10px; }
  .rvw-sum { flex-direction:column; padding:0; gap:6px; }
  .rvw-btn { margin:8px auto 0; }
  .rvw-grid { grid-template-columns:1fr; gap:16px; padding:0 16px; }
  .rvw-more { margin-top:24px; }
  .rv-card { min-height:0; }
}

@media (max-width:640px) {
  .rv { padding:24px 16px 64px; }
  .rv-head { gap:18px; }
  .rv-cover { width:96px; }
  h1 { font-size:26px; }
  h2 { font-size:24px; }
  body { font-size:17px; }
  .rv-form { padding:20px 16px; }
  .rv-btn { align-self:stretch; }
}

/* ---------- подвал ---------- */
.sf { background:var(--foot); color:#fff; padding:105px 20px 30px; text-align:center; }
.sf-banks { width:500px; max-width:100%; height:auto; }
.sf p { margin:20px 0 0; font-size:14px; font-weight:400; line-height:1.85; letter-spacing:1px; }
.sf a { text-decoration:none; }
.sf a.u { text-decoration:underline; }
.sf a:hover { opacity:.8; }
@media (max-width:640px) { .sf { padding-top:60px; } }

/* правки 09.11: отступы и толщина текста как в виджете */
main.rv { padding-bottom:16px; }
.rv-card, .rv-body { font-weight:400; }
.rv-date { color:#555; }
#reviews, #write, #form { scroll-margin-top:100px; }
@media (max-width:640px) {
  main.rv { padding-bottom:8px; }
  .rvw-tab img { height:16px; }
  .rvw-tab-ozon img { height:15px; }
  .rvw-tab b { font-size:15px; }
}

/* 09.11 v5: без верхнего заголовка, выбор книги, яркая кнопка, окно с формой */
.rvw { padding-top:36px; }
.rvw .rv-back { margin-bottom:18px; }
.rvw-title { margin-bottom:22px; }
.rvw-books { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:0 0 28px; }
.rvw-book { padding:8px 16px; border:1px solid #d6d6d6; border-radius:20px; font-size:15px; font-weight:500; line-height:1.2; color:#212121; text-decoration:none; background:#fff; transition:border-color .2s, background .2s; }
.rvw-book:hover { border-color:var(--accent); }
.rvw-book.is-on { background:var(--accent); border-color:var(--accent); color:#000; font-weight:600; }
.rvw-tab i { font-style:normal; font-size:13px; color:#6b6b6b; }
.rvw-btn { background:var(--accent); color:#000; font-weight:700; padding:12px 30px; font-size:16px; border-radius:8px;
  box-shadow:0 6px 18px rgba(255,153,51,.45); transition:transform .15s, box-shadow .2s, background .2s; }
.rvw-btn:hover { background:#ff8a14; box-shadow:0 8px 22px rgba(255,138,20,.55); transform:translateY(-1px); }
.rvw-btn:active { transform:translateY(0); }
.rvw-btn:focus-visible { outline:2px solid #000; outline-offset:3px; }
.rv-card-site { box-shadow:0 2px 2px rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.12), 0 1px 5px rgba(0,0,0,.2), inset 0 3px 0 var(--accent); }

.rv-modal { position:fixed; inset:0; z-index:50; display:none; align-items:flex-start; justify-content:center; padding:40px 16px; overflow-y:auto; }
.rv-modal:target { display:flex; }
.rv-modal-bg { position:fixed; inset:0; background:rgba(0,0,0,.55); cursor:default; }
.rv-modal-box { position:relative; width:100%; max-width:620px; background:#fff; border-radius:15px; padding:32px 32px 28px; box-shadow:0 20px 60px rgba(0,0,0,.35); animation:rvIn .2s ease-out; }
@keyframes rvIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce) { .rv-modal-box { animation:none; } }
.rv-modal-x { position:absolute; top:10px; right:14px; width:40px; height:40px; display:flex; align-items:center; justify-content:center; font-size:32px; line-height:1; color:#555; text-decoration:none; border-radius:50%; }
.rv-modal-x:hover { background:#f2f2f2; color:#000; }
.rv-modal-box h2 { font-size:26px; margin:0 40px 6px 0; }
.rv-modal-note { margin:0 0 20px; color:var(--muted); font-size:16px; }
.rv-modal .rv-form { padding:0; border:0; border-radius:0; }
.rv-btn-wide { align-self:stretch; }
.rv-modal .rv-done { background:none; border:0; padding:8px 0 0; }
.rv-modal .rv-done .rv-btn { display:inline-flex; align-items:center; height:52px; margin-top:20px; text-decoration:none; }
@media (max-width:640px) {
  .rvw { padding-top:20px; }
  .rvw .rv-back { margin-left:16px; }
  .rvw-books { padding:0 12px; gap:6px; margin-bottom:20px; }
  .rvw-book { font-size:14px; padding:7px 12px; }
  .rv-modal { padding:0; }
  .rv-modal-box { min-height:100%; border-radius:0; padding:24px 16px 32px; }
  .rv-modal-box h2 { font-size:22px; }
}
