/* Poprawki ponad oryginalny motyw (Agntix/Elementor). */

/* 1. Paralaksa banerów: zdjęcie w naturalnych proporcjach (bez przycinania i bez pasków).
   Obraz jest powiększony o 8% i przesuwa się w tym zapasie (fixes.js). */
.tp-banner-img, .postbox-details-nevigation-thumb { overflow: hidden; height: auto !important; }
img.neos-parallax {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  margin: 0 !important;
  transform: scale(1.08);
  will-change: transform;
}

/* 3. Lista specjalistów: stała siatka 3 kolumn zamiast justify-content: space-between */
.des-team-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 32px;
}
.des-team-item > * { width: 100%; max-width: none !important; }
.des-team-item .tp-el-team-since { text-align: left; }
.des-team-item .des-team-title { text-align: center; margin: 0; font-size: clamp(32px, 4.6vw, 100px) !important; line-height: 1.05; }
.des-team-item .tp-el-team-desc { text-align: right; }
@media (max-width: 767px) {
  .des-team-item { grid-template-columns: 1fr; row-gap: 8px; text-align: center; }
  .des-team-item .tp-el-team-since,
  .des-team-item .tp-el-team-desc { text-align: center; }
}

/* 4. Telefony: animacje wejścia (GSAP) ukrywały treść do czasu przewinięcia/wykonania skryptów,
   co opóźniało LCP o kilka sekund. Na małych ekranach treść jest widoczna od razu. */
@media (max-width: 767px) {
  .tp_fade_anim, .tp_text_anim, .tp_text_anim *, .tp-text-revel-anim, .tp-text-revel-anim *,
  .tp_title_anim, .tp_title_anim *, .tp-char-animation, .tp-char-animation *, .elementor-invisible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
  }
}

/* 5. SEO: nagłówek przemianowany na h1 (src/lib/optimize.ts) zachowuje wygląd oryginalnego znacznika */
h1[data-neos-tag="h2"]:not([class*="title"]) { font-size: var(--tp-fs-h2, 1.5em); }
h1[data-neos-tag="h3"]:not([class*="title"]) { font-size: var(--tp-fs-h3, 1.17em); }
h1[data-neos-tag="h4"]:not([class*="title"]) { font-size: var(--tp-fs-h4, 1em); }

/* 6. Formularze wyłączone (Ustawienia serwisu): dane kontaktowe zamiast formularza */
.neos-form-off { max-width: 560px; font-family: Inter, sans-serif; color: #212121; }
.neos-form-off p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; }
.neos-form-off-row { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.neos-form-off-row span { min-width: 72px; font-weight: 600; }
.neos-form-off a:not(.neos-form-off-btn) { color: #3366cc; text-decoration: underline; }
.neos-form-off-btn { display: inline-block; padding: 12px 26px; border-radius: 2px; background: #1863dc; color: #fff !important; font-family: Poppins, sans-serif; font-weight: 500; font-size: 15px; text-decoration: none; }
.neos-form-off-btn:hover { opacity: .85; }

/* 7. Podstrony według strony głównej: szerokość treści 1320 px, typografia, liczniki */
body:not(.home) #smooth-content .e-con-boxed > .e-con-inner { max-width: 1320px !important; margin-inline: auto !important; width: 100% !important; }
body:not(.home) #smooth-content .container-1730,
body:not(.home) #smooth-content .container-1750,
body:not(.home) #smooth-content .container-1830 { max-width: 1320px !important; margin-inline: auto !important; }

/* nagłówek strony: jedna skala (Poppins 700, jak tytuły sekcji na głównej) */
body:not(.home) #smooth-content h1:not(.neos-sr) {
  font-family: Poppins, sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(40px, 5.6vw, 80px) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
}
/* teksty opisowe: Inter 18/400 jak na głównej (podstrony miały Poppins 14/600) */
body:not(.home) #smooth-content .tp-el-content:not(.elementor-17331 *),
body:not(.home) #smooth-content .tp-el-content p:not(.elementor-17331 *),
body:not(.home) #smooth-content .ar-about-us-4-title-box .tp-el-content {
  font-family: Inter, sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.56 !important;
  letter-spacing: -0.02em !important;
}
body:not(.home) #smooth-content .tp-section-subtitle { font-weight: 500 !important; }
body:not(.home) #smooth-content .tp-el-title { font-family: Poppins, sans-serif !important; }
/* liczniki: grubość jak na głównej (na podstronach 400) */
.tp-el-counter-number, .tp-el-counter-number i { font-weight: 600 !important; }
/* lista zespołu (O nas): tytuły nie wychodzą poza kolumnę */
body:not(.home) .creative-service-title { font-size: clamp(44px, 7vw, 100px) !important; letter-spacing: -0.03em !important; line-height: 1.05 !important; }
body:not(.home) #smooth-content .tp-el-desc,
body:not(.home) #smooth-content p.tp-section-title { font-family: Inter, sans-serif !important; font-size: 18px !important; font-weight: 400 !important; line-height: 1.56 !important; letter-spacing: -0.02em !important; }
body:not(.home) #smooth-content .elementor-icon-list-text { font-family: Inter, sans-serif !important; font-weight: 500 !important; }
body:not(.home) #smooth-content .tp-section-title-playfair { font-weight: 700 !important; letter-spacing: -0.02em !important; }

/* 8. Kursor (kropka): niebieski jak marka zamiast czarnego */
#magic-cursor #ball, #ball { background-color: #3366cc !important; border-color: #3366cc !important; }

/* 9. Strona główna – „Jak działamy”: stały układ siatki zamiast przesuniętych kafelków i przypiętego,
   skalowanego nagłówka (przez nie sekcja raz wyglądała dobrze, a raz miała puste miejsca i uciętą treść). */
.st-portfolio-area .st-portfolio-heading { position: static !important; transform: none !important; inset: auto !important; width: auto !important; margin-bottom: 70px !important; }
.st-portfolio-area .st-portfolio-title { transform: none !important; font-size: clamp(34px, 5.2vw, 80px) !important; line-height: 1.15 !important; text-align: center; }
.st-portfolio-area .st-portfolio-ptb, .st-portfolio-area.st-portfolio-ptb { padding-bottom: 120px !important; }
.st-portfolio-area .container-1830 {
  max-width: 1320px !important; margin-inline: auto; padding: 0 15px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 40px;
}
.st-portfolio-area .container-1830 > .row { display: contents; }
.st-portfolio-area .container-1830 > .row > [class*="col-"] { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; flex: none !important; }
.st-portfolio-area .st-portfolio-item { width: 100% !important; margin: 0 !important; }
.st-portfolio-area .st-portfolio-item-thumb { margin-bottom: 24px; }
.st-portfolio-area .st-portfolio-item-thumb img { height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; }
.st-portfolio-area .st-portfolio-item-title { font-size: clamp(24px, 2.2vw, 32px) !important; line-height: 1.15 !important; word-break: normal; overflow-wrap: normal; }
@media (max-width: 991px) { .st-portfolio-area .container-1830 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; } }
@media (max-width: 575px) { .st-portfolio-area .container-1830 { grid-template-columns: 1fr; } }
