/* ============================================================
   Solar Services – hlavný štýl
   Farby a typografia prevzaté z pôvodného webu (Elementor):
   modrá #0074C9, svetlá #EDF7FF, text #6A6A6A
   Nadpisy: Krona One, text: Poppins, kontakty: Roboto
   ============================================================ */

:root {
  --blue: #0074C9;
  --blue-dark: #005EA3;
  --light: #EDF7FF;
  --text: #55606B;
  --text-dark: #3A3A3A;
  --white: #FFFFFF;
  --line: #EAEAEA;
  --shadow: 0 0 23px rgba(0, 0, 0, .15);
  --heading: "Krona One", sans-serif;
  --body: "Poppins", sans-serif;
  --contact: "Roboto", sans-serif;
  --container: 1200px;
  --gutter: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
/* Kotvy sa nesmú schovať pod prilepenou hlavičkou – platí pre každý prvok s id,
   nielen pre sekcie (napr. #formular je div s kartou formulára). */
[id] { scroll-margin-top: 122px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 400; color: var(--blue); line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 19px; }
h4 { font-size: 17px; }
p { margin: 0 0 1.2em; }
strong { font-weight: 600; color: var(--text-dark); }
.section--blue strong { color: #fff; }
ul { padding-left: 1.3em; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 10px; z-index: 1000; }
.skip-link:focus { left: 10px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 80px 0; }
.section--light { background: var(--light); }
.section--blue { background: var(--blue); color: #fff; }
.section--blue h2, .section--blue h3 { color: #fff; }
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__head p { font-size: 17px; }
.lead { font-size: 18px; line-height: 1.7; }

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-block;
  font-family: var(--heading);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .02em;
  padding: 18px 40px;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
  border-radius: 0;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background .25s, color .25s, transform .2s, box-shadow .25s;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.25) 50%, transparent 100%);
  transform: translateX(-110%);
  transition: transform .6s ease;
}
.btn:hover::after { transform: translateX(110%); }
.btn > * { position: relative; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 60, 110, .25); }
.btn:active { transform: translateY(0); }
.btn--light { background: var(--light); border-color: var(--light); color: var(--blue); }
.btn--light:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--white { background: #fff; border-color: #fff; color: var(--blue); }
/* Biele tlačidlo stojí na fotke aj na modrom podklade – pri prejdení myšou
   preto potrebuje plnú výplň, nie priehľadnú, inak text zanikne. */
.btn--white:hover { background: var(--blue-dark); border-color: #fff; color: #fff; }
.btn--outline { background: transparent; color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--sm { padding: 13px 26px; font-size: 13px; }
.link-more { font-family: var(--body); font-weight: 500; font-size: 16px; color: var(--blue); }
.link-more::after { content: "\2192"; display: inline-block; margin-left: .4em; transition: transform .3s ease; }
.link-more:hover::after, .service:hover .link-more::after { transform: translateX(5px); }

/* ---------- Hlavička ---------- */
.header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 28px 0;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.header__logo img { width: 240px; height: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: block;
  padding: 10px 16px;
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  color: #fff;
  position: relative;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s;
}
.nav__link:hover, .nav__link[aria-current="page"] { text-decoration: none; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { margin-left: 14px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-toggle span { display: block; width: 28px; height: 3px; background: #fff; border-radius: 2px; transition: .3s; }

/* Hlavička po odrolovaní */
.header.is-scrolled { position: fixed; background: var(--blue); padding: 12px 0; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.header.is-scrolled .header__logo img { width: 190px; }
.header.is-scrolled .btn--white { padding: 14px 28px; font-size: 14px; }

/* Stránky bez veľkého hero – hlavička na modrom páse */
.page-bar {
  background: var(--blue) url("../img/panely-pas.jpg?v=16") center/cover no-repeat;
  position: relative;
  padding: 190px 0 80px;
  color: #fff;
  text-align: center;
}
.page-bar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,116,201,.55), rgba(0,116,201,.8)); }
.page-bar .container { position: relative; }
.page-bar h1 { color: #fff; margin: 0; }
.page-bar p { max-width: 680px; margin: 18px auto 0; font-size: 17px; }
.page-fotovoltika .page-bar { padding-bottom: 205px; }

/* Rýchly rozcestník s výzvou pod kartami */
.quick-cta { margin-top: 42px; text-align: center; }
.quick-cta p { max-width: 700px; margin: 0 auto 24px; font-size: 17px; }
.quick-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Mobilné menu (modrý overlay ako pôvodný web) ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--blue);
  display: flex; flex-direction: column;
  padding: 28px 24px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__top img { width: 200px; }
.mobile-menu__close {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid #fff; background: none; color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.mobile-menu__list { list-style: none; margin: auto 0; padding: 0; text-align: center; }
.mobile-menu__list a { display: block; padding: 16px; font-size: 26px; font-weight: 300; color: #fff; }
.mobile-menu__list a[aria-current="page"] { font-weight: 500; }
.mobile-menu__cta { text-align: center; padding-bottom: 20px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  background: #0B2B45;
  overflow: hidden;
  padding: 160px 0 200px;
}
/* Jemné stmavenie pod hlavičkou – biele menu leží na svetlej oblohe
   a bez neho má kontrast iba ~3:1. */
.hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 230px; z-index: 1;
  background: linear-gradient(180deg, rgba(0, 42, 78, .62) 0%, rgba(0, 42, 78, .28) 55%, rgba(0, 42, 78, 0) 100%);
  pointer-events: none;
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,60,110,.15) 0%, rgba(0,60,110,.35) 100%); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 58px); margin-bottom: 28px; text-shadow: 0 2px 20px rgba(0,40,80,.35); }
.hero p { font-size: clamp(16px, 1.4vw, 19px); max-width: 640px; margin: 0 auto 34px; text-shadow: 0 1px 10px rgba(0,40,80,.4); }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Dve karty (Pre firmy / domácnosti) ---------- */
.cards-overlap { margin-top: -140px; position: relative; z-index: 2; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card-img {
  position: relative;
  min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 36px;
  color: #fff;
  background: var(--blue);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .35s ease, transform .35s ease;
}
.card-img__media {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1);
  transition: transform .9s cubic-bezier(.2, .6, .2, 1);
}
.card-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,116,201,0) 28%, rgba(0,116,201,.72) 72%, rgba(0,116,201,.94) 100%); transition: opacity .35s ease; }
.card-img__body { position: relative; z-index: 2; }
.card-img, .card-img:hover, .card-img:hover h3 { text-decoration: none; }
.card-img:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 60, 110, .28); }
.card-img:hover .card-img__media { transform: scale(1.07); }
.card-img .link-more::after { display: inline-block; transition: transform .3s ease; }
.card-img:hover .link-more::after { transform: translateX(5px); }
.card-img h3 { color: #fff; font-size: 23px; margin-bottom: 10px; text-shadow: 0 1px 10px rgba(0,40,80,.45); }
.card-img .link-more { color: #fff; text-shadow: 0 1px 8px rgba(0,40,80,.45); }
.card-img:hover .link-more { text-decoration: none; }

/* ---------- Prečo fotovoltika ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.split--reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(26px, 3vw, 36px); }
.icon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.icon-box {
  background: var(--light);
  padding: 30px 22px;
  text-align: center;
  font-weight: 500;
  color: var(--blue);
  font-size: 15px;
  line-height: 1.4;
}
.icon-box img { width: 70px; margin: 0 auto 16px; }
.icon-box--white { background: #fff; box-shadow: var(--shadow); }

/* ---------- Galéria realizácií ---------- */
/* Galéria – 3 stĺpce a pomer 3:2 rovnako ako na pôvodnom webe */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.gallery a { position: relative; display: block; aspect-ratio: 3/2; overflow: hidden; background: var(--light); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .6, .2, 1); }
.gallery a::after { content: ""; position: absolute; inset: 0; background: rgba(0, 116, 201, .35); opacity: 0; transition: opacity .35s ease; }
.gallery a:hover img { transform: scale(1.07); }
.gallery a:hover::after { opacity: 1; }

/* Na mobile ukážeme len prvé štyri fotky, zvyšok sa rozklikne.
   Počet musí sedieť s MOBIL_LIMIT v js/main.js. */
.gallery-more { display: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.9);
  display: none; align-items: center; justify-content: center;
}
.lightbox { opacity: 0; transition: opacity .3s ease; }
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox img { animation: lbIn .35s cubic-bezier(.2, .6, .2, 1); }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } }
.lightbox img { max-width: 92vw; max-height: 88vh; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid #fff; background: rgba(0,0,0,.3); color: #fff;
  font-size: 26px; cursor: pointer;
}
.lightbox__btn--prev { left: 16px; }
.lightbox__btn--next { right: 16px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #fff; background: none; color: #fff; font-size: 24px; cursor: pointer; }
.lightbox__count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; }

