/* Цены на топливо (/toplivo/) */
#tema-portal .tf-main{padding-bottom:56px}
#tema-portal .tf-main *{box-sizing:border-box}
#tema-portal .tf-note{margin:16px 0 0;padding:10px 14px;border-radius:10px;background:#fff4e5;color:#8a4b00;font-size:13px}
#tema-portal .tf-main [hidden]{display:none!important}

/* Hero */
#tema-portal .tf-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:32px;align-items:stretch;margin-top:18px;padding:38px;border-radius:22px;background:#1f1b17 radial-gradient(60% 120% at 100% 0,rgba(240,122,18,.34),transparent 72%);color:#fff;overflow:hidden}
#tema-portal .tf-hero-text{display:flex;flex-direction:column;justify-content:center;min-width:0}
#tema-portal .tf-eyebrow{display:inline-flex;align-items:center;gap:8px;color:#ffb04a;font-size:13px;font-weight:700;line-height:1.3}
#tema-portal .tf-eyebrow i{width:8px;height:8px;border-radius:50%;background:#3ecf6e;box-shadow:0 0 0 4px rgba(62,207,110,.2)}
#tema-portal .tf-hero h1{margin:12px 0 10px!important;padding:0!important;color:#fff!important;font-size:54px!important;line-height:1.02!important;letter-spacing:-.04em!important;font-weight:800!important}
#tema-portal .tf-hero h1 span{color:#f07a12!important}
#tema-portal .tf-hero-text p{margin:0 0 22px!important;color:#cfc5b6!important;font-size:16px!important;line-height:1.45!important;max-width:30em}
#tema-portal .tf-tabs{display:inline-flex;align-self:flex-start;gap:4px;padding:4px;border-radius:14px;background:rgba(255,255,255,.1)}
#tema-portal .tf-tabs button{min-width:66px;padding:10px 16px;border:0;border-radius:10px;background:transparent;color:#fff;font:700 15px/1.2 inherit;font-family:inherit;cursor:pointer;transition:background .2s,color .2s}
#tema-portal .tf-tabs button:hover{background:rgba(255,255,255,.1)}
#tema-portal .tf-tabs button[aria-selected=true]{background:#f07a12;color:#fff}
#tema-portal .tf-tabs button:focus-visible{outline:2px solid #ffb04a;outline-offset:2px}
#tema-portal .tf-best{display:flex;flex-direction:column;justify-content:center;gap:6px;padding:26px 28px;border-radius:18px;background:#fff;color:#252821;min-width:0}
#tema-portal .tf-best-label{color:#2f8a4c;font-size:13px;font-weight:700;line-height:1.3}
#tema-portal .tf-best-price{font-size:60px;line-height:1;font-weight:800;letter-spacing:-.04em;color:#22703a}
#tema-portal .tf-best-price small{font-size:20px;letter-spacing:0;font-weight:700;color:#5d5f57}
#tema-portal .tf-best-where{font-size:15px;line-height:1.4;color:#3c3e37}
#tema-portal .tf-best-save{margin-top:6px;padding-top:10px;border-top:1px solid #ece8df;font-size:13px;line-height:1.4;color:#777971}

/* List + map */
#tema-portal .tf-board{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin-top:20px;align-items:start}
#tema-portal .tf-tank{display:flex;align-items:center;gap:14px;padding:14px 18px;margin-bottom:12px;border-radius:14px;background:#eee9df;font-size:14px;font-weight:600;color:#252821}
#tema-portal .tf-tank-label{white-space:nowrap}
#tema-portal .tf-tank input{flex:1;min-width:0;accent-color:#f07a12}
#tema-portal .tf-tank output{min-width:52px;text-align:right;font-weight:800}
#tema-portal .tf-list{display:grid;gap:8px;margin:0!important;padding:0!important;list-style:none!important}
#tema-portal .tf-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;margin:0!important;padding:13px 16px!important;border-radius:14px;background:#fff;border:1px solid #ece8df;list-style:none!important;cursor:pointer;transition:border-color .2s,box-shadow .2s}
#tema-portal .tf-row::before{display:none!important}
#tema-portal .tf-row:hover{box-shadow:0 8px 22px #20211f14}
#tema-portal .tf-row.is-on,#tema-portal .tf-row:focus-visible{outline:0;border-color:#f07a12;box-shadow:0 0 0 1px #f07a12}
#tema-portal .tf-row.is-best{background:#f1f8f2;border-color:#bfe0c8}
#tema-portal .tf-row.is-stale{opacity:.62}
#tema-portal .tf-mono{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;background:#1f1b17;color:#fff;font-size:15px;font-weight:800;letter-spacing:-.02em}
#tema-portal .tf-row.is-best .tf-mono{background:#2f8a4c}
#tema-portal .tf-who{display:block;min-width:0;font-size:14px;line-height:1.35;color:#3c3e37}
#tema-portal .tf-who b{margin-right:6px;font-size:16px;color:#252821}
#tema-portal .tf-who small{display:block;margin-top:2px;font-size:12px;line-height:1.4;color:#8a8c83}
#tema-portal .tf-who small a{color:inherit!important;text-decoration:underline!important;text-underline-offset:2px}
#tema-portal .tf-who small a:hover{color:#c25f08!important}
#tema-portal .tf-price{text-align:right;white-space:nowrap;line-height:1.25}
#tema-portal .tf-price b{display:block;font-size:21px;font-weight:800;letter-spacing:-.02em;color:#252821}
#tema-portal .tf-row.is-best .tf-price b{color:#22703a}
#tema-portal .tf-price em{font-style:normal;font-size:12px;font-weight:600;color:#b4530a}
#tema-portal .tf-row.is-best .tf-price em{color:#2f8a4c}
#tema-portal .tf-map-wrap{position:sticky;top:calc(var(--wp-admin--admin-bar--height,0px) + 78px)}
#tema-portal .tf-map{height:min(600px,calc(100vh - 98px));min-height:440px;border-radius:18px;overflow:hidden;background:#e9e5dc;z-index:0}
#tema-portal .tf-pin-wrap{background:none;border:0}
#tema-portal .tf-pin{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border:2px solid #fff;border-radius:50%;background:#2f8a4c;color:#fff;font:800 12px/1 Arial,sans-serif;letter-spacing:-.02em;box-shadow:0 3px 10px rgba(0,0,0,.32)}
#tema-portal .tf-pin.is-stale{background:#8a877f}

