
/* DopytAI: elektro vizual, samostatny od strechy a sadrokartonu */
.home-elektro-image {
  background: #dceeff url('/elektro-foto-dopytai.webp') center/cover no-repeat !important;
}
.home-elektro-image::after { content: none !important; }
.roof-hero.elektro-hero {
  min-height: 565px;
  padding: 48px max(22px, 5%) 48px;
  background: linear-gradient(120deg, #f7fbff 0%,#eaf5ff 70%,#d8edff 100%);
  text-align: left;
  border-radius: 18px;
}
.roof-hero.elektro-hero .roof-hero-content {
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(280px,.88fr);
  gap: clamp(20px,4vw,56px);
  align-items: center;
  max-width: 1260px;
  margin: 0 auto;
  text-align: left;
}
.roof-hero.elektro-hero .roof-hero-copy { min-width: 0; }
.roof-hero.elektro-hero h1 {
  font-size: clamp(34px,5vw,62px);
  line-height: 1.08;
  letter-spacing: -1.3px;
  color: #092448;
  margin: 15px 0 20px;
}
.roof-hero.elektro-hero h1 span { color: #087cf0; }
.roof-hero.elektro-hero .roof-hero-copy > p {
  color: #35516d;
  font-size: clamp(17px,2vw,22px);
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 14px;
}
.elektro-tag, .elektro-features, .elektro-image, .elektro-secondary-cta { display:none; }
.roof-hero.elektro-hero .elektro-tag { display:inline-block; }
.elektro-tag {
  background: #ddecff;
  color: #0755bd;
  font-size: 14px;
  font-weight: 850;
  padding: 10px 17px;
  border-radius: 100px;
}
.roof-hero.elektro-hero .elektro-features {
  display:grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin: 26px 0 0;
}
.elektro-features span {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 66px;
  padding: 13px 12px;
  border: 1px solid #d1e3fb;
  border-radius: 14px;
  background: rgba(255,255,255,.87);
  color: #092448;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
}
.elektro-features b { font-size: 24px; color: #087cf0; }
.roof-hero.elektro-hero .elektro-image {
  display: block;
  width:100%;
  height: 475px;
  border-radius: 22px;
  background: #d9edff url('/elektro-foto-dopytai.webp') center / cover no-repeat;
  box-shadow: 0 14px 38px #09244820;
}
.roof-hero.elektro-hero .estimate-cta {
  display: inline-flex !important;
  width: auto;
  margin: 26px 0 8px;
  padding: 18px 22px;
  max-width:none;
  text-align:center;
  justify-content:center;
  box-shadow: 0 9px 20px #087cf02b;
}
.roof-hero.elektro-hero .elektro-secondary-cta {
  display: inline-block;
  margin: 8px 12px 0;
  font-weight: 700;
  color: #0755ae;
  text-decoration: underline;
}
.roof-hero.elektro-hero .roof-hero-sub { font-size:14px; margin: 8px 0; }
@media(max-width:790px) {
  .roof-hero.elektro-hero { padding: 32px 18px; }
  .roof-hero.elektro-hero .roof-hero-content { grid-template-columns: 1fr; }
  .roof-hero.elektro-hero h1 { font-size: clamp(31px,8vw,45px); }
  .roof-hero.elektro-hero .elektro-image { height: 285px; background-position: center 38%; }
  .roof-hero.elektro-hero .elektro-features { gap: 9px; }
  .elektro-features span { min-height:60px; padding:10px 9px; font-size:12px; }
  .roof-hero.elektro-hero .estimate-cta { display:flex !important; width:100%; font-size:15px; }
}

/* Elektro: odstrániť zdvojené CTA zo SDK hero; tlačidlo je len v ľavom stĺpci. */
.roof-hero.elektro-hero #sdkHeroButton { display: none !important; }
.roof-hero.elektro-hero { min-height: 0; height: auto; }
.roof-hero.elektro-hero .roof-hero-copy { padding-bottom: 18px; }
.roof-hero.elektro-hero .roof-hero-copy .roof-hero-sub { clear: both; }

/* Nove remesla: neutrálne pozadie, bez fotografie strechy a zdvojených CTA. */
.roof-hero.generic-hero {
  min-height: 350px;
  padding: 55px 24px 55px;
  background: radial-gradient(ellipse at 90% 25%,#c9e6ff 0%,transparent 50%),
              linear-gradient(130deg,#f7fbff,#deefff) !important;
  text-align: center;
}
.roof-hero.generic-hero .roof-hero-content { max-width: 930px; margin: 0 auto; }
.roof-hero.generic-hero .roof-hero-copy > p { max-width: 680px; margin: 0 auto; }
.roof-hero.generic-hero .estimate-cta { max-width: 400px; }
.roof-hero.generic-hero #sdkHeroButton { display:none !important; }
@media (max-width:700px) {
  .roof-hero.generic-hero { min-height: 280px; padding: 34px 16px 40px; }
}

/* Jednotné karty pre všetky remeslá vrátane pôvodných 3.
   Fotografie zostávajú na pôvodných kartách, nové majú vlastné SVG. */
.home-trades-grid { align-items: stretch; }
.home-trade-card {
  min-width: 0;
  min-height: 188px;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  border: 1px solid #dce7f1;
  box-shadow: 0 7px 23px #09244813;
  transition: transform .16s ease, box-shadow .16s ease;
}
.home-trade-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px #0924481e;
}
.home-trade-card .home-trade-image {
  min-height: 188px;
  width: 100%;
  overflow: hidden;
}
.home-trade-card .home-trade-content {
  min-width: 0;
  padding: 21px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.home-trade-card .home-trade-content h3 {
  overflow-wrap: anywhere;
  font-size: clamp(19px,2vw,25px);
  line-height: 1.18;
  margin-bottom: 10px;
}
.home-trade-card .home-trade-content p {
  flex: 1;
  line-height: 1.5;
  margin-bottom: 16px;
}
.home-trade-card .home-trade-content button {
  margin-top: auto;
  width: auto;
  min-height: 43px;
  max-width: 100%;
  line-height: 1.25;
  white-space: normal;
  text-align: left;
  padding: 11px 14px;
}
@media (max-width: 700px) {
  .home-trades-grid { gap: 14px; }
  .home-trade-card {
    grid-template-columns: minmax(0,40%) minmax(0,60%);
    min-height: 165px;
  }
  .home-trade-card .home-trade-image { min-height: 165px; }
  .home-trade-card .home-trade-content { padding: 16px 13px; }
  .home-trade-card .home-trade-content h3 { font-size: clamp(17px,4.2vw,21px); }
  .home-trade-card .home-trade-content p { font-size: 13px; }
  .home-trade-card .home-trade-content button { font-size: 12px; padding: 10px 11px; }
}
@media (max-width: 360px) {
  .home-trade-card { grid-template-columns: 37% 63%; }
}
@media (prefers-reduced-motion: reduce) {
  .home-trade-card { transition: none; }
}

/* Katalog remesiel: pri otvoreni formulara rovnaky fotograficky hero ako pri elektro.
   Aktivuje sa len pri novych 16 remeslach, strechy/SDK/elektro sa nemenia. */
.roof-hero.generic-hero {
  min-height: 0;
  height: auto;
  padding: clamp(28px,4vw,54px) max(18px,4%) !important;
  text-align: left;
  background: linear-gradient(125deg,#f8fbff 0%,#eaf5ff 75%,#d9ecff 100%) !important;
  border-radius: 18px;
}
.roof-hero.generic-hero .roof-hero-content {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(290px,.95fr);
  align-items: center;
  gap: clamp(18px,3vw,46px);
  max-width: 1260px;
  margin: 0 auto;
  text-align: left;
}
.roof-hero.generic-hero .roof-hero-copy { min-width:0; }
.roof-hero.generic-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(33px,4.8vw,58px);
  line-height: 1.12;
  color: #092448;
}
.roof-hero.generic-hero .roof-hero-copy > p {
  max-width: 620px;
  font-size: clamp(16px,1.8vw,21px);
  line-height: 1.5;
  margin: 0 0 16px;
  color: #35516d;
}
.roof-hero.generic-hero .elektro-image {
  display: block;
  width: 100%;
  height: clamp(270px,32vw,440px);
  border-radius: 20px;
  box-shadow: 0 12px 30px #09244822;
  background-color: #dceeff;
}
.roof-hero.generic-hero .elektro-tag,
.roof-hero.generic-hero .elektro-features,
.roof-hero.generic-hero .elektro-secondary-cta { display:none !important; }
.roof-hero.generic-hero .estimate-cta {
  display:inline-flex !important;
  width:auto;
  max-width:none;
  margin: 14px 0 8px;
  padding: 16px 22px;
  justify-content:center;
  text-align:center;
}
.roof-hero.generic-hero .roof-hero-sub { font-size:14px; }
.roof-hero.generic-hero #sdkHeroButton { display:none !important; }
@media (max-width:790px) {
  .roof-hero.generic-hero .roof-hero-content { grid-template-columns:1fr; }
  .roof-hero.generic-hero .elektro-image {
    height: clamp(220px,60vw,340px);
  }
  .roof-hero.generic-hero { padding: 30px 16px !important; }
}

/* Zlepsena citatelnost fotografickeho hero sadrokartonu.
   Nezasahuje do formulara ani funkcnosti. */
.roof-hero.sdk-hero {
  background:
    linear-gradient(90deg,
      rgba(248,251,255,.92) 0%,
      rgba(248,251,255,.73) 43%,
      rgba(248,251,255,.28) 100%),
    url('/sadrokarton-pozadie.webp') center 45% / cover no-repeat !important;
}
.roof-hero.sdk-hero h1,
.roof-hero.sdk-hero .roof-hero-copy > p,
.roof-hero.sdk-hero .roof-hero-sub {
  text-shadow: 0 2px 8px rgba(255,255,255,.95), 0 0 18px rgba(255,255,255,.85);
}
.roof-hero.sdk-hero .roof-hero-copy > p {
  color: #092448;
  font-weight: 750;
}
.roof-hero.generic-hero h1 { color:#082044; font-weight:900; }
.roof-hero.generic-hero .roof-hero-copy > p,
.roof-hero.generic-hero .roof-hero-sub {
  color: #15395e;
  font-weight: 700;
}

/* Strechy: citatelny podtext pod modrym CTA aj na fotografii.
   Plati iba pre existujuci strechovy hero. */
.roof-hero:not(.sdk-hero):not(.elektro-hero):not(.generic-hero) .roof-hero-sub {
  display: inline-block;
  width: auto;
  max-width: calc(100% - 20px);
  margin: 12px auto 0;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(191,215,236,.85);
  color: #092448;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  text-shadow: none;
  box-shadow: 0 4px 14px rgba(9,36,72,.12);
}
@media (max-width: 480px) {
  .roof-hero:not(.sdk-hero):not(.elektro-hero):not(.generic-hero) .roof-hero-sub {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* DopytAI unified-trade-hero 2026
   Rovnaky hero pre vsetky remesla: text vlavo, fotografia vpravo.
   Jednotny dizajn, ziadna zmena formularov ani pristupovych prav. */
.roof-hero.unified-trade-hero,
.roof-hero.unified-trade-hero.sdk-hero,
.roof-hero.unified-trade-hero.elektro-hero,
.roof-hero.unified-trade-hero.generic-hero {
  position: relative;
  width:100%;
  min-height: 0;
  height: auto;
  padding: clamp(28px,4vw,54px) max(18px,4%) !important;
  background:linear-gradient(125deg,#f8fbff 0%,#eaf5ff 75%,#d9ecff 100%) !important;
  text-align: left;
  border-radius: 0 0 18px 18px;
}
.roof-hero.unified-trade-hero .roof-hero-content,
.roof-hero.unified-trade-hero.sdk-hero .roof-hero-content,
.roof-hero.unified-trade-hero.elektro-hero .roof-hero-content,
.roof-hero.unified-trade-hero.generic-hero .roof-hero-content {
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr);
  align-items:center;
  gap:clamp(20px,3vw,46px);
  width:100%;
  max-width:1260px;
  margin:0 auto;
  text-align:left;
}
.roof-hero.unified-trade-hero .roof-hero-copy {
  min-width:0;
  padding:0;
  text-align:left;
}
.roof-hero.unified-trade-hero h1,
.roof-hero.unified-trade-hero.sdk-hero h1 {
  font-size:clamp(33px,4.5vw,58px);
  line-height:1.12;
  color:#092448;
  letter-spacing:-1px;
  margin:0 0 20px;
  font-weight:900;
  text-shadow:none;
}
.roof-hero.unified-trade-hero .roof-hero-copy > p,
.roof-hero.unified-trade-hero.sdk-hero .roof-hero-copy > p {
  max-width:600px;
  font-size:clamp(16px,1.8vw,21px);
  line-height:1.5;
  font-weight:650;
  color:#18375a;
  margin:0 0 16px;
  text-shadow:none;
}
.roof-hero.unified-trade-hero .roof-hero-sub {
  display:block;
  width:fit-content;
  max-width:100%;
  padding:0;
  margin:12px 0 0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  font-size:15px;
  font-weight:700;
  line-height:1.5;
  color:#15395e;
  text-shadow:none;
}
.roof-hero.unified-trade-hero .elektro-image,
.roof-hero.unified-trade-hero.sdk-hero .elektro-image,
.roof-hero.unified-trade-hero.elektro-hero .elektro-image,
.roof-hero.unified-trade-hero.generic-hero .elektro-image {
  display:block;
  min-width:0;
  width:100%;
  height:clamp(270px,32vw,440px);
  border-radius:20px;
  box-shadow:0 12px 30px rgba(9,36,72,.15);
  background-color:#dceeff;
}
.roof-hero.unified-trade-hero:not(.sdk-hero):not(.elektro-hero):not(.generic-hero) .elektro-image {
  background-image:url('/strecha-hero.webp');
  background-position:center 57%;
  background-size:cover;
  background-repeat:no-repeat;
}
.roof-hero.unified-trade-hero.sdk-hero .elektro-image {
  background-image:url('/sadrokarton-pozadie.webp');
  background-position:center 45%;
  background-size:cover;
  background-repeat:no-repeat;
}
.roof-hero.unified-trade-hero .elektro-tag,
.roof-hero.unified-trade-hero .elektro-features,
.roof-hero.unified-trade-hero .elektro-secondary-cta,
.roof-hero.unified-trade-hero #sdkHeroButton {
  display:none !important;
}
.roof-hero.unified-trade-hero .roof-hero-content .estimate-cta,
.roof-hero.unified-trade-hero.sdk-hero .roof-hero-content .estimate-cta,
.roof-hero.unified-trade-hero.elektro-hero .roof-hero-content .estimate-cta,
.roof-hero.unified-trade-hero.generic-hero .roof-hero-content .estimate-cta {
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  width:auto;
  max-width:100%;
  margin:14px 0 8px;
  padding:16px 22px;
  font-size:16px;
  white-space:normal;
  text-align:center;
}
@media(max-width:790px) {
  .roof-hero.unified-trade-hero .roof-hero-content,
  .roof-hero.unified-trade-hero.sdk-hero .roof-hero-content,
  .roof-hero.unified-trade-hero.elektro-hero .roof-hero-content,
  .roof-hero.unified-trade-hero.generic-hero .roof-hero-content {
    grid-template-columns:1fr;
    gap:20px;
  }
  .roof-hero.unified-trade-hero .elektro-image,
  .roof-hero.unified-trade-hero.sdk-hero .elektro-image,
  .roof-hero.unified-trade-hero.elektro-hero .elektro-image,
  .roof-hero.unified-trade-hero.generic-hero .elektro-image {
    height:clamp(220px,58vw,330px);
  }
  .roof-hero.unified-trade-hero .roof-hero-content .estimate-cta {
    width:100%;
  }
}

/* Strechy: stara biela pill mala vyssiu specificitu; zrusit len v zjednotenom hero. */
.roof-hero.unified-trade-hero:not(.sdk-hero):not(.elektro-hero):not(.generic-hero) .roof-hero-sub {
  display:block;
  width:fit-content;
  max-width:100%;
  margin:12px 0 0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:#15395e;
  font-size:15px;
  line-height:1.5;
  text-shadow:none;
}