/* ---------- Proces (kroky) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px; counter-reset: step; }
.step { position: relative; padding-left: 74px; }
.step__num {
  position: absolute; left: 0; top: 0;
  font-family: var(--heading); font-size: 44px; line-height: 1; color: var(--blue);
}
.step::before { content: ""; position: absolute; left: 56px; top: 8px; width: 2px; height: 90px; background: var(--blue); opacity: .6; transform: scaleY(0); transform-origin: top; transition: transform .8s cubic-bezier(.2, .6, .2, 1) .15s; }
.step.is-visible::before { transform: scaleY(1); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; margin: 0; }
.steps--dark .step__num, .steps--dark h3 { color: #fff; }
.steps--dark .step::before { background: #fff; }
.steps--dark .step p { color: #fff; }

/* ---------- Čísla / fakty ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; text-align: center; }
.stat { padding: 30px 20px; background: #fff; box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; }
.stat:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 60, 110, .18); }
.stat strong { display: block; font-family: var(--heading); font-size: clamp(22px, 2.2vw, 28px); color: var(--blue); line-height: 1.2; margin-bottom: 8px; overflow-wrap: anywhere; }
.stat span { font-family: var(--body); font-weight: 500; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; color: var(--text); line-height: 1.5; display: block; }

/* ---------- Služby (servis) ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service {
  background: #fff;
  padding: 36px 30px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  border-top: 4px solid var(--blue);
  transition: transform .25s;
}
.service:hover { transform: translateY(-4px); text-decoration: none; }
.section--blue .service { color: var(--text); }
.section--blue .service h3 { color: var(--blue); }
.section--blue .service .link-more { color: var(--blue); }
.service__icon { width: 64px; height: 64px; margin-bottom: 20px; color: var(--blue); }
.service__icon .js-draw { transition: stroke-dashoffset 1.2s ease .15s; }
.service:hover .service__icon { animation: iconPop .45s ease; }
@keyframes iconPop { 50% { transform: translateY(-5px) scale(1.06); } }
.service__icon svg { width: 100%; height: 100%; }
.service h3 { font-size: 17px; }
.service p { font-size: 15px; flex: 1; }
.service .link-more { font-size: 15px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 70px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature--reverse .feature__media { order: 2; }
.feature__media { position: relative; }
.feature__media img { width: 100%; box-shadow: var(--shadow); }
.feature__media .badge {
  position: absolute; left: -16px; bottom: 30px;
  background: var(--blue); color: #fff;
  font-family: var(--heading); font-size: 14px;
  padding: 14px 20px;
  box-shadow: var(--shadow);
}
.feature h2 { font-size: clamp(22px, 2.4vw, 28px); }
.feature ul { list-style: none; padding: 0; margin: 0 0 24px; }
.feature li { position: relative; padding-left: 32px; margin-bottom: 9px; font-size: 15px; }
.feature li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px; background: var(--blue);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.feature__tag { display: inline-block; font-family: var(--body); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }

.check-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; break-inside: avoid; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; background: var(--blue); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.section--blue .check-list li::before { background: #fff; }

/* Tabuľka intervalov servisu */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.plain { min-width: 720px; }
table.plain { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; box-shadow: var(--shadow); }
table.plain th, table.plain td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { font-family: var(--body); font-weight: 500; color: #fff; background: var(--blue); }
table.plain tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; box-shadow: var(--shadow); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 56px 18px 24px; font-family: var(--body); font-weight: 500; font-size: 16px; color: var(--blue); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 24px 22px; font-size: 15px; }

