/* Subpage "Cennik" (#cennik) — native Elementor elements; class hooks in Advanced > CSS Classes.
   Colours are also stored in each widget's Style settings so the editor matches the live page. */
.cn-section {
  --cn-bg: #093653; --cn-ink: #0e3b57; --cn-muted: #44555f; --cn-on-dark: #f4f0e7; --cn-on-dark-muted: rgba(244, 240, 231, 0.86);
  --cn-gold: #0eaef2; --cn-gold-deep: #0e76aa; --cn-card: #f5f2eb; --cn-ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Nunito Sans", "Avenir Next", Avenir, ui-sans-serif, system-ui, sans-serif; color: var(--cn-on-dark);
}
.cn-section *, .cn-section *::before, .cn-section *::after { box-sizing: border-box; }
.e-con.cn-section { display: block; padding: clamp(3.5rem, 2.4rem + 4.5vw, 5.5rem) var(--og-gutter, 24px) clamp(2.5rem, 2rem + 2vw, 3.75rem) !important; background: var(--cn-bg); text-align: left; }
.cn-section .e-con.cn-inner { display: block; width: 100%; max-width: 1408px; margin: 0 auto; }
.cn-section .elementor-heading-title { margin: 0 !important; padding: 0 !important; font-family: inherit; text-transform: none; }
.cn-section p { margin: 0 !important; }
.cn-section svg { display: block; }
.cn-section .elementor-button-icon svg, .cn-section .elementor-button-icon svg *, .cn-section .elementor-icon svg, .cn-section .elementor-icon svg * { fill: none !important; }
.cn-section a:focus-visible { outline: 2px solid var(--cn-gold) !important; outline-offset: 4px; }

