/* ==========================================================================
   BUDOPLAST - style nowej strony glownej (prefiks .hm- / #hm-)
   Kolory marki: czerwien #b61f2e, ciemny #14181d
   ========================================================================== */
:root {
  --hm-red: #b61f2e;
  --hm-red-dark: #8e1824;
  --hm-dark: #14181d;
  --hm-gray: #f4f5f7;
  --hm-text: #333;
  --hm-radius: 10px;
  --hm-shadow: 0 10px 30px rgba(20, 24, 29, .10);
}

.hm-section { padding: 70px 0; }
.hm-section--gray { background: var(--hm-gray); }
.hm-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.hm-title { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 32px; color: var(--hm-dark); text-transform: uppercase; margin: 0 0 10px; text-align: center; }
.hm-title span { color: var(--hm-red); }
.hm-sub { text-align: center; color: #666; max-width: 720px; margin: 0 auto 45px; font-size: 15px; }

/* --- animacja wejscia przy scrollu --- */
.hm-reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.hm-reveal.hm-visible { opacity: 1; transform: none; }
.hm-reveal:nth-child(2) { transition-delay: .1s; }
.hm-reveal:nth-child(3) { transition-delay: .2s; }
.hm-reveal:nth-child(4) { transition-delay: .3s; }

/* ==================== 1. HERO ==================== */
#hm-hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--hm-dark); }
.hm-hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hm-hero-slide { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: 0; will-change: opacity, transform; animation: hm-slide-a 30s linear infinite; }
/* 5 slajdow x 6 s = cykl 30 s; kazdy kolejny startuje 6 s pozniej */
.hm-hero-slide:nth-child(1) { animation-delay: 0s; }
.hm-hero-slide:nth-child(2) { animation-delay: 6s; animation-name: hm-slide-b; }
.hm-hero-slide:nth-child(3) { animation-delay: 12s; background-position: 10% center; transform-origin: 12% 50%; }
/* slajd 3 (drzwi przesuwne): kadr i zoom przesuniete w lewo, gdzie widac drzwi -
   wartosci background-position / transform-origin mozna regulowac (0% = lewa krawedz) */
.hm-hero-slide:nth-child(4) { animation-delay: 18s; animation-name: hm-slide-b; }
.hm-hero-slide:nth-child(5) { animation-delay: 24s; }
/* wariant A: najazd (zoom in), wariant B: odjazd + lekkie przesuniecie */
@keyframes hm-slide-a {
  0%   { opacity: 0; transform: scale(1); }
  4%   { opacity: 1; }
  22%  { opacity: 1; }
  28%  { opacity: 0; transform: scale(1.14); }
  100% { opacity: 0; transform: scale(1.14); }
}
@keyframes hm-slide-b {
  0%   { opacity: 0; transform: scale(1.16) translateX(2%); }
  4%   { opacity: 1; }
  22%  { opacity: 1; }
  28%  { opacity: 0; transform: scale(1) translateX(0); }
  100% { opacity: 0; transform: scale(1) translateX(0); }
}
#hm-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,29,.18), rgba(20,24,29,.42)); z-index: 1; }
.hm-hero-content { position: relative; z-index: 2; color: #fff; padding: 140px 20px 90px; max-width: 860px; }
.hm-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* rotujace podpisy slajdow - te same czasy co .hm-hero-slide (30 s, co 6 s) */
.hm-hero-captions { position: relative; min-height: 220px; margin-bottom: 26px; }
.hm-hero-caption { position: absolute; inset: 0; opacity: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; animation: hm-caption 30s linear infinite; }
.hm-hero-caption:nth-child(1) { animation-delay: 0s; }
.hm-hero-caption:nth-child(2) { animation-delay: 6s; }
.hm-hero-caption:nth-child(3) { animation-delay: 12s; }
.hm-hero-caption:nth-child(4) { animation-delay: 18s; }
.hm-hero-caption:nth-child(5) { animation-delay: 24s; }
@keyframes hm-caption {
  0%   { opacity: 0; transform: translateY(22px); }
  4%   { opacity: 1; transform: translateY(0); }
  22%  { opacity: 1; transform: translateY(0); }
  27%  { opacity: 0; transform: translateY(-14px); }
  100% { opacity: 0; transform: translateY(-14px); }
}
.hm-hero-caption h2 { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 46px; line-height: 1.15; text-transform: uppercase; margin: 0 0 18px; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.hm-hero-caption p { display: inline-block; background: rgba(182,31,46,.94); box-shadow: 0 6px 24px rgba(0,0,0,.25); color: #fff; font-weight: 700; font-size: 16px; line-height: 1.5; padding: 12px 26px; border-radius: 6px; margin: 0; max-width: 760px; }
.hm-btn { display: inline-block; padding: 14px 34px; border-radius: 50px; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; transition: all .3s; margin: 6px 8px; }
.hm-btn--red { background: var(--hm-red); color: #fff !important; }
.hm-btn--red:hover { background: var(--hm-red-dark); text-decoration: none; }
.hm-btn--ghost { border: 2px solid #fff; color: #fff !important; }
.hm-btn--ghost:hover { background: #fff; color: var(--hm-dark) !important; text-decoration: none; }
.hm-hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: #fff; font-size: 26px; animation: hm-bounce 2s infinite; }
@keyframes hm-bounce { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,10px);} }

/* ==================== 2. STATYSTYKI ==================== */
#hm-stats { background: var(--hm-red); padding: 44px 0; }
.hm-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.hm-stat b { display: block; font-family: "Montserrat", sans-serif; font-size: 40px; color: #fff; line-height: 1; }
.hm-stat b small { font-size: 22px; }
.hm-stat span { display: block; margin-top: 8px; color: #ffffff; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }

/* ==================== 3. PROBLEMY ==================== */
.hm-problems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.hm-problem { background: #fff; border-radius: var(--hm-radius); padding: 30px 24px; box-shadow: var(--hm-shadow); border-top: 4px solid var(--hm-red); }
.hm-problem i { font-size: 34px; color: var(--hm-red); }
.hm-problem h3 { font-family: "Montserrat", sans-serif; font-size: 17px; margin: 14px 0 10px; color: var(--hm-dark); }
.hm-problem p { font-size: 14px; color: #666; margin: 0; }

/* ==================== 4. SIATKA USLUG ==================== */
.hm-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.hm-service { position: relative; border-radius: var(--hm-radius); overflow: hidden; box-shadow: var(--hm-shadow); background: #fff; display: block; }
.hm-service img { width: 100%; height: 210px; object-fit: contain; object-position: center; padding: 18px; background: #fff; transition: transform .5s; display: block; box-sizing: border-box; }
.hm-service:hover img { transform: scale(1.05); }
.hm-service div { padding: 22px; }
.hm-service h3 { font-family: "Montserrat", sans-serif; font-size: 18px; text-transform: uppercase; color: var(--hm-dark); margin: 0 0 8px; }
.hm-service p { font-size: 14px; color: #666; margin: 0 0 10px; }
.hm-service em { color: var(--hm-red); font-style: normal; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.hm-service:hover { text-decoration: none; }

/* ==================== 5. KORZYSCI ==================== */
.hm-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.hm-benefits img { width: 100%; border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); }
.hm-benefit { display: flex; gap: 16px; margin-bottom: 22px; }
.hm-benefit i { flex: 0 0 46px; height: 46px; border-radius: 50%; background: rgba(182,31,46,.1); color: var(--hm-red); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.hm-benefit h3, .hm-benefit h4 { font-family: "Montserrat", sans-serif; font-size: 16px; margin: 0 0 6px; color: var(--hm-dark); }
.hm-benefit p { font-size: 14px; color: #666; margin: 0; }

/* ==================== 6. SEKCJE NAPRZEMIENNE ==================== */
.hm-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; padding: 34px 0; }
.hm-alt:nth-child(even) .hm-alt-img { order: 2; }
.hm-alt-img img { width: 100%; border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); display: block; }
.hm-alt-txt h3 { font-family: "Montserrat", sans-serif; font-size: 24px; text-transform: uppercase; color: var(--hm-dark); margin: 0 0 14px; }
.hm-alt-txt h3 span { color: var(--hm-red); }
.hm-alt-txt p { color: #555; font-size: 15px; }

/* ==================== 7. O NAS ==================== */
#hm-onas .hm-onas-box { max-width: 840px; margin: 0 auto; text-align: center; font-size: 16px; color: #555; line-height: 1.8; }

/* ==================== 8. PROCES (sticky) ==================== */
#hm-proces { background: var(--hm-dark); padding: 70px 0 110px; }
#hm-proces .hm-title { color: #fff; }
#hm-proces .hm-sub { color: #aab2bb; }
.hm-steps { max-width: 760px; margin: 0 auto; }
.hm-step { position: sticky; top: 110px; background: #fff; border-radius: var(--hm-radius); padding: 34px 38px; margin-bottom: 26px; box-shadow: 0 -8px 30px rgba(0,0,0,.25); display: flex; gap: 24px; align-items: flex-start; }
.hm-step b { font-family: "Montserrat", sans-serif; font-size: 44px; color: #b5212f; line-height: 1; }
.hm-step h3 { font-family: "Montserrat", sans-serif; font-size: 19px; margin: 4px 0 8px; color: var(--hm-dark); }
.hm-step p { font-size: 14px; color: #444; margin: 0; }
.hm-step:nth-child(2) { top: 126px; }
.hm-step:nth-child(3) { top: 142px; }
.hm-step:nth-child(4) { top: 158px; }
.hm-step:nth-child(5) { top: 174px; }

/* ==================== 9. MARQUEE ==================== */
#hm-marquee { background: var(--hm-red); padding: 18px 0; overflow: hidden; }
.hm-marquee-track { display: flex; width: max-content; animation: hm-marquee 32s linear infinite; }
.hm-marquee-track span { color: #fff; font-family: "Montserrat", sans-serif; font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: 1px; padding: 0 26px; white-space: nowrap; }
.hm-marquee-track span::after { content: "\2726"; margin-left: 52px; color: rgba(255,255,255,.5); }
@keyframes hm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==================== 10. LOKALIZACJE ==================== */
.hm-locs { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 40px; }
.hm-loc { background: #b5212f; border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); padding: 32px; border-left: 4px solid #252a38; }
.hm-loc h3 { font-family: "Montserrat", sans-serif; font-size: 20px; color: #fff; margin: 0 0 14px; text-transform: uppercase; }
.hm-loc p { font-size: 14px; color: rgba(255,255,255,.92); margin: 0 0 10px; }
.hm-loc p b { color: #fff; }
.hm-loc a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hm-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hm-cat { display: block; background: var(--hm-gray); border-radius: 8px; padding: 16px 12px; text-align: center; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--hm-dark) !important; transition: all .3s; }
.hm-cat:hover { background: var(--hm-red); color: #fff !important; text-decoration: none; }

/* ==================== 11. FAQ ==================== */
.hm-faq { max-width: 820px; margin: 0 auto; }
.hm-faq details { background: #fff; border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); margin-bottom: 14px; overflow: hidden; }
.hm-faq summary { cursor: pointer; list-style: none; padding: 20px 54px 20px 24px; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 15px; color: var(--hm-dark); position: relative; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--hm-red); transition: transform .3s; }
.hm-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.hm-faq details p { padding: 0 24px 20px; margin: 0; font-size: 14px; color: #666; }

/* ==================== 12. FORMULARZ WYCENY ==================== */
#hm-wycena { background: var(--hm-gray); }
.hm-wycena-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.hm-wycena-info h3 { font-family: "Montserrat", sans-serif; font-size: 20px; color: var(--hm-dark); margin: 0 0 14px; }
.hm-wycena-info p { font-size: 14px; color: #555; }
.hm-wycena-form { background: #fff; border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); padding: 30px; min-height: 380px; }
.hm-wycena-form iframe { width: 100% !important; }

/* ==================== 13. FINAL CTA ==================== */
#hm-cta { background: linear-gradient(135deg, #14181d 0%, #23140f 100%); text-align: center; padding: 84px 20px; }
#hm-cta h2 { font-family: "Montserrat", sans-serif; color: #fff; font-size: 30px; text-transform: uppercase; margin: 0 0 14px; }
#hm-cta p { color: #b9c0c8; max-width: 620px; margin: 0 auto 30px; font-size: 15px; }

/* ==================== RESPONSYWNOSC ==================== */
@media (max-width: 991px) {
  .hm-stats-grid, .hm-problems, .hm-cats { grid-template-columns: repeat(2, 1fr); }
  .hm-services { grid-template-columns: repeat(2, 1fr); }
  .hm-benefits, .hm-alt, .hm-locs, .hm-wycena-grid { grid-template-columns: 1fr; }
  .hm-alt:nth-child(even) .hm-alt-img { order: 0; }
  .hm-hero-caption h2 { font-size: 32px; }
  .hm-hero-captions { min-height: 260px; }
}
@media (max-width: 575px) {
  .hm-services { grid-template-columns: 1fr; }
  .hm-stats-grid { grid-template-columns: 1fr 1fr; }
  .hm-problems { grid-template-columns: 1fr; }
  .hm-title { font-size: 26px; }
  .hm-hero-caption h2 { font-size: 26px; }
  .hm-hero-captions { min-height: 300px; }
  .hm-step { position: static; }
}

/* ==================== POPRAWKA: odstep od bocznego menu ====================
   Menu boczne (.side-nav) jest widoczne od 992px, przyklejone 16px od lewej
   i ma ok. 80px szerokosci. Na ekranach 992-1370px wycentrowany kontener
   nachodzilby na menu - dlatego w tym zakresie dosuwamy tresc w prawo.
   Od ~1370px naturalny margines jest wiekszy niz menu i poprawka nie dziala. */
@media (min-width: 992px) and (max-width: 1370px) {
  .hm-container { margin-left: 104px; margin-right: 24px; max-width: none; }
  .hm-hero-content { padding-left: 124px; padding-right: 40px; }
  #hm-cta { padding-left: 124px; padding-right: 40px; }
}


/* ==================== 4b. NASZA OFERTA - ikony z efektem hover ====================
   Dwa obrazki w kazdym linku: szary widoczny, czerwony (-a.jpg) na wierzchu
   z opacity 0; najechanie plynnie odkrywa czerwony. */
.hm-icons { display: flex; justify-content: center; align-items: flex-end; gap: 46px; flex-wrap: nowrap; }
.hm-icon { position: relative; display: inline-block; }
.hm-icon img { display: block; height: 257px; width: auto; }
.hm-icon .hm-icon__red { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; }
.hm-icon:hover .hm-icon__red, .hm-icon:focus-visible .hm-icon__red { opacity: 1; }
@media (max-width: 1200px) {
  .hm-icons { gap: 28px; }
  .hm-icon img { height: 200px; }
}
@media (max-width: 991px) {
  .hm-icon img { height: 160px; }
}
@media (max-width: 767px) {
  /* telefon: jedna pod druga */
  .hm-icons { flex-direction: column; align-items: center; gap: 30px; }
  .hm-icon img { height: 210px; }
}


/* ==================== 12b. FORMULARZ SUGESTER - stylizacja ====================
   Formularz jest wstrzykiwany przez skrypt cdn.intum.com; ponizsze reguly
   nadaja mu wyglad spojny ze strona. */
.hm-wycena-form { color-scheme: light; }  /* jasne pola takze w trybie ciemnym systemu */
.hm-wycena-form .sugester_form_inside > div { margin-bottom: 16px; }
.hm-wycena-form label { display: block; font-weight: 600; font-size: 14px; color: var(--hm-dark); margin: 0 0 6px; }
.hm-wycena-form label.required::after { content: " *"; color: var(--hm-red); }
.hm-wycena-form input[type="text"],
.hm-wycena-form input[type="email"],
.hm-wycena-form input[type="tel"],
.hm-wycena-form textarea {
  width: 100%; box-sizing: border-box; background: #fff; color: #333;
  border: 1px solid #d9dde3; border-radius: 8px; padding: 12px 14px;
  font: inherit; font-size: 14px; transition: border-color .2s, box-shadow .2s;
}
.hm-wycena-form textarea { min-height: 110px; resize: vertical; }
.hm-wycena-form input:focus, .hm-wycena-form textarea:focus {
  outline: none; border-color: var(--hm-red); box-shadow: 0 0 0 3px rgba(182,31,46,.12);
}
/* checkboxy jako "pigulki" */
.hm-wycena-form .label_inline { display: inline-flex; align-items: center; gap: 7px; margin: 4px 10px 4px 0; padding: 8px 14px; border: 1px solid #d9dde3; border-radius: 50px; cursor: pointer; transition: all .2s; }
.hm-wycena-form .label_inline:hover { border-color: var(--hm-red); }
.hm-wycena-form .label_inline input.field { accent-color: var(--hm-red); width: 16px; height: 16px; margin: 0; cursor: pointer; }
.hm-wycena-form .label_inline label.choice { margin: 0; font-weight: 600; font-size: 13px; cursor: pointer; }
/* przycisk wysylania */
.hm-wycena-form input[type="submit"], .hm-wycena-form .button {
  display: inline-block; background: var(--hm-red); color: #fff; border: 0; cursor: pointer;
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase;
  letter-spacing: .5px; padding: 13px 36px; border-radius: 50px; margin-top: 6px; transition: background .3s;
}
.hm-wycena-form input[type="submit"]:hover, .hm-wycena-form .button:hover { background: var(--hm-red-dark); }
/* naglowek/link formularza */
.hm-wycena-form a { color: var(--hm-red); }


/* naglowek sekcji wyceny w lewej kolumnie, wyrownany do lewej */
.hm-title--left { text-align: left; }
.hm-sub--left { text-align: left; margin: 0 0 30px; max-width: none; }


/* zdjecie z realizacji w sekcji wyceny */
.hm-wycena-foto { margin: 26px 0 0; }
.hm-foto-ramka { position: relative; overflow: hidden; border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); }
.hm-wycena-foto img { width: 100%; display: block; transition: transform .6s ease; }
.hm-foto-ramka:hover img { transform: scale(1.07); }
/* przeblysk "lustra" przesuwajacy sie po zdjeciu przy najechaniu */
.hm-foto-ramka::before { content: ""; position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-22deg); z-index: 1; pointer-events: none; transition: left .7s ease; }
.hm-foto-ramka:hover::before { left: 130%; }
.hm-wycena-foto figcaption { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13px; color: #666; }
.hm-wycena-foto figcaption i { color: var(--hm-red); font-size: 16px; margin-top: 1px; }


/* ==================== MOBILNY PASEK KONTAKTOWY ====================
   Widoczny tylko na telefonach - dwa przyciski przyklejone do dolu. */
.hm-callbar { display: none; }
@media (max-width: 767px) {
  .hm-callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
    box-shadow: 0 -4px 16px rgba(0,0,0,.18); }
  .hm-callbar a { flex: 1; text-align: center; padding: 15px 8px; font-family: "Montserrat", sans-serif;
    font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; text-decoration: none; }
  .hm-callbar__tel { background: var(--hm-dark); color: #fff !important; }
  .hm-callbar__form { background: var(--hm-red); color: #fff !important; }
  /* baner cookies nie moze zaslaniac paska */
  #cookieBanner { bottom: 72px !important; }
  /* przycisk "do gory" nad paskiem */
  .back-to-top { bottom: 78px !important; }
}

/* ==================== POPRAWKA: rzedy ikon produktow na podstronach ====================
   Dotyczy .product-links-row i .product-icons-row (rozne podstrony uzywaja
   roznych nazw). !important neutralizuje lokalne style stron (flex: 0 0 auto).
   - font-size:0 zeruje &nbsp; miedzy linkami,
   - flex-basis + shrink: ikony kurcza sie proporcjonalnie, zawsze jedna linia,
   - na 992-1370px caly rzad odsuniety od bocznego menu. */
.product-links-row, .product-icons-row { display: flex; justify-content: center; align-items: flex-start !important; text-align: center; }
@media (max-width: 991px) {
  /* telefon/tablet: ikony jedna pod druga, wysrodkowane */
  .product-links-row, .product-icons-row { flex-direction: column; align-items: center !important; gap: 26px; }
  .product-links-row a, .product-icons-row a { flex: 0 0 auto !important; min-width: 0; }
  .product-links-row a img, .product-icons-row a img { width: auto; height: auto; max-width: 220px; max-height: 210px; }
}
@media (min-width: 992px) {
  .product-links-row, .product-icons-row { font-size: 0; flex-wrap: nowrap !important; gap: 14px; }
  .product-links-row a, .product-icons-row a { min-width: 0; }
  .product-links-row a:nth-child(1), .product-icons-row a:nth-child(1) { flex: 0 1 250px !important; }
  .product-links-row a:nth-child(2), .product-icons-row a:nth-child(2) { flex: 0 1 360px !important; }
  .product-links-row a:nth-child(3), .product-icons-row a:nth-child(3) { flex: 0 1 190px !important; }
  .product-links-row a:nth-child(4), .product-icons-row a:nth-child(4) { flex: 0 1 220px !important; }
  .product-links-row a:nth-child(5), .product-icons-row a:nth-child(5) { flex: 0 1 210px !important; }
  .product-links-row a img, .product-icons-row a img { width: 100% !important; height: auto !important; max-width: 100% !important; }
}
@media (min-width: 992px) and (max-width: 1370px) {
  .product-links-row, .product-icons-row { margin-left: 96px; margin-right: 16px; }
}
}

/* ==================== ROZWIJANE MENU "PRODUKTY" ====================
   Podmenu widoczne tylko na desktopie (na mobile te pozycje sa juz
   osobnymi punktami menu - unikamy duplikatow). */
@media (max-width: 991px) {
  .nav-menu li ul, #mobile-nav li ul { display: none !important; }
}

/* ==================== ROZWIJANE MENU PRODUKTY - stylizacja ==================== */
@media (min-width: 992px) {
  #nav-menu-container .nav-menu > li > ul {
    left: 0 !important;               /* wyrownanie do lewej krawedzi pozycji PRODUKTY */
    right: auto !important;
    margin: 8px 0 0 !important;
    padding: 6px 0 !important;
    min-width: 250px;
    width: auto !important;
    background: #fff !important;
    border-radius: 10px;
    border-top: 3px solid var(--hm-red);
    box-shadow: 0 14px 38px rgba(20, 24, 29, .16) !important;
    text-align: left !important;
  }
  #nav-menu-container .nav-menu > li > ul li { width: 100%; }
  #nav-menu-container .nav-menu > li > ul li a {
    display: block;
    padding: 11px 22px !important;
    font-size: 13px !important;
    font-weight: 600;
    color: #3a3f45 !important;
    text-align: left !important;
    white-space: nowrap;
    transition: all .2s;
    border-left: 3px solid transparent;
  }
  #nav-menu-container .nav-menu > li > ul li a:hover {
    color: var(--hm-red) !important;
    background: rgba(182, 31, 46, .06) !important;
    border-left-color: var(--hm-red);
    padding-left: 26px !important;
  }
  #nav-menu-container .nav-menu > li > ul li + li { border-top: 1px solid #f1f2f4; }
}

/* logo w naglowku jako div (na stronie Uslugi H1 jest w tresci SEO) */
#logo .logo-h1 { font-size: 42px; margin: 0; padding: 0; line-height: 1; }

/* ==================== SALONY NA PODSTRONACH (#call-to-action2) ====================
   Stara czerwona sekcja z danymi salonow dostaje wyglad kart
   jak "Nasze salony" na stronie glownej. Tresc bez zmian. */
#call-to-action2 { background: var(--hm-gray) !important; padding: 60px 0 !important; }
#call-to-action2 .row.cta-white { gap: 26px; justify-content: center; margin: 0 0 26px; }
#call-to-action2 .row.cta-white > .col-md-6 {
  flex: 1 1 340px; max-width: calc(50% - 13px); min-width: 300px;
  background: #b5212f; border-radius: var(--hm-radius); box-shadow: var(--hm-shadow);
  border-left: 4px solid #252a38; padding: 32px !important;
  text-align: left !important;
}
#call-to-action2 .cta-center { text-align: left !important; }
#call-to-action2 .cta-block { margin-bottom: 16px !important; }
#call-to-action2 .cta-block h3 {
  font-family: "Montserrat", sans-serif; font-size: 17px; font-weight: 700;
  color: var(--hm-dark) !important; text-align: left; margin: 0 0 8px;
}
#call-to-action2 .cta-block h3 i { color: #fff; font-size: 20px; }
#call-to-action2 .cta-text, #call-to-action2 address, #call-to-action2 p {
  color: #555 !important; font-size: 14px !important; font-style: normal;
}
#call-to-action2 a { color: var(--hm-red) !important; text-decoration: none !important; font-weight: 600; }
#call-to-action2 a:hover { text-decoration: underline !important; }
#call-to-action2 .cta-title { color: var(--hm-dark) !important; }
/* dolna linia "Spotkania indywidualne..." - zwykly tekst na srodku */
#call-to-action2 .col-md-12 { text-align: center !important; }
@media (max-width: 767px) {
  #call-to-action2 .row.cta-white > .col-md-6 { max-width: 100%; flex-basis: 100%; }
}

/* kontra dla lokalnych stylow podstron (bialy tekst z !important, osadzony w tresci).
   selektory z "section" maja wyzsza specyficznosc niz lokalne #id .klasa el */
section#call-to-action2 .cta-white,
section#call-to-action2 .cta-white p,
section#call-to-action2 .cta-white address,
section#call-to-action2 .cta-text,
section#call-to-action2 .cta-text2 { color: rgba(255,255,255,.92) !important; }
section#call-to-action2 .cta-white h3,
section#call-to-action2 h3 { color: #fff !important; }
section#call-to-action2 .cta-white a,
section#call-to-action2 a { color: #fff !important; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }
section#call-to-action2 .cta-white i,
section#call-to-action2 .cta-white h3 i { color: #fff !important; }
/* dolna notka poza kartami - na jasnym tle sekcji zostaje ciemna */
section#call-to-action2 > .container > .row:not(.cta-white) .cta-text,
section#call-to-action2 .col-md-12 .cta-text { color: #555 !important; }
section#call-to-action2 .col-md-12 .cta-text a { color: #b61f2e !important; }

/* ================================================================
   POZIOM AWWWARDS - silnik animacji i polish designu (v3)
   GSAP/ScrollTrigger/Lenis ladowane z CDN (wersje przypiete).
   ================================================================ */

/* pasek postepu przewijania */
.mo-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--hm-red);
  transform-origin: 0 50%; transform: scaleX(0); z-index: 3000; pointer-events: none; }

/* gdy dziala GSAP - wylacz stare przejscia CSS (przejmuje je ScrollTrigger) */
html.mo-gsap .hm-reveal { transition: none; }

/* wideo w tle sekcji (CLS-safe: absolutne, nie wplywa na layout) */
.mo-video-wrap { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.mo-video-wrap video { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(.85) contrast(1.05); }
.mo-video-wrap--light video { opacity: .14; filter: saturate(.7) blur(1px); }
.mo-has-video { position: relative; }
.mo-has-video > .hm-container { position: relative; z-index: 1; }
#hm-cta { position: relative; overflow: hidden; }
.mo-cta-inner { position: relative; z-index: 1; }
@media (max-width: 767px) { .mo-video-wrap video { display: none; } .mo-video-wrap { background: url("../img/montaz-okien-zurawiem-poznan-budoplast.jpg") center/cover; opacity:.25; } }

/* parallax: kontenery obrazow przycinaja powiekszona grafike */
html.mo-gsap .hm-alt-img, html.mo-gsap .hm-benefits > div:first-child { overflow: hidden; border-radius: var(--hm-radius); }

/* ---------- typografia i oddech ---------- */
.hm-section { padding: 96px 0; }
.hm-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.5px; }
.hm-sub { font-size: 16px; line-height: 1.75; }
.hm-hero-caption h2 { font-size: clamp(34px, 5.4vw, 62px); font-weight: 800; letter-spacing: -1px; }

/* ---------- mikrointerakcje kart ---------- */
.hm-problem, .hm-loc, .hm-benefit, .hm-faq details { transition: transform .35s ease, box-shadow .35s ease; }
.hm-problem:hover, .hm-loc:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(20,24,29,.14); }
.hm-btn { will-change: transform; transition: background .3s, box-shadow .3s; }
.hm-btn--red:hover { box-shadow: 0 12px 30px rgba(182,31,46,.35); }
.hm-cat { transition: all .3s cubic-bezier(.2,.8,.2,1); }
.hm-cat:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(182,31,46,.25); }
.hm-icon { transition: transform .35s ease; }
.hm-icon:hover { transform: translateY(-6px); }

/* subtelny scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f2f4; }
::-webkit-scrollbar-thumb { background: #c9ccd2; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--hm-red); }

/* ---------- ograniczony ruch: szanujemy preferencje systemowe ---------- */
@media (prefers-reduced-motion: reduce) {
  .hm-hero-slide, .hm-hero-caption { animation-duration: 0.01s !important; animation-iteration-count: 1 !important; }
  .hm-hero-slide:first-child, .hm-hero-caption:first-child { opacity: 1 !important; transform: none !important; }
  .hm-marquee-track { animation: none !important; }
  .mo-video-wrap video { display: none; }
  .hm-problem:hover, .hm-loc:hover, .hm-icon:hover, .hm-cat:hover { transform: none; }
}


/* ==================== POPRAWKI DOSTEPNOSCI (Lighthouse) ====================
   Stopka: bialy tekst na #7f7f7f mial kontrast 3.98:1 - przyciemniamy tlo
   do #676767 (kontrast > 4.6:1). */
#call-to-action { background: #676767 !important; }
