/* Visitor reviews (atlas/reviews.py): the /reviews/ page, the block on the hoster card, the link on the home page.
   Only the variables of atlas.css are used here. The verdict is a word with a thin ink mark, never a coloured fill. */

/* the link in the header row of the sponsor block: «При поддержке» on the left, the link on the right */
.spon:has(> .rv-home){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:baseline}
.spon:has(> .rv-home) > .spon-h{grid-column:1;grid-row:1}
.spon:has(> .rv-home) > .spon-row{grid-column:1/-1}
.rv-home{grid-column:2;grid-row:1;display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;font-size:15px;line-height:1.2;color:var(--ink);text-decoration:none;white-space:nowrap}
.rv-home:hover{color:var(--ink)}
.rv-arrow{flex:none;display:block;width:10.72px;height:10px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .45s var(--ease)}
.rv-home:hover .rv-arrow,.rv-all:hover .rv-arrow,.rv-more:hover .rv-arrow{transform:translateX(3px)}

/* buttons that are links */
a.rv-cta{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:#fff}
a.rv-cta:hover{color:#fff}

/* one review */
.rv-list{max-width:46em}
.rv{padding:24px 0;border-top:1px solid var(--line)}
.rv:last-child{border-bottom:1px solid var(--line)}
.rv-top{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;margin:0;font-size:15px;line-height:1.3}
.rv-v{display:inline-flex;align-items:center;gap:10px;font-weight:500;color:var(--ink)}
.rv-mark{flex:none;display:block;width:22px;height:8px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.rv-h{color:var(--muted);text-decoration:none}
.rv-h:hover{color:var(--ink);text-decoration:underline}
.rv-body{margin:12px 0 0;font-size:17px;line-height:1.55;white-space:pre-line;overflow-wrap:anywhere;text-wrap:pretty}
.rv-meta{margin:10px 0 0;font-size:14px;line-height:1.4;color:var(--note)}
.rv-empty{margin:20px 0 0;max-width:40em;color:var(--muted)}

/* the hoster card block */
.rv-sec .rv-list{margin-top:28px}
.rv-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px;margin-top:28px}
.rv-all,.rv-more{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:500;color:var(--ink);text-decoration:none}
.rv-all:hover,.rv-more:hover{color:var(--ink)}

/* the page */
.rv-head{padding-top:clamp(16px,2vw,28px);max-width:52em}
.rv-head .h1{max-width:none}
.rv-lead{max-width:36em}
.rv-head .rv-cta{margin-top:28px}
.rv-rules{margin-top:clamp(40px,4vw,64px);padding:24px 28px 26px;border-radius:14px;background:var(--soft)}
.rv-rules-h{margin:0;font-size:15px;line-height:1.3;font-weight:500;color:var(--ink)}
.rv-rules ul{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 40px}
.rv-rules li{position:relative;padding-left:26px;font-size:16px;line-height:1.45;color:var(--muted);text-wrap:pretty}
.rv-rules li::before{content:'';position:absolute;left:0;top:.72em;width:14px;height:2px;background:var(--thread)}
.rv-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,440px);column-gap:clamp(48px,5vw,104px);align-items:start;margin-top:clamp(40px,4vw,64px)}
.rv-feed{min-width:0}
.rv-filter{display:flex;flex-direction:column;gap:8px;max-width:360px}
.rv-filter-row{display:flex;gap:10px}
.rv-filter-row > *:first-child{flex:1;min-width:0}
.rv-show{height:48px;padding:0 18px;border:0;border-radius:12px;background:var(--soft);color:var(--ink);font:inherit;font-size:15px;cursor:pointer}
.js .rv-show{display:none}
.rv-count{margin:18px 0 0;font-size:15px;color:var(--muted)}
.rv-count a{color:var(--ink)}
.rv-feed .rv-list{margin-top:8px}
.rv-more{margin-top:24px}

