/*
Theme Name: Zdravy Talir
Theme URI: https://selvarontixa.eu
Author: Zdravy Talir Redakce
Description: Cisty editorialni magazin o zdravem stravovani.
Version: 1.0
Text Domain: zdravytalir
*/

:root{
  --accent:#2f7d4f; --accent-d:#245f3d; --accent2:#e8a13a;
  --ink:#1d2721; --mute:#5b6b60; --line:#e6ece7; --wash:#f4f7f2; --paper:#fff;
  --maxw:1160px; --radius:14px;
  --f-display:"Lora",Georgia,"Times New Roman",serif; --f-body:"Inter",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--f-body);color:var(--ink);background:var(--paper);font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}
h1,h2,h3,h4{font-family:var(--f-display);font-weight:600;line-height:1.15;letter-spacing:-.01em;margin:0}
.eyebrow{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}

/* Header */
.site-head{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.site-head .wrap{display:flex;align-items:center;gap:26px;height:68px}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--f-display);font-weight:600;font-size:22px;letter-spacing:-.02em;white-space:nowrap}
.brand .mark{width:32px;height:32px;border-radius:9px;background:var(--accent);display:grid;place-items:center;color:#fff;flex:0 0 auto}
.brand .mark svg{width:19px;height:19px}
.nav{display:flex;gap:22px;margin-left:8px}
.nav a{font-size:15px;font-weight:500;color:var(--ink);padding:6px 0;border-bottom:2px solid transparent;transition:.15s}
.nav a:hover{color:var(--accent);border-color:var(--accent)}
.head-right{margin-left:auto;display:flex;align-items:center;gap:14px}
.lang{position:relative;font-size:14px;color:var(--mute);cursor:pointer;display:flex;align-items:center;gap:5px}
.lang svg{width:14px;height:14px}
.btn{display:inline-flex;align-items:center;gap:7px;background:var(--accent);color:#fff;font-weight:600;font-size:14px;padding:9px 16px;border-radius:999px;border:0;cursor:pointer;transition:.15s}
.btn:hover{background:var(--accent-d)}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}
.btn.ghost:hover{border-color:var(--accent);color:var(--accent)}
.icon-btn{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:var(--mute)}
.icon-btn:hover{background:var(--wash);color:var(--accent)}
.icon-btn svg{width:19px;height:19px}
.burger{display:none}

/* Cards */
.card{display:block;background:var(--paper);border-radius:var(--radius);overflow:hidden}
.card .thumb{aspect-ratio:16/10;overflow:hidden;background:var(--wash);border-radius:12px}
.card .thumb img{width:100%;height:100%;object-fit:cover;transition:.4s}
.card:hover .thumb img{transform:scale(1.04)}
.card .cat{margin:12px 0 6px;display:inline-block;font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--accent)}
.card h3{font-size:19px;margin:2px 0 8px}
.card:hover h3{color:var(--accent-d)}
.card .meta{font-size:13px;color:var(--mute);display:flex;gap:10px;align-items:center}
.card p.exc{color:var(--mute);font-size:15px;margin:6px 0 0}
.dot{width:3px;height:3px;border-radius:50%;background:var(--mute);display:inline-block}

/* Hero */
.hero{padding:34px 0 10px}
.hero-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:34px;align-items:stretch}
.hero-main{position:relative;border-radius:18px;overflow:hidden;min-height:420px;display:flex;align-items:flex-end;color:#fff}
.hero-main img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-main .veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.72))}
.hero-main .cap{position:relative;padding:32px}
.hero-main .cap .eyebrow{color:#fff;opacity:.9}
.hero-main h1{font-size:40px;margin:10px 0 10px;max-width:16ch}
.hero-main .cap .meta{color:#fff;opacity:.85;font-size:14px}
.hero-side{display:flex;flex-direction:column;gap:18px}
.hero-side .mini{display:grid;grid-template-columns:104px 1fr;gap:14px;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--line)}
.hero-side .mini:last-child{border-bottom:0}
.hero-side .mini .thumb{aspect-ratio:1/1;border-radius:11px}
.hero-side .mini h3{font-size:16px;margin:5px 0 0}

/* Section */
.section{padding:36px 0}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:20px;border-top:2px solid var(--ink);padding-top:14px}
.sec-head h2{font-size:26px}
.sec-head a.all{font-size:14px;font-weight:600;color:var(--accent)}
.grid{display:grid;gap:26px}
.g4{grid-template-columns:repeat(4,1fr)}
.g3{grid-template-columns:repeat(3,1fr)}
.g2{grid-template-columns:repeat(2,1fr)}

