/*
Theme Name: 4S Realizace
Theme URI: https://4s-realizace.cz
Author: 4S Realizace
Description: WordPress šablona pro 4S Realizace
Version: 1.0
Text Domain: 4s-realizace
*/
:root {
  --green: #2ab854;
  --green-dark: #1f9f45;
  --green-light: rgba(42,184,84,0.1);
  --black: #ffffff;
  --dark: #f4f4f4;
  --card: #ffffff;
  --border: rgba(42,184,84,0.25);
  --grey: #666;
  --white: #111111;
  --content-max: 1760px;
  --content-pad: 24px;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 2px;
}
/* ===== OBSAH WEBU DO STŘEDU ===== */
section,
.proof-bar,
footer {
  padding-left: max(var(--content-pad), calc((100vw - var(--content-max)) / 2));
  padding-right: max(var(--content-pad), calc((100vw - var(--content-max)) / 2));
}
section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
/* VÝJIMKA – lišta energetický štítek přes celou šířku */
section.stitek-lista {
  padding: 0 !important;
}

.stitek-lista-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--content-pad);
  padding-right: var(--content-pad);
}
/* NAV */
nav{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem max(24px, calc((100vw - var(--content-max)) / 2));
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111;
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo span {
  color: var(--green);
}
nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
nav ul a,
nav ul li a {
  text-decoration: none;
  color: #111;
  font-size: 1.43rem;
  font-weight: 800;
  transition: color .2s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
nav ul a:hover,
nav ul li a:hover {
  color: #111;
}
.nav-btn {
  background: var(--green);
  color: #fff !important;
  padding: .9rem 1.35rem !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  transition: background .2s !important;
}
.nav-btn:hover {
  background: var(--green-dark) !important;
}
/* HERO */

#hero{
  min-height: 76vh;
  display: grid;
  grid-template-columns: 640px minmax(0, 1fr);
  align-items: center;
  gap: 6rem;
  padding-top: 3.2rem;
  padding-bottom: 1.3rem;
  padding-left: max(40px, calc((100vw - var(--content-max)) / 2));
  padding-right: max(24px, calc((100vw - var(--content-max)) / 2));
  position: relative;
  overflow: hidden;
}
.hero-bg{
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(61,220,104,0.06) 0%, transparent 70%);
}
.hero-company-logo{
  display: flex !important;
  align-items: center !important;
  margin-top: 0 !important;
  margin-bottom: .35rem !important;
  line-height: 1 !important;
  width: 100% !important;
}
.hero-company-logo img{
  display: block !important;
  width: auto !important;
  height: 140px !important;
  max-width: none !important;
  min-width: 0 !important;
  object-fit: contain !important;
}
.hero-left{
  position: relative;
  top: -35px;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  min-width: 0;
}
.hero-right{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  min-width: 0;
}
.hero-tag{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .35rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1.8rem;
}

.hero-tag::before{
  content: '●';
  font-size: .5rem;
}

.nowrap{
  white-space: nowrap;
}

.hero-sub{
  font-size: 1.05rem;
  color: var(--grey);
  line-height: 1.72;
  max-width: 520px;
  margin-bottom: 2.3rem;
}

.hero-sub strong{
  color: var(--white);
}

