/* =========================================================
   STAVBY M.B. — brand.css
   Aditívna vrstva nad šablónou Amarou:
   • brandové premenné, tmavá téma
   • OSX tiene, zaoblené a animované obrázky/tlačidlá
   • prepínač témy/jazyka, biely header, CTA pruh, formuláre
   • vlastné sekcie (karty služieb, štatistiky, proces, hodnoty)
   • responzívne opravy (MacBook Air / tablet / mobil)
   ========================================================= */

:root {
  --brand-orange: #F06000;
  --brand-orange-dark: #cc5000;
  --brand-navy: #003048;
  --brand-navy-2: #00263a;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-osx: 0 18px 40px -12px rgba(0, 48, 72, 0.35), 0 6px 14px -6px rgba(0, 0, 0, 0.18);
  --shadow-osx-hover: 0 30px 60px -16px rgba(0, 48, 72, 0.45), 0 10px 22px -8px rgba(0, 0, 0, 0.22);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --surface: #ffffff;
  --text: #2a2f34;
  --text-soft: #5c6b76;
  --heading: #003048;
  --border: #e6ebef;
}

/* ---------- TMAVÁ TÉMA ---------- */
[data-theme="dark"] {
  --bg: #0c1620;
  --bg-alt: #0f1c28;
  --surface: #12222f;
  --text: #d7e0e7;
  --text-soft: #9fb1bd;
  --heading: #ffffff;
  --border: #1e3242;
}
[data-theme="dark"] body { background: var(--bg); color: var(--text); }
[data-theme="dark"] .bg-gray,
[data-theme="dark"] .bg-light,
[data-theme="dark"] section.bg-white { background-color: var(--bg-alt) !important; }
[data-theme="dark"] .heading__title,
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 { color: var(--heading); }
[data-theme="dark"] p,
[data-theme="dark"] .heading__desc,
[data-theme="dark"] li { color: var(--text-soft); }
[data-theme="dark"] .service-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .contact-form-wrap,
[data-theme="dark"] .card,
[data-theme="dark"] .blog-card { background: var(--surface); border-color: var(--border); }
/* .navbar má vlastné biele pozadie zo šablóny — musí stmavnúť tiež, inak prekryje .header */
[data-theme="dark"] .header-white,
[data-theme="dark"] .header.is-scrolled,
[data-theme="dark"] .header-white .navbar,
[data-theme="dark"] .header.is-scrolled .navbar { background: #0c1620 !important; }
[data-theme="dark"] .header-white .nav__item-link,
[data-theme="dark"] .header.is-scrolled .nav__item-link { color: var(--text); }
[data-theme="dark"] .header-white .nav__item-link.active,
[data-theme="dark"] .header.is-scrolled .nav__item-link.active,
[data-theme="dark"] .header-white .nav__item-link:hover,
[data-theme="dark"] .header.is-scrolled .nav__item-link:hover { color: var(--brand-orange); }
[data-theme="dark"] .form-control,
[data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select {
  background: #0c1a24; color: var(--text); border-color: var(--border);
}
[data-theme="dark"] .dropdown-menu { background: #12222f; }
[data-theme="dark"] .dropdown-menu .nav__item-link { color: var(--text-soft); }

/* ---------- Zaoblené + OSX tiene na obrázkoch ---------- */
.about__img img,
.portfolio-item__img img,
.service-card__img img,
.project-card__img img,
.member__img img,
.banner img,
.gallery-item img,
.blog-card__img img,
.rounded-shadow img,
img.shadow-osx {
  border-radius: var(--radius);
  box-shadow: var(--shadow-osx);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
  will-change: transform;
}
.about__img img:hover,
.portfolio-item:hover .portfolio-item__img img,
.service-card:hover .service-card__img img,
.project-card:hover .project-card__img img,
.gallery-item:hover img,
.rounded-shadow img:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-osx-hover);
}
.about__img, .service-card__img, .project-card__img, .gallery-item, .portfolio-item__img { border-radius: var(--radius); }

/* ---------- Zaoblené animované tlačidlá ---------- */
/* Tlačidlá: hranaté, bez zaoblených rohov (šablónové .btn__rounded/.btn__pill prebíjame) */
.btn {
  border-radius: 0 !important;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background-color 0.28s var(--ease), color 0.28s var(--ease);
}
.btn__rounded, .btn__pill { border-radius: 0 !important; }
/* Hover overlay (:before) musí kopírovať tvar tlačidla, inak cezeň preblikne iný obrys */
.btn:not(.btn__link):before { border-radius: inherit; }
/* Vnútorná šípka je ikona v krúžku — tú necháme okrúhlu */
.btn .icon-arrow-right { border-radius: 50% !important; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -10px rgba(240, 96, 0, 0.55); }
.btn__primary { background-color: var(--brand-orange); border-color: var(--brand-orange); }
.btn__primary:hover { background-color: var(--brand-orange-dark); border-color: var(--brand-orange-dark); }
.btn__outlined-white { background: transparent; border: 2px solid rgba(255,255,255,0.8); color: #fff; }
.btn__outlined-white:hover { background: #fff; color: var(--brand-navy); }

/* ---------- Prepínač témy + jazyka v hlavičke ---------- */
.header-actions { gap: 14px; }

/* CTA v hlavičke: plná oranžová (šablónové .btn__white by bolo biele na bielom),
   roztiahnuté cez celú výšku menu. */
.header .navbar > .container { align-items: stretch; }
.header .header-actions { align-self: stretch; }
.header .action-btn__request.btn__white {
  background-color: var(--brand-orange);
  color: #fff;
  align-self: stretch;
  height: auto; line-height: 1; min-width: 0; padding: 0 28px;
  display: inline-flex; align-items: center; justify-content: center;
}
.header .action-btn__request.btn__white:hover { color: #fff; }
.header .action-btn__request.btn__white:not(.btn__link):before { background-color: var(--brand-navy); }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.6);
  background: rgba(0,48,72,0.45); color: #fff; font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}
.theme-toggle:hover, .theme-toggle:focus-visible {
  transform: rotate(-12deg) scale(1.06);
  background: var(--brand-orange); border-color: var(--brand-orange); color: #fff;
}
.theme-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Pozn.: triedy nesmú začínať "icon-" — libraries.css tomu namespace vnucuje font icomoon. */
.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: inline; }
.header-white .theme-toggle, .header.is-scrolled .theme-toggle {
  background: rgba(0,48,72,0.06); border-color: rgba(0,48,72,0.35); color: var(--brand-navy);
}
.header-white .theme-toggle:hover, .header.is-scrolled .theme-toggle:hover {
  background: var(--brand-orange); border-color: var(--brand-orange); color: #fff;
}
[data-theme="dark"] .header-white .theme-toggle, [data-theme="dark"] .header.is-scrolled .theme-toggle {
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); color: #fff;
}
[data-theme="dark"] .header-white .theme-toggle:hover, [data-theme="dark"] .header.is-scrolled .theme-toggle:hover {
  background: var(--brand-orange); border-color: var(--brand-orange); color: #fff;
}

/* Menu — väčšie horizontálne rozostupy (desktop) */
@media (min-width: 992px) {
  .navbar-nav .nav__item { margin: 0 4px; }
  .navbar-nav .nav__item-link { padding-left: 16px; padding-right: 16px; letter-spacing: 0.3px; }
}

.lang-switch { display: inline-flex; align-items: center; font-weight: 600; font-size: 14px; }
.lang-switch .lang-opt { color: rgba(255,255,255,0.7); padding: 2px 5px; text-decoration: none; transition: color 0.2s; }
.lang-switch .lang-opt.is-active { color: var(--brand-orange); }
.lang-switch .lang-opt:hover { color: #fff; }
.lang-switch .lang-sep { color: rgba(255,255,255,0.4); }
.header-white .lang-opt, .header.is-scrolled .lang-opt { color: var(--text-soft); }
.header-white .lang-opt.is-active, .header.is-scrolled .lang-opt.is-active { color: var(--brand-orange); }

/* ---------- Biely / sticky header ---------- */
.header-white { position: absolute; width: 100%; background: #fff; box-shadow: 0 2px 20px rgba(0,48,72,0.06); }
.header-white .nav__item-link { color: var(--brand-navy); }
.header.is-scrolled { background: #fff; box-shadow: 0 6px 24px rgba(0,48,72,0.1); }

/* Logo v hlavičke — priamo, bez podkladu, väčšie, s jemným tieňom pre čitateľnosť */
.navbar-brand { margin-top: 10px; }
.navbar-brand .brand-logo {
  height: 62px; width: auto; display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.22));
  transition: transform 0.3s var(--ease);
}
.navbar-brand:hover .brand-logo { transform: translateY(-2px); }
@media (max-width: 991px) { .navbar-brand { margin-top: 6px; } .navbar-brand .brand-logo { height: 52px; } }
@media (max-width: 767px) { .navbar-brand .brand-logo { height: 46px; } }

/* Logo v päte — na tmavom pozadí ostáva na jemnom bielom paneli (aby bolo čitateľné) */
.footer-logo.brand-chip {
  display: inline-flex; align-items: center; background: #fff;
  padding: 22px 30px; border-radius: 0; margin-bottom: 22px;
}
.footer-logo.brand-chip .brand-logo { height: 96px; width: auto; display: block; }

/* Šablóna definuje mb-10/20/30…, ale mb-15 a mt-15 v nej chýbajú —
   bez nich sa napr. tlačidlá v bočnom paneli dotýkajú. */
.mb-15 { margin-bottom: 15px !important; }
.mt-15 { margin-top: 15px !important; }

/* ---------- Honeypot (skryté anti-bot pole) ---------- */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- Výsledok formulára ---------- */
.form-result { margin-top: 12px; font-size: 14px; min-height: 1em; border-radius: var(--radius-sm); padding: 0; transition: all 0.2s; }
.form-result.is-info { color: var(--text-soft); }
.form-result.is-success { color: #147a3d; background: #e5f6ec; padding: 10px 14px; }
.form-result.is-error { color: #b3261e; background: #fdeceb; padding: 10px 14px; }
[data-theme="dark"] .form-result.is-success { background: rgba(20,122,61,0.15); }
[data-theme="dark"] .form-result.is-error { background: rgba(179,38,30,0.18); }
.btn.is-loading { opacity: 0.75; pointer-events: none; }

/* ---------- CTA pruh nad pätou ---------- */
.cta-strip { background: linear-gradient(120deg, var(--brand-navy), #0a4a68); padding: 46px 0; }
.cta-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-strip__text h3 { color: #fff; margin: 0 0 6px; font-size: 26px; }
.cta-strip__text p { color: rgba(255,255,255,0.8); margin: 0; }
.cta-strip__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero: svetlejší a čistejší prekryv (tmavší vľavo za textom) ---------- */
.slider .slide-item.bg-overlay:before {
  background: linear-gradient(90deg, rgba(0,22,36,0.58) 0%, rgba(0,22,36,0.30) 42%, rgba(0,22,36,0.06) 100%) !important;
}

/* ---------- Reveal animácie ---------- */
.reveal-init { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-init.is-revealed { opacity: 1; transform: none; }

/* ---------- Karty služieb ---------- */
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 100%; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-osx); }
.service-card__img { position: relative; overflow: hidden; aspect-ratio: 3/2; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
/* Ikona leží v toku karty hneď za obrázkom a záporným margin-top ho prekrýva.
   (Vnútri .service-card__img ju orezával jeho overflow: hidden.) */
.service-card__icon { position: relative; z-index: 2; margin: -28px 22px -28px auto; width: 56px; height: 56px; border-radius: 14px; background: var(--brand-orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 10px 22px -8px rgba(240,96,0,0.7); }
.service-card__body { padding: 34px 26px 28px; }
.service-card__title { font-size: 20px; margin-bottom: 10px; }
.service-card__title a { color: var(--heading); }
.service-card__title a:hover { color: var(--brand-orange); }
.service-card__desc { color: var(--text-soft); margin-bottom: 16px; }
.service-card__link { color: var(--brand-orange); font-weight: 600; }

/* ---------- Štatistiky ---------- */
.stat-card { text-align: center; padding: 30px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat-card__icon { font-size: 40px; color: var(--brand-orange); margin-bottom: 10px; display: block; }
.stat-card__value { font-size: 42px; font-weight: 700; color: var(--heading); line-height: 1; }
.stat-card__label { color: var(--text-soft); margin-top: 8px; }
.stats-band { background: linear-gradient(120deg, var(--brand-navy), #0a4a68); }
.stats-band .stat-card { background: transparent; border: none; }
.stats-band .stat-card__value, .stats-band .stat-card__label { color: #fff; }
.stats-band .stat-card__label { color: rgba(255,255,255,0.8); }

/* ---------- Proces ---------- */
.process-step { text-align: center; padding: 20px; position: relative; }
.process-step__num { width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 50%; background: var(--surface); border: 2px dashed var(--brand-orange); color: var(--brand-orange); display: flex; align-items: center; justify-content: center; font-size: 32px; transition: all 0.4s var(--ease); }
.process-step:hover .process-step__num { background: var(--brand-orange); color: #fff; transform: translateY(-6px); }
.process-step__title { font-size: 19px; color: var(--heading); }

/* ---------- Hodnoty ---------- */
.value-card { padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); height: 100%; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-osx); }
.value-card__icon { width: 62px; height: 62px; border-radius: 16px; background: rgba(240,96,0,0.1); color: var(--brand-orange); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 18px; }

/* ---------- Fotogaléria ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; box-shadow: var(--shadow-osx); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: none; }
.gallery-item__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,48,72,0.72), transparent 55%); opacity: 0; transition: opacity 0.4s var(--ease); display: flex; align-items: flex-end; padding: 18px; color: #fff; font-weight: 600; }
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

/* ---------- Projekty (grid kariet) ---------- */
.project-card { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); height: 100%; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-osx); }
.project-card__img { aspect-ratio: 3/2; overflow: hidden; }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.project-card__body { padding: 22px 24px 26px; }
.project-card__cat { color: var(--brand-orange); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.project-card__title { font-size: 20px; margin: 6px 0 8px; }
.project-card__title a { color: var(--heading); }
.project-card__meta { color: var(--text-soft); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 14px; overflow: hidden; }
.faq-item__q { padding: 18px 22px; font-weight: 600; color: var(--heading); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item__q .faq-icon { color: var(--brand-orange); transition: transform 0.3s; }
.faq-item.is-open .faq-item__q .faq-icon { transform: rotate(45deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-item__a-inner { padding: 0 22px 20px; color: var(--text-soft); }
.faq-item.is-open .faq-item__a { max-height: 400px; }

/* ---------- Pricing ---------- */
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 28px; height: 100%; text-align: center; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.pricing-card.is-highlight { border-color: var(--brand-orange); box-shadow: var(--shadow-osx); position: relative; }
.pricing-card.is-highlight::before { content: attr(data-badge); position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand-orange); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 16px; border-radius: 999px; }
.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-osx-hover); }
.pricing-card__price { font-size: 30px; font-weight: 700; color: var(--brand-orange); margin: 10px 0 18px; }
.pricing-card ul { list-style: none; padding: 0; text-align: left; }
.pricing-card ul li { padding: 8px 0; border-bottom: 1px dashed var(--border); color: var(--text-soft); }
.pricing-card ul li i { color: var(--brand-orange); margin-right: 8px; }

/* ---------- Kontakt / mapa ---------- */
.contact-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-osx); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-osx); line-height: 0; }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: center; height: 100%; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-osx); }
.info-card__icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(240,96,0,0.1); color: var(--brand-orange); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 14px; }

/* ---------- Blog ---------- */
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 100%; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-osx); }
.blog-card__img { aspect-ratio: 16/10; overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.blog-card__body { padding: 22px 24px 26px; }
.blog-card__date { color: var(--brand-orange); font-size: 13px; font-weight: 600; }
.blog-card__title { font-size: 20px; margin: 8px 0; }
.blog-card__title a { color: var(--heading); }

/* ---------- Sekcie / pomocné ---------- */
.section-pad { padding: 90px 0; }
.bg-soft { background: var(--bg-alt); }
.text-brand { color: var(--brand-orange) !important; }
.footer-subscribe { margin-top: 18px; }
.footer-subscribe__row { display: flex; gap: 8px; }
.footer-subscribe__row input { flex: 1; min-width: 0; border-radius: 0; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08); color: #fff; padding: 12px 18px; }
.footer-subscribe__row input::placeholder { color: rgba(255,255,255,0.5); }
/* Štvorcové tlačidlo so šípkou presne v strede (šablóna dáva .btn min-width:170px a ikone margin) */
.footer-subscribe__row .btn {
  flex: 0 0 auto;
  min-width: 0;
  width: 52px; height: 52px;
  padding: 0; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.footer-subscribe__row .btn .icon-arrow-right { margin: 0 !important; }

/* Kredit v pätičke — verzia ako chip */
.footer-credit .footer-version {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.6;
  white-space: nowrap;
  color: var(--brand-orange);
  background: rgba(240, 96, 0, 0.12);
  border: 1px solid rgba(240, 96, 0, 0.35);
}
.contact-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.contact-list li i { color: var(--brand-orange); width: 18px; }
.page-title__heading { color: #fff; }

/* =========================================================
   RESPONZÍVNY DIZAJN
   ========================================================= */

/* Širší container — nech web využije viac šírky obrazovky (nie len ~80 %) */
@media (min-width: 1200px) { .container { max-width: 1320px; } }
@media (min-width: 1600px) { .container { max-width: 1520px; } }

/* MacBook Air 13" (1440×900) a menšie desktopy */
@media (max-width: 1440px) {
  .container { max-width: 1280px; }
  .slide-item__title { font-size: 44px; }
  .section-pad { padding: 76px 0; }
}
@media (max-width: 1200px) {
  .slide-item__title { font-size: 38px; }
  .heading__title { font-size: 30px; }
}

/* Tablet */
@media (max-width: 991px) {
  .header .container { position: relative; }
  .navbar-collapse { position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 10px 20px 20px; box-shadow: 0 20px 40px rgba(0,48,72,0.12); border-radius: 0 0 var(--radius) var(--radius); max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
  .navbar-collapse.menu-opened { max-height: 80vh; overflow-y: auto; }
  [data-theme="dark"] .navbar-collapse { background: #0c1620; }
  .navbar-nav .nav__item-link { color: var(--brand-navy); padding: 12px 4px; display: block; border-bottom: 1px solid var(--border); }
  [data-theme="dark"] .navbar-nav .nav__item-link { color: var(--text); }
  .navbar-nav .dropdown-menu { position: static; display: none; box-shadow: none; padding-left: 14px; }
  /* Bootstrap dropdown pridáva triedu .show, šablóna používa .opened — podporíme obe */
  .nav__item.with-dropdown.opened > .dropdown-menu,
  .nav__item.with-dropdown.show > .dropdown-menu,
  .navbar-nav .dropdown-menu.show { display: block; }
  /* Väčší cieľ pre prst na šípke podmenu */
  .navbar i[data-toggle="dropdown"] { top: 10px; width: 32px; height: 32px; line-height: 32px; }
  .header-transparent .navbar-nav .nav__item-link { color: var(--brand-navy); }
  /* Tlačidlá: obsah (text + šípka) horizontálne aj vertikálne v strede.
     Šablóna dáva ikone margin-right: 8px, čo text opticky posúva doľava. */
  .btn:not(.btn__link) { display: inline-flex; align-items: center; justify-content: center; height: auto; line-height: 1.3; }
  .btn .icon-arrow-right { margin-right: 0; flex: 0 0 auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-strip__inner { flex-direction: column; text-align: center; }
  .slide-item__title { font-size: 34px; }
  .section-pad { padding: 60px 0; }
  .stat-card__value { font-size: 34px; }
  .map-embed iframe { height: 340px; }
}

/* Mobil */
@media (max-width: 767px) {
  .slide-item__title { font-size: 27px; line-height: 1.2; }
  .slide-item__desc { font-size: 14px; }
  .heading__title { font-size: 25px; }
  .cta-strip__text h3 { font-size: 21px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 22px; }
  .header-actions .action-btn__request { display: none !important; }
  .header-actions { gap: 10px; }
  .theme-toggle { width: 36px; height: 36px; }
  .section-pad { padding: 46px 0; }
  .btn { padding: 12px 22px; }
  .footer-widget { margin-bottom: 30px; }
  .page-title { padding: 120px 0 50px; }
  .page-title__heading { font-size: 30px; }
  .stat-card__value { font-size: 30px; }
  .video-btn { margin-bottom: 14px; }
  .d-flex.align-items-center.mt-20 { flex-direction: column; align-items: flex-start !important; }
}

/* Veľmi malé mobily */
@media (max-width: 400px) {
  .slide-item__title { font-size: 23px; }
  .lang-switch { font-size: 13px; }
  .navbar-brand img { height: 42px !important; }
}

/* Prirodzený text nadpisov (šablóna používala capitalize — v SK pôsobí zle) */
.slide-item__title,
.heading__title,
.heading__subtitle,
.page-title__heading,
.service-card__title,
.project-card__title,
.blog-card__title,
.footer-widget-title { text-transform: none !important; }

/* Poistka proti horizontálnemu presahu na mobile */
html, body { overflow-x: hidden; max-width: 100%; }
.wrapper { overflow-x: hidden; }
img, iframe, video { max-width: 100%; }
.slide-item__content { max-width: 100%; }
@media (max-width: 767px) {
  .container, .container-fluid { padding-left: 18px; padding-right: 18px; }
  .slide-item__title { word-break: break-word; }
}

/* ---------- Hero slider: stabilný text pri prepínaní ----------
   1) Nadpis má vyhradené 3 riadky, takže popis a tlačidlá neposkakujú
      medzi slidmi s rôzne dlhým nadpisom (line-height je 1.2).
   2) Pri fade prechode sú nakrátko viditeľné dva slidy naraz — obsah
      preto ukazujeme len na aktívnom, inak sa texty prekrývajú. */
.slider .slide-item__title { min-height: 3.6em; }

/* Odchádzajúci text zmizne rýchlo a bez oneskorenia, prichádzajúci nabehne až potom,
   takže sa počas prelínania nikdy neprekryjú dva texty naraz. */
.slider .slide-item__content { opacity: 0; transition: opacity 0.22s ease 0s; }
.slider .slick-active .slide-item__content { opacity: 1; transition: opacity 0.45s ease 0.32s; }
.slick-slider:not(.slick-initialized) .slide-item__content { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .slider .slide-item__content { transition: none; }
}

/* ---------- Hranaté obrázky ----------
   Musí byť až tu: .service-card/.project-card/.gallery-item si zaoblenie
   nastavujú vyššie v súbore a orezávajú obrázok cez overflow:hidden. */
.about__img, .about__img img,
.service-card, .service-card__img, .service-card__img img,
.project-card, .project-card__img, .project-card__img img,
.blog-card, .blog-card__img, .blog-card__img img,
.gallery-item, .gallery-item img,
.portfolio-item__img, .portfolio-item__img img,
.rounded-shadow, .rounded-shadow img,
.team-card, .team-card__img, .team-card__img img,
.member__img, .member__img img,
.member .member__img, .member .member__img img {
  border-radius: 0;
}

/* Rešpektuj používateľov, ktorí nechcú animácie */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal-init { opacity: 1 !important; transform: none !important; }
}

/* Náhľad skenu certifikátu v karte */
.cert-scan { display: block; margin: 0 0 16px; background: #fff; border: 1px solid var(--border); overflow: hidden; }
.cert-scan img { width: 100%; height: 210px; object-fit: contain; object-position: top center; display: block; border-radius: 0; transition: transform 0.4s var(--ease); }
.cert-scan:hover img { transform: scale(1.03); }

/* Banner stránky: fotka musí vždy vyplniť pruh, nie sa dláždiť.
   Šablónové bannery boli široké 1920px, reálne fotky zo stavieb sú menšie. */
.page-title {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Názvy certifikátov sú vety, nie nadpisy — šablónový capitalize ich komolí. */
.info-card h4 { text-transform: none; font-size: 17px; line-height: 1.35; }

/* Banner stránky: silnejšie stmavenie, aby nadpis držal aj na svetlej fotke.
   .page-title musí byť vlastný stacking context, inak prekryv so z-index:-1
   spadne POD jej vlastné pozadie a vôbec sa neprejaví. */
.page-title { position: relative; z-index: 0; }
.page-title.bg-overlay:before {
  background: linear-gradient(180deg, rgba(0,48,72,0.72), rgba(0,48,72,0.50));
  opacity: 1;
}

/* Tlačidlo v pätičke dedí oranžovú farbu odkazov -> oranžový text na oranžovom pozadí. */
.footer-widget .btn__primary,
.footer-widget .btn__primary span { color: #fff; }
.footer-widget .btn__primary:hover,
.footer-widget .btn__primary:hover span { color: #fff; }

/* .info-card má height:100% kvôli zarovnaniu v mriežke. Ako samostatná karta
   (napr. "Nenašli ste odpoveď?" na FAQ) sa tým roztiahne na výšku stĺpca
   a pretečie do pätičky — tam musí mať prirodzenú výšku. */
.info-card.mt-40 { height: auto; }

/* ---------- 10 dôvodov (features) ---------- */
.features-grid .feature-card {
  display: flex; gap: 16px; align-items: flex-start;
  height: 100%; padding: 26px 24px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.features-grid .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-osx);
  border-color: rgba(240, 96, 0, 0.35);
}
.features-grid .feature-card__icon {
  flex: 0 0 auto; width: 54px; height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--brand-orange);
  background: rgba(240, 96, 0, 0.1);
}
.features-grid .feature-card__title {
  font-size: 17px; line-height: 1.35; margin: 0 0 8px; text-transform: none;
}
@media (max-width: 575px) {
  .features-grid .feature-card { padding: 20px 18px; gap: 14px; }
}

/* =========================================================
   Webové funkcie: skip-link, vyhľadávanie, filter, zdieľanie,
   mapa stránky, 404 a mobilná lišta
   ========================================================= */

/* Preskočiť na obsah — viditeľné len pri navigácii klávesnicou */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 3000;
  background: var(--brand-orange); color: #fff; padding: 12px 18px;
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 8px; color: #fff; }
main:focus { outline: none; }

/* Text len pre čítačky obrazovky */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Viditeľný fokus naprieč webom (prístupnosť) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 2px;
}

/* ---------- Vyhľadávanie ---------- */
.site-search__row { display: flex; gap: 10px; flex-wrap: wrap; }
.site-search__row input {
  flex: 1 1 260px; min-width: 0; padding: 14px 18px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 0; font-size: 16px;
}
.site-search__row .btn { min-width: 130px; height: 54px; line-height: 54px; }
.site-search--404 { max-width: 520px; margin-left: auto; margin-right: auto; }

.search-results { margin: 0; }
.search-result { border-bottom: 1px solid var(--border); }
.search-result:first-child { border-top: 1px solid var(--border); }
.search-result > a { display: block; padding: 20px 4px; text-decoration: none; }
.search-result > a:hover { background: var(--bg-alt); }
.search-result__kind {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--brand-orange);
  background: rgba(240, 96, 0, 0.1); padding: 3px 8px; margin-bottom: 8px;
}
/* Celá položka je odkaz — text vnútri musí ostať čitateľný, nie oranžový. */
.search-result > a .search-result__title { font-size: 18px; margin: 0 0 6px; text-transform: none; color: var(--heading); }
.search-result > a .search-result__text { font-size: 14px; color: var(--text-soft); }
.search-result > a:hover .search-result__title { color: var(--brand-orange); }

/* ---------- Filter realizácií ---------- */
.project-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.project-filter__btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.project-filter__btn:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
.project-filter__btn.is-active {
  background: var(--brand-orange); border-color: var(--brand-orange); color: #fff;
}
.project-filter__empty { padding: 30px 0; }

/* ---------- Zdieľanie ---------- */
.share-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border); }
.share-box__label { font-weight: 600; color: var(--heading); }
.share-box__buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; font-size: 14px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
  text-decoration: none; transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.share-btn:hover, .share-btn.is-copied {
  background: var(--brand-orange); border-color: var(--brand-orange); color: #fff;
}

/* ---------- Mapa stránky a 404 ---------- */
.sitemap-list li { margin-bottom: 8px; }
.sitemap-list a { color: var(--text-soft); }
.sitemap-list a:hover { color: var(--brand-orange); }
.notfound-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.notfound-links a { color: var(--text-soft); }
.notfound-links a:hover { color: var(--brand-orange); }

/* ---------- Mobilná lišta s akciami ---------- */
.mobile-cta { display: none; }
@media (max-width: 767px) {
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    background: var(--surface); border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(0, 48, 72, 0.12);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-cta__item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 10px 6px; font-size: 12px; font-weight: 600;
    color: var(--text-soft); text-decoration: none;
  }
  .mobile-cta__item i { font-size: 17px; }
  .mobile-cta__item--primary { background: var(--brand-orange); color: #fff; }
  .mobile-cta__item--primary .icon-arrow-right { background: transparent; }
  /* aby lišta neprekrývala pätičku a tlačidlo "hore" */
  body { padding-bottom: 64px; }
  #scrollTopBtn { bottom: 78px; }
}

/* Prilepená hlavička (len na >=992px, výška 80px) prekrýva cieľ skoku na kotvu.
   Preto cieľom pridáme odsadenie, aby sa neschovali pod menu. */
@media (min-width: 992px) {
  :root { --sticky-header-h: 80px; }
  [id],
  .project-filter,
  .search-results,
  .share-box { scroll-margin-top: calc(var(--sticky-header-h) + 16px); }
  /* skip-link skáče na #main — ten chceme úplne hore, bez medzery */
  main#main { scroll-margin-top: 0; }
}

/* ---------- Stabilita rozloženia (CLS) ----------
   Obrázkom rezervujeme miesto ešte pred načítaním, inak obsah pod nimi poskočí.
   Pexels fotky sú 1880×1253 (3:2), portréty tímu 800×994. */
.about__img img,
.blog-card__img img { aspect-ratio: 3 / 2; width: 100%; height: auto; }
.member__img img { aspect-ratio: 800 / 994; width: 100%; height: auto; object-fit: cover; }
.cert-scan img { aspect-ratio: 3 / 4; height: auto; }
/* Hero má pevnú výšku zo šablóny, mriežka galérie má aspect-ratio 4/3 — tie sú v poriadku. */

/* ---------- Hero: zabrániť skoku pred inicializáciou slidera ----------
   Kým sa slick nespustí, sú v DOM všetky slidy pod sebou a stránka je 5×
   vyššia; po inicializácii všetko vyskočí hore (CLS ~0,36). Do inicializácie
   preto ukážeme len prvý slide. */
.slider .slick-carousel:not(.slick-initialized) > .slide-item:not(:first-child) { display: none; }
/* Obrázok v .bg-img slúži len ako zdroj cesty pre main.js, nezobrazuje sa. */
.slider .slide-item > .bg-img > img { display: none; }

/* Rovnaký problém ako hero: kým sa slick nespustí, sú všetky položky karuselu
   pod sebou a po inicializácii obsah vyskočí (CLS). Do inicializácie ukážeme
   len prvú položku. */
.slick-carousel:not(.slick-initialized) > *:not(:first-child) { display: none; }

/* counterUp prepíše "16+" na "0+" a späť — meniaca sa šírka čísla mení výšku
   karty a celý pruh poskakuje (CLS). Rezervujeme miesto pre finálnu hodnotu. */
.stat-card { min-height: 158px; display: flex; flex-direction: column; justify-content: center; }
.stat-card__value { display: block; font-variant-numeric: tabular-nums; min-height: 1.2em; }
.stat-card__label { display: block; min-height: 2.6em; }