/* ---------- Top grid ---------- */
.cn-section .e-con.cn-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2.5rem, 1rem + 4vw, 4.5rem); }
.cn-section .e-con.cn-main { display: block; padding: 0 0 0 clamp(0rem, 1vw, 0.75rem); }
.cn-section .cn-eyebrow .elementor-heading-title { display: inline-flex; align-items: center; gap: 1rem; margin: 0 0 1.75rem !important; font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cn-on-dark); }
.cn-section .cn-eyebrow .elementor-heading-title::before { content: ""; width: 0.8rem; height: 0.8rem; border: 2.5px solid var(--cn-gold); border-radius: 50%; }
.cn-section .cn-title .elementor-heading-title { margin: 0 0 clamp(1.75rem, 1.2rem + 1.8vw, 3.25rem) !important; font-size: clamp(2.375rem, 1.1rem + 3.2vw, 4.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; color: #fff; }
.cn-section .cn-title .elementor-heading-title span:not(.split-word) { color: var(--cn-gold); }
.cn-section .cn-text p { max-width: 40rem; font-size: clamp(1.0625rem, 0.99rem + 0.3vw, 1.25rem); line-height: 1.65; color: var(--cn-on-dark-muted); }
.cn-section .cn-text p + p { margin-top: 1.4rem !important; }
.cn-section .cn-text strong { font-weight: 700; color: #fff; }

/* Actions */
.cn-section .e-con.cn-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem 2.25rem; margin-top: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.cn-section .cn-call { width: auto; }
.cn-section .cn-call .elementor-button { display: inline-flex; align-items: center; min-height: 4.25rem; padding: 0.9rem 2rem; border: 0; border-radius: 999px; background: linear-gradient(180deg, #0eaef2, #0eaef2); box-shadow: 0 14px 30px -18px rgba(14, 174, 242, 0.9); font-family: inherit; font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.3125rem); font-weight: 700; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--cn-bg); transition: transform 0.25s var(--cn-ease), filter 0.25s var(--cn-ease); }
.cn-section .cn-call .elementor-button-content-wrapper { gap: 1rem; align-items: center; }
.cn-section .cn-call .elementor-button-icon { margin: 0 !important; }
.cn-section .cn-call .elementor-button-icon svg { width: 1.5rem; height: 1.5rem; }
.cn-section .cn-call .elementor-button-icon svg * { stroke: var(--cn-bg); stroke-width: 2; }
.cn-section .cn-more { width: auto; }
.cn-section .cn-more .elementor-button { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 !important; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-family: inherit; font-size: 0.9375rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cn-on-dark); transition: color 0.25s var(--cn-ease); }
.cn-section .cn-more .elementor-button-content-wrapper { gap: 1.25rem; align-items: center; }
.cn-section .cn-more .elementor-button-text { padding-bottom: 0.4rem; border-bottom: 2px solid var(--cn-gold); }
.cn-section .cn-more .elementor-button-icon { margin: 0 !important; }
.cn-section .cn-more .elementor-button-icon svg { width: 1.25rem; height: 1.25rem; transition: transform 0.3s var(--cn-ease); }
.cn-section .cn-more .elementor-button-icon svg * { stroke: var(--cn-on-dark); }

/* ---------- Aside: photo + factors ---------- */
.cn-section .e-con.cn-aside { display: block; }
.cn-section .cn-photo { margin: 0 0 clamp(1.5rem, 1.2rem + 0.8vw, 2rem) !important; overflow: hidden; border-radius: 16px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.7); }
.cn-section .cn-photo img { display: block; width: 100% !important; height: auto !important; max-width: none; aspect-ratio: 2 / 1; object-fit: cover; object-position: 55% 50%; transition: transform 1.1s var(--cn-ease); }
.cn-section .cn-subtitle .elementor-heading-title { margin: 0 0 1.25rem !important; font-size: clamp(1.625rem, 1.25rem + 1vw, 2.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: #fff; }
.cn-section .e-con.cn-factors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.cn-section .e-con.cn-factor { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); align-items: start; column-gap: 1.25rem; padding: 1.5rem 1.5rem 1.6rem !important; border-radius: 14px; background: var(--cn-card); box-shadow: 0 18px 36px -30px rgba(0, 0, 0, 0.6); transition: transform 0.4s var(--cn-ease); }
.cn-section .cn-factor__icon { width: auto; margin: 0.15rem 0 0; line-height: 0; }
.cn-section .cn-factor__icon .elementor-icon-wrapper { line-height: 0; }
.cn-section .cn-factor__icon .elementor-icon { display: block; font-size: 3.25rem; line-height: 0; color: var(--cn-gold-deep); }
.cn-section .cn-factor__icon .elementor-icon svg { width: 3.25rem; height: 3.25rem; }
.cn-section .cn-factor__icon .elementor-icon svg * { stroke: var(--cn-gold-deep) !important; }
.cn-section .e-con.cn-factor__copy { display: block; }
.cn-section .cn-factor__title .elementor-heading-title { margin: 0 0 0.45rem !important; font-size: clamp(1.1875rem, 1.1rem + 0.3vw, 1.375rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--cn-ink); }
.cn-section .cn-factor__text p { font-size: 1rem; line-height: 1.55; color: var(--cn-muted); }

/* ---------- Notes ---------- */
.cn-section .e-con.cn-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 3rem; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem) clamp(0rem, 1vw, 1rem) 0 !important; border-top: 1.5px solid rgba(14, 174, 242, 0.75); }
.cn-section .e-con.cn-note { display: flex; flex-direction: row; align-items: center; gap: 1.5rem; }
.cn-section .cn-note__icon { width: auto; flex: none; line-height: 0; }
.cn-section .cn-note__icon .elementor-icon-wrapper { line-height: 0; }
.cn-section .cn-note__icon .elementor-icon { display: block; font-size: 3rem; line-height: 0; color: var(--cn-gold); }
.cn-section .cn-note__icon .elementor-icon svg { width: 3rem; height: 3rem; }
.cn-section .cn-note__icon .elementor-icon svg * { stroke: var(--cn-gold) !important; }
.cn-section .cn-note__text p { font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1875rem); line-height: 1.5; color: var(--cn-on-dark); }

/* ---------- Hover (fine pointers) ---------- */
@media (hover: hover) and (pointer: fine) {
  .cn-section .cn-call .elementor-button:hover { transform: translateY(-2px); filter: brightness(1.05); color: var(--cn-bg); }
  .cn-section .cn-more .elementor-button:hover { color: var(--cn-gold); }
  .cn-section .cn-more .elementor-button:hover svg { transform: translateX(4px); }
  .cn-section .cn-more .elementor-button:hover svg * { stroke: var(--cn-gold); }
  .cn-section .cn-aside:hover .cn-photo img { transform: scale(1.03); }
  .cn-section .e-con.cn-factor:hover { transform: translateY(-3px); }
}
.cn-section .cn-call .elementor-button:active { transform: scale(0.985); }

/* ---------- Entrance (opt-in by us.js) ---------- */
.cn-section.us-motion .us-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--cn-ease), transform 0.7s var(--cn-ease); }
.cn-section.us-motion .cn-aside.us-reveal { transition-delay: 100ms; }
.cn-section.us-motion .us-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .cn-section .e-con.cn-grid { grid-template-columns: minmax(0, 1fr); }
  .cn-section .e-con.cn-main { padding: 0; }
  .cn-section .cn-text p { max-width: 44rem; }
}
/* ---------- Mobile ---------- */
@media (max-width: 679px) {
  .cn-section .cn-title .elementor-heading-title br { display: none; }
  .cn-section .cn-eyebrow .elementor-heading-title { margin-bottom: 1.1rem !important; font-size: 12px; }
  .cn-section .e-con.cn-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .cn-section .cn-call, .cn-section .cn-call .elementor-button { width: 100%; }
  .cn-section .cn-call .elementor-button { justify-content: center; min-height: 3.5rem; padding: 0.9rem 1.5rem; }
  .cn-section .cn-more { align-self: center; }
  .cn-section .cn-more .elementor-button { font-size: 0.8125rem; letter-spacing: 0.14em; }
  .cn-section .cn-photo { border-radius: 12px; }
  .cn-section .cn-photo img { aspect-ratio: 16 / 10; }
  .cn-section .e-con.cn-factors { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .cn-section .e-con.cn-factor { grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 1rem; padding: 1.15rem 1.15rem 1.25rem !important; border-radius: 12px; }
  .cn-section .cn-factor__icon .elementor-icon svg { width: 2.75rem; height: 2.75rem; }
  .cn-section .e-con.cn-notes { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .cn-section .e-con.cn-note { gap: 1rem; }
  .cn-section .cn-note__icon .elementor-icon svg { width: 2.5rem; height: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cn-section *, .cn-section *::before, .cn-section *::after { transition: none !important; animation: none !important; }
  .cn-section.us-motion .us-reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Flat variant: no photo, divided columns, boxed notes ---------- */
.cn-section--flat .e-con.cn-grid { align-items: start; gap: clamp(2.5rem, 1rem + 3vw, 4rem); }
.cn-section--flat .e-con.cn-aside { padding-left: clamp(2rem, 1rem + 2.5vw, 3.75rem); border-left: 1px solid rgba(14, 174, 242, 0.35); }
.cn-section--flat .cn-subtitle .elementor-heading-title { margin: 0 0 1.4rem !important; }
.cn-section--flat .e-con.cn-factor { display: block; padding: 1.5rem 1.5rem 1.7rem !important; }
.cn-section--flat .cn-factor__icon { margin: 0 0 1.1rem; }
.cn-section .e-con.cn-notes--boxed { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding: clamp(1.25rem, 1rem + 1vw, 1.9rem) clamp(1.25rem, 0.8rem + 2vw, 3rem) !important; border: 1px solid rgba(14, 174, 242, 0.35); border-radius: 20px; }
@media (max-width: 1023px) { .cn-section--flat .e-con.cn-aside { padding-left: 0; border-left: 0; } }
@media (max-width: 679px) { .cn-section--flat .e-con.cn-factor { padding: 1.15rem 1.15rem 1.25rem !important; } .cn-section--flat .cn-factor__icon { margin-bottom: 0.75rem; } }

/* --- Flat variant: long headline + one-line factor titles --- */
.cn-section--long .cn-title .elementor-heading-title { font-size: clamp(2.25rem, 1rem + 2.9vw, 3.75rem); }
.cn-section--flat .e-con.cn-factor { padding: 1.5rem 1.35rem 1.7rem !important; }
.cn-section--flat .cn-factor__title .elementor-heading-title { font-size: clamp(1.125rem, 1.04rem + 0.3vw, 1.25rem); letter-spacing: -0.02em; }
@media (max-width: 679px) {
  .cn-section--flat .e-con.cn-factor { padding: 1.15rem 1.15rem 1.25rem !important; }
}

/* --- Flat variant: balance the columns so the aside fills the copy column's height --- */
@media (min-width: 1024px) {
  .cn-section--flat .e-con.cn-grid { align-items: stretch; }
  .cn-section--flat .e-con.cn-aside { display: flex; flex-direction: column; }
  .cn-section--flat .e-con.cn-factors { flex: 1 1 auto; grid-auto-rows: 1fr; }
  .cn-section--flat .e-con.cn-factor { display: flex; flex-direction: column; justify-content: center; }
}

/* ---------- Wide variant: copy + photo on top, full-width factor row below ---------- */
.cn-section--wide .e-con.cn-grid { align-items: center; gap: clamp(2.5rem, 1rem + 3.5vw, 4.5rem); }
.cn-section--wide .cn-eyebrow .elementor-heading-title { display: flex; align-items: center; gap: 1rem; }
.cn-section--wide .cn-eyebrow .elementor-heading-title::after { content: ""; flex: 1 1 auto; height: 1px; background: rgba(14, 174, 242, 0.5); }
.cn-section--wide .e-con.cn-media { display: block; }
.cn-section--wide .cn-photo { margin: 0 !important; border-radius: 18px; }
.cn-section--wide .cn-photo img { aspect-ratio: 1.45; object-position: 50% 50%; }
.cn-section--wide .e-con.cn-band { display: block; margin-top: clamp(2.75rem, 2rem + 2.5vw, 4rem); }
.cn-section--wide .cn-subtitle .elementor-heading-title { display: flex; align-items: center; gap: clamp(1.25rem, 0.5rem + 2vw, 2.5rem); margin: 0 0 clamp(1.25rem, 1rem + 0.6vw, 1.75rem) !important; }
.cn-section--wide .cn-subtitle .elementor-heading-title::after { content: ""; flex: 1 1 auto; height: 1px; background: rgba(14, 174, 242, 0.5); }
.cn-section--wide .e-con.cn-factors { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; }
.cn-section--wide .e-con.cn-factor { display: flex; flex-direction: column; padding: 1.6rem 1.5rem 1.75rem !important; border-radius: 16px; }
.cn-section--wide .cn-factor__icon { margin: 0 0 clamp(1.1rem, 0.8rem + 0.8vw, 1.6rem); }
.cn-section--wide .cn-factor__title .elementor-heading-title { margin: 0 0 0.55rem !important; font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem); letter-spacing: -0.015em; }
.cn-section--wide .e-con.cn-factor { padding: 1.6rem 1.4rem 1.75rem !important; }
.cn-section--wide .cn-factor__text p { font-size: 0.9375rem; line-height: 1.6; }
.cn-section--wide .e-con.cn-note + .e-con.cn-note { padding-left: clamp(1.5rem, 0.5rem + 2vw, 3rem); border-left: 1px solid rgba(14, 174, 242, 0.35); }
.cn-section--wide .cn-note__text p { font-size: 1rem; }
.cn-section--wide .cn-note__icon .elementor-icon svg { width: 2.5rem; height: 2.5rem; }
@media (hover: hover) and (pointer: fine) {
  .cn-section--wide .cn-media:hover .cn-photo img { transform: scale(1.03); }
}
@media (max-width: 1279px) {
  .cn-section--wide .e-con.cn-factors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .cn-section--wide .cn-photo img { aspect-ratio: 16 / 9; }
  .cn-section--wide .e-con.cn-factors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 679px) {
  .cn-section--wide .cn-eyebrow .elementor-heading-title::after, .cn-section--wide .cn-subtitle .elementor-heading-title::after { display: none; }
  .cn-section--wide .cn-photo { border-radius: 12px; }
  .cn-section--wide .e-con.cn-factors { grid-template-columns: minmax(0, 1fr); }
  .cn-section--wide .e-con.cn-factor { padding: 1.15rem 1.15rem 1.35rem !important; }
  .cn-section--wide .cn-factor__icon { margin-bottom: 0.85rem; }
  .cn-section--wide .e-con.cn-note + .e-con.cn-note { padding-left: 0; border-left: 0; }
}

/* --- Wide variant: headline fits two lines, photo fills the copy column's height --- */
.cn-section--wide .cn-title .elementor-heading-title { font-size: clamp(2.125rem, 0.9rem + 2.7vw, 3.5rem); }
@media (min-width: 1024px) {
  .cn-section--wide .e-con.cn-grid { align-items: stretch; }
  .cn-section--wide .e-con.cn-media { display: flex; }
  .cn-section--wide .cn-photo { position: relative; flex: 1 1 auto; min-height: 26rem; }
  .cn-section--wide .cn-photo > img, .cn-section--wide .cn-photo > .elementor-widget-container { position: absolute; inset: 0; }
  .cn-section--wide .cn-photo img { width: 100% !important; height: 100% !important; aspect-ratio: auto; object-fit: cover; }
}

/* --- Wide variant: stack the copy and the photo below 1200px so the photo stays landscape --- */
@media (max-width: 1199px) {
  .cn-section--wide .e-con.cn-grid { grid-template-columns: minmax(0, 1fr); align-items: start; gap: clamp(2rem, 1rem + 2.5vw, 3rem); }
  .cn-section--wide .e-con.cn-main { padding: 0; }
  .cn-section--wide .e-con.cn-media { display: block; }
  .cn-section--wide .cn-photo { position: static; min-height: 0; }
  .cn-section--wide .cn-photo > img { position: static; height: auto !important; aspect-ratio: 16 / 9; }
  .cn-section--wide .cn-text p { max-width: 46rem; }
}