.hero-btns{
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-green{
  background: var(--green);
  color: #fff !important;
  padding: .95rem 2rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.btn-green:hover{
  background: var(--green-dark);
  transform: translateY(-2px);
  color: #fff !important;
}

.btn-ghost{
  border: 1px solid rgba(17,17,17,0.12);
  color: #111 !important;
  padding: .95rem 2rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.btn-ghost:hover{
  border-color: var(--green);
  color: var(--green) !important;
  background: rgba(42,184,84,0.04);
}

.hero-stats{
  display: flex;
  gap: 3rem;
  margin-top: .3rem;
}

.hstat{
  text-align: left;
}

.hstat-num{
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.hstat-label{
  font-size: .76rem;
  color: var(--grey);
  margin-top: .25rem;
}

.hero-img-wrap {
  width: 100%;
  max-width: 830px;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0,0,0,0.18), 0 0 80px rgba(61,220,104,0.07);
  position: relative;
  transition: transform .35s ease, box-shadow .35s ease;
  will-change: transform;
  outline: 2px solid rgba(255,255,255,0.8);
  outline-offset: -8px;
}

.hero-img-wrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.hero-img-wrap::after{
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(42,184,84,0.18) 0%, rgba(42,184,84,0.08) 40%, transparent 70%);
  z-index: -1;
  filter: blur(40px);
  pointer-events: none;
}

.hero-img-wrap:hover{
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 60px 120px rgba(0,0,0,0.25);
}

@media (max-width: 1100px){
  #hero{
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 8rem;
    padding-bottom: 3rem;
  }

  .hero-left,
  .hero-right,
  .hero-img-wrap,
  .hero-title{
    max-width: 100%;
  }

  .hero-right{
    align-items: center;
  }

  .nowrap{
    white-space: normal;
  }
}

@media (max-width: 900px){
  .hero-company-logo{
    margin-bottom: 1rem;
  }

  .hero-company-logo img{
    max-width: 240px;
    height: auto;
  }

  #hero{
    grid-template-columns: 1fr;
    padding-top: 7rem;
    padding-bottom: 3rem;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-left{
    top: 0;
  }

  .hero-right{
    display: none;
  }

  .hero-stats{
    gap: 2rem;
    flex-wrap: wrap;
  }

  .nowrap{
    white-space: normal;
  }
}

/* NZU */
.hero-nzu-top,
.hero-nzu-logo,
.hero-nzu-note {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: 5%;
  padding-right: 5%;
}

.hero-nzu-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 18px;
}

.hero-nzu-top img {
  width: 360px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

.hero-nzu-logo {
  margin-top: 4.5rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.hero-nzu-logo img {
  width: 240px;
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-nzu-note {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  background: rgba(248,250,248,0.96);
  border: 1px solid rgba(42,184,84,0.16);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.hero-nzu-note-title {
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .45rem;
}

.hero-nzu-note p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #4a4a4a;
}

.hero-nzu-note strong {
  color: #111;
}

@media (max-width: 900px) {
  .hero-nzu-top,
  .hero-nzu-logo,
  .hero-nzu-note {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-nzu-logo {
    margin-top: 2.5rem;
  }

  .hero-nzu-top img {
    width: 320px;
    max-width: 95%;
  }

  .hero-nzu-logo img {
    width: 190px;
  }

  .hero-nzu-note {
    margin-top: 1rem;
    padding: .95rem 1rem;
  }

  .hero-nzu-note p {
    font-size: .95rem;
    line-height: 1.6;
  }
}

/* SOCIAL PROOF BAR */
.proof-bar {
  background: #f4f4f4;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .85rem;
  color: #555;
}

.proof-item strong {
  color: #111;
}

.proof-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* SECTIONS */
.sec-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .8rem;
}

.sec-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.sec-desc {
  color: var(--grey);
  line-height: 1.75;
  font-size: .95rem;
  max-width: 560px;
}

/* SERVICES */
#sluzby {
  background: var(--dark);
}

.sluzby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.sluzba-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 2rem 1.8rem;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}

.sluzba-card:hover {
  border-color: var(--green);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(42,184,84,0.12);
}

.sluzba-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform .4s;
  border-radius: 0 0 12px 12px;
}

.sluzba-card:hover::after {
  transform: scaleX(1);
}

.sluzba-icon {
  width: 44px;
  height: 44px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.sluzba-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .6rem;
}

.sluzba-desc {
  font-size: .84rem;
  color: var(--grey);
  line-height: 1.65;
}

/* BEFORE AFTER */
#reference {
  background: var(--black);
}

.ref-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ba-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 220px;
}

.ba-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.ba-img-before {
  background: linear-gradient(135deg, #1a1a1a, #222);
}

.ba-img-after {
  background: linear-gradient(135deg, #0f1f0f, #1a2a1a);
}

.ba-label {
  position: absolute;
  top: .6rem;
  left: .6rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 4px;
}

.ba-label-before {
  background: rgba(255,255,255,0.1);
  color: var(--grey);
}

.ba-label-after {
  background: rgba(61,220,104,0.2);
  color: var(--green);
}

.ba-info {
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ba-title {
  font-size: .9rem;
  font-weight: 600;
}

.ba-dotace {
  font-size: .8rem;
  color: var(--green);
  font-weight: 600;
}

/* PRICING */
#cenik {
  background: var(--dark);
}

.cenik-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.cenik-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}

.cenik-card.popular {
  border-color: var(--green);
  box-shadow: 0 8px 32px rgba(42,184,84,0.15);
}

.cenik-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--black);
  font-size: .72rem;
  font-weight: 800;
  padding: .3rem 1.2rem;
  border-radius: 20px;
  white-space: nowrap;
}

