/*
Theme Name: RateHub
Description: Редакционная тема рейтингов и сравнений с автоматической главной и поддержкой Gutenberg и Yoast SEO.
Version: 1.2.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: ratehub
License: GNU General Public License v2 or later
*/
:root{--ink:#172330;--muted:#64707d;--blue:#245df5;--line:#dfe5ec;--soft:#f2f5f9;--radius:20px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.65}a{color:inherit;text-decoration:none}a:hover{color:var(--blue)}a:focus-visible,button:focus-visible{outline:3px solid var(--blue);outline-offset:5px}img{max-width:100%;height:auto}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.14;letter-spacing:-.045em}h1{font-size:clamp(38px,5.5vw,76px)}h2{font-size:clamp(30px,3.1vw,44px);margin-bottom:22px}h3{font-size:24px;letter-spacing:-.025em}.wrap{width:min(1200px,calc(100% - 80px));margin-inline:auto}.site-header{border-bottom:1px solid var(--line)}.header-row{min-height:108px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{font-weight:800;font-size:33px;letter-spacing:-1.7px;display:flex;align-items:center;gap:0}.brand>span:not(.brand-icon){color:var(--blue)}.brand-icon{display:inline-flex;width:42px;height:42px;border-radius:12px;background:var(--blue);color:white;align-items:center;justify-content:center;margin-right:10px;font-size:30px;letter-spacing:-5px;padding-right:6px}.brand-icon span{font-size:21px}.brand b{font-size:9px;letter-spacing:1.8px;width:92px;flex-shrink:0;line-height:1.4;margin-left:20px;padding-left:18px;border-left:1px solid var(--line);font-weight:600}.site-header ul{display:flex;list-style:none;gap:30px;margin:0;padding:0;font-size:14px;font-weight:600}.header-link{font-size:14px;border:1px solid var(--line);padding:10px 18px;border-radius:30px}.hero{display:grid;grid-template-columns:1.1fr 1fr;gap:60px;padding-block:76px 82px;align-items:center}.eyebrow{font-size:11px;letter-spacing:1.65px;font-weight:700;color:var(--muted);display:block;margin-bottom:25px}.hero h1{margin-bottom:26px;font-weight:750;line-height:1.04}.hero em{font-style:normal;color:var(--blue)}.hero-copy>p{color:var(--muted);max-width:460px;font-size:17px;margin-bottom:30px}.button{display:inline-flex;align-items:center;gap:40px;background:var(--blue);color:white;padding:15px 23px;border-radius:9px;font-size:14px;font-weight:650}.button:hover{background:#1946c7;color:white}.text-link{font-size:14px;font-weight:600}.hero .text-link{display:block;margin-top:18px}.section{padding-block:72px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.section-head .eyebrow{margin-bottom:13px}.section-head h2{margin:0}.section-head h1{font-size:48px}.section-head p{color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}.card{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:white}.card-media{display:block;aspect-ratio:1.7;overflow:hidden;background:#edf2fe}.card-media img{height:100%;width:100%;object-fit:cover}.abstract{display:flex;height:100%;align-items:flex-end;justify-content:center;gap:12px;padding:28px;position:relative;background:linear-gradient(135deg,#edf2fe,#dce8ff)}.abstract b{position:absolute;top:16px;left:18px;font-size:11px;color:var(--blue)}.card-body{padding:25px}.card .eyebrow{margin-bottom:14px}.card h3{font-size:23px}.card p{font-size:14px;color:var(--muted)}.card-bottom{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:17px;font-size:12px;color:var(--muted)}.card-bottom span{color:var(--blue);font-size:20px}.empty{display:flex;align-items:center;gap:30px;border:1px solid var(--line);background:#f8fafc;border-radius:16px;padding:40px}.empty h3{margin-bottom:12px}.empty p{max-width:650px;color:var(--muted)}.empty a{color:var(--blue);font-size:14px;font-weight:600}.empty-icon{font-size:50px;color:var(--blue)}.approach{display:grid;grid-template-columns:1fr 1fr;gap:100px;padding-block:90px}.approach>div>p{color:var(--muted);max-width:430px}.steps{list-style:none;margin:0;padding:0}.steps li{display:flex;gap:25px;padding:25px 0;border-bottom:1px solid var(--line)}.steps li:first-child{padding-top:0}.steps li>span{font-size:12px;color:var(--blue);padding-top:4px}.steps h3{font-size:22px;margin-bottom:10px}.steps p{color:var(--muted);font-size:14px;margin-bottom:0}.editorial-callout{border:1px solid var(--line);border-radius:15px;background:#f7f9fc;display:flex;justify-content:space-between;gap:25px;align-items:center;padding:30px 35px;margin-bottom:75px}.editorial-callout h2{font-size:25px;margin-bottom:8px}.editorial-callout p{font-size:14px;color:var(--muted);margin:0}.editorial-callout a{color:var(--blue);font-size:14px;white-space:nowrap}.site-footer{background:#13202e;color:#bdc8d5;padding:55px 0 24px;font-size:13px}.site-footer .brand{color:white}.site-footer .brand span{color:#8eacff}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px;padding-bottom:40px}.footer-grid p{margin-top:15px;color:#9caebe}.footer-grid strong{display:block;color:#fff;margin-bottom:17px}.footer-grid>div>a:not(.brand){display:block;margin-bottom:9px}.footer-bottom{display:flex;justify-content:space-between;gap:20px;font-size:11px;padding-top:22px;border-top:1px solid #33404f}.crumb{font-size:12px;color:var(--muted);margin-bottom:40px}.crumb a{color:var(--blue)}.prose-layout{padding-block:35px 80px}.prose{max-width:820px;margin-inline:auto}.prose h1{font-size:clamp(34px,4vw,54px);margin-bottom:30px}.content{font-size:17px;line-height:1.8;overflow-wrap:anywhere}.content h2{font-size:29px;margin:40px 0 18px}.content h3{font-size:23px;margin:30px 0 15px}.content a,.article-note a{color:var(--blue);text-decoration:underline}.content table{width:100%;border-collapse:collapse;font-size:14px}.content td,.content th{border:1px solid var(--line);padding:12px;text-align:left}.content th{background:var(--soft)}.wp-block-table{overflow:auto}.article-note{background:var(--soft);border-radius:12px;padding:24px;font-size:14px;margin-top:35px}.article-meta{font-size:12px;color:var(--muted)}.lead{font-size:21px;color:var(--muted)}.article-cover{border-radius:16px;margin:20px 0}.nav-links{display:flex;gap:12px;margin-top:35px}.page-numbers{padding:8px 14px;border:1px solid var(--line);border-radius:6px}.page-numbers.current{background:var(--blue);color:white}.skip{position:absolute;left:-10000px}.skip:focus{left:15px;top:10px;background:white;padding:10px;z-index:100}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:950px){.wrap{width:calc(100% - 40px)}.brand b,.header-link{display:none}.hero{gap:25px;padding-block:45px}.hero h1{font-size:56px}.hero-copy>p{font-size:15px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.approach{gap:40px}}
@media(max-width:650px){.header-row{min-height:85px;flex-wrap:wrap;justify-content:center;gap:12px;padding-block:18px}.brand{font-size:29px}.brand-icon{height:34px;width:34px;font-size:26px}.site-header nav{width:100%}.site-header ul{justify-content:center;font-size:12px;gap:23px}.hero{grid-template-columns:1fr;padding-block:40px;gap:35px}.hero h1{font-size:53px}.section{padding-block:45px}.section-head{align-items:flex-start}.section-head>.text-link{font-size:11px;white-space:nowrap;padding-top:35px}.cards,.approach{grid-template-columns:1fr}.empty{padding:27px;gap:16px;align-items:flex-start}.empty-icon{font-size:30px}.empty h3{font-size:23px}.approach{gap:40px;padding-block:50px}.editorial-callout{flex-direction:column;align-items:flex-start;padding:25px;margin-bottom:45px}.footer-grid{grid-template-columns:1fr 1fr;gap:25px}.footer-grid>div:first-child{grid-column:1/-1}.footer-bottom{flex-direction:column;gap:10px}.section-head h1{font-size:36px}.prose-layout{padding-bottom:50px}.content{font-size:16px}.hero-art .eyebrow{font-size:10px}.content h2{font-size:26px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Главная: компактный ввод и последний опубликованный рейтинг. */
:root{--touch-target:44px}
::selection{background:#dbe6ff;color:var(--ink)}
.rh-arrow{display:inline-block;flex:0 0 auto;vertical-align:middle}
.site-header nav a{display:inline-flex;align-items:center;min-height:var(--touch-target);padding:8px 4px}
.site-header nav a:hover,.site-header nav a:focus-visible{text-decoration:underline;text-underline-offset:6px}
.home-content h1,.home-content h2,.home-content h3{letter-spacing:-.035em;text-wrap:balance}
.home-content .hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;align-items:center;padding-block:48px 52px}
.home-content .hero h1{font-size:clamp(40px,4.35vw,60px);line-height:1.1;max-width:15ch;margin-bottom:24px}
.home-content .hero-copy>p{font-size:17px;line-height:1.65;margin-bottom:26px;max-width:45ch}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px}
.hero-actions .button{gap:20px;min-height:48px}
.home-content .hero .text-link{display:inline-flex;align-items:center;min-height:44px;margin:0}
.latest-rating{min-width:0;scroll-margin-top:24px}
.featured-rating{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff}
.featured-media{display:block;background:var(--soft);aspect-ratio:2.7;overflow:hidden}
.featured-media img{width:100%;height:100%;object-fit:contain;display:block}
.featured-body{padding:26px 28px}
.featured-body h2{font-size:clamp(24px,2.25vw,30px);line-height:1.2;margin:0 0 14px;overflow-wrap:anywhere;text-wrap:pretty}
.featured-body>p{color:var(--muted);font-size:15px;line-height:1.6;margin-bottom:18px}
.featured-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 18px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums;margin-bottom:14px}
.featured-link{display:inline-flex;align-items:center;gap:12px;min-height:44px;color:var(--blue);font-size:14px;font-weight:650}
.featured-link:hover,.text-link:hover{text-decoration:underline;text-underline-offset:4px}
.home-content .text-link{display:inline-flex;align-items:center;gap:10px;min-height:44px}
.home-content .recent-ratings{padding-top:20px;padding-bottom:44px}
.home-cards{grid-template-columns:repeat(var(--rating-columns,3),minmax(0,1fr))}
.card-topic{display:block;color:var(--muted);font-size:12px;margin-bottom:12px}
.card-body h3{margin-bottom:12px;overflow-wrap:anywhere}
.card-bottom>span{color:var(--muted);font-size:12px}
.card-bottom .rh-arrow{color:var(--blue)}
.abstract{background:var(--soft)}
.abstract b{font-size:20px;position:static;margin:auto;color:var(--blue)}






.home-content .approach{gap:72px;padding-block:60px}
.home-content .approach h2{font-size:clamp(30px,3vw,40px)}
.home-content .approach>div>p{font-size:16px;max-width:47ch}
.home-content .steps li{padding-block:20px}
.home-content .steps li:first-child{padding-top:0}
.home-content .steps h3{font-size:21px;margin-bottom:8px}



.home-content .editorial-callout{padding:26px 30px;margin-bottom:48px}
.editorial-callout>a{display:inline-flex;align-items:center;gap:12px;min-height:44px}
.footer-grid>div>a:not(.brand){min-height:44px;display:flex;align-items:center;margin-bottom:0}
.footer-bottom{font-size:12px;align-items:center}
.footer-bottom>a{display:inline-flex;align-items:center;min-height:44px}
.home-empty{border:1px solid var(--line);background:var(--soft);border-radius:16px;padding:32px}
.home-empty h2{font-size:28px;margin-bottom:16px}
.home-empty p{color:var(--muted);font-size:16px}
@media(max-width:950px){
 .home-content .hero{gap:32px;padding-block:36px 40px}
 .home-content .hero h1{font-size:44px}
 .featured-body{padding:22px}
 .featured-body h2{font-size:25px}
 .home-content .approach{gap:40px}
 .home-cards{grid-template-columns:repeat(min(var(--rating-columns,3),2),minmax(0,1fr))}
}
@media(max-width:700px){
 .home-content .hero{grid-template-columns:1fr;gap:28px;padding-block:30px 32px}
 .home-content .hero h1{font-size:clamp(32px,8.3vw,44px);max-width:19ch;margin-bottom:16px;line-height:1.12}
 .home-content .hero-copy>p{font-size:15px;line-height:1.6;margin-bottom:16px;max-width:46ch}
 .hero-actions{gap:4px 16px}
 .hero-actions .button{padding:12px 18px;font-size:13px;gap:16px}
 .hero-actions .text-link{font-size:13px}
 .featured-media{display:none}
 .featured-body{padding:20px}
 .featured-body h2{font-size:24px;margin-bottom:12px}
 .featured-body>p{font-size:14px;margin-bottom:14px}
 .featured-meta{font-size:12px;gap:4px 12px;margin-bottom:8px}
 .home-content .recent-ratings{padding-top:12px;padding-bottom:30px}
 .home-content .section-head{align-items:center;margin-bottom:22px;flex-wrap:wrap;gap:8px 18px}
 .home-content .section-head>.text-link{padding:0;font-size:13px}
 .home-cards{grid-template-columns:1fr}
 
 
 .home-content .approach{grid-template-columns:1fr;padding-block:38px;gap:28px}
 .home-content .approach h2{font-size:30px}
 .home-content .steps h3{font-size:21px}
 
 .home-content .editorial-callout{padding:22px;margin-bottom:32px;gap:12px}
 .home-content .editorial-callout h2{font-size:23px}
 .footer-bottom{align-items:flex-start}
}
@media(max-width:650px){
 .header-row{padding-block:12px;gap:4px;min-height:0}
 .site-header ul{gap:8px 18px;flex-wrap:wrap;font-size:13px}
 .site-header nav a{padding:8px 2px}
}

/* Иллюстрированная редакционная подача. */
.home-content .hero{gap:56px;padding-block:44px 52px}
.featured-rating{border:0;background:var(--ink);color:#fff}
.featured-media{aspect-ratio:2.45;background:#edf2fe}
.featured-media img{object-fit:cover;object-position:center 48%}
.featured-body{padding:24px 28px}
.featured-body h2 a:hover{color:#b8ceff}
.featured-body>p{color:#d2dce8}
.featured-meta{color:#c1cddd}
.featured-link{color:#b8ceff}
.featured-link:hover{color:#fff}
.illustrated-topics{padding-block:16px 48px}
.illustrated-topics .section-head{align-items:baseline;margin-bottom:24px}
.illustrated-topics h2{font-size:32px}
.illustrated-topics .section-head p{font-size:14px;margin:0;max-width:38ch}
.rubric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.rubric{min-width:0;display:block}
.rubric-picture{overflow:hidden;border-radius:12px;aspect-ratio:4/3;background:#edf2fe}
.rubric-picture img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease-out}
.rubric-copy{padding:16px 2px 0}
.rubric h3{font-size:20px;line-height:1.2;margin:0 0 12px;text-align:left;text-wrap:pretty}
.rubric-state{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.5;color:var(--muted);min-height:24px}
.rubric--published .rubric-state{color:var(--blue);font-weight:600}
.rubric-count{font-variant-numeric:tabular-nums;font-weight:400;color:var(--muted)}
.rubric--published:hover .rubric-picture img{transform:scale(1.025)}
.rubric--published:hover h3{text-decoration:underline;text-underline-offset:4px}
.rubric--planned .rubric-picture{opacity:.86}
.home-content .approach{background:var(--soft);border-radius:16px;padding:40px;gap:64px;margin-bottom:44px}
.home-content .approach>div>p{margin-bottom:16px}
.home-content .steps li:last-child{border-bottom:0;padding-bottom:0}
@media(max-width:950px){
 .home-content .hero{gap:30px;padding-block:36px}
 .rubric-grid{gap:20px}
 .rubric h3{font-size:18px}
 .home-content .approach{padding:30px;gap:36px}
}
@media(max-width:700px){
 .home-content .hero{gap:24px;padding-block:28px 32px}
 .featured-media{display:block;aspect-ratio:4.8}
 .featured-body{padding:20px}
 .featured-media img{object-position:center 44%}
 .illustrated-topics{padding-block:8px 32px}
 .illustrated-topics .section-head{display:block;margin-bottom:20px}
 .illustrated-topics h2{font-size:27px;margin-bottom:10px}
 .illustrated-topics .section-head p{font-size:13px}
 .rubric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
 .rubric h3{font-size:18px;margin-bottom:8px}
 .rubric-state{font-size:12px;flex-wrap:wrap;gap:5px}
 .rubric-copy{padding-top:12px}
 .home-content .approach{padding:24px;gap:24px;margin-bottom:30px}
 .home-content .approach h2{font-size:28px}
}
@media(prefers-reduced-motion:reduce){.rubric-picture img{transition:none}.rubric--published:hover .rubric-picture img{transform:none}}