/* CTA pás */
.cta-band { background: var(--blue) url("../img/panely-pas.jpg?v=16") center/cover no-repeat; position: relative; color: #fff; text-align: center; padding: 80px 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(0,116,201,.72); }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { max-width: 660px; margin: 0 auto 30px; font-size: 17px; }
.cta-band .btn { margin: 6px; }

/* Dotácia blok */
.notice {
  background: var(--light);
  border-left: 6px solid var(--blue);
  padding: 30px 36px;
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
}
.notice h3 { margin-bottom: 8px; }
.notice p { margin: 0; font-size: 15px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info h2 { margin-bottom: 30px; }
.contact-item { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.contact-item img { width: 56px; flex: 0 0 56px; }
.contact-item h4 { font-family: var(--contact); font-weight: 700; font-size: 19px; color: var(--blue); margin: 0 0 2px; }
.contact-item a, .contact-item span { font-family: var(--contact); font-size: 17px; color: var(--blue); }
.contact-item a { text-decoration: underline; }
.contact-photo { margin-top: 20px; box-shadow: var(--shadow); }
.form-card { background: #fff; box-shadow: var(--shadow); padding: 44px; }
.form-card h2 { font-size: clamp(24px, 2.6vw, 30px); }
.form-card > p { font-size: 15px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 400; font-size: 15px; color: var(--blue); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--body); font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 0;
  background: #fff; color: var(--text-dark);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.field textarea { min-height: 140px; resize: vertical; }
.field--check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.field--check input { width: 18px; height: 18px; margin-top: 4px; flex: 0 0 auto; }
.field--check label { color: var(--text); margin: 0; font-weight: 400; font-size: 13px; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-msg { display: none; padding: 14px 18px; margin-bottom: 18px; font-size: 15px; }
.form-msg.is-ok { display: block; background: #E6F6EA; color: #1C6B32; border-left: 4px solid #2E9E4F; }
.form-msg.is-err { display: block; background: #FDECEC; color: #8A1F1F; border-left: 4px solid #D64545; }
.form-msg a { font-weight: 500; }

/* ---------- Pätička ---------- */
.footer { background: var(--blue); color: #fff; padding: 90px 0 0; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer__logo img { width: 230px; margin-bottom: 20px; }
.footer h4 { color: #fff; font-family: var(--body); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; font-size: 15px; }
.footer__logo p { font-size: 15px; opacity: .9; }
.footer__contact li { display: flex; gap: 12px; align-items: center; }
.footer__contact img { width: 34px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.25); padding: 22px 0; font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Cookie lišta ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: #17212B; color: rgba(255, 255, 255, .85);
  box-shadow: 0 -6px 26px rgba(0, 0, 0, .3);
  display: none;
  font-size: 14px;
}
.cookie-bar.is-visible { display: block; }
.cookie-bar__inner { display: flex; align-items: center; gap: 26px; padding: 18px 0; flex-wrap: wrap; }
.cookie-bar__text { flex: 1 1 400px; }
.cookie-bar__text h4 { color: #fff; font-family: var(--body); font-weight: 600; font-size: 16px; margin: 0 0 4px; }
.cookie-bar__text p { margin: 0; line-height: 1.6; }
.cookie-bar a { color: #fff; text-decoration: underline; }
.cookie-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }
.cookie-bar .btn { padding: 12px 22px; font-size: 13px; }

/* Odmietnuť a Nastavenia – priehľadné, ale s plnou výplňou pri prejdení myšou */
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: #17212B; }

.cookie-settings { border-top: 1px solid rgba(255, 255, 255, .18); padding: 16px 0 22px; }
.cookie-opt { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; line-height: 1.55; cursor: pointer; }
.cookie-opt input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--blue); }
.cookie-opt input:disabled { opacity: .55; cursor: not-allowed; }
.cookie-opt strong { display: block; color: #fff; font-weight: 600; }
.cookie-opt span { color: rgba(255, 255, 255, .78); }
.cookie-settings__actions { margin-top: 14px; }

/* Odkaz v pätičke, ktorý vyzerá ako text, ale je to tlačidlo */
.linkbtn {
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline;
}
.linkbtn:hover { text-decoration: none; }

/* ---------- Právne stránky ---------- */
.legal { max-width: 820px; margin: 0 auto; font-size: 15px; }
.legal h2 { font-size: 19px; margin-top: 40px; }
.legal h3 { font-size: 18px; font-family: var(--body); font-weight: 500; margin-top: 26px; }
.legal .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.plain { min-width: 720px; }
.legal table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--light); color: var(--blue); font-weight: 500; }

/* ============================================================
   Animácie a efekty
   Všetko beží na transform/opacity, takže to neblokuje vykresľovanie.
   Kto má v systéme vypnuté animácie, uvidí web statický (blok na konci).
   ============================================================ */

/* Nabiehanie prvkov pri scrollovaní */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .6, .2, 1), transform .7s cubic-bezier(.2, .6, .2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--left  { transform: translateX(-34px); }
.reveal--right { transform: translateX(34px); }
.reveal--zoom  { transform: scale(.95); }

/* Nábeh obsahu po načítaní stránky */
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero h1, .hero p, .hero__actions,
.page-bar h1, .page-bar p { animation: riseIn .9s cubic-bezier(.2, .6, .2, 1) both; }
.hero p, .page-bar p { animation-delay: .15s; }
.hero__actions { animation-delay: .3s; }

/* Pomalé priblíženie fotky v hlavičke stránky */
@keyframes slowZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: #0B2B45 url("../img/hero.jpg?v=16") center/cover no-repeat;
  animation: slowZoom 18s ease-out both;
}

/* Ikony služieb sa „nakreslia“ */
.service__icon .js-draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.service.is-visible .service__icon .js-draw { stroke-dashoffset: 0; }

/* Plynulé otváranie otázok */
.faq details > div { overflow: hidden; }

/* Tlačidlo návratu hore */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--blue); color: #fff;
  border: 0; border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 60, 110, .35);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-dark); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }
body.has-cookie-bar .to-top { bottom: var(--cookie-h, 110px); }

/* Vypnuté animácie na želanie používateľa alebo systému */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero h1, .hero p, .hero__actions, .page-bar h1, .page-bar p, .hero__bg, .lightbox img { animation: none !important; }
  .service__icon svg [stroke] { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .step::before { transform: scaleY(1) !important; }
  .card-img__media, .card-img, .btn, .stat, .gallery img { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 120px 0; }
.error-page h1 { font-size: 90px; }
.page-bar h1 { font-size: clamp(30px, 4vw, 44px); }

/* ============================================================
   Responzívne
   ============================================================ */
@media (max-width: 1100px) {
  .services { grid-template-columns: 1fr 1fr; }
  .nav__link { padding: 10px 11px; font-size: 15px; }
  .header__logo img { width: 200px; }
  .nav__cta { padding: 14px 22px; font-size: 13px; }
}
@media (max-width: 960px) {
  /* Lišta má na užších displejoch text aj tri tlačidlá v jednom rade – rozdelíme to */
  .cookie-bar .container { padding-left: 24px; padding-right: 24px; }
  .cookie-bar__inner { flex-direction: column; align-items: stretch; gap: 18px; padding: 22px 0 26px; }
  .cookie-bar__text { flex: 1 1 auto; }
  .cookie-bar__text p { line-height: 1.65; }
  .cookie-bar__actions { width: 100%; gap: 10px; }
  .cookie-bar__actions .btn { flex: 1 1 auto; }
  .cookie-settings { padding: 18px 0 24px; }
  .cookie-opt { padding: 11px 0; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .split h2 { font-size: 28px; }
  .split, .feature, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child, .feature--reverse .feature__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 70px 0; }
  .notice { grid-template-columns: 1fr; }
  .check-list { columns: 1; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }
  .hero { min-height: 0; padding: 130px 0 170px; }
  .cards-overlap { margin-top: -110px; }
  .card-img { min-height: 280px; padding: 26px; }
  .icon-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .icon-box { padding: 20px 12px; font-size: 14px; }
  .icon-box img { width: 56px; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer { padding-top: 60px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .btn { padding: 15px 26px; font-size: 13px; }
  .page-bar { padding: 130px 0 60px; }
  .page-fotovoltika .page-bar { padding-bottom: 150px; }
  .quick-cta { margin-top: 30px; }
  .quick-cta p { font-size: 15px; }
  .quick-cta__actions .btn { width: 100%; }
  .header { padding: 18px 0; }
  .header__logo img { width: 170px; }
  .feature { padding: 50px 0; }
  .feature__media .badge { left: 0; bottom: 0; font-size: 12px; padding: 10px 14px; }
  .table-wrap { margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .steps, .services { grid-template-columns: 1fr; gap: 28px; }
  .step { padding-left: 62px; }
  .step__num { font-size: 36px; }
  .step::before { left: 48px; height: 70px; }
  .section__head { margin-bottom: 34px; }
  .gallery { grid-template-columns: 1fr; gap: 10px; }
  .gallery:not(.is-expanded) > a:nth-child(n+5) { display: none; }
  .gallery-more { display: block; width: 100%; margin-top: 14px; }
  .stat { padding: 22px 16px; }
  .mobile-menu__list a { font-size: 22px; padding: 12px; }
  .cookie-bar { font-size: 13px; }
  .cookie-bar__inner { gap: 16px; padding: 22px 0 26px; }
  .cookie-bar__actions { width: 100%; }
  .cookie-bar__actions { gap: 8px; }
  .cookie-bar__actions .btn { flex: 1 1 100%; }
  .cookie-bar__actions .btn--ghost { flex: 1 1 calc(50% - 4px); }
  /* kým je lištu vidieť, tlačidlo hore by plávalo uprostred obrazovky */
  body.has-cookie-bar .to-top { display: none; }
  .cookie-bar { max-height: 82vh; overflow-y: auto; }
}