.cenik-type {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1rem;
}

.cenik-img {
  font-size: 3rem;
  margin-bottom: 1.2rem;
}

.cenik-old {
  font-size: .85rem;
  color: var(--grey);
  text-decoration: line-through;
  margin-bottom: .3rem;
}

.cenik-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
  margin-bottom: .3rem;
  line-height: 1;
}

.cenik-note {
  font-size: .78rem;
  color: var(--grey);
  margin-bottom: 1.8rem;
}

.cenik-list {
  list-style: none;
  margin-bottom: 2rem;
}

.cenik-list li {
  font-size: .84rem;
  color: var(--grey);
  padding: .4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: .6rem;
}

.cenik-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.cenik-btn {
  display: block;
  text-align: center;
  background: var(--green-light);
  color: var(--green);
  border: 1px solid var(--border);
  padding: .8rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.cenik-card.popular .cenik-btn {
  background: var(--green);
  color: var(--black);
}

.cenik-btn:hover {
  background: var(--green);
  color: var(--black);
}

/* RECENZE */
#recenze {
  background: var(--black);
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.rec-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.rec-stars {
  color: var(--green);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: .1em;
}

.rec-text {
  font-size: .88rem;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.rec-author {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.rec-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: var(--green);
}

.rec-name {
  font-size: .88rem;
  font-weight: 600;
}

.rec-loc {
  font-size: .76rem;
  color: var(--grey);
}

/* HOW IT WORKS */
#jak-pracujeme {
  background: var(--dark);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--green);
  margin: 0 auto 1.2rem;
}

.step-title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.step-desc {
  font-size: .82rem;
  color: var(--grey);
  line-height: 1.6;
}

/* KONTAKT */
#kontakt {
  background: var(--black);
}

.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}

.kontakt-info .sec-desc {
  margin-bottom: 3rem;
}

.kinfo-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.kinfo-item:last-child {
  border-bottom: none;
}

