/* Firma Dla Każdego - Custom Styles */

/* [8] Smooth scroll + navbar offset */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }

/* ===== FONTS ===== */
@font-face {
  font-family: 'Montserrat';
  src: url('../font/Montserrat-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../font/Montserrat-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../font/Montserrat-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../font/Montserrat-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== BASE ===== */
/* overflow-x on body breaks position:sticky — use clip instead */
html { overflow-x: clip; max-width: 100vw; }
body { max-width: 100vw; }
body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: #5A5A5A;
}

a, button { transition: all .15s ease-in-out; outline: none; }
strong { font-weight: 600; }

h1, h2, h3, h4, h5, h6 {
  color: #000000;
  font-weight: 500;
  line-height: 1.3;
}

a { color: #000000; text-decoration: none; }
a:hover { color: #00BBFF; }

/* WCAG AA contrast fix — Bootstrap text-muted #6c757d is too low on #f7f7f7 */
.text-muted { color: #595959 !important; }

.text-smaller { font-size: 85% !important; }
.text-bigger { font-size: 115% !important; }

.text-justify {
  text-align: justify;
}
.text-justify h1, .text-justify h2, .text-justify h3, .text-justify h4, .text-justify h5, .text-justify h6 {
  padding: 1rem 0 0.5rem 0;
}
.text-justify li { text-align: left; }

/* ===== BUTTONS ===== */
.btn-fdk {
  background-color: #32373c;
  color: #ffffff;
  border: 2px solid #32373c;
  font-weight: 500;
  border-radius: .375rem;
}
.btn-fdk:hover {
  background-color: #4a5058;
  border-color: #4a5058;
  color: #ffffff;
}

.btn-secondary {
  background-color: #5A50AD;
  border-color: #5A50AD;
  color: #fff;
}
.btn-secondary:hover {
  background-color: #4E459D;
  border-color: #4E459D;
}

/* ===== NO-JS FALLBACK: show nav when Bootstrap JS unavailable ===== */
.no-js .navbar-collapse { display: block !important; height: auto !important; }

/* No-JS fallback — dropdowns open on focus-within (works without Bootstrap JS) */
.no-js .nav-item.dropdown:focus-within > .dropdown-menu,
.no-js .dropdown:focus-within > .dropdown-menu {
  display: block;
}

/* No-JS: hide JS-dependent lang dropdown, show inline fallback */
.no-js .lang-dropdown-js { display: none !important; }
.lang-inline-nojs { display: none; }
.no-js .lang-inline-nojs {
  display: inline-flex !important;
  gap: 6px;
  align-items: center;
  margin-left: 8px;
}
.no-js .lang-inline-nojs a {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(0,0,0,0.08);
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
}
.no-js .lang-inline-nojs a:hover {
  background: rgba(0,187,255,0.15);
}
.no-js .lang-inline-nojs a.active {
  background: rgba(0,187,255,0.2);
  color: #00BBFF;
}

/* ===== HEADER ===== */
header { z-index: 1; }
header nav { z-index: 9; }
header .navbar .navbar-toggler:focus { box-shadow: none !important; }
header .navbar .navbar-brand { margin-top: -2px; }

header .navbar .dropdown-menu {
  background: none;
  border: none;
  padding-top: 0;
}
@media screen and (min-width: 992px) {
  header .navbar .dropdown-menu { padding-top: 15px; }
}
header .navbar .dropdown-menu .dropdown-inner {
  position: relative;
  padding: 5px 0;
  list-style: none;
}
header .navbar .dropdown-menu .dropdown-inner li { list-style: none; }
header .navbar .dropdown-menu .dropdown-item { color: #000000; }
header .navbar .dropdown-menu .dropdown-item:hover { background: transparent; color: #00BBFF; }

header .navbar .lang {
  position: absolute;
  right: 65px;
  top: 20px;
}
@media screen and (min-width: 992px) {
  header .navbar .lang { right: 25px; top: 18px; }
}

header .navbar .navbar-collapse.show,
header .navbar .navbar-collapse.collapsing {
  background: #ffffff;
  padding: 5px 15px;
  margin-top: 15px;
}
header .navbar .navbar-collapse.show a,
header .navbar .navbar-collapse.collapsing a { color: #000000; }

header .navbar-dark a { color: #ffffff; }
header .navbar .nav-item { padding: 0 2px; }

header.sticky-top .navbar-dark {
  background-color: #1a1e23;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: all .15s ease-in-out;
}
header.sticky-top .navbar-dark .logo-dark { display: none !important; }
header.sticky-top .navbar-dark .logo-white { display: inline-block !important; }
header.sticky-top .navbar-dark a { color: #fff; }
header.sticky-top .navbar-dark a:hover { color: #00BBFF; }
/* Subpage navbar-light — keep light appearance when sticky */
header.sticky-top .navbar-light .nav-link { background: rgba(0,0,0,0.06); color: rgba(0,0,0,0.7); }
header.sticky-top .navbar-light .nav-link:hover { background: rgba(0,187,255,0.12); }

/* ===== HR ARROW ===== */
.hr-arrow {
  position: relative;
  border-top: 1px solid #dadada;
}
.hr-arrow svg {
  position: absolute;
  width: 48px;
  height: 23px;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  text-align: center;
  top: -2px;
  background: #ffffff;
}

/* ===== HERO ===== */
.page-index .section-hero {
  padding-top: 160px;
  padding-bottom: 30px;
  position: relative;
  background-color: #1a1e23;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media screen and (min-width: 992px) {
  .page-index .section-hero { padding-top: 180px; padding-bottom: 30px; }
}
@media screen and (min-width: 1200px) {
  .page-index .section-hero { padding-top: 200px; padding-bottom: 30px; }
}

.page-index .section-hero .bg {
  position: absolute;
  opacity: 0.18;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.page-index .section-hero .bg video {
  object-fit: cover;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
}

.page-index .section-hero .headline {
  font-size: 18px;
  line-height: 130%;
  font-weight: 700;
  letter-spacing: 2px;
}
@media screen and (min-width: 640px) { .page-index .section-hero .headline { font-size: 24px; } }
@media screen and (min-width: 992px) { .page-index .section-hero .headline { font-size: 30px; } }
@media screen and (min-width: 1200px) { .page-index .section-hero .headline { font-size: 34px; } }
@media screen and (min-width: 1600px) { .page-index .section-hero .headline { font-size: 38px; } }

.page-index .section-hero .text {
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
  border-top: 1px solid #ffffff;
}

.page-index .section-hero .carousel .carousel-item {
  opacity: 0;
  z-index: 0;
  min-height: 100px;
}
.page-index .section-hero .carousel .carousel-item.active { opacity: 1; }

/* ===== PILL CARDS ===== */
.page-index .section-content .rounded-pill {
  border-radius: 30px !important;
}
@media screen and (min-width: 992px) {
  .page-index .section-content .rounded-pill { border-radius: var(--bs-border-radius-pill) !important; }
}
.page-index .section-content .rounded-pill .inner { min-height: 70px; }
.page-index .section-content .rounded-pill .inner .icon:first-child { width: 100% !important; }
@media screen and (min-width: 992px) {
  .page-index .section-content .rounded-pill .inner .icon:first-child { width: 50px !important; }
  .page-index .section-content .rounded-pill .inner .icon:last-child { width: 40px !important; }
}
.page-index .section-content .rounded-pill .inner .icon:last-child { width: 100% !important; }

/* ===== FAQ — native <details>/<summary> ===== */
.faq-item { border: 0; }
.faq-question { cursor: pointer; list-style: none; font-size: 1rem; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ""; }
.faq-question::after {
  content: "";
  float: right;
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2333c9ff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
  margin-top: 4px;
}
details[open] > .faq-question::after { transform: rotate(-180deg); }
.faq-answer { padding-left: 0; }
.faq-item p { margin-bottom: 0; }

/* ===== COVER / HEADLINE ===== */
.cover {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  padding: 40px 0;
  position: relative;
}
.cover:before {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: block;
  content: '';
  background: rgba(0, 0, 0, 0.2);
  z-index: 0;
}
.cover.blur:before { backdrop-filter: blur(3px); }
.cover div { position: relative; z-index: 0; }

.section-headline { text-shadow: 1px 0px rgb(0 0 0 / 75%); }

/* ===== CARD ===== */
.card { border: 0; }

/* ===== FOOTER ===== */
footer .brand img { opacity: 0.7; }
footer .socials a { opacity: 0.7; }
footer .socials a:hover { opacity: 1; }
footer .border-both { border: none; }
@media screen and (min-width: 576px) { footer .border-both { border-left: 1px solid rgba(255,255,255,0.12); } }
@media screen and (min-width: 992px) { footer .border-both { border-right: 1px solid rgba(255,255,255,0.12); } }
footer .text-muted { color: #adb5bd !important; }
footer a { color: #adb5bd; }
footer a:hover { color: #ffffff !important; }
footer .nav a { font-size: 1.1rem; font-weight: 500; }
footer .phones span { display: inline-block; min-width: 50px; margin-right: 15px; }

/* ===== ARROWS BOUNCE ===== */
.arrows { animation: bounce 2s ease-in-out infinite; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== HERO COUNTERS ===== */
.hero-counters { position: relative; z-index: 1; }
.hero-counter-item { padding: 0 10px; }
.hero-counter-item:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.25); }
.hero-counter-num { font-size: 2.2rem; font-weight: 700; display: inline; color: #ffffff; font-variant-numeric: tabular-nums; }
@media screen and (min-width: 768px) { .hero-counter-num { font-size: 3rem; } }
.hero-counter-label { font-size: 0.85rem; opacity: 0.85; margin-top: 2px; color: #ffffff; }
.text-heading { color: #000000; }
.counter-value { display: inline; }

/* ===== UNIFIED CTA BUTTON (hero + navbar) ===== */
.btn-hero-cta {
  background-color: #00BBFF;
  color: #ffffff !important;
  border: 2px solid #00BBFF;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-hero-cta:hover {
  background-color: #009dd9;
  border-color: #009dd9;
  color: #ffffff !important;
}
/* Navbar version — same square shape, smaller */
header .btn-hero-cta {
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 4px;
}
header.sticky-top .navbar-dark .btn-hero-cta {
  background-color: #00BBFF;
  color: #ffffff !important;
}

/* ===== FADE IN ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* No-JS fallback — show all content when JS is disabled */
.no-js .fade-in {
  opacity: 1;
  transform: none;
}
/* No-JS: "Dla kogo" section — stack items in single column for readability */
.no-js #dla-kogo .row { flex-direction: column; }
.no-js #dla-kogo .row > .col { flex: 0 0 100%; max-width: 100%; }
.no-js #dla-kogo .card { flex-direction: row; align-items: center; }
.no-js #dla-kogo .card .lazy-bg,
.no-js #dla-kogo .card > div:first-child:not(.card-body) { width: 80px; height: 60px !important; flex-shrink: 0; border-radius: 6px 0 0 6px; }
.no-js #dla-kogo .card .card-body { text-align: left !important; }
/* No-JS: load background images eagerly (lazy-bg won't load via JS) */
.no-js .lazy-bg[data-bg] { background-size: cover; background-position: center; }

/* ===== CARD HOVER ===== */
.card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease; color: #5A5A5A; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important; color: #5A5A5A; }
.card-hover h3, .card-hover h5 { color: #000000; }

/* ===== CALCULATOR ===== */
#kalkulator .form-control:focus { border-color: #00BBFF; box-shadow: 0 0 0 0.2rem rgba(0,187,255,.15); }

/* ===== PARTNERS LOGO BAR ===== */
.partners-track {
  overflow: hidden;
  position: relative;
}
.partners-slide {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: scrollLogos 20s linear infinite;
  width: max-content;
}
.partners-slide img {
  opacity: 0.85;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.partners-slide a { display: flex; align-items: center; }
.partners-slide img:hover {
  opacity: 1;
  transform: scale(1.05);
}
@keyframes scrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== CO ROBIMY cards with visible borders ===== */
#co-robimy .card {
  border: 1px solid #e0e0e0 !important;
  transition: all 0.2s ease;
}
#co-robimy .card:hover {
  border-color: #00BBFF !important;
}

/* ===== JAK DZIALAMY — inline 3 cols ===== */
.jak-dzialamy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media screen and (min-width: 768px) {
  .jak-dzialamy-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.jak-dzialamy-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.2s ease;
}
.jak-dzialamy-card:hover {
  border-color: #00BBFF;
  box-shadow: 0 5px 20px rgba(0,187,255,0.1);
}
.jak-dzialamy-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0,187,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}
.jak-dzialamy-icon svg { width: 28px; height: 28px; }

/* ===== Required field marker ===== */
.required-star { color: #dc3545; }

/* ===== BLOG CARDS ===== */
.text-heading { color: #000 !important; }
#blog .card:hover .text-heading { color: #00BBFF !important; }

/* ===== SLIDER ===== */
.form-range::-webkit-slider-thumb { cursor: grab; }
.form-range::-webkit-slider-thumb:active { cursor: grabbing; }

/* ===== HERO ROTATOR ===== */
.hero-rotator { position: relative; min-height: 80px; }
@media screen and (min-width: 992px) { .hero-rotator { min-height: 90px; } }
.hero-rotator-item {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-rotator-item.active {
  position: relative;
  opacity: 1; transform: translateY(0);
}

/* ===== BOUNCE animation ===== */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== OUTLINE PRIMARY ===== */
.btn-outline-primary { color: #00BBFF; border-color: #00BBFF; }
.btn-outline-primary:hover { background-color: #00BBFF; border-color: #00BBFF; color: #fff; }

/* ===== LANG SWITCHER ===== */
.dropdown.flex-shrink-0 .dropdown-toggle { font-size: 0.85rem; padding: 4px 8px; }
@media screen and (max-width: 991px) {
  .dropdown.flex-shrink-0 { position: absolute; right: 60px; top: 12px; }
}
/* Navbar items wrap fix */
header .navbar .navbar-collapse { flex-wrap: nowrap; }
header .navbar .btn-hero-cta { font-size: 0.75rem !important; padding: 5px 10px !important; white-space: nowrap; }
@media screen and (min-width: 992px) and (max-width: 1500px) {
  header .navbar .nav-link { font-size: 0.88rem !important; padding-left: 3px !important; padding-right: 3px !important; }
  header .navbar .btn-hero-cta { font-size: 0.7rem !important; padding: 4px 8px !important; }
}
@media screen and (min-width: 1501px) {
  header .navbar .btn-hero-cta { font-size: 0.8rem !important; padding: 6px 14px !important; }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher-btn { color: #333 !important; font-size: 1.01rem !important; background: rgba(0,0,0,0.08); border: none; border-radius: 5px; padding: 5px 11px !important; }
.navbar-dark .lang-switcher-btn { color: #fff !important; background: rgba(255,255,255,0.15); }
header.sticky-top .navbar-dark .lang-switcher-btn { color: #fff !important; background: rgba(255,255,255,0.1); }
/* Mobile: navbar expands with white bg — force dark text on lang switcher */
@media (max-width: 991.98px) {
  .navbar-dark .navbar-collapse.show .lang-switcher-btn,
  .navbar-dark .navbar-collapse.collapsing .lang-switcher-btn { color: #333 !important; background: rgba(0,0,0,0.08) !important; }
}
.lang-switcher-btn:hover { background: rgba(0,187,255,0.15) !important; }
@media screen and (min-width: 992px) and (max-width: 1500px) {
  .lang-switcher-btn { font-size: 0.87rem !important; padding: 4px 6px !important; }
}

/* ===== NAV LINKS ===== */
header .navbar .nav-link { font-size: 1.01rem; background: rgba(0,0,0,0.25); border: none; border-radius: 5px; padding: 5px 11px !important; margin: 0 1px; }
header.sticky-top .navbar-dark .nav-link { background: rgba(255,255,255,0.1); }
header .navbar .nav-link:hover { background: rgba(0,187,255,0.15); }
header .navbar .dropdown-toggle.nav-link { font-size: 1.01rem; }
header .navbar .btn-hero-cta { font-size: 1.01rem !important; padding: 5px 11px !important; white-space: nowrap; }

#main-nav { transition: background-color 0.3s, box-shadow 0.3s; background-color: rgba(26,30,35,0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
#main-nav.scrolled { background-color: #1a1e23 !important; box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
#main-nav .navbar-nav .nav-link { font-size: 1.02rem; padding-left: 0.5rem; padding-right: 0.5rem; }
#main-nav .navbar-brand img { height: 42px; width: auto; }
#main-nav .nav-phone-separator { width: 1px; height: 24px; background: rgba(255,255,255,0.25); margin: 0 0.75rem; display: none; }
@media (min-width:1200px) { #main-nav .nav-phone-separator { display: inline-block; } }
@media (min-width:992px) and (max-width:1500px) {
  #main-nav .navbar-nav .nav-link { font-size: 0.9rem; padding-left: 0.3rem; padding-right: 0.3rem; }
  #main-nav .navbar-brand { margin-right: 0.5rem !important; }
  #main-nav .navbar-brand img { height: 36px; }
}
.fab-phone { display: none; position: fixed; bottom: 24px; right: 24px; z-index: 9998; width: 56px; height: 56px; border-radius: 50%; background: #00BBFF; color: #fff; border: none; box-shadow: 0 4px 16px rgba(0,187,255,0.4); align-items: center; justify-content: center; text-decoration: none; }
.fab-phone { box-sizing: border-box; padding: 0; line-height: 0; aspect-ratio: 1 / 1; display: grid; place-items: center; align-content: center; overflow: hidden; }
.fab-phone svg { display: block; width: 28px; height: 28px; margin: 0; flex: none; }
@media (max-width: 991.98px) { .fab-phone.visible { display: flex; } }

@media screen and (min-width: 992px) and (max-width: 1500px) {
  header .navbar .nav-link { font-size: 0.87rem !important; padding: 4px 6px !important; }
  header .navbar .dropdown-toggle.nav-link { font-size: 0.87rem !important; }
  header .navbar .btn-hero-cta { font-size: 0.87rem !important; padding: 4px 9px !important; }
}

@media screen and (min-width: 992px) and (max-width: 1199.98px) {
  header .navbar .navbar-toggler {
    display: block;
  }
  header .navbar .navbar-collapse {
    display: none !important;
    flex-basis: 100%;
    flex-grow: 1;
    align-items: stretch;
  }
  header .navbar .navbar-collapse.show,
  header .navbar .navbar-collapse.collapsing {
    display: block !important;
    background: #ffffff;
    padding: 5px 15px;
    margin-top: 15px;
  }
  header .navbar .navbar-collapse.show a,
  header .navbar .navbar-collapse.collapsing a {
    color: #000000;
  }
  header .navbar .navbar-collapse .d-lg-flex {
    display: block !important;
  }
  header .navbar .navbar-collapse .d-lg-inline-block {
    display: inline-block !important;
  }
  header .navbar .navbar-nav {
    flex-direction: column;
  }
  header .navbar .nav-link {
    display: block;
    margin: 4px 0;
  }
  header .navbar .dropdown-menu {
    position: static;
  }
}

/* ===== SKIP LINK (WCAG) ===== */
.skip-link { position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden; }
.skip-link:focus { position:static;width:auto;height:auto;padding:8px 16px;background:#00BBFF;color:#fff;z-index:9999;text-decoration:none;font-weight:bold; }

/* ===== FOOTER PHONES GRID ===== */
.footer-phones {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: baseline;
  margin-bottom: 12px;
}
.footer-phones .phone-label {
  font-weight: 600;
  white-space: nowrap;
}
.footer-phones a[href^="tel:"] {
  white-space: nowrap;
  word-break: keep-all;
}
/* Phone links across the site — mobile-friendly */
a[href^="tel:"] {
  white-space: nowrap;
  word-break: keep-all;
  display: inline-block;
}
@media (max-width: 575.98px) {
  .footer-phones {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
  .footer-phones .phone-label {
    margin-top: 8px;
  }
}

/* ===== COOPERATION STEPS ===== */
.cooperation-steps { background-color: #f7f7f7; }
.cooperation-steps .step-num { font-size: 3rem; font-weight: 800; color: rgba(0,187,255,0.15); line-height: 1; }
.cooperation-steps .step-icon { width: 56px; height: 56px; border-radius: 50%; background: #00BBFF; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem; }
.cooperation-steps .step-icon svg { width: 28px; height: 28px; }

/* ===== REVIEWS CAROUSEL ===== */
.reviews-carousel { overflow: hidden; position: relative; }
.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
  scroll-snap-type: x mandatory;
}
.review-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 28px 24px;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .review-card { flex: 0 0 calc(50% - 12px); }
}
@media (min-width: 1200px) {
  .review-card { flex: 0 0 calc(33.333% - 16px); }
}
.review-stars { color: #fbbf24; font-size: 1.3rem; letter-spacing: 2px; }
.review-text { font-size: 0.95rem; line-height: 1.6; color: #5A5A5A; }
.review-author { font-size: 0.95rem; }
.review-role { font-size: 0.85rem; }
.reviews-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  background: rgba(255,255,255,0.95);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.reviews-btn:hover { border-color: #00BBFF; color: #00BBFF; }
.reviews-btn-prev { left: -8px; }
.reviews-btn-next { right: -8px; }
@media (max-width: 767px) {
  .reviews-btn-prev { left: 4px; }
  .reviews-btn-next { right: 4px; }
}

/* ===== MOBILE NAVBAR SCROLL ===== */
/* fixed-top navbar: expanded menu can exceed viewport — make it scrollable */
@media (max-width: 991.98px) {
  .navbar-collapse.show {
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Dropdowns opened inside mobile scroll container: static position prevents overflow clipping */
  .navbar-collapse.show .dropdown.show > .dropdown-menu {
    position: static !important;
    float: none;
    transform: none !important;
    box-shadow: none !important;
    border-radius: 6px;
    margin-top: 4px;
  }
  /* Lang switcher on mobile: show as flat inline pills — no toggle needed */
  .navbar-collapse.show .dropdown:has(.lang-switcher-btn) .lang-switcher-btn { display: none !important; }
  .navbar-collapse.show .dropdown:has(.lang-switcher-btn) .dropdown-menu {
    display: flex !important;
    position: static !important;
    transform: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2px 0 !important;
    min-width: 0 !important;
  }
  .navbar-collapse.show .dropdown:has(.lang-switcher-btn) .dropdown-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 4px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    list-style: none;
    margin: 0;
  }
  .navbar-collapse.show .dropdown:has(.lang-switcher-btn) .dropdown-item {
    display: inline-block !important;
    width: auto !important;
    padding: 4px 10px !important;
    border-radius: 5px !important;
    background: rgba(0,0,0,0.08) !important;
    font-size: 0.85rem !important;
    color: #333 !important;
    white-space: nowrap;
  }
  .navbar-collapse.show .dropdown:has(.lang-switcher-btn) .dropdown-item:hover {
    background: rgba(0,187,255,0.15) !important;
    color: #333 !important;
  }
}

/* ===== iPad / tablet responsiveness ===== */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Ensure proper viewport reset when navigating from subpage to homepage */
  .page-index .section-hero { min-height: 100vh; min-height: 100dvh; }
  /* Fix hero buttons wrapping on iPad */
  .section-hero .text .btn { white-space: normal; }
  /* Calculator columns on iPad portrait */
  #kalkulator .row.g-3 > .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

/* ===== Burger menu visibility fix ===== */
@media (max-width: 991.98px) {
  .navbar-toggler { position: relative; z-index: 10; flex-shrink: 0; }
  /* Prevent lang switcher from overlapping burger button */
  .navbar .dropdown:has(.lang-switcher-btn) { order: -1; }
}

/* ===== MOBILE OVERFLOW FIXES ===== */
@media (max-width: 767.98px) {
  /* Hero buttons: stack vertically on phones (portrait + landscape) */
  .section-hero .text .btn { display: block; width: 100%; white-space: normal; }
  .section-hero .text .btn + .btn { margin-left: 0 !important; }
  /* Footer: prevent long emails from overflowing */
  footer a[href^="mailto"] { word-break: break-all; overflow-wrap: break-word; }
  /* Ensure minimum 16px font in footer to prevent iOS auto-zoom */
  footer { font-size: 16px; }
}
@media (max-width: 575.98px) {
  /* Hero counter font size — extra small screens only */
  .hero-counter-num { font-size: 1.6rem; }
  .hero-counter-label { font-size: 0.75rem; }
}

/* ===== TABLE OF CONTENTS — sidebar (industry subpages) ===== */
.toc-sidebar { position: sticky; top: 80px; }
.toc-box { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 12px; padding: 20px 22px; }
.toc-box .toc-title { font-size: 1.2rem; font-weight: 700; color: #1a1e23; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.toc-box .toc-list { list-style: none; padding: 0; margin: 0; counter-reset: toc-counter; }
.toc-box .toc-list li { counter-increment: toc-counter; }
.toc-box .toc-list li a { display: block; padding: 6px 0 6px 30px; font-size: 1.05rem; color: #5A5A5A; text-decoration: none; position: relative; transition: color 0.2s; border-left: 2px solid transparent; }
.toc-box .toc-list li a::before { content: counter(toc-counter) "."; position: absolute; left: 4px; color: #00BBFF; font-weight: 600; font-size: 1rem; }
.toc-box .toc-list li a:hover { color: #00BBFF; border-left-color: #00BBFF; }
@media (max-width: 991.98px) {
  .toc-sidebar { position: static; margin-bottom: 2rem; }
  .toc-box { padding: 18px 20px; }
  .toc-box .toc-list li a { font-size: 0.84rem; padding: 5px 0 5px 24px; }
}

/* ===== FOOTER TOUCH TARGETS (A11y WCAG 2.5.5) ===== */
footer .nav a, footer a.text-muted { min-height: 44px; display: inline-flex; align-items: center; }
footer .dropdown-item { min-height: 44px; display: flex; align-items: center; }

/* ===== FOOTER SPACING ===== */
main + footer { margin-top: 0; }
section:last-of-type { margin-bottom: 0; padding-bottom: 40px; }