/* Trust band */
.trust{background:var(--wash);border-radius:18px;padding:34px;margin:8px 0;display:grid;grid-template-columns:1.1fr 1fr;gap:34px;align-items:center}
.trust .stats{display:flex;gap:30px;margin:16px 0 0}
.trust .stats b{font-family:var(--f-display);font-size:30px;display:block;color:var(--accent)}
.trust .stats span{font-size:13px;color:var(--mute)}
.trust .team{display:flex;gap:18px}
.trust .team .p{text-align:center}
.trust .team img{width:78px;height:78px;border-radius:50%;object-fit:cover;margin:0 auto 8px}
.trust .team .p b{font-size:14px;display:block}
.trust .team .p span{font-size:12px;color:var(--mute)}

/* Newsletter */
.news{background:var(--accent);color:#fff;border-radius:18px;padding:40px;text-align:center;margin:34px 0}
.news h2{font-size:28px;color:#fff}
.news p{opacity:.9;max-width:52ch;margin:8px auto 18px}
.news form{display:flex;gap:10px;max-width:440px;margin:0 auto}
.news input{flex:1;border:0;border-radius:999px;padding:13px 18px;font-size:15px;font-family:inherit}
.news .btn{background:var(--ink)}
.news .btn:hover{background:#000}
.news small{display:block;opacity:.75;margin-top:12px;font-size:12px}

/* Single article */
.article{max-width:760px;margin:0 auto;padding:34px 20px 10px}
.article .cat{color:var(--accent);font-weight:600;text-transform:uppercase;letter-spacing:.05em;font-size:12px}
.article h1{font-size:40px;margin:12px 0 14px;line-height:1.1}
.article .lead{font-size:20px;color:var(--mute);line-height:1.55;margin:0 0 20px}
.byline{display:flex;align-items:center;gap:12px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.byline img{width:44px;height:44px;border-radius:50%;object-fit:cover}
.byline b{font-size:14px}
.byline span{font-size:13px;color:var(--mute)}
.article .feat{margin:24px 0;border-radius:16px;overflow:hidden}
.prose{font-size:18px;line-height:1.75}
.prose h2{font-size:26px;margin:34px 0 12px}
.prose h3{font-size:21px;margin:26px 0 10px}
.prose p{margin:0 0 18px}
.prose ul,.prose ol{margin:0 0 18px;padding-left:22px}
.prose li{margin:6px 0}
.prose blockquote{margin:24px 0;padding:8px 20px;border-left:3px solid var(--accent);color:var(--mute);font-style:italic;font-size:19px}
.prose a{color:var(--accent);text-decoration:underline}
.tags{margin:26px 0;display:flex;gap:8px;flex-wrap:wrap}
.tags a{font-size:13px;background:var(--wash);color:var(--mute);padding:5px 12px;border-radius:999px}
.author-box{display:flex;gap:16px;background:var(--wash);border-radius:16px;padding:22px;margin:30px 0}
.author-box img{width:64px;height:64px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.author-box b{font-size:16px}.author-box .role{color:var(--accent);font-size:13px;font-weight:600}
.author-box p{margin:6px 0 0;color:var(--mute);font-size:15px}

/* Page header */
.page-head{padding:40px 0 6px}
.page-head h1{font-size:38px}
.page-head p{color:var(--mute);max-width:60ch;margin:10px 0 0}
.article-page{max-width:760px;margin:0 auto;padding:20px}
.article-page .prose h2{font-size:24px}

/* Footer */
.site-foot{background:var(--ink);color:#cfd8d1;margin-top:50px;padding:48px 0 26px}
.site-foot .cols{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:30px}
.site-foot .brand{color:#fff}
.site-foot p.about{font-size:14px;color:#9fb0a5;margin:14px 0 0;max-width:34ch}
.site-foot h4{color:#fff;font-size:14px;letter-spacing:.04em;text-transform:uppercase;margin:0 0 12px}
.site-foot ul{list-style:none;margin:0;padding:0}
.site-foot li{margin:8px 0}
.site-foot a{font-size:14px;color:#cfd8d1}.site-foot a:hover{color:#fff}
.social{display:flex;gap:10px;margin-top:16px}
.social a{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.08);display:grid;place-items:center}
.social a:hover{background:var(--accent)}.social svg{width:17px;height:17px;fill:#fff}
.foot-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:34px;padding-top:20px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:13px;color:#8ba093}
.foot-bottom .disc{max-width:70ch}

/* Cookie */
#cookie{position:fixed;left:20px;bottom:20px;right:20px;max-width:420px;background:#fff;border:1px solid var(--line);box-shadow:0 12px 40px rgba(0,0,0,.16);border-radius:14px;padding:20px;z-index:99;display:none}
#cookie p{font-size:14px;color:var(--mute);margin:0 0 14px}
#cookie .row{display:flex;gap:10px}
#cookie a{color:var(--accent);text-decoration:underline}

/* mobile menu panel */
#mmenu{display:none;position:fixed;inset:68px 0 auto 0;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 14px 30px rgba(0,0,0,.08);z-index:49;padding:8px 20px 18px}
#mmenu.open{display:block}
#mmenu a{display:block;padding:12px 0;font-size:17px;font-weight:500;border-bottom:1px solid var(--line)}
#mmenu a:last-child{border-bottom:0}

@media(max-width:960px){
  .hero-grid{grid-template-columns:1fr}
  .g4{grid-template-columns:repeat(2,1fr)}.g3{grid-template-columns:repeat(2,1fr)}
  .trust,.site-foot .cols{grid-template-columns:1fr;gap:24px}
  .hero-main h1{font-size:30px}
  .nav,.lang{display:none}.burger{display:grid}
  .head-right>.btn{display:none}
  .brand{font-size:19px}
  .site-head .wrap{gap:12px}
  .site-foot .cols{gap:26px}
}
@media(max-width:640px){
  body{font-size:16px}
  .wrap{padding:0 16px}
  .g4,.g3,.g2{grid-template-columns:1fr}
  .news form{flex-direction:column}
  .news{padding:28px 20px}.news h2{font-size:23px}
  .hero{padding:20px 0 6px}.hero-main{min-height:300px}.hero-main .cap{padding:22px}
  .section{padding:26px 0}.sec-head h2{font-size:22px}
  .article,.article-page{padding-left:16px;padding-right:16px}
  .article h1,.page-head h1{font-size:27px;line-height:1.15}
  .article .lead{font-size:18px}
  .prose{font-size:17px}.prose h2{font-size:22px}
  .trust{padding:24px}.trust .stats{gap:20px;flex-wrap:wrap}.trust .stats b{font-size:26px}
  .trust .team{flex-wrap:wrap;justify-content:center;gap:14px}
  .prose table{display:block;overflow-x:auto;white-space:nowrap}
  .author-box{flex-direction:column;text-align:center}.author-box img{margin:0 auto}
  .foot-bottom{flex-direction:column}
}

/* tables in prose */
.prose table{width:100%;border-collapse:collapse;margin:22px 0;font-size:15px}
.prose th,.prose td{border:1px solid var(--line);padding:10px 13px;text-align:left;vertical-align:top}
.prose thead th{background:var(--wash);font-family:var(--f-body);font-weight:600;color:var(--ink)}
.prose tbody tr:nth-child(even){background:#fafcfa}

/* forms */
.news .news-msg{margin-top:12px;font-size:14px;font-weight:600;color:#fff;min-height:18px}
.zt-form{max-width:560px;margin:8px 0 0}
.zt-form .fld{margin-bottom:14px}
.zt-form label{display:block;font-size:13px;font-weight:600;color:var(--mute);margin-bottom:6px}
.zt-form input,.zt-form textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 14px;font-size:15px;font-family:inherit;background:var(--wash)}
.zt-form input:focus,.zt-form textarea:focus{outline:none;border-color:var(--accent);background:#fff}
.zt-form textarea{resize:vertical}
.zt-form .btn{margin-top:4px}
.zt-form .zt-msg{margin-top:12px;font-size:14px;font-weight:600;min-height:18px}
