/* Homepage "Ekipa i samochody" (#ekipa) — 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. */
.ek-section {
  --ek-bg: #f7f5f0; --ek-ink: #0e3b57; --ek-teal: #093653; --ek-muted: #44555f; --ek-gold: #0e76aa; --ek-gold-soft: #0eaef2;
  --ek-line: #e2ded7; --ek-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(--ek-ink);
}
.ek-section *, .ek-section *::before, .ek-section *::after { box-sizing: border-box; }
.e-con.ek-section { display: block; padding: clamp(3.5rem, 2.4rem + 4.5vw, 6.5rem) var(--og-gutter, 24px) !important; background: var(--ek-bg); text-align: left; }
.ek-section .e-con.ek-inner { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); align-items: stretch; gap: clamp(2.5rem, 1rem + 3.5vw, 4rem); width: 100%; max-width: 1456px; margin: 0 auto; }
.ek-section .elementor-heading-title { margin: 0 !important; padding: 0 !important; font-family: inherit; text-transform: none; }
.ek-section p { margin: 0 !important; }
.ek-section svg { display: block; }
.ek-section .elementor-button-icon svg, .ek-section .elementor-button-icon svg * { fill: none !important; }
.ek-section a:focus-visible { outline: 2px solid var(--ek-ink) !important; outline-offset: 4px; }

/* ---------- Photo ---------- */
.ek-section .e-con.ek-media { position: relative; display: block; min-height: 34rem; border-radius: 18px; overflow: hidden; background: #dcd7cf; box-shadow: 0 30px 60px -40px rgba(14, 59, 87, 0.55); }
.ek-section .ek-photo { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.ek-section .ek-photo img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: 50% 62%; transition: transform 1.1s var(--ek-ease); }

/* ---------- Copy ---------- */
.ek-section .e-con.ek-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(0.5rem, 0.2rem + 1.2vw, 2.25rem) 0 !important; }
.ek-section .ek-title .elementor-heading-title { margin: 0 0 1.6rem !important; font-size: clamp(2.25rem, 1.05rem + 3.2vw, 4.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; color: var(--ek-ink); text-wrap: balance; }
.ek-section .ek-title .elementor-heading-title span:not(.split-word) { color: var(--ek-gold); }
.ek-section .ek-lead p { max-width: 44rem; margin: 0 0 clamp(1.75rem, 1.4rem + 1vw, 2.25rem) !important; font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.375rem); line-height: 1.6; color: var(--ek-muted); }