.kinfo-icon {
  width: 42px;
  height: 42px;
  background: var(--green-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.kinfo-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: .25rem;
}

.kinfo-val {
  font-size: .95rem;
  font-weight: 500;
}

.kform {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fg {
  margin-bottom: 1.2rem;
}

.fg label {
  display: block;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: .5rem;
}

.kform input[type="text"],
.kform input[type="email"],
.kform input[type="tel"],
.kform select,
.kform textarea {
  width: 100%;
  background: #f8f8f8;
  border: 2px solid var(--green) !important;
  border-radius: 8px;
  padding: .8rem 1rem;
  color: #111;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  outline: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.kform input[type="text"]:focus,
.kform input[type="email"]:focus,
.kform input[type="tel"]:focus,
.kform select:focus,
.kform textarea:focus {
  border-color: var(--green-dark) !important;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(42,184,84,0.15);
}

.kform select option {
  background: #fff;
  color: #111;
}

.kform textarea {
  height: 110px;
  resize: vertical;
  line-height: 1.6;
}

.kform input::placeholder,
.kform textarea::placeholder {
  color: #8c8c8c;
}

.kform .wpcf7,
.kform .wpcf7 form,
.kform .wpcf7-form-control-wrap {
  width: 100%;
}

.kform .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.kform .fg {
  margin-bottom: 1.2rem;
}

.kform .form-submit,
.kform input[type="submit"] {
  width: 100%;
  background: var(--green);
  color: var(--black);
  border: none;
  padding: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, transform .2s;
  margin-top: .5rem;
}

.kform .form-submit:hover,
.kform input[type="submit"]:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.kform .wpcf7-spinner {
  margin: 12px 0 0;
}

.kform .wpcf7-not-valid-tip {
  font-size: .78rem;
  margin-top: .45rem;
  color: #d63638;
}

.kform .wpcf7-response-output {
  margin: 1rem 0 0 !important;
  padding: .9rem 1rem !important;
  border-radius: 8px;
  font-size: .88rem;
  line-height: 1.5;
}

.kform .wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid var(--green);
  background: rgba(42,184,84,0.08);
  color: #167534;
}

.kform .wpcf7 form.invalid .wpcf7-response-output,
.kform .wpcf7 form.unaccepted .wpcf7-response-output,
.kform .wpcf7 form.failed .wpcf7-response-output {
  border: 1px solid #d63638;
  background: rgba(214,54,56,0.08);
  color: #9f1d20;
}

/* CTA BANNER */
.cta-banner {
  background: linear-gradient(90deg,#1a4a2e 0%,#2d7a3a 40%,#1e5c2e 100%);
  border: none;
  border-radius: 0;
  padding: 2.5rem 5%;
  text-align: center;
  margin: 0 0 6rem 0;
  width: 100%;
  box-sizing: border-box;
}
.cta-banner h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: .8rem;
  color: #fff;
}
.cta-banner p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.cta-banner .btn-green {
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

/* PARTNEŘI */
#partneri {
  background: linear-gradient(180deg,#f4f4f4 0%,#efefef 100%);
  padding: 6rem 5%;
}

/* ---- OPRAVA: hlavička sekce partnerů ---- */
.partneri-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 0 auto 3rem;
  max-width: 1200px;
  flex-wrap: wrap;
}

.partneri-head-text {
  text-align: center;
}

.partneri-head-text .sec-label {
  text-align: center;
}

.partneri-head-text .sec-title {
  text-align: center;
  margin-bottom: 0;
}

.partner-award-badge img {
  width: 130px;
  height: auto;
  display: block;
}
/* ---------------------------------------- */

.partneri-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.partner-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  min-height: 130px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.partner-card img {
  display: block;
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.logo-izomat    { max-width: 78%  !important; max-height: 80px  !important; }
.logo-knauf     { max-width: 110% !important; max-height: 125px !important; }
.logo-dek       { max-width: 96%  !important; max-height: 110px !important; }
.logo-isover    { max-width: 88%  !important; max-height: 96px  !important; }
.logo-cemex     { max-width: 80%  !important; max-height: 84px  !important; }
.logo-baumit    { max-width: 96%  !important; max-height: 110px !important; }
.logo-wienerberger { max-width: 86% !important; max-height: 88px !important; }
.logo-weber     { max-width: 86%  !important; max-height: 90px  !important; }

@media (max-width: 900px) {
  .partneri-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .partneri-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    min-height: 110px;
  }

  .partner-card img {
    max-height: 52px;
  }

  .partneri-head {
    gap: 1.5rem;
  }

  .partner-award-badge img {
    width: 100px;
  }
}

/* FOOTER */
footer {
  background: #111;
  border-top: none;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: block;
  margin: 0 auto;
  text-align: center;
}

.footer-logo span {
  color: var(--green);
}

.footer-copy {
  font-size: .78rem;
  color: #888;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

.footer-copy a {
  color: #ccc;
  text-decoration: none;
  display: inline-block;
}

.footer-copy a:hover {
  text-decoration: underline;
}

.footer-copy .sep {
  margin: 0 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.8rem;
  width: 100%;
  margin: 0 auto;
}

.footer-links a {
  font-size: .78rem;
  color: #888;
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-company {
  margin: 10px auto 0;
  font-size: .95rem;
  color: #888;
  text-align: center;
  line-height: 1.8;
  max-width: 1100px;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== GDPR / page 31 ===== */

body.page-id-31 .wp-block-post-title {
  max-width: 900px !important;
  margin: 0 auto 18px !important;
  padding: 40px 20px 0 !important;
  font-size: 56px !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  color: #111 !important;
}

body.page-id-31 .wp-block-post-content {
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 10px 20px 80px !important;
}

body.page-id-31 .wp-block-post-content h1 {
  font-size: 24px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  color: #333 !important;
  margin: 0 0 24px !important;
}

body.page-id-31 .wp-block-post-content h2 {
  font-size: 32px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #111 !important;
  margin: 36px 0 14px !important;
}

body.page-id-31 .wp-block-post-content h3 {
  font-size: 22px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: #2ab854 !important;
  margin: 22px 0 10px !important;
}

body.page-id-31 .wp-block-post-content p {
  font-size: 18px !important;
  line-height: 1.8 !important;
  color: #222 !important;
  margin: 0 0 14px !important;
}

body.page-id-31 .wp-block-post-content ul {
  margin: 0 0 18px 22px !important;
  padding-left: 12px !important;
}

body.page-id-31 .wp-block-post-content li {
  font-size: 18px !important;
  line-height: 1.75 !important;
  color: #222 !important;
  margin-bottom: 6px !important;
}

body.page-id-31 .wp-block-post-content a {
  color: #2ab854 !important;
  text-decoration: none !important;
}

body.page-id-31 .wp-block-post-content a:hover {
  text-decoration: underline !important;
}

@media (max-width: 768px) {
  body.page-id-31 .wp-block-post-title {
    font-size: 38px !important;
    padding: 24px 16px 0 !important;
  }

  body.page-id-31 .wp-block-post-content {
    padding: 10px 16px 40px !important;
  }

  body.page-id-31 .wp-block-post-content h1 {
    font-size: 18px !important;
  }

  body.page-id-31 .wp-block-post-content h2 {
    font-size: 24px !important;
  }

  body.page-id-31 .wp-block-post-content h3 {
    font-size: 19px !important;
  }

  body.page-id-31 .wp-block-post-content p,
  body.page-id-31 .wp-block-post-content li {
    font-size: 16px !important;
  }
}

/* =========================
   MOBILNÍ LAYOUT – OPRAVA
   ========================= */

@media (max-width: 900px) {

  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  section,
  .proof-bar,
  footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* NAVIGACE */

  nav{
    position: relative !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px !important;
    gap: 12px;
  }

  nav ul{
    position: static !important;
    transform: none !important;
    left: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 16px !important;
    width: 100%;
  }

  nav ul a{
    font-size: 1rem !important;
  }

  .nav-btn{
    font-size: .95rem !important;
  }

  /* HERO */

  #hero{
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    min-height: auto !important;
  }

  .hero-left{
    max-width: 100% !important;
    top: 0 !important;
  }

  .hero-company-logo img{
    height: auto !important;
    max-width: 220px !important;
  }

  .hero-title{
    font-size: 2rem !important;
  }

  .hero-btns{
    flex-direction: column !important;
  }

  .btn-green,
  .btn-ghost{
    width: 100%;
  }

  .hero-right{
    display: none !important;
  }

  /* GRID SEKCE */

  .sluzby-grid,
  .ba-grid,
  .cenik-grid,
  .rec-grid,
  .steps,
  .kontakt-grid{
    grid-template-columns: 1fr !important;
  }

  .steps::before{
    display:none !important;
  }

  /* FORM */

  .form-row{
    grid-template-columns: 1fr !important;
  }

  .kform{
    padding:1.5rem !important;
  }

  /* PARTNERI */

  .partneri-grid{
    grid-template-columns: 1fr !important;
  }

  .partner-card{
    min-height:100px !important;
  }

  /* CTA */

  .cta-banner{
    padding:1.5rem 1rem !important;
  }

}

/* =========================
   MOBILNÍ HAMBURGER MENU
   ========================= */

.mobile-menu-toggle{
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.mobile-menu-toggle span{
  display: block;
  width: 20px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: .25s ease;
}

#site-nav.mobile-open .mobile-menu-toggle span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}

#site-nav.mobile-open .mobile-menu-toggle span:nth-child(2){
  opacity: 0;
}

#site-nav.mobile-open .mobile-menu-toggle span:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   MOBIL
   ========================= */
@media (max-width: 900px) {

  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  section,
  .proof-bar,
  footer,
  #hero {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* NAV – jen hamburger verze */
  #site-nav{
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px !important;
  }

  #site-nav .logo{
    font-size: 1.45rem !important;
  }

  #site-nav .mobile-menu-toggle{
    display: inline-flex;
    justify-self: end;
  }

  #site-nav ul{
    display: none !important;
    position: static !important;
    left: auto !important;
    transform: none !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 8px 0 0 0 !important;
    padding: 14px 0 0 0 !important;
    border-top: 1px solid rgba(0,0,0,0.08);
  }

  #site-nav.mobile-open ul{
    display: flex !important;
  }

  #site-nav ul li{
    list-style: none !important;
  }

  #site-nav ul a,
  #site-nav ul li a{
    display: block !important;
    width: 100% !important;
    font-size: 1rem !important;
    line-height: 1.25 !important;
    padding: 6px 0 !important;
  }

  #site-nav ul .nav-btn{
    display: inline-flex !important;
    width: auto !important;
    padding: .8rem 1rem !important;
    margin-top: 6px !important;
  }

  #site-nav .nav-extra{
    display: none !important;
    grid-column: 1 / -1 !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding-top: 4px !important;
  }

  #site-nav.mobile-open .nav-extra{
    display: flex !important;
  }

  #site-nav .nav-extra a:last-child{
    max-width: 100% !important;
  }

  /* HERO */
  #hero {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    min-height: auto !important;
  }

  .hero-left {
    max-width: 100% !important;
    top: 0 !important;
  }

  .hero-right {
    display: block !important;
    width: 100% !important;
    margin-top: 30px !important;
  }

  .hero-company-logo img {
    height: auto !important;
    max-width: 220px !important;
  }

  .hero-title {
    font-size: 2.1rem !important;
    line-height: 1.08 !important;
  }

  .hero-sub {
    max-width: 100% !important;
    font-size: 1rem !important;
  }

  .hero-btns {
    flex-direction: column !important;
    width: 100% !important;
    gap: .8rem !important;
  }

  .btn-green,
  .btn-ghost {
    width: 100% !important;
  }

  .hero-img-wrap {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    margin: 0 auto !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }

  .hero-img-wrap img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
  }

  .hero-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.2rem 1.6rem !important;
    margin-top: 1.5rem !important;
  }

  .hstat {
    text-align: left !important;
  }

  /* GRIDY */
  .sluzby-grid,
  .ba-grid,
  .cenik-grid,
  .rec-grid,
  .steps,
  .kontakt-grid,
  .form-row,
  .kform .form-row {
    grid-template-columns: 1fr !important;
  }

  .ref-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
  }

  .steps::before {
    display: none !important;
  }

  .kform {
    padding: 1.4rem !important;
  }

  .partneri-head {
    gap: 1.2rem !important;
    margin-bottom: 2rem !important;
  }

  .partneri-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .partner-card {
    min-height: 96px !important;
    padding: 14px !important;
  }

  .partner-card img {
    max-height: 46px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
  }

  .cta-banner {
    padding: 1.6rem 1rem !important;
    margin-bottom: 3rem !important;
  }

  .footer-links {
    flex-direction: column !important;
    gap: .8rem !important;
  }

  .footer-company {
    font-size: .85rem !important;
    line-height: 1.6 !important;
  }

  /* ENERGETICKÝ ŠTÍTEK */
  section[style*="linear-gradient(90deg,#1a4a2e 0%,#2d7a3a 40%,#1e5c2e 100%)"] {
    padding: 22px 0 !important;
    margin-top: 24px !important;
  }

  section[style*="linear-gradient(90deg,#1a4a2e 0%,#2d7a3a 40%,#1e5c2e 100%)"] > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    padding: 0 16px !important;
    max-width: 100% !important;
  }

  section[style*="linear-gradient(90deg,#1a4a2e 0%,#2d7a3a 40%,#1e5c2e 100%)"] > div > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 18px !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  section[style*="linear-gradient(90deg,#1a4a2e 0%,#2d7a3a 40%,#1e5c2e 100%)"] img[alt="Energetický štítek"] {
    height: auto !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    display: block !important;
    flex-shrink: 1 !important;
  }

  section[style*="linear-gradient(90deg,#1a4a2e 0%,#2d7a3a 40%,#1e5c2e 100%)"] div[style*="width:1px;height:90px"] {
    display: none !important;
  }

  section[style*="linear-gradient(90deg,#1a4a2e 0%,#2d7a3a 40%,#1e5c2e 100%)"] div[style*="color:#ffffff;font-family:Inter, sans-serif;max-width:650px"] {
    max-width: 100% !important;
    width: 100% !important;
    text-align: left !important;
  }

  section[style*="linear-gradient(90deg,#1a4a2e 0%,#2d7a3a 40%,#1e5c2e 100%)"] div[style*="font-size:20px;font-weight:600"] {
    font-size: 1.35rem !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
  }

  section[style*="linear-gradient(90deg,#1a4a2e 0%,#2d7a3a 40%,#1e5c2e 100%)"] ul {
    padding-left: 18px !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  section[style*="linear-gradient(90deg,#1a4a2e 0%,#2d7a3a 40%,#1e5c2e 100%)"] li {
    white-space: normal !important;
  }

  section[style*="linear-gradient(90deg,#1a4a2e 0%,#2d7a3a 40%,#1e5c2e 100%)"] a[href="#kontakt"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 18px !important;
    font-size: 1rem !important;
    justify-content: center !important;
  }
}