/* the form panel */
.rv-panel{position:sticky;top:24px;padding:28px;border-radius:14px;background:var(--soft);outline:none}
.rv-panel-h{margin:0;font-size:clamp(22px,1.8vw,28px);line-height:1.15;font-weight:500;letter-spacing:-.015em}
.rv-form{display:flex;flex-direction:column;gap:18px;margin-top:22px}
.rv-field{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;border:0;min-width:0}
.rv-label{padding:0;font-size:15px;line-height:1.3;color:var(--muted)}
.rv-opt{color:var(--note);font-size:14px}
.rv-input,.rv-select{box-sizing:border-box;width:100%;height:48px;padding:0 16px;border:1.5px solid color-mix(in srgb,var(--ink) 42%,var(--soft));border-radius:12px;background:var(--field);color:var(--ink);font:inherit;font-size:16px;outline:none;transition:border-color .2s var(--ease)}
.rv-select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 21px) 21px,calc(100% - 16px) 21px;background-size:5px 5px;background-repeat:no-repeat;padding-right:40px}
.rv-text{height:auto;min-height:168px;padding:12px 16px;line-height:1.5;resize:vertical}
.rv-input::placeholder{color:var(--note)}
.rv-input:focus,.rv-select:focus{border-color:var(--red)}
.rv-input[aria-invalid=true],.rv-select[aria-invalid=true]{border-color:var(--red)}
.rv-note{margin:0;font-size:14px;line-height:1.45;color:var(--note);text-wrap:pretty}
.rv-counter{display:block;margin-top:6px;color:var(--muted);font-variant-numeric:tabular-nums}
.rv-counter:empty{display:none}
.rv-ferr{margin:0;font-size:14px;line-height:1.45;color:var(--red-text)}
.rv-ferr[hidden]{display:none}
.rv-ok,.rv-err{margin:18px 0 0;padding:14px 16px;border-radius:12px;background:var(--bg);font-size:15px;line-height:1.45;color:var(--ink)}
.rv-err{box-shadow:inset 2px 0 0 var(--red)}
.rv-ok{box-shadow:inset 2px 0 0 var(--ink)}
.rv-submit{align-self:flex-start;margin-top:4px}
.rv-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

/* «Рекомендую» / «Не рекомендую»: two equal boxes, the chosen one gets the ink border and the heavier word */
.rv-choice > legend{float:left;width:100%;margin:0 0 8px}
.rv-choice-row{clear:both;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rv-pick{position:relative;display:block;cursor:pointer}
.rv-pick input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.rv-pick span{display:flex;align-items:center;justify-content:center;gap:10px;height:48px;padding:0 12px;border:1.5px solid color-mix(in srgb,var(--ink) 42%,var(--soft));border-radius:12px;background:var(--field);color:var(--muted);font-size:15px;white-space:nowrap;transition:border-color .2s var(--ease),color .2s var(--ease)}
.rv-pick:hover span{color:var(--ink)}
.rv-pick input:checked + span{border-color:var(--ink);color:var(--ink);font-weight:500;box-shadow:inset 0 0 0 .5px var(--ink)}
.rv-pick input:focus-visible + span{outline:2px solid var(--red);outline-offset:3px}
.rv-choice[aria-describedby] .rv-pick span{border-color:var(--red)}

/* the hoster picker with search (reviews.js turns the select into it) */
.rv-combo{position:relative}
.rv-combo .rv-input{padding-right:40px}
.rv-combo::after{content:'';position:absolute;right:17px;top:19px;width:7px;height:7px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);pointer-events:none}
.rv-pop{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;max-height:300px;overflow-y:auto;margin:0;padding:6px 0;list-style:none;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.rv-pop[hidden]{display:none}
.rv-pop li{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:9px 16px;font-size:16px;line-height:1.3;cursor:pointer}
.rv-pop li[aria-selected=true]{background:var(--soft)}
.rv-pop li .rv-n{flex:none;font-size:14px;color:var(--note);font-variant-numeric:tabular-nums}
.rv-pop li.rv-none{cursor:default;color:var(--muted);font-size:15px}
.rv-pop mark{background:none;color:inherit;font-weight:600}
.rv-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

@media (max-width:1099px){
  .rv-grid{grid-template-columns:minmax(0,1fr)}
  .rv-panel{position:static;margin-top:56px;max-width:640px}
}
@media (max-width:760px){
  .rv-rules{padding:20px}
  .rv-rules ul{grid-template-columns:minmax(0,1fr);gap:10px}
  .rv-filter{max-width:none}
  .rv-panel{padding:22px 20px;margin-top:48px}
  .rv-head .rv-cta,.rv-actions .rv-cta{width:auto}
  .rv-submit{align-self:stretch}
  .rv-body{font-size:16px}
  .spon:has(> .rv-home) > .rv-home{font-size:14px}
}
@media (prefers-reduced-motion:reduce){.rv-arrow{transition:none}}
