/*
Theme Name: АвтоКругозор
Description: Лёгкая блочная тема для автомобильного справочника. Поиск, рубрики и адаптивные шаблоны.
Version: 1.8.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avtokrugozor
*/

@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root{--ink:#24342b;--muted:#66717d;--accent:#426b36;--paper:#f3f5ed;--line:#dde4d6}
*{box-sizing:border-box}body{margin:0}a{text-underline-offset:4px}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #426b36;outline-offset:4px}.wp-site-blocks{padding:0}.shell{max-width:1160px;margin:auto;padding:0 28px}.topbar{padding-top:26px;padding-bottom:26px;border-bottom:1px solid var(--line)}.logo a{text-decoration:none!important;font-weight:800;letter-spacing:-1px}.logo a:before{content:'≡';background:var(--accent);color:white;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;margin-right:10px;letter-spacing:0}.nav{display:flex;flex-wrap:wrap;gap:24px;font-size:14px}.nav a{text-decoration:none;color:var(--ink)}.hero{padding-top:70px;padding-bottom:55px}.eyebrow{color:#355c2f;font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase}.hero h1{font-size:clamp(36px,5vw,66px);line-height:1.06;letter-spacing:-2px;max-width:780px;margin:20px 0}.hero .intro{font-size:18px;line-height:1.6;max-width:660px;color:var(--muted)}.hero .wp-block-search{max-width:710px;margin:28px 0 14px}.wp-block-search__inside-wrapper{border:1px solid var(--line);padding:7px;background:#fff;border-radius:12px}.wp-block-search__input{border:0!important;min-width:0;padding:14px;background:white}.wp-block-search__button{border:0;border-radius:8px;padding:12px 22px;background:var(--accent);color:#fff;font-weight:700}.hint{font-size:13px;color:var(--muted)}.section{padding-top:38px;padding-bottom:38px}.section h2{font-size:30px;letter-spacing:-.7px;margin-top:0}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card{display:block;border:1px solid var(--line);border-radius:16px;padding:26px;background:white;text-decoration:none;transition:transform .15s,border-color .15s;color:var(--ink)}.card:hover{transform:translateY(-3px);border-color:var(--accent)}.card .num{color:#355c2f;font-size:12px;font-weight:700;letter-spacing:1px}.card h3{font-size:23px;margin:22px 0 10px;letter-spacing:-.5px}.card p{color:var(--muted);line-height:1.6;font-size:14px;margin-bottom:0}.brands{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.brand{border:1px solid var(--line);background:white;border-radius:12px;padding:22px;text-decoration:none;font-weight:700;display:flex;justify-content:space-between}.brand span{color:var(--accent)}.band{background:var(--ink);color:white;padding:32px;border-radius:16px;display:grid;grid-template-columns:1fr 2fr;gap:40px;margin-top:20px}.band h2{font-size:26px;margin:0}.band p{margin:0;color:#cdd1d5;line-height:1.7}.articles .wp-block-post-template{gap:20px}.articles .wp-block-post{background:white;border:1px solid var(--line);border-radius:14px;padding:24px}.articles h3{font-size:21px;line-height:1.35}.articles h3 a{text-decoration:none}.articles .wp-block-post-excerpt{color:var(--muted);font-size:15px;line-height:1.6}.article{max-width:820px;margin:0 auto;padding:50px 28px}.article h1{font-size:clamp(30px,4vw,46px);line-height:1.15;letter-spacing:-1px}.article .wp-block-post-content{font-size:18px;line-height:1.8}.article .wp-block-post-content h2{font-size:28px;line-height:1.3;margin-top:40px}.article .wp-block-post-content img{max-width:100%;height:auto;border-radius:12px}.article .wp-block-post-content a{overflow-wrap:anywhere}.article .wp-block-post-content table{display:block;overflow:auto}.meta{color:var(--muted);font-size:13px}.footer{margin-top:50px;padding-top:30px;padding-bottom:30px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}.footer strong{color:var(--ink);font-size:19px}.wp-block-query-pagination{margin-top:28px;gap:15px}.skip-link{position:absolute;left:-10000px;top:10px;z-index:999;background:white;padding:12px}.skip-link:focus{left:10px}
@media(max-width:720px){.shell{padding-left:20px;padding-right:20px}.topbar{gap:18px!important;align-items:flex-start!important}.nav{gap:14px}.hero{padding-top:40px}.hero h1{letter-spacing:-1px}.grid,.brands{grid-template-columns:1fr}.band{grid-template-columns:1fr;gap:18px;padding:25px}.wp-block-search__button{padding:10px 14px}.article{padding:30px 20px}.articles .wp-block-post-template{grid-template-columns:1fr!important}}

.newshero{padding-top:32px}.featured .wp-block-post-template{display:block!important}.featured .wp-block-post{padding:34px;background:#24342b;color:white;border:0;border-radius:18px;overflow:hidden}.featured .wp-block-post a{color:white}.featured .wp-block-post-title{font-size:clamp(30px,4vw,49px);line-height:1.12;letter-spacing:-1px;max-width:840px}.featured .wp-block-post-featured-image img{width:100%;max-height:430px;object-fit:cover;border-radius:12px}.featured .wp-block-post-excerpt{color:#d3d8dc}.featured .wp-block-query-no-results{background:#24342b;color:white;padding:38px;border-radius:18px}.brands{grid-template-columns:repeat(5,1fr)}.searchbar{margin-top:24px}.searchbar .wp-block-search{max-width:760px}.section-title{display:flex;justify-content:space-between;align-items:baseline;gap:16px}.section-title a{font-size:14px;color:#355c2f}.wp-block-post-featured-image img{border-radius:10px}.featured-preview{display:grid;grid-template-columns:1.2fr 1fr;gap:40px;padding:36px;border-radius:18px;background:#24342b;color:white}.featured-preview h1{font-size:clamp(32px,4vw,48px);letter-spacing:-1px;line-height:1.12}.featured-preview p{color:#d3d8dc}.featured-preview .eyebrow{color:#d8ef8c}.car-illustration{width:100%;height:100%;min-height:240px}.example-tag{display:inline-block;font-size:11px;letter-spacing:1px;border:1px solid #687581;padding:5px 10px;border-radius:20px}.mini-meta{font-size:12px;color:#66717d}.card[hidden]{display:none!important}
@media(max-width:900px){.brands{grid-template-columns:repeat(3,1fr)}}@media(max-width:640px){.brands{grid-template-columns:repeat(2,1fr)}.featured-preview{grid-template-columns:1fr;padding:24px;gap:0}.car-illustration{min-height:170px}.section-title{flex-wrap:wrap}.featured .wp-block-post{padding:24px}}

/* Homepage magazine layout, inspired by the requested reference. */
body{background:#f3f5ed}.shell{max-width:1280px}.topbar{background:#fff;border-bottom:0;padding-top:22px;padding-bottom:22px}.wp-site-blocks>header{background:#fff}.topbar .logo{font-size:27px}.ak-home{margin-top:0!important;padding-bottom:20px}.ak-home a{color:var(--ink);text-decoration:none}.ak-home a:hover{color:#294b24}.ak-home-search{padding-top:20px;padding-bottom:20px;display:flex;justify-content:flex-end}.ak-home-search .wp-block-search{width:390px;max-width:100%;margin:0}.ak-home-search .wp-block-search__inside-wrapper{border-radius:8px;padding:3px}.ak-home-search .wp-block-search__input{padding:9px 12px;font-size:14px}.ak-home-search .wp-block-search__button{font-size:13px;padding:8px 16px}.ak-lead-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(280px,1fr);gap:28px;align-items:start}.ak-lead-grid>*{margin:0!important;min-width:0}.ak-main-story,.ak-latest{background:#fff;border-radius:20px;padding:24px}.ak-home .wp-block-post-template{list-style:none;padding:0;margin:0}.ak-home .wp-block-post{margin:0;min-width:0}.ak-home .wp-block-post-featured-image{margin:0}.ak-home .wp-block-post-featured-image a{display:block}.ak-home .wp-block-post-featured-image img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:12px}.ak-card-body{margin:0!important;padding-top:14px}.ak-tags{font-size:12px;line-height:1.9;margin:0 0 6px!important}.ak-tags a{display:inline-block;background:#eaf1df;color:#355c2f;padding:1px 8px;border-radius:12px;line-height:1.7}.ak-tags .wp-block-post-terms__separator{font-size:10px;margin:0 3px;color:#aaa}.ak-home .wp-block-post-title{margin:7px 0 12px;line-height:1.24;font-weight:750;letter-spacing:-.45px}.ak-feature .wp-block-post-title{font-size:clamp(24px,2.1vw,31px)}.ak-home .wp-block-post-excerpt{font-size:15px;color:#555d65;line-height:1.65;margin:10px 0}.ak-home .wp-block-post-excerpt__excerpt{margin:0}.ak-home .wp-block-post-date{font-size:12px;line-height:1.5;color:#71777d;margin-top:10px}.ak-latest>h2{font-size:18px;line-height:1.3;margin:0 0 24px;font-weight:750}.ak-latest-list .wp-block-post-template{display:grid;gap:20px}.ak-latest-list .wp-block-post{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;align-items:start}.ak-latest-list .wp-block-post:not(:has(.wp-block-post-featured-image)){grid-template-columns:1fr}.ak-latest-list .wp-block-post-featured-image img{height:88px;aspect-ratio:5/4;object-fit:cover;border-radius:10px}.ak-latest-list .ak-card-body{padding-top:0}.ak-latest-list .ak-tags{font-size:10px;margin-bottom:4px!important}.ak-latest-list .wp-block-post-title{font-size:14px;line-height:1.3;letter-spacing:0;margin:0 0 5px}.ak-latest-list .wp-block-post-date{font-size:11px;margin-top:4px}.ak-feed{padding-top:44px;padding-bottom:4px}.ak-section-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px}.ak-section-heading h2{font-size:28px;line-height:1.2;letter-spacing:-.5px;margin:0}.ak-section-heading p{font-size:13px;margin:0}.ak-section-heading a{color:#355c2f}.ak-news-grid .wp-block-post-template{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.ak-news-grid .wp-block-post{background:#fff;border-radius:16px;padding:16px;overflow:hidden}.ak-news-grid .wp-block-post-title{font-size:19px;line-height:1.3}.ak-news-grid .wp-block-post-excerpt{font-size:14px;line-height:1.55}.ak-feed:has(.ak-empty){display:none}.ak-empty{font-size:15px;color:#66717d;line-height:1.6}.ak-main-story:has(.ak-empty){min-height:200px}.ak-home .wp-block-post-excerpt__more-text{display:none}.footer{background:#fff;margin-top:44px}.ak-home .wp-block-post-title a:focus-visible{outline:3px solid #426b36;outline-offset:4px}
@media(max-width:1000px){.ak-lead-grid{grid-template-columns:minmax(0,1.55fr) minmax(260px,1fr);gap:20px}.ak-main-story,.ak-latest{padding:18px}.ak-latest-list .wp-block-post{grid-template-columns:86px minmax(0,1fr);gap:10px}.ak-latest-list .wp-block-post-featured-image img{height:76px}.ak-news-grid .wp-block-post-template{grid-template-columns:repeat(2,minmax(0,1fr))}.nav{gap:16px}}
@media(max-width:720px){.ak-lead-grid{display:block}.ak-latest{margin-top:22px!important}.ak-home-search{padding-top:16px;padding-bottom:16px}.ak-home-search .wp-block-search{width:100%}.ak-main-story,.ak-latest{border-radius:16px;padding:18px}.ak-feature .wp-block-post-title{font-size:25px}.ak-latest-list .wp-block-post{grid-template-columns:100px minmax(0,1fr)}.ak-latest-list .wp-block-post-title{font-size:15px}.ak-latest-list .wp-block-post-featured-image img{height:80px}.ak-section-heading h2{font-size:24px}.ak-feed{padding-top:30px}.ak-news-grid .wp-block-post-template{gap:14px}.ak-news-grid .wp-block-post{padding:12px}.ak-news-grid .wp-block-post-title{font-size:17px}}
@media(max-width:440px){.ak-news-grid .wp-block-post-template{grid-template-columns:1fr}.ak-lead-grid,.ak-feed,.ak-home-search{padding-left:14px;padding-right:14px}.ak-section-heading{gap:10px}.ak-section-heading p{font-size:12px}.topbar .logo{font-size:24px}}

/* Readable Cyrillic typography. */
body,button,input,textarea,select{font-family:'Golos Text',Arial,sans-serif}body{font-size:16px;font-weight:400;line-height:1.65}h1,h2,h3,h4,h5,h6,.logo,.wp-block-site-title{font-family:'Manrope','Golos Text',Arial,sans-serif}h1,h2,h3{font-weight:800;letter-spacing:-.035em}.logo a{font-weight:800;letter-spacing:-.045em}.nav{font-size:14px;font-weight:500;line-height:1.5}.article .wp-block-post-content{font-family:'Golos Text',Arial,sans-serif;font-size:18px;line-height:1.75;letter-spacing:0}.article .wp-block-post-content p{margin-top:0;margin-bottom:1.2em}.article .wp-block-post-content li{margin-bottom:.45em}.article h1{font-weight:800;line-height:1.18;letter-spacing:-.04em}.article .wp-block-post-content h2{font-size:29px;line-height:1.3;font-weight:800;letter-spacing:-.025em}.article .wp-block-post-content h3{font-size:23px;line-height:1.35;font-weight:700;letter-spacing:-.02em}.article .wp-block-post-content strong{font-weight:700}.ak-home .wp-block-post-title{font-family:'Manrope','Golos Text',Arial,sans-serif;font-weight:800}.ak-latest-list .wp-block-post-title{font-weight:700;line-height:1.4}.ak-home .wp-block-post-excerpt{font-family:'Golos Text',Arial,sans-serif}.ak-home .wp-block-post-date,.ak-tags{letter-spacing:0}.ak-section-heading h2{font-weight:800}.wp-block-search__input,.wp-block-search__button{font-family:'Golos Text',Arial,sans-serif}
@media(max-width:720px){.article .wp-block-post-content{font-size:17px;line-height:1.75}.article .wp-block-post-content h2{font-size:25px}.article .wp-block-post-content h3{font-size:21px}.article h1{font-size:31px;line-height:1.2}.logo a{letter-spacing:-.04em}}
/* Light neutral palette and accessible native brand dropdown. */
:root{color-scheme:light;--ink:#22262d;--muted:#59616d;--accent:#303741;--paper:#f4f5f7;--line:#e1e5eb;--accent-soft:#eef0f4}
body,.wp-site-blocks{background:#f4f5f7;color:#22262d}.wp-site-blocks>header{background:#fff;border-bottom:1px solid #e1e5eb;position:relative;z-index:20}.topbar{background:#fff;border:0;position:relative}.logo a,.wp-block-site-title a{color:#22262d}.logo a:before{background:#272d36;color:#fff;box-shadow:none}.nav{align-items:center;gap:8px}.nav>a,.ak-brands-menu>summary{color:#414853;padding:8px 10px;border-radius:8px;font-size:14px;font-weight:500;line-height:1.5;white-space:nowrap;cursor:pointer}.nav>a:hover,.ak-brands-menu>summary:hover,.ak-brands-menu[open]>summary{color:#171b22;background:#eef0f4}.ak-brands-menu{position:static}.ak-brands-menu>summary{list-style:none;display:flex;align-items:center;gap:8px}.ak-brands-menu>summary::-webkit-details-marker{display:none}.ak-brands-menu>summary span{font-size:18px;line-height:1;transition:transform .15s}.ak-brands-menu[open]>summary span{transform:rotate(180deg)}.ak-brands-menu>summary:focus-visible{outline:3px solid #65748e;outline-offset:3px}.ak-brands-menu>.ak-brands-dropdown{position:absolute;top:100%;right:28px;width:min(870px,calc(100% - 56px));max-height:65vh;overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid #dce1e9;border-radius:14px;padding:18px;box-shadow:0 18px 48px #1b243526;z-index:30;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px 8px}.ak-brands-menu:not([open])>.ak-brands-dropdown{display:none}.ak-brands-dropdown a{display:block;padding:9px 10px;border-radius:7px;font-size:13px;font-weight:500;line-height:1.4;color:#414853;text-decoration:none}.ak-brands-dropdown a:hover,.ak-brands-dropdown a:focus-visible{color:#171b22;background:#eef0f4}.ak-main-story,.ak-latest{background:#fff;border:1px solid #e1e5eb;box-shadow:0 5px 20px #22262d06}.ak-home a,.ak-home .wp-block-post-title a,.article h1,.article h2,.article h3,.ak-section-heading h2{color:#22262d}.ak-home a:hover,.ak-home .wp-block-post-title a:hover{color:#505b70}.ak-news-grid .wp-block-post,.articles .wp-block-post,.card,.brand{background:#fff;color:#22262d;border:1px solid #e1e5eb;box-shadow:none}.ak-tags a,.ak-home .ak-tags a{background:#eef0f4;color:#505968}.ak-tags a:hover,.ak-home .ak-tags a:hover{background:#dfe4eb;color:#22262d}.ak-tags .wp-block-post-terms__separator{color:#707885}.ak-home .wp-block-post-excerpt,.articles .wp-block-post-excerpt,.card p,.hero .intro,.hint{color:#555e6a}.ak-home .wp-block-post-date,.meta,.mini-meta,.ak-empty{color:#626b78}.ak-section-heading h2{display:flex;align-items:center;gap:12px}.ak-section-heading h2:before{content:'';width:4px;height:.9em;border-radius:4px;background:#4c5669;flex-shrink:0}.ak-section-heading a,.ak-home .ak-section-heading a,.section-title a{color:#505b70}.wp-block-search__inside-wrapper{background:#fff;border-color:#dce1e9;box-shadow:none}.wp-block-search__input{background:#fff;color:#22262d}.wp-block-search__input::placeholder{color:#626b78;opacity:1}.wp-block-search__button,.wp-element-button,.wp-block-button__link{background:#303741;color:#fff}.wp-block-search__button:hover,.wp-element-button:hover,.wp-block-button__link:hover{background:#1e232b;color:#fff}.article{color:#303640}.article .wp-block-post-content a{color:#35579c}.article .wp-block-post-content a:hover{color:#213f7d}.article .wp-block-post-content blockquote{border-left:3px solid #7e889b;background:#e9edf3;padding:16px 22px}.article .wp-block-post-content th,.article .wp-block-post-content td{border-color:#cdd4df}.article .wp-block-post-content thead{background:#e9edf3}.wp-block-post-terms a{color:#505b70}.wp-block-query-pagination a{color:#505b70}.footer{background:#222831;color:#cad0da;border:0;border-radius:18px 18px 0 0}.footer strong,.footer a{color:#f4f6fa}.footer a:hover{color:#fff}.footer p{color:inherit}.band{background:#222831}.eyebrow{color:#505b70}.skip-link{background:#fff;color:#22262d}a:focus-visible,button:focus-visible,input:focus-visible,.ak-home .wp-block-post-title a:focus-visible{outline-color:#65748e}::selection{background:#dce3ef;color:#22262d}
@media(max-width:1000px){.nav{gap:3px}.nav>a,.ak-brands-menu>summary{font-size:13px;padding:7px 8px}.ak-brands-menu>.ak-brands-dropdown{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:720px){.topbar{gap:12px!important}.nav{width:100%;row-gap:4px}.ak-brands-menu>.ak-brands-dropdown{right:20px;width:calc(100% - 40px);grid-template-columns:repeat(3,minmax(0,1fr));padding:12px;max-height:60vh}.ak-brands-dropdown a{font-size:13px;padding:9px 7px}}
@media(max-width:440px){.ak-brands-menu>.ak-brands-dropdown{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.ak-brands-menu>summary span{transition:none}}

/* АвтоКругозор: road and horizon brand mark. */
.logo a{display:inline-flex;align-items:center;font-family:Manrope,Arial,sans-serif;font-weight:800;letter-spacing:-.045em;line-height:1.2;gap:12px}.logo a:before{content:"";display:block;flex:0 0 44px;width:44px;height:44px;margin-right:0;border-radius:12px;background:transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%20fill%3D%22none%22%3E%3Crect%20width%3D%2264%22%20height%3D%2264%22%20rx%3D%2217%22%20fill%3D%22%23272d36%22%2F%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2231%22%20r%3D%2222%22%20stroke%3D%22%23cbd3e0%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M13%2028h38%22%20stroke%3D%22%23cbd3e0%22%20stroke-width%3D%222%22%2F%3E%3Cpath%20d%3D%22M19%2051l10-23h6l10%2023%22%20fill%3D%22%23272d36%22%20stroke%3D%22%23fff%22%20stroke-width%3D%223%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M32%2034v5m0%205v6%22%20stroke%3D%22%23fff%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%2F%3E%3Ccircle%20cx%3D%2241%22%20cy%3D%2220%22%20r%3D%223%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;box-shadow:none}.topbar .logo{margin:0}
@media(max-width:440px){.logo a{gap:10px}.logo a:before{width:38px;height:38px;flex-basis:38px;border-radius:10px}}