/* === HERO TITLE – jediné pravidlo === */
.hero-title,
#hero .hero-title {
  font-size: clamp(2.4rem, 3vw, 4.0rem) !important;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  max-width: 560px;
}

@media (max-width: 900px){
  .hero-title,
  #hero .hero-title {
    font-size: 2.1rem !important;
    max-width: 100%;
  }
}

html body #hero h1.hero-title {
  font-size: 3.2rem !important;
}

@media (max-width: 900px){
  html body #hero h1.hero-title {
    font-size: 2.1rem !important;
  }
}

html body #hero h1.hero-title span.accent {
  color: #2ab854 !important;
}


/* Scrollbar - Chrome/Edge */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2d7a3a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e5a28;
}

/* Firefox */
* {html {
    scrollbar-color: #b2e0b4 #f1f1f1;
    scrollbar-width: thin;
}
}
#sluzby {
  background-image: url('https://www.4s-realizace.cz/wp-content/uploads/2026/03/kostra-2.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

#sluzby .sec-label {
  font-size: 18px;
  color: #2ab854;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

#sluzby .sec-desc {
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
  font-size: 20px;
  font-weight: 600;
}

.sluzby-grid {
  align-items: stretch;
}

.sluzba-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.sluzba-card .sluzba-desc {
  flex: 1;
}