/* About */
#tema-portal .tf-about{margin-top:20px;padding:28px 30px;border-radius:18px;background:#eee9df}
#tema-portal .tf-about h2{margin:0 0 8px!important;font-size:28px!important;line-height:1.1!important;letter-spacing:-.03em!important;color:#252821!important}
#tema-portal .tf-about h2 span{color:#e87b17!important}
#tema-portal .tf-about p{margin:0 0 8px!important;max-width:60em;font-size:15px!important;line-height:1.55!important;color:#5d5f57!important}
#tema-portal .tf-about a{color:#c25f08!important}

@media(max-width:900px){
 #tema-portal .tf-board{grid-template-columns:minmax(0,1fr)}
 #tema-portal .tf-map-wrap{position:static;grid-row:1}
 #tema-portal .tf-map{height:360px;min-height:0}
}
@media(max-width:680px){
 #tema-portal .tf-hero{grid-template-columns:minmax(0,1fr);gap:20px;padding:24px 20px;margin-top:12px;border-radius:18px}
 #tema-portal .tf-hero h1{font-size:40px!important}
 #tema-portal .tf-tabs{display:flex;align-self:stretch}
 #tema-portal .tf-tabs button{flex:1;min-width:0;padding:10px 4px;font-size:14px}
 #tema-portal .tf-best{padding:20px}
 #tema-portal .tf-best-price{font-size:48px}
 #tema-portal .tf-row{grid-template-columns:36px minmax(0,1fr) auto;gap:10px;padding:12px!important}
 #tema-portal .tf-mono{width:36px;height:36px;border-radius:10px;font-size:13px}
 #tema-portal .tf-price b{font-size:18px}
 #tema-portal .tf-about{padding:22px 20px}
}
@media(prefers-reduced-motion:reduce){#tema-portal .tf-row,#tema-portal .tf-tabs button{transition:none}}
#tema-portal .tf-map .leaflet-tile-pane{filter:saturate(.55) contrast(.96)}
#tema-portal .tf-who small a{white-space:nowrap}

/* Litres or euros */
#tema-portal .tf-tank{flex-wrap:wrap}
#tema-portal .tf-mode,#tema-portal .tf-seg{display:inline-flex;gap:2px;padding:3px;border-radius:10px;background:#dfd9cc}
#tema-portal .tf-mode button,#tema-portal .tf-seg button{padding:6px 12px;border:0;border-radius:8px;background:transparent;color:#3c3e37;font-family:inherit;font-size:13px;font-weight:700;line-height:1.3;cursor:pointer;white-space:nowrap}
#tema-portal .tf-mode button[aria-pressed=true],#tema-portal .tf-seg button[aria-pressed=true]{background:#1f1b17;color:#fff}
#tema-portal .tf-mode button:focus-visible,#tema-portal .tf-seg button:focus-visible{outline:2px solid #f07a12;outline-offset:1px}
#tema-portal .tf-tank input{flex:1 1 120px}

/* Statistics */
#tema-portal .tf-stats{margin-top:20px;padding:30px;border-radius:18px;background:#fff;border:1px solid #ece8df}
#tema-portal .tf-stats-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px 24px;align-items:flex-start;margin-bottom:18px}
#tema-portal .tf-stats-head>div:first-child{flex:1 1 320px;min-width:0}
#tema-portal .tf-stats h2{margin:0 0 6px!important;font-size:32px!important;line-height:1.1!important;letter-spacing:-.03em!important;color:#252821!important}
#tema-portal .tf-stats h2 span{color:#e87b17!important}
#tema-portal .tf-stats-head p{margin:0!important;max-width:36em;font-size:14px!important;line-height:1.45!important;color:#777971!important}
#tema-portal .tf-stats-ctrl{display:flex;flex-wrap:wrap;gap:8px}
#tema-portal .tf-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}
#tema-portal .tf-cards>div{padding:14px 16px;border-radius:14px;background:#f7f4ee;min-width:0}
#tema-portal .tf-cards span{display:block;font-size:12px;font-weight:600;line-height:1.3;color:#777971}
#tema-portal .tf-cards b{display:block;margin:4px 0 2px;font-size:24px;font-weight:800;line-height:1.15;letter-spacing:-.02em;color:#252821}
#tema-portal .tf-cards em{font-style:normal}
#tema-portal .tf-cards .up,#tema-portal .tf-bar.up em{color:#b4530a}
#tema-portal .tf-cards .down,#tema-portal .tf-bar.down em{color:#22703a}
#tema-portal .tf-cards small{display:block;font-size:12px;line-height:1.3;color:#8a8c83}
#tema-portal .tf-big-chart{position:relative}
#tema-portal .tf-big-chart svg{display:block;width:100%;height:auto;touch-action:pan-y}
#tema-portal .tf-grid{stroke:#ece8df;stroke-width:1}
#tema-portal .tf-t{font:12px Arial,sans-serif;fill:#8a8c83}
#tema-portal .tf-line{fill:none;stroke:#f07a12;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
#tema-portal .tf-dot,#tema-portal .tf-hover{fill:#f07a12;stroke:#fff;stroke-width:2}
#tema-portal .tf-cross{stroke:#a29f96;stroke-width:1}
#tema-portal .tf-tip{position:absolute;padding:6px 10px;border-radius:8px;background:#1f1b17;color:#fff;font-size:12px;line-height:1.3;white-space:nowrap;pointer-events:none}
#tema-portal .tf-stats-bottom{margin-top:18px}
#tema-portal .tf-months{padding:20px;border-radius:16px;background:#f7f4ee;min-width:0}
#tema-portal .tf-months h3{margin:0 0 4px!important;font-size:20px!important;line-height:1.2!important;color:#252821!important}
#tema-portal .tf-months p{margin:0 0 12px!important;font-size:13px!important;line-height:1.4!important;color:#777971!important}
#tema-portal .tf-bars{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:3px}
#tema-portal .tf-bar{display:flex;flex-direction:column;align-items:center;min-width:0}
#tema-portal .tf-bar-top,#tema-portal .tf-bar-bottom{display:flex;width:100%;height:70px;justify-content:center}
#tema-portal .tf-bar-top{align-items:flex-end;border-bottom:1px solid #cfc9bb}
#tema-portal .tf-bar-bottom{align-items:flex-start}
#tema-portal .tf-bar i{display:block;width:72%;max-width:20px}
#tema-portal .tf-bar.up i{background:#e0873a;border-radius:3px 3px 0 0}
#tema-portal .tf-bar.down i{background:#3f9a5e;border-radius:0 0 3px 3px}
#tema-portal .tf-bar em{margin-top:4px;font-style:normal;font-size:10px;font-weight:700;line-height:1.2;white-space:nowrap}
#tema-portal .tf-bar small{font-size:10px;line-height:1.3;color:#8a8c83}
@media(max-width:900px){
}
@media(max-width:680px){
 #tema-portal .tf-stats{padding:22px 16px}
 #tema-portal .tf-stats h2{font-size:26px!important}
 #tema-portal .tf-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 #tema-portal .tf-cards b{font-size:20px}
 #tema-portal .tf-seg button{padding:6px 9px}
 #tema-portal .tf-months{padding:16px 12px}
 #tema-portal .tf-bar em{font-size:9px;letter-spacing:-.03em}
 #tema-portal .tf-bar-top,#tema-portal .tf-bar-bottom{height:54px}
 #tema-portal .tf-tank{padding:12px 14px;gap:10px}
 #tema-portal .tf-tank input{order:5;flex:1 1 100%}
 #tema-portal .tf-tank output{margin-left:auto}
}
#tema-portal .tf-map .leaflet-control-attribution{padding:1px 6px;border-radius:6px 0 0;background:rgba(255,255,255,.6);font-size:10px;line-height:1.4;color:#5d5f57}
#tema-portal .tf-map .leaflet-control-attribution a{color:inherit!important}

/* Headings and questions */
#tema-portal .tf-sr{position:absolute!important;width:1px;height:1px;margin:-1px!important;padding:0!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#tema-portal .tf-faq{margin-top:20px;padding:28px 30px;border:1px solid #ece8df;border-radius:18px;background:#fff}
#tema-portal .tf-faq h2{margin:0 0 16px!important;font-size:28px!important;line-height:1.1!important;letter-spacing:-.03em!important;color:#252821!important}
#tema-portal .tf-faq h2 span{color:#e87b17!important}
#tema-portal .tf-faq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 32px}
#tema-portal .tf-faq h3{margin:0 0 4px!important;font-size:16px!important;line-height:1.3!important;color:#252821!important}
#tema-portal .tf-faq p{margin:0!important;font-size:14px!important;line-height:1.5!important;color:#5d5f57!important}
@media(max-width:680px){
 #tema-portal .tf-faq{padding:22px 20px}
 #tema-portal .tf-faq-grid{grid-template-columns:minmax(0,1fr)}
}
