/* Toma Klíma: WordPress-only parts that the static design did not have (blog, pager, editor content). Uses the design tokens of main.css. */

/* blog list */
.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.bcard{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;transition:transform .35s var(--ease),box-shadow .35s,border-color .35s}
.bcard:hover{transform:translateY(-3px);box-shadow:0 18px 44px rgba(22,32,42,.08);border-color:var(--line-2)}
.bcard-img{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--bg-2)}
.bcard-img img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.bcard:hover .bcard-img img{transform:scale(1.04)}
.bcard-ph{display:block;width:100%;height:100%;background:linear-gradient(135deg,var(--cool-tint),var(--accent-tint))}
.bcard-body{padding:20px 20px 22px;display:flex;flex-direction:column;gap:8px;flex:1}
.bcard-body h3{font-size:1.12rem;line-height:1.3}
.bcard-body h3 a{text-decoration:none}
.bcard-body p{color:var(--ink-2);font-size:.95rem}
.bcard-body .link{margin-top:auto}
.bcard-meta{font-size:.85rem;color:var(--ink-3)}
.blog-pager{margin-top:36px}
.blog-pager .nav-links{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.blog-pager .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 14px;border:1px solid var(--line);border-radius:999px;text-decoration:none;color:var(--ink);background:#fff}
.blog-pager .page-numbers.current{background:var(--ink);border-color:var(--ink);color:#fff}

/* blog post */
.post-head{max-width:820px}
.post-sec{padding-top:48px}
.post-cover{max-width:820px;margin:0 0 32px;border-radius:var(--r);overflow:hidden;aspect-ratio:16/9}
.post-cover img{width:100%;height:100%;object-fit:cover}
.post-body{max-width:720px;font-size:1.06rem}
.post-body > * + *{margin-top:1em}
.post-body h2{font-size:1.5rem;margin-top:1.6em}
.post-body h3{font-size:1.2rem;margin-top:1.4em}
.post-body p,.post-body li{color:var(--ink-2);line-height:1.75}
.post-body ul,.post-body ol{padding-left:22px}
.post-body a{color:var(--accent);font-weight:500}
.post-body img{height:auto;border-radius:var(--r-sm)}
.post-body figure{margin:1.4em 0}
.post-body figcaption{font-size:.85rem;color:var(--ink-3);margin-top:6px}
.post-body blockquote{background:var(--bg-2);border-radius:var(--r-sm);padding:14px 18px;color:var(--ink);font-style:italic}
.post-back{margin-top:40px}

/* Fluent Forms in the design skin. Fluent's default theme is off (inc/forms.php); these rules
   map its markup onto the design's form classes (.form, .opts/.opt, .steps-bar, .consent, .uplo). */
.form .frm-fluent-form fieldset{min-width:0}
.wiz .frm-fluent-form>fieldset{display:block;animation:none}
.form .frm-fluent-form .ff-el-group{margin-bottom:12px}
.form .frm-fluent-form .ff-el-input--label{margin:0}
.form .frm-fluent-form .ff-el-input--label label{display:block;font-weight:500;font-size:.88rem;margin-bottom:6px;color:var(--ink-2)}
.form .frm-fluent-form .ff-el-form-control{font:inherit;width:100%;padding:12px 13px;border:1.5px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-size:.97rem;line-height:1.4;transition:border-color .2s,box-shadow .2s}
.form .frm-fluent-form .ff-el-form-control::placeholder{color:#98a2ac}
.form .frm-fluent-form .ff-el-form-control:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(193,49,0,.14)}
.form .frm-fluent-form textarea.ff-el-form-control{min-height:0;resize:vertical}
.form .frm-fluent-form .ff-t-container{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}
.form .frm-fluent-form .ff-t-container>.ff-t-cell{flex-basis:auto!important;width:auto;min-width:0;padding:0}
.form .frm-fluent-form .ff-el-help-message{font-size:.85rem;color:var(--ink-3);margin-top:6px;font-style:normal}
.form .frm-fluent-form .ff-el-is-error .ff-el-form-control{border-color:#b3261e}
.form .frm-fluent-form .error,.form .frm-fluent-form .text-danger{color:#b3261e;font-size:.85rem;margin-top:6px}
/* option cards (.opt) */
.form .opts{display:block;margin-bottom:14px}
.form .opts .ff-el-input--content{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.form .opts.three .ff-el-input--content{grid-template-columns:repeat(3,1fr)}
.form .opts.four .ff-el-input--content{grid-template-columns:repeat(4,1fr)}
.form .opts .ff-el-form-check{margin:0;padding:0}
.form .opts .ff-el-form-check-label{position:relative;display:block;cursor:pointer;margin:0;padding:0}
/* 4 classes deep: Fluent's own rule (.fluentform .ff-el-form-check-label .ff-el-form-check-input) loads after this file */
.form .opts .ff-el-form-check-label .ff-el-form-check-input{position:absolute;top:0;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.form .opts .ff-el-form-check-label>span{display:flex;flex-direction:column;justify-content:center;min-height:52px;padding:10px 12px;border:1.5px solid var(--line);border-radius:10px;font-size:.92rem;font-weight:500;color:var(--ink);text-align:center;line-height:1.3;transition:border-color .2s,background .2s,transform .2s var(--ease)}
.form .opts .ff-el-form-check-label>span small{display:block;font-weight:400;color:var(--ink-3);font-size:.78rem}
.form .opts .ff-el-form-check-label:hover>span{border-color:var(--ink-3)}
.form .opts .ff-el-form-check-input:checked+span{border-color:var(--accent);background:var(--accent-tint);color:var(--accent-dark)}
.form .opts .ff-el-form-check-input:focus-visible+span{box-shadow:0 0 0 3px rgba(193,49,0,.2)}
/* consent */
.form .consent .ff-el-form-check{margin:0}
.form .consent .ff-el-form-check-label{display:flex;gap:12px;align-items:center;font-size:.86rem;font-weight:400;color:var(--ink-2);margin:8px 0 4px;padding:8px 0;cursor:pointer}
.form .consent input[type=checkbox]{width:22px;height:22px;flex:0 0 22px;margin:0;accent-color:var(--accent)}
/* submit */
.form .frm-fluent-form .ff_submit_btn_wrapper{margin:6px 0 0}
.form .frm-fluent-form .ff-btn-submit{width:100%}
.form .frm-fluent-form .ff-btn-submit:disabled{opacity:.7;cursor:progress}
/* wizard: step header = the design's steps bar */
.wiz .ff-step-header{margin:14px 0 22px}
.wiz .ff-step-titles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;overflow:visible;list-style:none;margin:0;padding:0}
.wiz .ff-step-titles li{display:block;flex:none;min-height:0;font-size:.8rem;font-weight:400;color:var(--ink-3);padding:10px 0 0;margin:0;background:none;border:0;border-top:3px solid var(--line);border-radius:0;text-align:left;box-shadow:none;transition:border-color .3s,color .3s}
.wiz .ff-step-titles li:before,.wiz .ff-step-titles li:after{display:none!important}
.wiz .ff-step-titles li .ff-step-title-text,.wiz .ff-step-titles li a,.wiz .ff-step-titles li button{margin:0;color:inherit;text-decoration:none;font:inherit;background:none;border:0;padding:0}
.wiz .ff-step-titles li.ff_active{border-top-color:var(--accent);color:var(--ink);font-weight:500}
.form.wiz .ff-step-titles li{color:var(--ink-3)!important}
.form.wiz .ff-step-titles li.ff_active{color:var(--ink)!important}
.form.wiz .ff-step-titles li.ff_completed{color:var(--ink-2)!important}
.form.wiz .ff-step-titles li .ff-step-title-text{color:inherit!important}
.wiz .ff-step-titles li.ff_completed{border-top-color:var(--accent-soft);color:var(--ink-2)}
.wiz .tk-legend{margin-bottom:12px}
.wiz .tk-legend .legend{font-family:'Comfortaa',sans-serif;font-weight:700;font-size:1.15rem;margin-bottom:4px;color:var(--ink)}
.wiz .tk-legend .hint{color:var(--ink-2);font-size:.9rem;margin:0}
.wiz .step-nav,.wiz .ff-step-t-container{display:flex;gap:10px;justify-content:space-between;margin-top:6px}
.wiz .step-nav::after{display:none}
.wiz .ff-step-t-container .ff-t-cell{flex:0 0 auto;width:auto;padding:0}
.wiz .ff-step-t-container .ff-t-column-2{flex:1}
.wiz .step-nav .ff-btn,.wiz .ff-step-t-container .ff-btn-prev{float:none!important;display:inline-flex;align-items:center;justify-content:center;padding:15px 26px;border-radius:999px;font:inherit;font-weight:500;font-size:1rem;border:1.5px solid var(--line);background:#fff;color:var(--ink);cursor:pointer;transition:transform .25s var(--ease),background .25s,box-shadow .25s,border-color .25s}
.wiz .step-nav .ff-btn-prev:hover,.wiz .ff-step-t-container .ff-btn-prev:hover{border-color:var(--ink-3);transform:translateY(-2px)}
.wiz .step-nav .ff-btn-next{flex:1;background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 8px 22px rgba(193,49,0,.24)}
.wiz .step-nav .ff-btn-next:hover{background:var(--accent-dark);transform:translateY(-2px)}
.wiz .fluentform-step:first-child .ff-btn-prev{display:none}
.form.wiz>.after{display:none}
.form.wiz:has(.ff-step-body>.fluentform-step:last-child.active)>.after{display:block}
/* photo upload (.uplo) */
.wiz .uplo{padding:14px 16px}
.wiz .uplo .ff-el-input--label label{color:var(--ink);font-size:.92rem;margin-bottom:2px}
.wiz .uplo .ff_file_upload_holder{display:block;margin:6px 0 0;cursor:pointer}
.form.wiz .uplo .ff_upload_btn.ff-btn{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:999px;border:1.5px solid var(--line)!important;background:#fff!important;color:var(--ink)!important;font-weight:500;font-size:.9rem;box-shadow:none}
.form.wiz .uplo:hover .ff_upload_btn.ff-btn{border-color:var(--accent)!important;color:var(--accent-dark)!important}
.wiz .uplo .ff-el-help-message{margin-top:8px}
.wiz .uplo .ff-uploaded-list{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:10px}
.wiz .uplo .ff-upload-preview{border:1px solid var(--line);border-radius:8px;background:#fff;max-width:100%}
/* team cards (Rólunk): the photos are 2:3 portraits, the design's 4:3 frame cut them at the chin; 4:5 shows them
   down to the chest and keeps the three cards a sensible height */
.person .ph{aspect-ratio:4/5}
.person .ph img.is-lenart{object-position:center 18%}
/* tablet: three portrait cards side by side (the design's 2 then 1 column left an orphan or a 900 px tall photo) */
@media (min-width:701px) and (max-width:1000px){
  .team{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .person .body{padding:16px 16px 18px}
}
/* phone (700 px and below): photo left, name and phone right */
@media (max-width:700px){
  .person{flex-direction:row;align-items:stretch}
  .person .ph{flex:0 0 40%;max-width:260px;aspect-ratio:4/5;align-self:flex-start}
  .person .body{justify-content:center;min-width:0}
}
@media (max-width:420px){
  .person .ph{flex-basis:42%}
  .person .body{padding:16px 16px 16px 18px}
}
/* success message (replaces the form) */
.form.sent>h3,.form.sent>.sub,.form.sent>.after{display:none}
.form .ff-message-success{border:0;box-shadow:none;padding:12px 4px;margin:0;text-align:center;background:none;color:var(--ink)}
.ok-msg svg{display:block;width:48px;height:48px;color:#1f9d55;margin:0 auto 10px}
.ok-msg h3{margin-bottom:6px}
.ok-msg p{margin:6px auto 0;color:var(--ink-2)}
.ok-msg .recap{margin-top:14px}
.ok-msg .timeline{list-style:none;text-align:left;display:grid;gap:10px;margin:16px 0 0;padding:0}
.ok-msg .timeline li{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start}
.ok-msg .timeline li i{width:26px;height:26px;border-radius:50%;background:var(--accent-tint);color:var(--accent);display:grid;place-items:center;font-style:normal;font-weight:700;font-size:.8rem}
.ok-msg .timeline li b{display:block}
.ok-msg .timeline li span{color:var(--ink-2);font-size:.9rem}
.ok-msg .ok-urgent{font-size:.9rem;margin-top:16px}
/* thank-you page (page-koszonooldal.php): the success message as a page */
.ty{padding:64px 0 88px;background:var(--bg-2);border-bottom:1px solid var(--line)}
.ty-card{max-width:620px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:20px;padding:40px 40px 34px;text-align:center;box-shadow:0 24px 60px rgba(22,32,42,.08)}
.ty-card h1{font-size:clamp(1.75rem,3.2vw,2.3rem);margin-bottom:10px}
.ty-card .lead{margin:0 auto;font-size:1.05rem}
.ty-card .recap{margin:22px 0 0}
.ty-card .recap [hidden]{display:none}
.ty-card .recap div:not([hidden])~div{margin-top:4px}
.ty-card .recap div+div{margin-top:0}
.ty-card .timeline{margin-top:24px}
.ty-cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:28px}
@media (max-width:640px){.ty{padding:40px 0 64px}.ty-card{padding:28px 20px 24px}.ty-card h1{font-size:1.6rem}}
@media (max-width:860px){
  .form .frm-fluent-form .ff-t-container{grid-template-columns:1fr;row-gap:0}
  .form .opts.four .ff-el-input--content,.form .opts.three .ff-el-input--content{grid-template-columns:repeat(2,1fr)}
  .form .opts .ff-el-input--content>.ff-el-form-check:last-child:nth-child(odd){grid-column:1/-1}
  .form .opts.three.keep3 .ff-el-input--content{grid-template-columns:repeat(3,1fr)}
  .form .opts.keep3 .ff-el-input--content>.ff-el-form-check:last-child{grid-column:auto}
}
@media (max-width:620px){
  .wiz .step-nav{flex-direction:column-reverse}
  .wiz .step-nav .ff-btn{width:100%}
  .wiz .ff-step-t-container{flex-direction:column-reverse}
  .wiz .ff-step-t-container .ff-btn-prev{width:100%}
}

/* form fine-tuning (2026-10-19): one control height, equal cards per row, 18 px checkbox */
.form .frm-fluent-form input.ff-el-form-control:not([type=file]){height:48px}
.form .frm-fluent-form select.ff-el-form-control{height:48px;padding-right:42px;-webkit-appearance:none;appearance:none;cursor:pointer;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8590' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/16px}
.form .frm-fluent-form input[type=number]{-moz-appearance:textfield;appearance:textfield}
.form .frm-fluent-form input[type=number]::-webkit-inner-spin-button,.form .frm-fluent-form input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.form .opts .ff-el-input--content{align-items:stretch}
.form .opts .ff-el-form-check{display:flex}
.form .opts .ff-el-form-check-label{display:flex;flex:1;min-width:0}
.form .opts .ff-el-form-check-label>span{flex:1;min-width:0}
.form .ff-t-container .opts .ff-el-form-check-label>span{min-height:48px;padding-top:8px;padding-bottom:8px}
.form .ff-t-container .opts{margin-bottom:12px}
.form .consent .ff-el-form-check-label{align-items:flex-start}
.form .consent .ff_tc_checkbox{display:flex;align-items:center;height:1lh;flex:0 0 18px}
.form .consent input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:0}
/* form buttons = the design's .btn (same padding and line-height) */
.form .frm-fluent-form .ff-btn{line-height:1.6}
.form .frm-fluent-form .ff-btn-submit,.wiz .step-nav .ff-btn,.wiz .ff-step-t-container .ff-btn-prev{padding:15px 26px;font-size:1rem}
/* the step container clips its overflow (slide animation): keep the button shadow inside it */
.wiz .step-nav,.wiz .ff-step-t-container{padding-bottom:16px}
.wiz .step-nav .ff-btn-next,.wiz .ff-step-t-container .ff-btn-submit{box-shadow:0 12px 18px -12px rgba(193,49,0,.55)}
/* under 640 px every large button is one size smaller, the same everywhere (~47 px) */
@media (max-width:640px){
  .btn:not(.btn-sm),.form .frm-fluent-form .ff-btn-submit,.wiz .step-nav .ff-btn,.wiz .ff-step-t-container .ff-btn-prev,.mbar .btn{padding-top:10px;padding-bottom:10px;font-size:.95rem}
}

/* card rows: if one title wraps, every title of the block reserves two lines, so the texts start on one line */
@media (min-width:861px){
  .svc .body h3,.step h3{min-height:2.28em}
}
/* card footers: the link never breaks, the price text wraps instead */
.svc .meta a{white-space:nowrap;flex:0 0 auto}
.svc .meta b{min-width:0}

/* product cards: a spec value never breaks ("3,43 kW"); where four columns get narrow, two specs (cooling, heating) like on mobile */
.specs div{padding:8px;min-width:0}
.specs dd{white-space:nowrap}
@media (min-width:1001px) and (max-width:1279px){
  .pgrid:not(.three) .specs{grid-template-columns:repeat(2,1fr)}
  .pgrid:not(.three) .specs div:nth-child(3){display:none}
}

/* hero calculator: one left edge for every row, the same select as the forms, a modern info line */
.calc select{height:48px;padding:0 42px 0 14px;-webkit-appearance:none;appearance:none;cursor:pointer;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8590' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/16px}
.calc .res{background:none;border-radius:0;padding:16px 0 0;margin-bottom:16px;border-top:1px solid var(--line)}
.calc .rec{border-width:1.5px;padding:10px 14px}
.calc .tip{margin-top:12px}
.calc .warn{padding:11px 14px}
.calc .warn summary{list-style:none;position:relative;padding:0 26px 0 28px}
.calc .warn summary::-webkit-details-marker{display:none}
.calc .warn summary::before{content:"";position:absolute;left:0;top:calc((1lh - 18px) / 2);width:18px;height:18px;background:var(--cool);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v5.5'/%3E%3Cpath d='M12 7.6v.1'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v5.5'/%3E%3Cpath d='M12 7.6v.1'/%3E%3C/svg%3E") center/contain no-repeat}
.calc .warn summary::after{content:"";position:absolute;right:0;top:calc((1lh - 16px) / 2);width:16px;height:16px;background:var(--ink-3);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .35s var(--ease)}
.calc .warn[open]:not(.closing) summary::after{transform:rotate(180deg)}
.calc .warn summary:hover::after{background:var(--ink-2)}
.calc .warn p{padding-left:28px}

/* cookie consent (inc/consent.php) */
.cc{position:fixed;left:20px;bottom:20px;z-index:45;width:min(440px,calc(100vw - 40px));background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 24px 60px rgba(22,32,42,.18);padding:20px 20px 18px}
.cc[hidden]{display:none}
.cc-title{font-family:'Comfortaa',sans-serif;font-weight:700;font-size:1.02rem;margin-bottom:6px}
.cc-text{font-size:.9rem;color:var(--ink-2);margin-bottom:14px}
.cc-prefs{display:grid;gap:10px;margin-bottom:14px}
.cc-prefs[hidden]{display:none}
.cc-row{display:flex;gap:12px;align-items:flex-start;font-size:.88rem;color:var(--ink-2);cursor:pointer}
.cc-row input{width:20px;height:20px;flex:0 0 20px;margin:2px 0 0;accent-color:var(--accent)}
.cc-row b{display:block;color:var(--ink);font-weight:500}
.cc-btns{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cc-btns [hidden]{display:none}
.cc-link{background:none;border:0;padding:8px 4px;font:inherit;font-size:.9rem;font-weight:500;color:var(--accent);cursor:pointer}
@media (max-width:860px){
  .cc{left:12px;right:12px;width:auto;bottom:calc(76px + env(safe-area-inset-bottom))}
}

/* the logo keeps its ratio (the img carries width/height attributes against layout shift) */
.nav .logo img{object-fit:contain;object-position:left center}
.mnav .top img,footer img{width:auto}

/* logged-in: the sticky header sits below the admin bar */
.admin-bar .hdr{top:32px}
@media (max-width:782px){.admin-bar .hdr{top:46px}}

@media (max-width:1000px){.blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){.blog-grid{grid-template-columns:minmax(0,1fr)}}