.sluzba-card .sluzba-btn,
.sluzba-card .sluzba-btn:link,
.sluzba-card .sluzba-btn:visited,
a.sluzba-btn:-webkit-any-link {
  display: inline-block !important;
  margin-top: 12px !important;
  padding: 8px 16px !important;
  background: #2ab854 !important;
  color: #fff !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  align-self: flex-start;
}

.sluzba-card .sluzba-btn:hover {
  background: #1e8f3e !important;
}

body main h1 {
  margin-bottom: 20px !important;
}

main h1 {
  margin: 0 0 100px 0 !important;
}

#sluzby .sec-label {
  font-size: 18px;
  color: #2ab854;
  text-shadow: 2px 2px 0 #111, -2px -2px 0 #111, 2px -2px 0 #111, -2px 2px 0 #111;
}

#sluzby .sec-title {
  color: #ffffff;
  text-shadow: 2px 2px 0 #111, -2px -2px 0 #111, 2px -2px 0 #111, -2px 2px 0 #111;
}

#sluzby .sec-desc {
  color: #ffffff;
  text-shadow: 2px 2px 0 #111, -2px -2px 0 #111, 2px -2px 0 #111, -2px 2px 0 #111;
  font-size: 20px;
  font-weight: 600;
}
.sluzba-card .sluzba-btn:any-link {
  background: #2ab854 !important;
  color: #fff !important;
  text-decoration: none !important;
  display: inline-block !important;
  padding: 8px 16px !important;
  border-radius: 5px !important;
}
.sluzba-card .sluzba-btn:any-link {
  width: auto !important;
  display: inline-block !important;
}
body.page-id-3 .footer-copy a {
  color: #fff !important;
}

body.page-id-3 nav .logo {
  color: #111 !important;
}

body.page-id-3 nav .logo,
body.page-id-3 #site-nav .logo {
  color: #111 !important;
}

body.page-id-3 nav ul a,
body.page-id-3 nav ul li a,
body.page-id-3 #site-nav ul a,
body.page-id-3 #site-nav ul li a {
  color: #111 !important;
}

body.page-id-3 {
  --white: #111111 !important;
}

body.page-id-3 .logo {
  color: #111 !important;
}

body.page-id-3 nav ul a {
  color: #111 !important;
}