/* ARSORA Flowline v1.0 | Created by ARSORA.CZ | Rekuperace-Meltem.cz */
/* Rekuperace-Meltem V0.26 - global visual system refresh
   Goal: wider, more compact, calmer, more consistent. WorkPortal geometry, Meltem character. */

:root{
  --rm-max:1480px;
  --rm-section:74px;
  --rm-radius:16px;
  --rm-radius-lg:22px;
  --rm-shadow-soft:0 10px 32px rgba(30,56,77,.055);
  --rm-shadow-hover:0 16px 42px rgba(30,56,77,.09);
}

body{font-size:16px;line-height:1.62;background:#fff}

@media (min-width:1180px){
  .container{width:min(var(--rm-max),calc(100% - 72px))}
}

/* Header - wider and quieter */
.nav-wrap{height:74px;gap:24px}
.brand-image{flex-basis:285px}
.brand-image img{width:285px;max-height:52px}
.main-nav{gap:19px;font-size:.88rem}
.main-nav a{padding:25px 0 23px}
.btn{min-height:46px;padding:0 20px;border-radius:10px}

/* Typography - strong, but less oversized */
h1,h2,h3{letter-spacing:-.035em}
h1{font-size:clamp(2.8rem,4.35vw,4.65rem);line-height:1.045}
h2{font-size:clamp(2rem,2.9vw,2.95rem);line-height:1.08}
.lead{font-size:1.04rem;line-height:1.68}
.eyebrow{font-size:.70rem;letter-spacing:.14em}

/* Global rhythm */
.section{padding:var(--rm-section) 0}
.section + .section{border-top:1px solid rgba(211,222,231,.62)}
.section-soft{background:#f5f8fa}
.section-head{grid-template-columns:minmax(0,1.08fr) minmax(300px,.72fr);gap:44px;margin-bottom:32px;align-items:end}
.section-head>div{max-width:790px}
.section-head .lead{max-width:600px}

/* Page heroes - WorkPortal-like geometry, Meltem visual language */
.page-hero,.page-hero-premium{padding:54px 0 58px}
.page-hero-premium{background:linear-gradient(125deg,#f4f8fb 0%,#fbfdfe 54%,#edf4f8 100%)}
@media (min-width:901px){
  .page-hero .page-hero-grid,
  .page-hero.page-hero-premium .page-hero-grid,
  .page-hero.page-hero-visual .page-hero-grid{
    grid-template-columns:minmax(0,.88fr) minmax(560px,1.12fr);
    gap:54px;
    align-items:start;
  }
  .reference-detail-grid{
    grid-template-columns:minmax(0,.82fr) minmax(600px,1.18fr);
    gap:54px;
  }
}
.page-hero h1,.reference-detail-grid h1{font-size:clamp(2.75rem,4vw,4.45rem);line-height:1.035;max-width:780px;margin:12px 0 18px}
.page-hero .lead,.reference-detail-grid .lead{font-size:1.02rem;line-height:1.68;max-width:700px}
.hero-media-xl,.hero-product-stage,.hero-photo-stage,.hero-diagram-stage,
.page-hero-tech,.page-hero-technical,.local-hero-technical,.hero-photo-card,.hero-diagram-card{
  min-height:470px;border-radius:var(--rm-radius-lg);box-shadow:var(--rm-shadow-soft)
}
.hero-photo-stage img,.hero-photo-card img{min-height:470px}
.hero-index-media{min-height:430px}.hero-index-media img{min-height:430px}

/* Reference heroes */
.reference-detail-hero{padding:56px 0 60px}
.reference-detail-image{min-height:470px;border-radius:var(--rm-radius-lg);box-shadow:var(--rm-shadow-soft)}
.reference-detail-image>img{min-height:470px}
.reference-product-overlay{right:16px;bottom:16px;border-radius:14px;box-shadow:0 10px 28px rgba(20,46,68,.16)}

/* Cards: one visual grammar across the whole site */
.journey-card,.topic-card,.hub-card,.answer-card-grid>a,.related-card,
.catalog-mini-grid a,.catalog-category,.family-card,.accessory-grid article,
.solution-grid a,.article-grid a,.service-grid article,.reference-card,
.catalog-family-tile,.installation-card,.installation-detail,.side-card{
  border-radius:var(--rm-radius);
  box-shadow:none;
  border-color:#dce6ed;
}
.journey-card,.hub-card,.answer-card-grid>a{padding:23px;min-height:220px}
.journey-card>span{margin-bottom:25px}
.hub-card h3{margin:22px 0 9px}
.topic-card>div:last-child{padding:21px}
.topic-media{height:205px}
.reference-card{transition:.18s ease}
.reference-card:hover,.topic-card:hover,.journey-card:hover,.hub-card:hover,.answer-card-grid>a:hover,
.catalog-family-tile:hover,.related-card:hover{
  transform:translateY(-2px);box-shadow:var(--rm-shadow-hover);border-color:#b7cddd
}
.reference-image{height:285px}
.reference-body{padding:20px}

/* Grids - broad, compact */
.journey-grid,.topic-grid,.answer-card-grid,.hub-grid{gap:15px}
.reference-grid{gap:16px}
.catalog-family-row{gap:16px}
.related-grid{gap:12px}
.related-section{padding:48px 0}
.related-card{min-height:145px;padding:19px}

/* Product/catalog presentation */
.catalog-showcase-section{padding-top:58px}
.catalog-primary-family{min-height:400px;border-radius:20px;box-shadow:var(--rm-shadow-soft)}
.catalog-primary-copy{padding:40px 42px}
.catalog-primary-media{min-height:400px;padding:30px}
.catalog-primary-copy h2{font-size:clamp(2.35rem,3.5vw,3.65rem)}
.catalog-family-tile{min-height:350px}
.catalog-family-tile-media{height:172px}
.catalog-family-tile-copy{padding:22px 23px 24px}

/* Content pages - readable text, wider compositions */
.content-grid{grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:52px}
.reference-article-grid{grid-template-columns:minmax(0,1fr) 320px;gap:54px}
.reference-article{max-width:900px}
.prose{max-width:940px}
.content-copy h2,.reference-article h2{margin-top:36px}

/* FAQ and CTA */
.faq-list{gap:8px}.faq-item{border-radius:12px}.faq-item button{padding:16px 18px}
.cta-panel{border-radius:20px}.cta-copy{padding:40px}.cta-side{padding:36px}

/* Footer */
.site-footer{padding:48px 0 22px}
.footer-grid{gap:34px}

/* Tablet/mobile keep breathing room without feeling sparse */
@media(max-width:1179px){
  .container{width:min(100% - 40px,1240px)}
}
@media(max-width:900px){
  .section{padding:62px 0}
  .page-hero,.page-hero-premium,.reference-detail-hero{padding:46px 0 50px}
  .page-hero h1,.reference-detail-grid h1{font-size:clamp(2.45rem,8vw,3.8rem)}
  .hero-media-xl,.hero-product-stage,.hero-photo-stage,.hero-diagram-stage,
  .page-hero-tech,.page-hero-technical,.local-hero-technical,.hero-photo-card,.hero-diagram-card,
  .reference-detail-image{min-height:340px}
  .hero-photo-stage img,.hero-photo-card img,.reference-detail-image>img{min-height:340px}
}
@media(max-width:620px){
  .container{width:min(100% - 28px,1240px)}
  .section{padding:52px 0}
  .section-head{margin-bottom:26px}
  .page-hero h1,.reference-detail-grid h1{font-size:clamp(2.25rem,11vw,3.15rem)}
  .reference-image{height:225px}
}

/* V0.27 - Realizace hub: less empty, clearer hierarchy */
.realizace-hero .page-hero-grid{align-items:start}
.realizace-hero-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px}
.realizace-hero-tags a{display:inline-flex;align-items:center;min-height:34px;padding:6px 11px;border:1px solid #d9e6ef;border-radius:999px;background:rgba(255,255,255,.72);color:#4d6b81;font-size:.78rem;font-weight:750}
.realizace-hero-tags a:hover{border-color:#9fc4df;color:var(--blue)}
.realizace-featured-section{padding-top:58px;padding-bottom:62px}
.featured-reference{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr);align-items:stretch;overflow:hidden;border:1px solid #dce6ed;border-radius:20px;background:#fff;box-shadow:var(--rm-shadow-soft)}
.featured-reference-media{position:relative;min-height:430px;overflow:hidden;background:#eef4f8}
.featured-reference-media img{width:100%;height:100%;min-height:430px;object-fit:cover;object-position:center top;transition:transform .3s ease}
.featured-reference:hover .featured-reference-media img{transform:scale(1.015)}
.featured-reference-media span{position:absolute;left:18px;top:18px;padding:7px 11px;border-radius:999px;background:rgba(33,79,115,.92);color:#fff;font-size:.72rem;font-weight:850}
.featured-reference-copy{display:flex;flex-direction:column;justify-content:center;padding:42px 44px}
.featured-reference-copy h2{font-size:clamp(2rem,3vw,3rem);margin:10px 0 16px}
.featured-reference-copy .lead{margin:0;max-width:600px}
.featured-reference-facts{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 28px}
.featured-reference-facts span{padding:6px 10px;border-radius:999px;background:#f1f6f9;border:1px solid #dbe6ee;color:#4b677b;font-size:.75rem;font-weight:750}
.featured-reference-copy .btn{align-self:flex-start}
.realizace-grid .reference-card{min-height:100%;display:flex;flex-direction:column}
.realizace-grid .reference-body{display:flex;flex-direction:column;flex:1}
.realizace-grid .reference-body .text-link{margin-top:auto;padding-top:8px}
.realizace-grid .mini-label{text-transform:none;letter-spacing:.02em;font-size:.72rem;color:#6b8192}
@media(max-width:900px){.featured-reference{grid-template-columns:1fr}.featured-reference-media,.featured-reference-media img{min-height:330px}.featured-reference-copy{padding:30px}}
@media(max-width:560px){.realizace-hero-tags{display:none}.featured-reference-media,.featured-reference-media img{min-height:260px}.featured-reference-copy{padding:24px 20px}}

/* V0.28 - pain-first information architecture: PROČ rekuperaci */
.why-section{background:#fff}
.why-section-head{align-items:end}
.why-section-head .text-link{display:inline-flex;margin-top:12px}
.why-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.why-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid #dce6ed;border-radius:18px;background:#fff;color:inherit;min-height:100%;transition:.18s ease}
.why-card:hover{transform:translateY(-2px);border-color:#b7cddd;box-shadow:var(--rm-shadow-hover)}
.why-card-media{height:210px;display:grid;place-items:center;background:linear-gradient(145deg,#f5f9fc,#fff);padding:20px;overflow:hidden}
.why-card-media img{width:100%;height:100%;object-fit:contain}
.why-card:nth-child(5) .why-card-media img,.why-card:nth-child(6) .why-card-media img{object-fit:cover;border-radius:12px}
.why-card-copy{display:flex;flex-direction:column;flex:1;padding:22px}
.why-card-copy h3{font-size:1.28rem;margin:0 0 9px}
.why-card-copy p{color:var(--muted);font-size:.92rem;line-height:1.6;margin:0 0 18px}
.why-card-copy b{margin-top:auto;color:var(--blue);font-size:.84rem}
.why-grid-compact .why-card-media{height:165px}
.why-grid-compact .why-card-copy{padding:18px}
.why-hub-section .section-head{margin-bottom:30px}
.footer-grid-five{grid-template-columns:1.35fr .85fr 1fr .85fr 1fr}
@media(max-width:1180px){.footer-grid-five{grid-template-columns:1.3fr 1fr 1fr}.footer-grid-five>div:first-child{grid-row:span 2}}
@media(max-width:900px){.why-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-grid-five{grid-template-columns:1fr 1fr}.footer-grid-five>div:first-child{grid-row:auto}}
@media(max-width:580px){.why-grid{grid-template-columns:1fr}.why-card-media{height:190px}.footer-grid-five{grid-template-columns:1fr}}
.hero-problem-links a{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:.78rem;font-weight:750;color:#466176;transition:.18s ease}
.hero-problem-links a:hover{border-color:#9fc4df;color:var(--blue);transform:translateY(-1px)}

/* V0.29 - SEO content, gallery lightbox and visual balancing */
.why-card:nth-child(-n+4) .why-card-media{padding:28px}
.why-card:nth-child(-n+4) .why-card-media img{width:auto;height:auto;max-width:82%;max-height:82%;object-fit:contain;object-position:center center;margin:auto}
.case-gallery figure{margin:0}
.case-gallery img,.case-gallery-masonry img,.reference-gallery img{cursor:zoom-in}
.reference-gallery figure{position:relative}
.own-reference-links{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.own-reference-links>span{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800}
.own-reference-links a{font-weight:800;color:var(--blue)}
.faq-deep-list{max-width:1100px}
.faq-deep-item{display:grid;grid-template-columns:64px 1fr;gap:24px;padding:34px 0;border-top:1px solid var(--line)}
.faq-deep-item:first-child{border-top:0;padding-top:0}
.faq-deep-item>span{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#eef5fa;color:var(--blue);font-weight:850}
.faq-deep-item h2{font-size:clamp(1.35rem,2vw,1.8rem);margin:0 0 10px}
.faq-deep-item p{color:var(--muted);font-size:1rem;line-height:1.75;margin:0 0 12px;max-width:880px}
.rm-lightbox{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(8,24,38,.92);backdrop-filter:blur(6px)}
.rm-lightbox.open{display:flex}
.rm-lightbox-dialog{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;max-width:min(94vw,1600px);max-height:92vh;width:100%}
.rm-lightbox-image{display:block;max-width:100%;max-height:82vh;width:auto;height:auto;object-fit:contain;border-radius:14px;box-shadow:0 30px 90px rgba(0,0,0,.35);background:#fff}
.rm-lightbox-caption{margin-top:12px;color:#e9f1f6;font-size:.9rem;line-height:1.5;text-align:center;max-width:900px}
.rm-lightbox-close,.rm-lightbox-prev,.rm-lightbox-next{position:absolute;border:0;background:rgba(255,255,255,.94);color:#183a54;display:grid;place-items:center;cursor:pointer;box-shadow:0 8px 30px rgba(0,0,0,.18)}
.rm-lightbox-close{right:0;top:0;width:44px;height:44px;border-radius:50%;font-size:1.5rem;transform:translate(35%,-35%)}
.rm-lightbox-prev,.rm-lightbox-next{top:50%;width:46px;height:58px;border-radius:14px;font-size:1.7rem;transform:translateY(-50%)}
.rm-lightbox-prev{left:-64px}.rm-lightbox-next{right:-64px}
body.rm-lightbox-lock{overflow:hidden}
@media(max-width:900px){.rm-lightbox-prev{left:8px}.rm-lightbox-next{right:8px}.rm-lightbox-close{right:8px;top:8px;transform:none}.faq-deep-item{grid-template-columns:48px 1fr;gap:16px}}
@media(max-width:580px){.faq-deep-item{grid-template-columns:1fr;gap:10px}.faq-deep-item>span{width:38px;height:38px}.rm-lightbox{padding:12px}.rm-lightbox-image{max-height:78vh}}


/* V0.30 - calmer editorial treatment for problem/benefit articles */
@media (min-width:901px){
  .problem-detail-hero .reference-detail-grid{
    grid-template-columns:minmax(0,1.08fr) minmax(390px,.72fr);
    gap:72px;
    align-items:start;
  }
  .problem-detail-hero .reference-detail-grid h1{
    max-width:760px;
    font-size:clamp(2.65rem,3.65vw,4.05rem);
  }
}
.problem-detail-visual{
  aspect-ratio:auto;
  min-height:0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:34px 34px 26px;
  background:linear-gradient(145deg,#f7fafc 0%,#eef5f9 100%);
  border:1px solid #dce7ee;
  border-radius:22px;
  box-shadow:none;
  overflow:hidden;
}
.problem-detail-art{
  min-height:300px;
  display:grid;
  place-items:center;
  padding:16px 24px 10px;
}
.problem-detail-visual .problem-detail-art img{
  width:auto !important;
  height:auto !important;
  min-height:0 !important;
  max-width:78% !important;
  max-height:300px !important;
  object-fit:contain !important;
  object-position:center !important;
  filter:none;
}
.problem-detail-caption{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  padding-top:20px;
  border-top:1px solid #d9e5ed;
}
.problem-detail-caption span{
  color:#4b88b8;
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.problem-detail-caption strong{
  max-width:260px;
  text-align:right;
  color:#173c59;
  font-size:1rem;
  line-height:1.35;
}
/* Keep the overview cards understated: illustrations are icons, not photos. */
.why-card:nth-child(-n+4) .why-card-media{
  height:176px;
  padding:22px 34px;
  background:linear-gradient(145deg,#f7fafc,#fff);
}
.why-card:nth-child(-n+4) .why-card-media img{
  max-width:68%;
  max-height:68%;
}
@media(max-width:900px){
  .problem-detail-visual{padding:26px 26px 22px}
  .problem-detail-art{min-height:250px}
  .problem-detail-visual .problem-detail-art img{max-width:62%!important;max-height:240px!important}
}
@media(max-width:560px){
  .problem-detail-art{min-height:210px;padding:10px}
  .problem-detail-visual .problem-detail-art img{max-width:78%!important;max-height:210px!important}
  .problem-detail-caption{align-items:flex-start;flex-direction:column;gap:7px}
  .problem-detail-caption strong{text-align:left}
}

/* V0.32 - reusable reference blocks and full-width galleries */
.reference-more-section{padding-top:72px;padding-bottom:78px}
.reference-more-head{margin-bottom:28px}
.reference-more-head h2{max-width:860px}
.reference-more-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.reference-more-grid .reference-image{height:230px}
.reference-more-actions{display:flex;justify-content:center;margin-top:28px}

@media (min-width:1100px){
  .reference-article .reference-gallery{
    width:min(1480px,calc(100vw - 64px));
    max-width:none;
    margin-left:50%;
    transform:translateX(-50%);
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    columns:unset;
  }
  .reference-article .reference-gallery figure{
    margin:0;
    width:auto;
    aspect-ratio:4/3;
    overflow:hidden;
  }
  .reference-article .reference-gallery img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
  }
}
@media (max-width:1099px){
  .reference-more-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reference-article .reference-gallery{columns:unset;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .reference-article .reference-gallery figure{margin:0;aspect-ratio:4/3;overflow:hidden}
  .reference-article .reference-gallery img{width:100%;height:100%;object-fit:cover}
}
@media (max-width:640px){
  .reference-more-grid,.reference-article .reference-gallery{grid-template-columns:1fr}
  .reference-article .reference-gallery figure{aspect-ratio:4/3}
}


/* V0.34 - reference detail layout: wide composition, readable text, full-width galleries */
.reference-detail-hero .container,
.reference-detail-hero .reference-detail-grid{
  width:min(var(--rm-max),calc(100% - 72px));
}

/* Reference pages should use the page width. Text stays readable, visual blocks use the room. */
.reference-article-grid{
  display:block;
  width:min(var(--rm-max),calc(100% - 72px));
}
.reference-article{
  max-width:none;
  width:100%;
}
.reference-article > h2,
.reference-article > p,
.reference-article > ul{
  max-width:980px;
}
.reference-article > h2{
  margin-top:48px;
  font-size:clamp(1.9rem,2.35vw,2.55rem);
  line-height:1.12;
}
.reference-article > p,
.reference-article > ul{
  font-size:1.03rem;
  line-height:1.78;
}
.reference-article .case-facts{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  width:100%;
  margin:0 0 42px;
}
.reference-article .case-facts span{
  min-height:94px;
  padding:20px 22px;
  border:1px solid #dce6ed;
  border-radius:16px;
  background:#f8fbfd;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.reference-article .case-facts b{
  display:block;
  margin-bottom:3px;
  font-size:1.02rem;
  color:var(--navy);
}

/* Galleries are editorial image strips, not narrow article columns. */
@media (min-width:1100px){
  .reference-article .reference-gallery,
  .reference-article .case-gallery,
  .reference-article .case-gallery-masonry{
    width:100%;
    max-width:none;
    margin:30px 0 48px;
    transform:none;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    columns:unset;
  }
  .reference-article .reference-gallery figure,
  .reference-article .case-gallery figure,
  .reference-article .case-gallery-masonry figure{
    width:auto;
    margin:0;
    aspect-ratio:4/3;
    overflow:hidden;
    border-radius:16px;
    border:1px solid #dce6ed;
    background:#eef4f8;
  }
  .reference-article .reference-gallery img,
  .reference-article .case-gallery img,
  .reference-article .case-gallery-masonry img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
  }
  /* Some Meltem galleries use plain <img> elements without figure wrappers. */
  .reference-article .case-gallery{
    grid-auto-rows:auto;
  }
  .reference-article .case-gallery > img{
    aspect-ratio:4/3;
    border-radius:16px;
    border:1px solid #dce6ed;
    background:#eef4f8;
  }
}

/* Product/solution box becomes a wide functional strip instead of a skinny sidebar. */
.reference-article-grid > aside{
  width:100%;
  margin-top:36px;
}
.reference-article-grid > aside .side-card{
  position:static;
  display:grid;
  grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr);
  grid-template-areas:
    "label text"
    "title actions";
  gap:8px 42px;
  align-items:center;
  padding:28px 32px;
  border-radius:18px;
  background:linear-gradient(120deg,#f7fafc,#fff);
}
.reference-article-grid > aside .side-card .mini-label{grid-area:label;align-self:end}
.reference-article-grid > aside .side-card h3{grid-area:title;margin:0;font-size:1.55rem}
.reference-article-grid > aside .side-card p{grid-area:text;margin:0;max-width:760px;color:var(--muted)}
.reference-article-grid > aside .side-card .button-row{grid-area:actions;margin:0;justify-content:flex-start}

.reference-install-note{
  max-width:980px;
  margin:20px 0 30px;
  padding:15px 18px;
  border-left:3px solid #3f88c5;
  background:#f5f9fc;
  border-radius:0 12px 12px 0;
  color:var(--muted);
}
.reference-install-note strong{color:var(--ink)}
.reference-install-note a{font-weight:700}

.reference-source-note{
  max-width:980px;
  margin-top:38px;
  padding-top:20px;
  border-top:1px solid #e0e8ee;
  font-size:.86rem!important;
}

@media(max-width:1099px){
  .reference-detail-hero .container,
  .reference-detail-hero .reference-detail-grid,
  .reference-article-grid{
    width:min(100% - 40px,1240px);
  }
  .reference-article .case-facts{grid-template-columns:1fr 1fr}
  .reference-article-grid > aside .side-card{
    grid-template-columns:1fr;
    grid-template-areas:"label" "title" "text" "actions";
    gap:8px;
  }
  .reference-article-grid > aside .side-card .button-row{margin-top:12px}
}
@media(max-width:640px){
  .reference-detail-hero .container,
  .reference-detail-hero .reference-detail-grid,
  .reference-article-grid{
    width:min(100% - 28px,1240px);
  }
  .reference-article .case-facts{grid-template-columns:1fr}
  .reference-article .case-facts span{min-height:0}
  .reference-article > h2{margin-top:38px}
  .reference-article-grid > aside .side-card{padding:22px 20px}
}


/* V0.38 - selective realistic photo in pain-first overview */
.why-card.why-card--photo .why-card-media{
  height:176px;
  padding:12px;
  background:linear-gradient(145deg,#f7fafc,#fff);
}
.why-card.why-card--photo .why-card-media img{
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  margin:0;
  object-fit:cover;
  object-position:center center;
  border-radius:12px;
}
@media(max-width:580px){
  .why-card.why-card--photo .why-card-media{height:190px;padding:10px}
}


/* V0.39 - consistent photographic treatment for humidity/mould topic */
.problem-detail-visual--photo{padding:18px 18px 26px}
.problem-detail-visual--photo .problem-detail-art{min-height:0;aspect-ratio:4/3;padding:0;overflow:hidden;border-radius:16px;background:#eef4f8}
.problem-detail-visual--photo .problem-detail-art img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important}
.problem-photo-gallery{grid-template-columns:repeat(3,minmax(0,1fr))!important}
@media(max-width:900px){
  .problem-detail-visual--photo .problem-detail-art img{max-width:none!important;max-height:none!important}
  .problem-photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:640px){
  .problem-detail-visual--photo{padding:12px 12px 20px}
  .problem-photo-gallery{grid-template-columns:1fr!important}
}


/* V0.40 - humidity photo detail + unique hero triptychs */
.problem-detail-visual.problem-detail-visual--photo{
  padding:18px 18px 24px;
}
.problem-detail-visual--photo .problem-detail-art{
  width:100%;
  min-height:0;
  aspect-ratio:16/10;
  padding:0;
  overflow:hidden;
  border-radius:16px;
  background:#eaf2f7;
}
.problem-detail-visual--photo .problem-detail-art img{
  display:block;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center 58%!important;
}
.problem-photo-gallery{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}

/* Reusable three-panel HERO: same visual discipline as Realizace, but live responsive images. */
.hero-triptych{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px;
  padding:0!important;
  background:#dce6ed;
}
.hero-triptych-panel{
  min-width:0;
  min-height:500px;
  overflow:hidden;
  background:#eef4f8;
}
.hero-triptych-panel img{
  display:block;
  width:100%!important;
  height:100%!important;
  min-height:500px!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
}
.hero-triptych-panel--contain{
  display:grid;
  place-items:center;
  padding:18px;
  background:linear-gradient(145deg,#f7fafc,#fff);
}
.hero-triptych-panel--contain img{
  min-height:0!important;
  object-fit:contain!important;
}
.hero-triptych--process .hero-triptych-panel:nth-child(2) img{object-position:48% center!important}
.hero-triptych--process .hero-triptych-panel:nth-child(3) img{object-position:center center!important}
.hero-triptych--contact .hero-triptych-panel:nth-child(1) img{object-position:53% center!important}
.hero-triptych--contact .hero-triptych-panel:nth-child(2) img{object-position:center center!important}
.hero-triptych--contact .hero-triptych-panel:nth-child(3) img{object-position:center center!important}

@media(max-width:900px){
  .problem-photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .hero-triptych-panel{min-height:330px}
  .hero-triptych-panel img{min-height:330px!important}
}
@media(max-width:560px){
  .problem-photo-gallery{grid-template-columns:1fr!important}
  .hero-triptych{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hero-triptych-panel{min-height:260px}
  .hero-triptych-panel img{min-height:260px!important}
  .hero-triptych-panel--contain{padding:10px}
}


/* V0.41 - larger problem HERO visuals: sleep, humidity, heat recovery */
@media (min-width:901px){
  .problem-detail-hero--visual-xl .reference-detail-grid{
    grid-template-columns:minmax(0,1fr) minmax(560px,.92fr);
    gap:54px;
  }
  .problem-detail-hero--visual-xl .problem-detail-visual{
    width:100%;
  }
}
.problem-detail-visual--sleep{
  padding:18px 18px 24px;
}
.problem-detail-visual--sleep .problem-detail-art{
  width:100%;
  min-height:0;
  aspect-ratio:2.28/1;
  padding:0;
  overflow:hidden;
  border-radius:16px;
  background:#eef5f9;
}
.problem-detail-visual--sleep .problem-detail-art img{
  display:block;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
}
.problem-detail-visual--energy{
  padding:22px 22px 24px;
  background:linear-gradient(112deg,#edf7fd 0%,#f7fbfe 43%,#ffffff 49%,#fffaf6 55%,#fff0e5 100%);
}
.problem-detail-visual--energy .problem-detail-art{
  min-height:390px;
  padding:34px 18px 28px;
  background:transparent;
}
.problem-detail-visual--energy .problem-detail-art img{
  width:94%!important;
  height:auto!important;
  min-height:0!important;
  max-width:94%!important;
  max-height:360px!important;
  object-fit:contain!important;
  filter:drop-shadow(0 18px 28px rgba(42,78,103,.08));
}
@media(max-width:900px){
  .problem-detail-visual--sleep .problem-detail-art{aspect-ratio:2.15/1}
  .problem-detail-visual--energy .problem-detail-art{min-height:300px}
  .problem-detail-visual--energy .problem-detail-art img{max-height:280px!important}
}
@media(max-width:560px){
  .problem-detail-visual--sleep .problem-detail-art{aspect-ratio:1.75/1}
  .problem-detail-visual--energy{padding:14px 14px 20px}
  .problem-detail-visual--energy .problem-detail-art{min-height:230px;padding:24px 8px 18px}
  .problem-detail-visual--energy .problem-detail-art img{width:98%!important;max-width:98%!important;max-height:220px!important}
}


/* V0.42 - paired topic visuals, stronger plan crop and ARSORA template signature */
.hero-triptych-panel--plan{
  display:grid;
  place-items:center;
  overflow:hidden;
  background:linear-gradient(145deg,#f7fafc,#fff);
}
.hero-triptych-panel--plan img{
  width:100%!important;
  height:100%!important;
  min-height:500px!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  transform:scale(1.42);
  transform-origin:center center;
}
.design-image--breath img{
  width:100%;
  height:100%;
  min-height:420px;
  object-fit:cover;
  object-position:center 54%;
}
@media(max-width:900px){
  .hero-triptych-panel--plan img{min-height:330px!important;transform:scale(1.32)}
  .design-image--breath img{min-height:320px}
}
@media(max-width:560px){
  .hero-triptych-panel--plan img{min-height:260px!important;transform:scale(1.22)}
  .design-image--breath img{min-height:260px}
}

/* V0.43 - CO2 topic: paired photographic visual + corrected breathing image display */
.problem-detail-visual--co2{
  padding:18px 18px 24px;
}
.problem-detail-visual--co2 .problem-detail-art{
  width:100%;
  min-height:0;
  aspect-ratio:2.05/1;
  padding:0;
  overflow:hidden;
  border-radius:16px;
  background:#eef5f9;
}
.problem-detail-visual--co2 .problem-detail-art img{
  display:block;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center 40%!important;
}
.design-image--breath{
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:16px;
  background:#fff;
  border-radius:18px;
}
.design-image--breath img{
  display:block;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:430px!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:14px;
}
@media(max-width:900px){
  .problem-detail-visual--co2 .problem-detail-art{aspect-ratio:1.9/1}
  .design-image--breath img{max-height:340px!important}
}
@media(max-width:560px){
  .problem-detail-visual--co2{padding:12px 12px 20px}
  .problem-detail-visual--co2 .problem-detail-art{aspect-ratio:1.55/1}
  .design-image--breath{padding:10px}
  .design-image--breath img{max-height:280px!important}
}

/* V0.44 - mobile audit and responsive hardening across ARSORA Flowline */
:focus-visible{outline:3px solid rgba(57,127,197,.42);outline-offset:3px}

@media(max-width:900px){
  html,body{max-width:100%;overflow-x:clip}

  /* V0.26 desktop geometry must not override the earlier mobile stack. */
  .section-head,
  .content-grid{
    grid-template-columns:1fr!important;
    gap:20px!important;
  }
  .content-grid>*,.section-head>*{min-width:0}
  .side-card{position:static!important;top:auto!important}

  .page-hero .page-hero-grid,
  .page-hero.page-hero-premium .page-hero-grid,
  .page-hero.page-hero-visual .page-hero-grid,
  .reference-detail-grid,
  .problem-detail-hero .reference-detail-grid{
    grid-template-columns:1fr!important;
    gap:30px!important;
  }

  .hero-media-xl,.hero-product-stage,.hero-photo-stage,.hero-diagram-stage,
  .page-hero-tech,.page-hero-technical,.local-hero-technical,.hero-photo-card,.hero-diagram-card,
  .reference-detail-image,.radon-hero .reference-detail-image{
    min-height:300px!important;
  }
  .hero-photo-stage img,.hero-photo-card img,
  .reference-detail-image>img,.radon-hero .reference-detail-image>img{
    min-height:300px!important;
  }

  .journey-card,.hub-card,.answer-card-grid>a,.related-card{min-height:0!important}
  .catalog-family-tile{min-height:0!important}
  .reference-article-grid>aside .side-card{grid-template-columns:1fr!important}
}

@media(max-width:800px){
  .nav-wrap{height:68px!important;gap:10px!important}
  .brand-image{flex:1 1 auto!important;min-width:0!important}
  .brand-image img{width:min(230px,66vw)!important;max-height:46px!important}
  .menu-toggle{
    display:block;
    flex:0 0 44px;
    width:44px;
    height:44px;
    min-width:44px;
    min-height:44px;
    margin-left:auto;
    padding:8px;
    border-radius:10px;
    cursor:pointer;
  }
  .menu-toggle span{width:24px;margin:5px auto}
  .main-nav{
    top:68px!important;
    max-height:calc(100dvh - 68px);
    overflow-y:auto;
    overscroll-behavior:contain;
    gap:0!important;
    padding:8px 20px 18px!important;
    box-shadow:0 18px 34px rgba(24,52,75,.12);
  }
  .main-nav a{
    width:100%;
    min-height:46px;
    display:flex;
    align-items:center;
    padding:11px 2px!important;
    border-bottom:1px solid #edf2f5;
    font-size:.95rem;
  }
  .main-nav a:last-child{border-bottom:0}
  body.nav-open{overflow:hidden}
}

@media(max-width:640px){
  .container,
  .reference-detail-hero .container,
  .reference-detail-hero .reference-detail-grid,
  .reference-article-grid{
    width:min(100% - 32px,1240px)!important;
  }

  body{font-size:16px;line-height:1.58}
  h1,
  .page-hero h1,
  .reference-detail-grid h1,
  .problem-detail-hero .reference-detail-grid h1{
    font-size:clamp(2.08rem,9.6vw,2.55rem)!important;
    line-height:1.055!important;
    letter-spacing:-.04em;
    margin-top:12px;
    margin-bottom:16px;
  }
  h2{font-size:clamp(1.72rem,7vw,2.05rem);line-height:1.1}
  .lead{font-size:1rem!important;line-height:1.62!important}
  .eyebrow{font-size:.67rem;letter-spacing:.12em}
  .eyebrow:before{width:24px}

  .section{padding:44px 0!important}
  .page-hero,.page-hero-premium{padding:34px 0 40px!important}
  .reference-detail-hero{padding:36px 0 42px!important}
  .section-head{gap:12px!important;margin-bottom:24px!important}
  .content-grid{gap:28px!important}

  .hero-media-xl,.hero-product-stage,.hero-photo-stage,.hero-diagram-stage,
  .page-hero-tech,.page-hero-technical,.local-hero-technical,.hero-photo-card,.hero-diagram-card{
    min-height:250px!important;
    border-radius:18px!important;
  }
  .hero-photo-stage img,.hero-photo-card img{min-height:250px!important}
  .reference-detail-image,.radon-hero .reference-detail-image{
    min-height:250px!important;
    aspect-ratio:16/10!important;
    border-radius:18px!important;
  }
  .reference-detail-image>img,.radon-hero .reference-detail-image>img{min-height:250px!important}

  /* Triptychs become a readable 1+2 mosaic instead of three tall narrow strips. */
  .hero-triptych{
    grid-template-columns:1fr 1fr!important;
    gap:6px!important;
    padding:6px!important;
    background:#e6eef3!important;
  }
  .hero-triptych-panel{
    min-height:165px!important;
    border-radius:12px;
  }
  .hero-triptych-panel img{min-height:165px!important}
  .hero-triptych-panel:first-child{
    grid-column:1/-1;
    min-height:220px!important;
  }
  .hero-triptych-panel:first-child img{min-height:220px!important}
  .hero-triptych-panel--plan img{transform:scale(1.14)!important;object-fit:contain!important}
  .hero-triptych-panel--contain{padding:8px!important}

  .journey-card,.hub-card,.answer-card-grid>a{
    padding:20px!important;
    min-height:0!important;
  }
  .journey-card>span{margin-bottom:18px}
  .hub-card h3{margin-top:16px}
  .topic-media{height:210px!important}
  .topic-card>div:last-child,.why-card-copy{padding:20px!important}
  .why-card-media,.why-card.why-card--photo .why-card-media{height:180px!important}
  .related-card{padding:18px!important;min-height:0!important}

  .geo-answer,.answer-box,.context-proof,.expert-note{padding:17px 18px!important}
  .side-card{padding:20px!important}
  .faq-item button{min-height:50px;padding:14px 16px;gap:14px}
  .faq-answer{padding:0 16px 16px}

  .contact-form input,.contact-form select,.contact-form textarea{
    min-height:48px;
    font-size:16px;
  }
  .contact-form textarea{min-height:130px}
  .form-two{grid-template-columns:1fr!important}
  .contact-form>.btn{width:100%}

  .catalog-primary-copy{padding:26px 22px!important}
  .catalog-primary-media{min-height:250px!important;padding:18px!important}
  .catalog-primary-media img{width:min(82%,300px)!important}
  .catalog-family-tile{min-height:0!important}
  .catalog-family-tile-media{height:155px!important}
  .catalog-family-tile-copy{padding:20px!important}
  .catalog-accessories-link{padding:22px 20px!important;gap:14px!important}

  /* Long photographic pages stay compact but lightbox keeps the full image available. */
  .problem-photo-gallery{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .reference-article .reference-gallery,
  .reference-article .case-gallery{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    columns:unset!important;
  }
  .reference-article .reference-gallery figure,
  .reference-article .case-gallery figure,
  .reference-article .case-gallery>img{
    aspect-ratio:4/3;
    overflow:hidden;
    margin:0;
  }
  .reference-article .reference-gallery img,
  .reference-article .case-gallery img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }

  .problem-detail-visual{padding:18px 18px 20px!important}
  .problem-detail-art{min-height:190px!important}
  .problem-detail-caption{padding-top:14px!important}

  .site-footer{padding:40px 0 22px}
  .footer-grid{gap:26px!important}
  .footer-brand{max-width:245px}
}

@media(max-width:520px){
  .button-row{display:grid;grid-template-columns:1fr;gap:9px;width:100%}
  .button-row .btn{width:100%}
  .button-row .text-link{display:flex;align-items:center;min-height:42px}
  .hero-points{gap:7px;margin:20px 0}
  .hero-points span,.hero-problem-links a{font-size:.74rem;padding:6px 9px}
  .footer-grid-five{grid-template-columns:1fr!important}
}

@media(max-width:390px){
  .container,
  .reference-detail-hero .container,
  .reference-detail-hero .reference-detail-grid,
  .reference-article-grid{width:min(100% - 28px,1240px)!important}
  .brand-image img{width:min(205px,64vw)!important}
  h1,.page-hero h1,.reference-detail-grid h1,.problem-detail-hero .reference-detail-grid h1{font-size:2.04rem!important}
  .problem-photo-gallery{gap:6px!important}
}

@media(hover:none){
  .reference-card:hover,.topic-card:hover,.journey-card:hover,.hub-card:hover,.answer-card-grid>a:hover,
  .catalog-family-tile:hover,.related-card:hover,.featured-reference:hover,.installation-card:hover,
  .solution-card:hover{transform:none!important;box-shadow:none}
  .reference-card:hover img,.featured-reference:hover img{transform:none!important}
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}

@media(max-width:640px){
  .catalog-primary-copy h2{font-size:clamp(1.85rem,8vw,2.25rem)!important;line-height:1.08}
  .text-link{display:inline-flex;align-items:center;min-height:40px}
  .reference-article,.content-copy,.prose,.side-card{overflow-wrap:anywhere}
}
@media(max-width:520px){
  .reference-more-actions .btn{width:100%}
}

/* V0.45 - wide technical graphic card: energy recovery fills the media cell */
.why-card.why-card--graphic-wide .why-card-media{
  height:176px;
  padding:0!important;
  background:linear-gradient(112deg,#edf7fd 0%,#f7fbfe 43%,#ffffff 49%,#fffaf6 55%,#fff0e5 100%);
}
.why-card.why-card--graphic-wide .why-card-media img{
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  object-fit:cover!important;
  object-position:center center!important;
  border-radius:0;
}
@media(max-width:580px){
  .why-card.why-card--graphic-wide .why-card-media{height:180px!important}
}


/* V0.46 - unified problem cards system for the whole pain-first grid */
.why-grid{align-items:stretch}
.why-card{
  border-radius:20px;
  box-shadow:0 1px 0 rgba(18,62,89,.02);
}
.why-card-media{
  height:192px!important;
  padding:12px!important;
  background:linear-gradient(145deg,#f5f9fc,#fff)!important;
}
.why-card-media img{
  display:block;
  width:100%;
  height:100%;
  border-radius:14px;
}
.why-card-copy{
  padding:24px 28px 22px!important;
}
.why-card-copy h3{
  margin:0 0 10px;
  font-size:clamp(1.3rem,1.25vw,1.55rem);
  line-height:1.18;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.36em;
}
.why-card-copy p{
  color:var(--muted);
  font-size:1rem;
  line-height:1.55;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:4.65em;
}
.why-card-copy b{
  margin-top:auto;
  padding-top:18px;
  font-size:.9rem;
}

/* Photo and wide graphic cards share one full-bleed media logic */
.why-card.why-card--photo .why-card-media,
.why-card.why-card--graphic-wide .why-card-media{
  padding:12px!important;
}
.why-card.why-card--photo .why-card-media img,
.why-card.why-card--graphic-wide .why-card-media img{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  object-fit:cover!important;
  object-position:center center!important;
  border-radius:14px!important;
}

/* Icon cards keep the same frame, only the artwork inside is calmer */
.why-card:not(.why-card--photo):not(.why-card--graphic-wide) .why-card-media{
  padding:14px!important;
  background:linear-gradient(145deg,#f7fafc,#fff)!important;
}
.why-card:not(.why-card--photo):not(.why-card--graphic-wide) .why-card-media img{
  width:100%!important;
  height:100%!important;
  max-width:76%!important;
  max-height:76%!important;
  margin:auto!important;
  object-fit:contain!important;
  object-position:center center!important;
  border-radius:0!important;
}

/* Wide technical graphics get a unified soft background */
.why-card.why-card--graphic-wide .why-card-media{
  background:linear-gradient(112deg,#edf7fd 0%,#f7fbfe 43%,#ffffff 49%,#fffaf6 55%,#fff0e5 100%)!important;
}

@media(max-width:900px){
  .why-card-media{height:184px!important}
  .why-card-copy{padding:22px 22px 20px!important}
  .why-card-copy h3{font-size:1.2rem}
  .why-card-copy p{font-size:.97rem;min-height:4.5em}
}
@media(max-width:580px){
  .why-card-media{height:196px!important}
  .why-card-copy{padding:20px 20px 18px!important}
  .why-card-copy h3{font-size:1.18rem;min-height:0}
  .why-card-copy p{-webkit-line-clamp:4;min-height:0}
  .why-card-copy b{padding-top:16px}
}

/* V0.47 - visible editorial unification of the whole problem-card grid */
.why-grid{
  gap:20px;
  align-items:stretch;
}
.why-card{
  min-height:430px;
  border:1px solid #d7e3eb;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 28px rgba(24,58,82,.035);
  overflow:hidden;
}
.why-card:hover{
  transform:translateY(-3px);
  border-color:#afc8da;
  box-shadow:0 16px 38px rgba(24,58,82,.08);
}

/* One media frame for every card: no inset photo/graphic tiles. */
.why-card .why-card-media,
.why-card.why-card--photo .why-card-media,
.why-card.why-card--graphic-wide .why-card-media,
.why-card:not(.why-card--photo):not(.why-card--graphic-wide) .why-card-media{
  height:auto!important;
  aspect-ratio:16/7.2;
  padding:0!important;
  margin:0!important;
  background:#eef4f8!important;
  border-bottom:1px solid #e2ebf1;
  overflow:hidden;
}
.why-card .why-card-media img,
.why-card.why-card--photo .why-card-media img,
.why-card.why-card--graphic-wide .why-card-media img,
.why-card:not(.why-card--photo):not(.why-card--graphic-wide) .why-card-media img{
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  object-fit:cover!important;
  object-position:center center!important;
  border-radius:0!important;
}

/* Compact, consistent editorial typography. */
.why-card-copy{
  display:grid!important;
  grid-template-rows:auto auto 1fr;
  align-content:start;
  flex:1;
  gap:10px;
  padding:20px 24px 20px!important;
}
.why-card-copy h3{
  margin:0!important;
  min-height:0!important;
  font-size:1.22rem!important;
  line-height:1.22!important;
  letter-spacing:-.018em;
  display:block!important;
  overflow:visible!important;
}
.why-card-copy p{
  margin:0!important;
  min-height:0!important;
  font-size:.94rem!important;
  line-height:1.55!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
.why-card-copy b{
  align-self:end;
  margin-top:auto!important;
  padding-top:12px!important;
  font-size:.86rem!important;
}

@media(max-width:1180px){
  .why-card{min-height:420px}
  .why-card-copy{padding:19px 20px 19px!important}
  .why-card-copy h3{font-size:1.15rem!important}
}
@media(max-width:900px){
  .why-grid{gap:16px}
  .why-card{min-height:0}
  .why-card .why-card-media,
  .why-card.why-card--photo .why-card-media,
  .why-card.why-card--graphic-wide .why-card-media{aspect-ratio:16/7.5}
  .why-card-copy{padding:19px 20px 18px!important}
}
@media(max-width:580px){
  .why-grid{gap:14px}
  .why-card{border-radius:16px}
  .why-card .why-card-media,
  .why-card.why-card--photo .why-card-media,
  .why-card.why-card--graphic-wide .why-card-media{aspect-ratio:16/8.5}
  .why-card-copy{padding:18px 18px 17px!important;gap:8px}
  .why-card-copy h3{font-size:1.13rem!important}
  .why-card-copy p{font-size:.93rem!important;-webkit-line-clamp:4}
  .why-card-copy b{padding-top:10px!important}
}


/* V0.49 - unified visual treatment for all 6 problem cards */
.why-card .why-card-media,
.why-card.why-card--photo .why-card-media,
.why-card.why-card--graphic-wide .why-card-media{
  position:relative;
  isolation:isolate;
  background:#edf4f8!important;
}
.why-card .why-card-media::after,
.why-card.why-card--photo .why-card-media::after,
.why-card.why-card--graphic-wide .why-card-media::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.10) 0%,rgba(219,234,244,.08) 52%,rgba(18,49,74,.05) 100%);
  z-index:1;
}
.why-card .why-card-media img,
.why-card.why-card--photo .why-card-media img,
.why-card.why-card--graphic-wide .why-card-media img{
  position:relative;
  z-index:0;
  filter:saturate(.96) contrast(1.01) brightness(1.015);
}


/* V0.51 - compact problem-card copy: CTA follows the description naturally */
.why-card{
  min-height:0!important;
}
.why-card-copy{
  display:grid!important;
  grid-template-rows:auto auto auto!important;
  align-content:start!important;
  gap:10px!important;
}
.why-card-copy p{
  min-height:0!important;
}
.why-card-copy b{
  align-self:auto!important;
  justify-self:start!important;
  margin-top:6px!important;
  padding-top:0!important;
  display:inline-flex;
}
@media(max-width:1180px){
  .why-card{min-height:0!important}
}
@media(max-width:580px){
  .why-card-copy b{margin-top:4px!important;padding-top:0!important}
}

/* V0.53 - SEO/GEO/AI content layer */
.search-intent-section .service-grid{margin-bottom:0}
.search-intent-section .service-grid article{display:flex;flex-direction:column;min-height:250px}
.search-intent-section .service-grid article p{color:var(--muted);line-height:1.62;margin:0 0 16px}
.search-intent-section .service-grid article .text-link{margin-top:auto}
.choice-grid.choice-grid-links>a{display:block;padding:20px;border-radius:15px;background:#fff;border:1px solid var(--line);color:inherit;transition:.18s ease}
.choice-grid.choice-grid-links>a:hover{border-color:#a9c6da;box-shadow:var(--rm-shadow-hover);transform:translateY(-2px)}
.choice-grid.choice-grid-links strong,.choice-grid.choice-grid-links span{display:block}
.choice-grid.choice-grid-links strong{color:var(--navy);margin-bottom:7px;font-size:1rem}
.choice-grid.choice-grid-links span{color:var(--muted);font-size:.9rem;line-height:1.55}
.reference-article>.answer-box{margin:24px 0 30px}
@media(max-width:820px){.search-intent-section .service-grid article{min-height:0}}

/* V0.54 - production contact form */
.contact-form label:not(.file-demo){display:grid;gap:7px}
.contact-form label>span{font-size:.82rem;font-weight:800;color:var(--navy)}
.contact-form .form-two{align-items:start}
.contact-form input,.contact-form select,.contact-form textarea{transition:border-color .15s ease,box-shadow .15s ease}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{outline:0;border-color:#7aa9c8;box-shadow:0 0 0 3px rgba(74,137,179,.12)}
.contact-form textarea{min-height:160px}
.form-help{margin:-6px 0 2px;color:var(--muted);font-size:.78rem}
.file-upload{background:#f8fbfd}
.file-upload input{padding:10px 0;border:0;background:transparent}
.form-privacy{margin:2px 0 4px;color:var(--muted);font-size:.78rem;line-height:1.55}
.form-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.form-status{display:grid;gap:5px;margin:0 0 18px;padding:16px 18px;border-radius:12px;border:1px solid}
.form-status strong{font-size:1rem}
.form-status span,.form-status li{font-size:.88rem;line-height:1.5}
.form-status ul{margin:4px 0 0;padding-left:20px}
.form-status--success{background:#effaf5;border-color:#b9e5d0;color:#185a3e}
.form-status--error{background:#fff5f4;border-color:#efc3bd;color:#85352d}
@media(max-width:580px){.contact-form textarea{min-height:150px}.form-status{padding:14px 15px}}


/* V0.56 - complete operator details in footer */
.footer-operator{display:grid;gap:4px;margin-top:20px;font-size:.86rem;line-height:1.55;color:#c8d4dd}
.footer-operator strong{color:#fff;font-size:.94rem;margin-bottom:2px}
.site-footer .footer-operator a{display:inline;margin:0;color:#d7e5ee;text-decoration:none}
.site-footer .footer-operator a:hover{text-decoration:underline}
.site-footer .footer-operator-gerico{display:block;margin-top:5px!important;color:#9fb9cb!important;font-size:.8rem}


/* V0.58 - classic contact page + responsive contact navigation */
.contact-hero .button-row{align-items:center;flex-wrap:wrap}
.contact-hero-link{margin-left:4px}
.contact-section-head{margin-bottom:28px}
.contact-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.contact-info-card{border:1px solid var(--line);border-radius:20px;background:#fff;padding:30px;display:flex;flex-direction:column;align-items:flex-start;min-height:100%}
.contact-info-card--primary{background:linear-gradient(145deg,#f3f8fb,#fff)}
.contact-info-card h3{margin:7px 0 18px;font-size:1.45rem}
.contact-info-card p{color:var(--muted);margin:0 0 18px}
.contact-details{width:100%;display:grid;gap:0;margin:0 0 20px}
.contact-details>div{display:grid;grid-template-columns:95px 1fr;gap:14px;padding:11px 0;border-bottom:1px solid #e5edf2}
.contact-details>div:first-child{border-top:1px solid #e5edf2}
.contact-details dt{color:var(--muted);font-size:.82rem;font-weight:700}
.contact-details dd{margin:0;color:var(--navy);font-weight:750}
.contact-details a{color:var(--blue)}
.contact-checklist{margin:0 0 22px;padding-left:20px;color:var(--muted)}
.contact-checklist li{margin:5px 0}
.contact-form-grid{align-items:start}
.contact-form-grid aside{display:grid;gap:14px}
.contact-form-grid .side-card{position:static}
@media(max-width:1180px){.nav-cta{display:none!important}.main-nav{gap:15px!important;font-size:.83rem!important}}
@media(max-width:800px){.contact-info-grid{grid-template-columns:1fr}.contact-info-card{padding:24px}.contact-section-head{grid-template-columns:1fr!important;gap:14px!important}.contact-section-head .lead{max-width:none}.contact-hero .button-row{gap:10px}.contact-hero .button-row .btn{flex:1 1 220px}.contact-hero-link{width:100%;margin:2px 0 0}}
@media(max-width:580px){.contact-info-card{padding:21px 19px;border-radius:16px}.contact-details>div{grid-template-columns:1fr;gap:2px;padding:10px 0}.contact-hero .button-row .btn{width:100%;flex-basis:100%}}

/* V0.59 - contact page hierarchy: direct contact first, proposal visual tied to form */
.contact-opening{padding-top:42px}
.contact-opening-head h1{margin-bottom:0}
.contact-info-card h2{margin:7px 0 18px;font-size:1.45rem}
.contact-proposal{padding-top:56px}
.contact-proposal-intro{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:36px;align-items:center;margin-bottom:34px}
.contact-proposal-copy{max-width:760px}
.contact-proposal-copy h2{margin:8px 0 14px}
.contact-proposal-copy .lead{max-width:720px;margin-bottom:0}
.contact-proposal-visual{border:1px solid var(--line);border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 12px 34px rgba(24,58,82,.05)}
.contact-proposal-visual img{display:block;width:100%;height:auto;aspect-ratio:16/7.4;object-fit:cover;object-position:center center}
.contact-form-grid{padding-top:30px;border-top:1px solid #dfe8ee}
@media(max-width:900px){
  .contact-opening{padding-top:32px}
  .contact-proposal-intro{grid-template-columns:1fr;gap:20px;margin-bottom:26px}
  .contact-proposal-visual img{aspect-ratio:16/8.5}
  .contact-form-grid{padding-top:24px}
}
@media(max-width:580px){
  .contact-opening{padding-top:24px}
  .contact-opening-head{margin-bottom:20px}
  .contact-opening-head h1{font-size:clamp(2rem,11vw,2.7rem)}
  .contact-proposal{padding-top:38px}
  .contact-proposal-intro{gap:16px;margin-bottom:22px}
  .contact-proposal-visual{border-radius:16px}
  .contact-proposal-visual img{aspect-ratio:4/3}
  .contact-form-grid{padding-top:20px}
}


/* V0.60 - contact page: compact premium opening without oversized heading */
.contact-info-grid--hero{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:20px;align-items:stretch}
.contact-card-direct,.contact-card-proposal{padding:34px 36px!important}
.contact-card-direct{background:linear-gradient(145deg,#f3f8fb 0%,#ffffff 78%)!important}
.contact-card-proposal{background:#fff}
.contact-card-direct h1{font-size:clamp(2rem,4vw,3rem);line-height:1.04;letter-spacing:-.035em;margin:10px 0 14px;max-width:680px}
.contact-card-proposal h2{font-size:clamp(1.65rem,2.4vw,2.15rem);line-height:1.12;letter-spacing:-.025em;margin:10px 0 14px;max-width:640px}
.contact-intro{font-size:1.02rem;line-height:1.65;max-width:760px;margin:0 0 24px!important}
.contact-quick-actions{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:12px;width:100%;margin:2px 0 24px}
.contact-quick{display:flex;flex-direction:column;gap:4px;min-width:0;padding:16px 18px;border:1px solid #d7e4ec;border-radius:14px;background:#fff;color:var(--ink);text-decoration:none;transition:.18s ease}
.contact-quick:hover{border-color:#aac5d8;transform:translateY(-1px);box-shadow:0 8px 20px rgba(28,67,94,.06)}
.contact-quick span{font-size:.76rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#688196}
.contact-quick strong{font-size:1.03rem;line-height:1.25;overflow-wrap:anywhere}
.contact-quick--phone{background:#1f4d6d;color:#fff;border-color:#1f4d6d}
.contact-quick--phone span{color:#c9d9e4}
.contact-company-line{display:grid;grid-template-columns:1fr 1.2fr;gap:16px 26px;width:100%;padding-top:20px;border-top:1px solid #dfe8ee}
.contact-company-line>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.contact-company-line strong{font-size:.95rem;line-height:1.35}
.contact-company-line span,.contact-company-line a{font-size:.88rem;color:var(--muted)}
.contact-card-proposal p{font-size:1rem;line-height:1.62;margin-bottom:18px!important}
.contact-checklist--compact{margin:0 0 24px;padding-left:22px;display:grid;gap:7px;color:var(--muted)}
.contact-card-proposal .btn{margin-top:auto}
.contact-opening{padding-top:30px!important;padding-bottom:46px}
@media(max-width:900px){.contact-info-grid--hero{grid-template-columns:1fr}.contact-card-direct,.contact-card-proposal{padding:28px!important}.contact-company-line{grid-template-columns:1fr 1fr}}
@media(max-width:580px){.contact-opening{padding-top:18px!important;padding-bottom:34px}.contact-card-direct,.contact-card-proposal{padding:22px 20px!important;border-radius:16px}.contact-card-direct h1{font-size:2rem}.contact-card-proposal h2{font-size:1.55rem}.contact-quick-actions{grid-template-columns:1fr}.contact-quick{padding:15px 16px}.contact-company-line{grid-template-columns:1fr;gap:12px}.contact-card-proposal .btn{width:100%;justify-content:center}}


/* V0.63 - FAQ hero: direct copy + technical visual collage */
.faq-hero .page-hero-grid{align-items:center}
.faq-hero .page-hero-grid>div:first-child{max-width:720px}
.faq-hero .page-hero-grid h1{max-width:700px}
.faq-hero-collage{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(180px,.62fr);gap:12px;padding:12px;border:1px solid var(--line);border-radius:24px;background:#eef5f9;overflow:hidden;min-height:430px}
.faq-hero-main,.faq-hero-side>div{overflow:hidden;border-radius:16px;background:#fff}
.faq-hero-main img,.faq-hero-side img{display:block;width:100%;height:100%;object-fit:cover}
.faq-hero-main img{object-position:center center}
.faq-hero-side{display:grid;grid-template-rows:1fr 1fr;gap:12px;min-width:0}
.faq-hero-side>div:first-child{background:#f6f9fb}
.faq-hero-side>div:first-child img{object-fit:contain;padding:18px}
.faq-hero-side>div:last-child img{object-position:center 36%}
#otazky{scroll-margin-top:105px}
@media(max-width:900px){.faq-hero-collage{grid-template-columns:1.45fr .75fr;min-height:360px;border-radius:20px}.faq-hero-side>div:first-child img{padding:12px}}
@media(max-width:580px){.faq-hero-collage{grid-template-columns:1fr;min-height:0;padding:8px;border-radius:16px}.faq-hero-main{aspect-ratio:16/10}.faq-hero-side{grid-template-columns:1fr 1fr;grid-template-rows:none}.faq-hero-side>div{aspect-ratio:1.2/1}.faq-hero-side>div:first-child img{padding:10px}.faq-hero .button-row .btn{width:100%;justify-content:center}}


/* V0.72 - Contact: standard contact first, quotation form second */
.contact-simple{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:20px;align-items:stretch}
.contact-simple-main,.contact-simple-company{border:1px solid var(--line);border-radius:20px;background:#fff;padding:34px 36px}
.contact-simple-main{background:linear-gradient(145deg,#f3f8fb 0%,#fff 82%)}
.contact-simple-main h1{font-size:clamp(2.15rem,4vw,3.35rem);line-height:1.02;letter-spacing:-.04em;margin:10px 0 12px}
.contact-simple-main .contact-intro{max-width:720px;margin-bottom:22px!important}
.contact-simple-main .contact-quick-actions{max-width:760px;margin-bottom:0}
.contact-simple-company{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.contact-simple-company h2{font-size:1.4rem;line-height:1.2;margin:8px 0 12px}
.contact-simple-company p{margin:0 0 6px;color:var(--muted)}
.contact-simple-company a{margin-top:8px;font-weight:750}
.contact-proposal--simple{padding-top:58px}
.contact-form-head{max-width:760px;margin-bottom:30px}
.contact-form-head h2{font-size:clamp(1.85rem,3vw,2.55rem);line-height:1.08;letter-spacing:-.03em;margin:9px 0 12px}
.contact-form-head p{margin:0;color:var(--muted);font-size:1.02rem;line-height:1.65;max-width:700px}
.contact-proposal--simple .contact-form-grid{padding-top:30px;border-top:1px solid #dfe8ee}
.contact-form-help ul{margin-bottom:18px}
.contact-form-help>a{font-weight:800}
@media(max-width:900px){.contact-simple{grid-template-columns:1fr}.contact-simple-main,.contact-simple-company{padding:28px}.contact-simple-company{min-height:0}}
@media(max-width:580px){.contact-simple-main,.contact-simple-company{padding:22px 20px;border-radius:16px}.contact-simple-main h1{font-size:2.15rem}.contact-proposal--simple{padding-top:40px}.contact-form-head{margin-bottom:22px}.contact-form-head h2{font-size:1.7rem}.contact-proposal--simple .contact-form-grid{padding-top:22px}}