/* ---------- Tier cards ---------- */
.ek-section .e-con.ek-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(0.875rem, 0.6rem + 0.8vw, 1.25rem); }
.ek-section .e-con.ek-tier { display: flex; flex-direction: column; padding: clamp(1.5rem, 1.1rem + 1vw, 2.1rem) !important; border: 1px solid var(--ek-line); border-radius: 18px; background: #fff; box-shadow: 0 18px 40px -34px rgba(14, 59, 87, 0.45); transition: transform 0.45s var(--ek-ease), box-shadow 0.45s var(--ek-ease); }
.ek-section .e-con.ek-tier--xl { border-color: var(--ek-teal); background: var(--ek-teal); }
.ek-section .ek-tier__icon { width: auto; margin: 0 0 1.4rem; line-height: 0; }
.ek-section .ek-tier__icon .elementor-icon { display: block; font-size: 3.25rem; line-height: 0; color: var(--ek-gold); }
.ek-section .ek-tier__icon .elementor-icon svg { width: clamp(3.25rem, 2.6rem + 1.3vw, 4.25rem); height: auto; fill: none !important; }
.ek-section .ek-tier__icon .elementor-icon svg * { fill: none !important; stroke: var(--ek-gold) !important; }
.ek-section .ek-tier--xl .ek-tier__icon .elementor-icon svg * { stroke: var(--ek-gold-soft) !important; }
.ek-section .ek-tier__label .elementor-heading-title { margin: 0 0 0.9rem !important; font-size: 0.8125rem; font-weight: 700; line-height: 1.4; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ek-gold); }
.ek-section .ek-tier--xl .ek-tier__label .elementor-heading-title { color: var(--ek-gold-soft); }
.ek-section .ek-tier__title .elementor-heading-title { padding: 0 0 1.25rem !important; margin: 0 0 1.25rem !important; border-bottom: 1px solid var(--ek-line); font-size: clamp(1.625rem, 1.2rem + 1.1vw, 2.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--ek-ink); }
.ek-section .ek-tier--xl .ek-tier__title .elementor-heading-title { border-bottom-color: rgba(255, 255, 255, 0.28); color: #fff; }
.ek-section .ek-tier__text p { font-size: clamp(0.975rem, 0.93rem + 0.2vw, 1.0625rem); line-height: 1.6; color: var(--ek-muted); }
.ek-section .ek-tier--xl .ek-tier__text p { color: rgba(255, 255, 255, 0.86); }

/* ---------- Actions ---------- */
.ek-section .e-con.ek-actions { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; margin-top: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.ek-section .ek-call { width: auto; }
.ek-section .ek-call .elementor-button { display: inline-flex; align-items: center; min-height: 4rem; padding: 0.9rem 2.5rem; border: 0; border-radius: 999px; background: var(--ek-teal); box-shadow: 0 14px 30px -18px rgba(9, 54, 83, 0.8); font-family: inherit; font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem); font-weight: 700; line-height: 1.2; letter-spacing: 0; text-transform: none; color: #fff; transition: transform 0.25s var(--ek-ease), background 0.25s var(--ek-ease); }
.ek-section .ek-call .elementor-button-content-wrapper { gap: 1rem; align-items: center; }
.ek-section .ek-call .elementor-button-icon { margin: 0 !important; }
.ek-section .ek-call .elementor-button-icon svg { width: 1.4rem; height: 1.4rem; }
.ek-section .ek-call .elementor-button-icon svg * { stroke: #fff; }
.ek-section .ek-write { width: auto; }
.ek-section .ek-write .elementor-button { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.35rem 0 !important; border: 0; border-bottom: 1.5px solid var(--ek-ink); border-radius: 0; background: transparent; font-family: inherit; font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem); font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ek-ink); transition: color 0.25s var(--ek-ease), border-color 0.25s var(--ek-ease); }
.ek-section .ek-write .elementor-button-content-wrapper { gap: 1.25rem; align-items: center; }
.ek-section .ek-write .elementor-button-icon { margin: 0 !important; }
.ek-section .ek-write .elementor-button-icon svg { width: 1.25rem; height: 1.25rem; transition: transform 0.3s var(--ek-ease); }

/* ---------- Hover (fine pointers) ---------- */
@media (hover: hover) and (pointer: fine) {
  .ek-section .e-con.ek-media:hover .ek-photo img { transform: scale(1.03); }
  .ek-section .e-con.ek-tier:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(14, 59, 87, 0.6); }
  .ek-section .ek-call .elementor-button:hover { transform: translateY(-2px); background: #072a40; color: #fff; }
  .ek-section .ek-write .elementor-button:hover { color: var(--ek-gold); border-bottom-color: var(--ek-gold); }
  .ek-section .ek-write .elementor-button:hover svg { transform: translate(2px, -2px); }
}
.ek-section .ek-call .elementor-button:active { transform: scale(0.985); }

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

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .ek-section .e-con.ek-inner { grid-template-columns: minmax(0, 1fr); }
  .ek-section .e-con.ek-media { min-height: 0; aspect-ratio: 16 / 10; }
  .ek-section .ek-photo img { object-position: 50% 68%; }
  .ek-section .e-con.ek-body { padding: 0 !important; }
}
/* ---------- Mobile ---------- */
@media (max-width: 599px) {
  .ek-section .e-con.ek-inner { gap: 2rem; }
  .ek-section .e-con.ek-media { aspect-ratio: 4 / 3; border-radius: 14px; }
  .ek-section .ek-title .elementor-heading-title { margin-bottom: 1.1rem !important; }
  .ek-section .e-con.ek-tiers { grid-template-columns: minmax(0, 1fr); }
  .ek-section .e-con.ek-tier { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 1rem; padding: 1.35rem 1.25rem !important; border-radius: 14px; }
  .ek-section .ek-tier__icon { grid-column: 1; grid-row: 1 / span 3; margin: 0.1rem 0 0; }
  .ek-section .ek-tier__icon .elementor-icon svg { width: 2.75rem; }
  .ek-section .ek-tier__label, .ek-section .ek-tier__title, .ek-section .ek-tier__text { grid-column: 2; }
  .ek-section .ek-tier__label .elementor-heading-title { margin-bottom: 0.4rem !important; font-size: 0.75rem; }
  .ek-section .ek-tier__title .elementor-heading-title { padding-bottom: 0.8rem !important; margin-bottom: 0.8rem !important; font-size: 1.5rem; }
  .ek-section .ek-tier__title br { display: none; }
  .ek-section .e-con.ek-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .ek-section .ek-call, .ek-section .ek-call .elementor-button { width: 100%; }
  .ek-section .ek-call .elementor-button { justify-content: center; min-height: 3.5rem; padding: 0.9rem 1.5rem; }
  .ek-section .ek-write { align-self: center; }
  .ek-section .ek-write .elementor-button { min-height: 3rem; }
}

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