/* =====================================================================
   tomekplata.com – strona główna (O mnie)
   Breakpoints copied from the original Elementor setup:
     desktop >= 1401px, tablet 801–1400px, mobile <= 800px
     header: full menu >= 992px (zoomed to 84% between 992 and 1260px)
   Deliberate mobile-only improvements live in the "<= 767px" blocks.
   ===================================================================== */

/* === SHARED: base, header, buttons, pills, footer – keep identical in every page CSS === */

:root {
  --navy: #0E293E;
  --navy-text: #0c293e;
  --orange: #F87034;
  --orange-dark: #f4570e;
  --beige: #F3DFB4;
  --cream: #FFEECD;
  --hover-navy: #00002b;
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--navy-text);
  font-family: 'Sarabun', 'Sarabun Fallback', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
source { display: none; }

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; }

/* Background layers. ".bg--fixed" imitates background-attachment: fixed on desktop:
   the image is position:fixed and clipped to its section (works in Chromium and WebKit). */
.bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bg img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1401px) {
  .bg--fixed { clip-path: inset(0); }
  .bg--fixed img { position: fixed; inset: 0; width: 100%; height: 100%; }
}

/* ---------- header ---------- */
.site-header { position: relative; z-index: 1000; height: 91px; }
.header-bar {
  position: absolute; top: 0; left: 0; right: 0;
  background: #fff;
  color: #222;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  margin-top: 1px;
}
.site-header--transparent .header-bar {
  background: transparent;
  color: #fff;
  box-shadow: none;
  margin-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}
.site-logo { display: flex; align-items: center; height: 90px; flex: none; }
.site-logo img { width: auto; max-height: 50px; margin-top: -2px; }
.site-logo__dark { display: none; }
.site-header--transparent .site-logo__light img { display: block; }
.site-header--transparent .site-logo__dark img { display: none; }
.site-header:not(.site-header--transparent) .site-logo__light img { display: none; }
.site-header:not(.site-header--transparent) .site-logo__dark img { display: block; }
.site-logo__light, .site-logo__dark { display: contents; } /* logo: vector SVG from the original brand files (owner decision 03.10.2026) */

.header-social { display: flex; align-items: center; margin-left: 23px; }
.header-social__link,
.site-nav__social a {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 30px;
  opacity: 0.8;
  transition: opacity 0.15s ease-out;
}
.header-social__link:hover, .site-nav__social a:hover { opacity: 1; }
.header-social__link svg, .site-nav__social svg { width: 16px; height: 16px; fill: currentColor; }
.header-social__link svg[viewBox^="0 -850 857"], .site-nav__social svg[viewBox^="0 -850 857"] { width: 13.7px; }
.header-social__link svg[viewBox^="0 -850 500"], .site-nav__social svg[viewBox^="0 -850 500"] { width: 8px; }
/* equal VISIBLE gaps between icons of different widths (owner feedback 03.10.2026):
   the box hugs the icon and the padding defines the gap (10px in the header, 36px in the mobile menu) */
.header-social__link { width: auto; padding: 0 5px; }

.menu-toggle { display: none; }

.site-nav { margin-left: auto; display: flex; }
.site-nav__social { display: none; }
.site-nav__list { display: flex; padding-right: 32px; font-size: 18px; font-weight: 500; }
.site-nav__list li { position: relative; margin: 0 -2px; height: 90px; }
.site-nav__list li::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -1px; right: -1px;
  border-right: 1px solid currentColor;
  opacity: 0.12;
  pointer-events: none;
  transition: opacity 0.2s;
}
.site-nav__list li:first-child::after { border-left: 1px solid currentColor; }
.site-header--transparent .site-nav__list li::after { opacity: 0.2; }
.site-nav__list a { display: block; height: 100%; line-height: 90px; }
.site-nav__list span {
  position: relative; z-index: 10;
  display: inline-block;
  padding: 0 16px;
  transition: color 0.4s;
}
/* "ribbon" hover / current item */
.site-nav__list span::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 0;
  z-index: -1;
  background: var(--hover-navy);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 15px), 0 100%);
  transition: height 0.3s;
}
.site-nav__list a:hover span, .site-nav__list a:focus-visible span, .site-nav__list .is-current span { color: #fff; }
.site-nav__list a:hover span::before, .site-nav__list a:focus-visible span::before { height: 115px; }
.site-nav__list .is-current span::before { height: 115px; background: var(--orange-dark); }

/* sticky header (class set by main.js after scrolling) */
.site-header.is-stuck .header-bar {
  position: fixed;
  margin-top: 0;
  background: #fff;
  color: #222;
  border-bottom: 0;
  box-shadow: 0 6px 15px rgba(17, 17, 17, 0.12);
  transition: background 0.4s;
}
.site-header.is-stuck .site-logo__light img { display: none; }
.site-header.is-stuck .site-logo__dark img { display: block; }
.site-header.is-stuck .site-nav__list li::after { opacity: 0.12; }
.site-header.is-compact .site-logo,
.site-header.is-compact .site-nav__list li { height: 65px; }
.site-header.is-compact .site-nav__list a { line-height: 65px; }
.site-header.is-compact .site-nav__list a:hover span::before,
.site-header.is-compact .site-nav__list .is-current span::before { height: 90px; }
.site-header.is-compact .site-logo img { margin-top: 0; }
.site-header .site-logo, .site-header .site-nav__list li, .site-header .site-nav__list a { transition: height 0.3s, line-height 0.3s; }

@media (min-width: 992px) and (max-width: 1260px) {
  .site-logo, .header-social, .site-nav { zoom: 0.84; }
  /* zoomed bar is 75.6px + 1px margin (original: sub-page content starts at 76.6px) */
  .site-header:not(.site-header--transparent) { height: 76.6px; }
}

@media (max-width: 991px) {
  .site-header { height: 51px; }
  .site-header--transparent { height: 51px; }
  .header-inner { width: 90%; align-items: center; flex-wrap: wrap; }
  .menu-toggle {
    display: block;
    position: relative;
    width: 52px; height: 50px;
    margin-left: -16px;
    color: var(--beige);
  }
  .menu-toggle__lines,
  .menu-toggle__lines::before,
  .menu-toggle__lines::after {
    position: absolute;
    left: 16px; top: 47%;
    width: 16px; height: 2px;
    background: currentColor;
    transition: background 0.6s, transform 0.6s;
  }
  .menu-toggle__lines::before, .menu-toggle__lines::after { content: ""; left: 0; transform-origin: 4px center; }
  .menu-toggle__lines::before { top: 6px; }
  .menu-toggle__lines::after { top: -6px; }
  .site-logo { order: 1; height: 50px; margin-left: -4px; }
  .site-logo img { max-height: 26px; margin-top: -1px; }
  .header-social { display: none; }
  .menu-toggle { order: 0; }
  .site-nav { display: none; order: 2; flex-basis: 100%; flex-direction: column; margin: 0; padding-bottom: 60px; }
  .site-nav__list { display: block; padding: 36px 0; font-size: 18px; font-weight: 400; letter-spacing: 1px; line-height: 27px; }
  .site-nav__list li { margin: 0; height: auto; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
  .site-nav__list li::after { display: none; }
  .site-nav__list a { padding: 18px 0; line-height: 27px; }
  .site-nav__list span { padding: 0; }
  .site-nav__list span::before { display: none; }
  .site-nav__list a:hover span, .site-nav__list .is-current span { color: inherit; }
  .site-nav__social { display: flex; justify-content: center; padding: 20px 0 32px; }

  .site-header.is-stuck .header-bar { box-shadow: 0 6px 15px rgba(17, 17, 17, 0.12); }
  .site-header.is-compact .site-logo { height: 50px; }

  /* open mobile menu */
  .site-header.menu-open .header-bar { position: absolute; background: #fff; color: #222; }
  .site-header.menu-open.is-stuck .header-bar { position: fixed; }
  .site-header.menu-open .site-nav { display: flex; }
  .site-header.menu-open .site-logo__light img { display: none; }
  .site-header.menu-open .site-logo__dark img { display: block; }
  .site-header.menu-open .menu-toggle { color: rgba(243, 223, 180, 0.5); }
  .site-header.menu-open .menu-toggle__lines { background: transparent; }
  .site-header.menu-open .menu-toggle__lines::before { top: 0; transform-origin: center; transform: rotate(45deg); }
  .site-header.menu-open .menu-toggle__lines::after { top: 0; transform-origin: center; transform: rotate(-45deg); }
}
html.menu-locked, html.menu-locked body { overflow: hidden; }

/* ---------- pills, section heads, buttons ---------- */
.pill {
  display: inline-block;
  padding: 12px 24px;
  margin-bottom: 4px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.pill--navy { background: var(--navy); color: #fff; }
.pill--beige { background: var(--beige); color: var(--navy); }
.pill--cream { background: var(--cream); color: var(--navy); }
.pill--link a { color: inherit; }

.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.section-title {
  margin-bottom: 20px;
  color: var(--navy);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
}
.section-title--light { color: #fff; }
.section-title--black { color: #000; }
.section-lead {
  font-size: 18px;
  font-weight: 600;
  line-height: 19.6px;
}
.section-lead--light { color: #fff; }
.section-lead--grey { color: #6B6B6B; } /* owner decision 03.10.2026: was #919191 (contrast 3.2:1) */

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 19.6px;
  color: #fff;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}
.btn--orange { background: var(--orange); }
.btn--orange:hover, .btn--orange:focus-visible { background: var(--orange); color: #fff; }
.btn--shadow { text-shadow: 0 0 10px rgba(0, 0, 0, 0.3); }

@media (max-width: 1400px) {
  .pill { font-size: 11px; letter-spacing: 3px; }
  .section-lead { line-height: 1; }
}
@media (max-width: 800px) {
  .section-title { font-size: 30px; }
  .section-lead { font-size: 14px; }
}

/* ---------- footer (Elementor section repeated on every page) ---------- */
.site-footer { position: relative; padding: 6% 0; overflow: hidden; }
.site-footer__bg img { object-position: 50% 0; }
.site-footer__inner { position: relative; z-index: 1; max-width: 500px; margin: 0 auto; padding-top: 36px; text-align: center; }
.footer-social { display: flex; justify-content: center; gap: 10px; margin-bottom: 52px; }
.footer-social__link {
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #fff;
  transition: background-color 0.3s;
}
.footer-social__link:hover, .footer-social__link:focus-visible { background: var(--orange); }
.footer-social__link svg { width: 16px; height: 16px; fill: #2a344f; }
.site-footer__copy { color: rgba(255, 255, 255, 0.78); font-size: 14px; line-height: 1.5; }
@media (max-width: 1400px) { .site-footer { padding: 8% 5%; } }
@media (max-width: 800px) { .site-footer { padding: 12% 5%; } }

/* ---------- entrance animations (Elementor fadeInUp / fadeInDown / slideInUp) ----------
   Content is always visible without JS and with prefers-reduced-motion.
   main.js adds .anim-ready to <html> and .is-in to elements entering the viewport. */
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -100%, 0); } to { opacity: 1; transform: none; } }
@keyframes slideInUp { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .anim-ready .reveal:not(.is-in):not(.is-done) { opacity: 0; }
  .anim-ready .reveal[data-anim="slideInUp"]:not(.is-in):not(.is-done) { opacity: 1; visibility: hidden; }
  .reveal.is-in { animation: 1.25s both; animation-delay: var(--delay, 0ms); }
  .reveal.is-in[data-anim="fadeInUp"] { animation-name: fadeInUp; }
  .reveal.is-in[data-anim="fadeInDown"] { animation-name: fadeInDown; }
  .reveal.is-in[data-anim="slideInUp"] { animation-name: slideInUp; }
}

/* ---------- QA fixes (see FIXES-qa.md) ---------- */
/* logo: width and height were both "auto", so its box had no size until the file arrived (layout
   shift of the header icons); explicit height = the size it always rendered at (aspect from attributes) */
.site-logo img { height: 50px; }
@media (max-width: 1024px) { .site-logo img { height: 41.72px; } }
/* keyboard focus / anchor jumps never end under the fixed (sticky) header */
html { scroll-padding-top: 100px; }
@media (max-width: 991px) { html { scroll-padding-top: 70px; } }
/* pill that is a link: the whole pill is clickable, not only the 15px-high text */
.pill--link { position: relative; }
.pill--link a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
@media (max-width: 991px) {
  /* open mobile menu taller than a landscape phone: let it scroll instead of cutting off links */
  .site-header.menu-open .header-bar { max-height: 100vh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 767px) {
  /* social icons in the mobile menu: 24x30px tap targets -> 44x44px */
  .site-nav__social a { width: auto; min-width: 44px; height: 44px; padding: 0 18px; }
  /* section leads: bold 14px text with line-height 1 – lines touched each other */
  .section-lead { line-height: 1.35; }
}


/* ---------- footer legal links + cookie consent banner (owner decision 03.10.2026) ---------- */
.site-footer__legal { margin-top: 10px; color: rgba(255, 255, 255, 0.78); font-size: 13px; line-height: 1.5; }
.site-footer__legal a, .site-footer__cookies { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }
.site-footer__legal a:hover, .site-footer__cookies:hover { color: #fff; }
.site-footer__sep { margin: 0 8px; }
.site-footer__cookies[hidden] { display: none; }
.site-footer__legal:has(.site-footer__cookies[hidden]) .site-footer__sep { display: none; }
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1500;
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  font-size: 14px; line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent__text { flex: 1; margin: 0; }
.consent__text a { color: var(--beige); text-decoration: underline; text-underline-offset: 2px; }
.consent__actions { display: flex; gap: 10px; flex: none; }
.consent__btn {
  min-height: 44px; padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  background: var(--beige); color: var(--navy);
  transition: background-color 0.2s;
}
.consent__btn:hover, .consent__btn:focus-visible { background: #fff; }
.consent :focus-visible { outline-color: var(--beige); }
@media (max-width: 767px) {
  .consent { flex-direction: column; align-items: stretch; gap: 12px; left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .consent__actions .consent__btn { flex: 1; }
}

/* === END SHARED === */


/* ================= HOME ================= */

/* ---------- hero ---------- */
.hero { position: relative; padding: 180px 0; margin-top: -91px; background: var(--navy); }
.hero__bg img { object-position: 100% 0; }
.hero__inner { position: relative; z-index: 1; width: 90%; max-width: var(--container); margin: 0 auto; }
.hero__inner > * { max-width: 570px; }
.hero__pill { padding: 14px 26px; margin-bottom: 10px; border-radius: 10px; }
.hero__title {
  margin-bottom: 24px;
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.28);
}
.hero__lead {
  margin-bottom: 154px;
  color: #fff;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.6;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.28);
}
/* The hero is above the fold: its entrance animation runs in pure CSS (no JS needed). */
@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { animation: 1.25s both; animation-delay: var(--delay, 0ms); }
  .hero .reveal[data-anim="fadeInUp"] { animation-name: fadeInUp; }
  .hero .reveal[data-anim="fadeInDown"] { animation-name: fadeInDown; }
}
.hero__pill { --delay: 300ms; }
.hero__title { --delay: 1000ms; }
.hero__lead { --delay: 1600ms; }

.shape-bottom {
  position: absolute; left: 0; bottom: -1px;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  z-index: 1;
}
.shape-bottom svg {
  position: relative; left: 50%;
  width: calc(170% + 1.3px);
  height: 150px;
  max-width: none;
  transform: translateX(-50%);
  fill: #fff;
}

@media (max-width: 1400px) {
  .hero { padding: 16% 5%; }
  .hero__bg img { object-position: 50% 50%; }
  .hero__inner { width: auto; max-width: none; }
  .hero__inner > * { max-width: 50%; }
  .hero__lead { font-size: 17px; margin-bottom: 154px; }
}
@media (max-width: 991px) {
  .hero { margin-top: -51px; }
}
@media (max-width: 800px) {
  .hero { padding: 24% 5% 10%; }
  .hero__inner > * { max-width: none; }
  .hero__pill { padding: 10px 16px; }
  .hero__title { width: 309.5px; max-width: 100%; font-size: 26px; }
  .hero__inner { display: flex; flex-wrap: wrap; align-items: flex-start; }
  .hero__lead { flex-basis: 100%; margin: 0 37% 24px 0; font-size: 13px; }
  .shape-bottom svg { width: calc(200% + 1.3px); height: 60px; }
}

/* ---------- why: 3 flip cards ---------- */
.why { padding: 3% 0 5%; }
.why__lead { color: #6B6B6B; }
.roles { display: flex; margin-top: 76px; }
.roles__col { flex: 1 1 0; min-width: 0; }
.roles__col:nth-child(1) { padding-right: 48px; }
.roles__col:nth-child(2) { padding: 0 24px; }
.roles__col:nth-child(3) { padding-left: 48px; }

.flip { position: relative; height: 380px; perspective: 1000px; outline-offset: 4px; }
.flip__front, .flip__back {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.5, 0.12, 0.46, 0.88);
}
.flip__front { z-index: 2; padding: 30px 35px 30px 40px; background: var(--beige); transform: rotateY(0deg); }
.flip--icon-start .flip__front { padding-top: 0; }
.flip__back { z-index: 1; padding: 30px 35px 30px 40px; justify-content: flex-end; background: var(--orange); transform: rotateY(-180deg); }
/* Flip: hover on mouse devices (as in the original); tap / keyboard button toggles .is-flipped (main.js).
   The arrow is a hint that there is more text on the back – owner decision 03.10.2026, it is not a link. */
@media (hover: hover) {
  .flip:hover .flip__front { transform: rotateY(180deg); }
  .flip:hover .flip__back { transform: rotateY(0deg); }
}
.flip.is-flipped .flip__front { transform: rotateY(180deg); }
.flip.is-flipped .flip__back { transform: rotateY(0deg); }
@media (hover: none) { .flip { cursor: pointer; } }
.flip__toggle { position: relative; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; color: inherit; }
.flip__toggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
.flip__toggle:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
/* one-time "blink" of the arrow on touch screens when the card first appears */
@keyframes flipHint { 0%, 100% { transform: scale(1); opacity: 1; } 25% { transform: scale(1.25); opacity: .55; } 50% { transform: scale(1); opacity: 1; } 75% { transform: scale(1.25); opacity: .55; } }
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .flip.hint .flip__toggle svg { animation: flipHint 1.6s ease-in-out 0.4s 1 both; }
}

.flip__content { display: flex; flex-direction: column; justify-content: center; text-align: center; }
.flip__title { margin: 66px 0 20px; color: #000; font-size: 28px; font-weight: 400; line-height: 1.4; }
.flip__dash { margin-bottom: 10px; color: #000; font-size: 14px; line-height: 1.4; }
.flip__text { margin-bottom: 10px; color: rgba(0, 0, 0, 0.7); font-size: 14px; line-height: 1.4; }
.flip__icon { display: flex; }
.flip--icon-center .flip__icon { justify-content: center; }
.flip--icon-end .flip__icon { justify-content: flex-end; }
.flip__icon svg { width: 40px; height: 40px; fill: rgba(255, 255, 255, 0.55); }

.flip__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flip__photo--right img { object-position: 100% 50%; }
.flip__overlay { position: absolute; inset: 0; z-index: 1; background: rgba(30, 30, 30, 0.47); }
.flip__back-inner { position: relative; z-index: 2; transform: translateZ(125px); }
.flip__back-text { margin-bottom: 10px; color: rgba(255, 255, 255, 0.8); font-size: 14px; line-height: 1.4; text-align: center; }

@media (max-width: 1400px) {
  .why { padding: 8% 5%; }
  .roles { margin-top: 54px; }
  .roles__col:nth-child(1) { padding-right: 16px; }
  .roles__col:nth-child(2) { padding: 0 8px; }
  .roles__col:nth-child(3) { padding-left: 16px; }
  .flip__front, .flip__back, .flip--icon-start .flip__front { padding: 20px; }
  .flip__title { margin: 20px 0; font-size: 19px; }
  .flip__icon svg { width: 35px; height: 35px; }
  .flip--icon-start .flip__icon { justify-content: flex-start; }
}
@media (max-width: 800px) {
  .why { padding: 12% 5%; }
  .roles { flex-direction: column; margin-top: 32px; }
  .roles__col:nth-child(n) { padding: 0; margin-bottom: 20px; }
  .flip { height: 300px; }
  .flip__dash { font-size: 40px; line-height: 1.4; }
  .flip .flip__icon { justify-content: flex-end; }
}

/* ---------- features (Co mnie wyróżnia) ---------- */
.features { position: relative; padding: 100px 0; background: var(--navy); }
.features > .container { position: relative; z-index: 1; }
.features__bg img { position: absolute; left: 50%; bottom: 0; width: 2560px; height: auto; max-width: none; object-fit: fill; transform: translateX(-50%); }
@media (min-width: 1401px) {
  .features__bg img { position: fixed; top: auto; bottom: 0; left: 50%; right: auto; width: 2560px; height: auto; }
}
.features__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; }
.features .section-lead { margin-bottom: 20px; }
.feature { padding: 40px; text-align: center; }
.feature__icon img { width: 30%; margin: 0 auto; }
.feature__title { margin-bottom: 20px; color: #fff; font-size: 25px; font-weight: 600; line-height: 19.6px; }
.feature__text { margin-bottom: 16px; color: rgba(255, 255, 255, 0.76); font-size: 16px; line-height: 1.4; }
.feature__text--lh24 { line-height: 1.5; }
@media (max-width: 1400px) {
  .features { padding: 100px 25px; }
  .feature { padding: 25px; }
  .feature__title { font-size: 20px; }
}
@media (max-width: 800px) {
  .features { padding: 50px 20px; }
  .features__grid { grid-template-columns: minmax(0, 1fr); }
  .feature { padding: 40px; }
  .feature__title { line-height: 56px; }
}

/* ---------- clients (Z kim pracuję) ---------- */
.clients { padding: 100px 0; }
.clients__pill { width: 17.204%; text-align: center; }
.clients__title { margin-top: 10px; }
.clients .section-lead { margin-bottom: 20px; }
.clients__row { display: flex; align-items: center; }
.clients__side { flex: 0 0 23.684%; padding: 25px; }
.clients__side:last-child { flex-basis: 24.557%; }
.clients__photo { flex: 0 0 51.754%; padding: 25px; }
.clients__photo img { width: 100%; border-radius: 50%; }
.icon-box { text-align: center; }
.icon-box__icon { width: 30px; height: 30px; margin: 0 auto 15px; fill: #000; }
.icon-box__title { margin-bottom: 5px; color: #000; font-size: 20px; font-weight: 600; line-height: 19.6px; padding: 3px 0 3.4px; text-transform: uppercase; }
.icon-box__text { color: #6B6B6B; font-size: 15px; line-height: 1.6; }
@media (max-width: 1400px) {
  .clients { padding: 100px 25px; }
  .clients__pill { width: 240.227px; }
  .clients__side, .clients__side:last-child { flex-basis: 30%; padding: 10px; }
  .clients__photo { flex-basis: 40%; padding: 0; }
  .icon-box__title { font-size: 17px; }
}
@media (max-width: 800px) {
  .clients { padding: 50px 20px; }
  .clients__pill { width: 227.688px; }
  .clients__row { flex-direction: column; }
  .clients__side, .clients__side:last-child, .clients__photo { flex-basis: auto; width: 100%; padding: 0; }
  .clients__photo { padding: 15px 0; }
  .clients__side:last-child .icon-box { padding-top: 15px; }
  .icon-box__icon { margin: 15px auto 26px; }
  .icon-box__title { padding: 0; line-height: 56px; }
}

/* ---------- podcast ---------- */
.podcast { position: relative; padding: 100px 0; }
.podcast::before { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(0, 0, 0, 0.08); }
.podcast > .container { position: relative; z-index: 1; }
.podcast__lead { margin-bottom: 92px; text-shadow: 0 0 10px rgba(0, 0, 0, 0.3); }
.podcast__cta { text-align: center; }
@media (max-width: 1400px) { .podcast { padding: 100px 25px; } }
@media (max-width: 800px) {
  .podcast { padding: 50px 20px; }
  .podcast__bg img { object-position: -149px 0; }
  .podcast__lead { margin-bottom: 109px; }
  .podcast__cta .btn { padding: 0 30px; border-radius: 11px; line-height: 56px; }
}

/* ---------- testimonials slider ---------- */
.testimonials { padding: 0; }
.testimonials__pill { margin-top: 40px; }
.testimonials .section-title { margin-top: 10px; }
.testimonials .section-lead { margin-bottom: 40px; }
.slider { position: relative; padding-bottom: 60px; margin-bottom: 31px; }
.slider__track {
  display: flex;
  gap: 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.slider__track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .slider__track { scroll-behavior: auto; } }
.t-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 60px;
  scroll-snap-align: start;
}
.t-slide__photo img { flex: none; width: 300px; height: 460px; object-fit: cover; border-radius: 10px; }
.t-slide__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.t-slide__quote-icon { width: 26px; height: 26px; margin-bottom: 20px; fill: var(--navy); }
.t-slide__quote { margin-bottom: 32px; color: var(--navy); font-size: 18px; line-height: 1.4; }
.t-slide__author { display: flex; align-items: center; min-height: 70px; }
.t-slide__who { display: flex; flex-direction: column; }
.t-slide__name { color: var(--orange); font-size: 24px; font-weight: 700; line-height: 1.5; }
.t-slide__role { color: var(--orange); font-size: 16px; line-height: 1.5; }
.t-slide__divider { align-self: stretch; width: 1px; margin: 0 24px; background: var(--orange); }
.t-slide__logo img { align-self: center; width: 140px; height: 70px; object-fit: contain; }
.slider__controls { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.slider__dots { display: flex; padding-left: 0; }
.slider__dot { width: 16px; height: 44px; display: flex; align-items: center; justify-content: center; }
.slider__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #000; opacity: 0.2; }
.slider__dot[aria-current="true"]::before { opacity: 1; }
.slider__arrows { display: flex; gap: 15px; }
.slider__arrow {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  color: var(--navy);
}
.slider__arrow svg { width: 13.3px; height: 13.3px; fill: currentColor; }
/* Tablet: the original slider overflowed its container here (the active slide was shifted right and
   neighbouring slides showed up); fixed by keeping each slide inside the 84% / 90% wide widget. */
@media (max-width: 1400px) {
  .testimonials .section-lead { padding: 20px 20px 0; margin-bottom: 20px; }
  .slider { width: 84%; margin: 0 auto 2px; padding-bottom: 60px; }
  .t-slide { flex-direction: column; align-items: stretch; gap: 30px; padding: 30px 10px 0 0; }
  .t-slide__photo img { margin: 0 auto; }
  .t-slide__quote { margin-bottom: 20px; }
  .t-slide__divider { margin: 0 20px; }
  .t-slide__logo img { width: 120px; }
  .slider__controls { bottom: 30px; height: 30px; }
  .slider__dots { display: none; }
  .slider__arrows { margin-left: auto; }
  .slider__arrow { position: relative; width: 30px; height: 30px; border-radius: 20%; }
  /* invisible 44px hit area around the small original arrows */
  .slider__arrow::after { content: ""; position: absolute; inset: -7px; }
  .slider__arrow svg { width: 10px; height: 10px; }
}
@media (max-width: 800px) {
  .testimonials .section-lead { margin: 5px 5px 25px; }
  .slider { width: 90%; margin-bottom: 0; padding-bottom: 74px; }
  .t-slide { flex-direction: column-reverse; justify-content: flex-start; gap: 20px; padding: 10px; }
  .t-slide__photo img { width: 180px; height: 230px; }
  .t-slide__quote { font-size: 16px; }
  .t-slide__author { min-height: 60px; }
  .t-slide__logo img { width: 140px; height: 56px; }
  .slider__controls { bottom: 20px; height: 34px; }
  .slider__arrow { width: 34px; height: 34px; border-radius: 50%; }
  .slider__arrow::after { inset: -5px; }
  .slider__arrow svg { width: 11.3px; height: 11.3px; }
}

/* ---------- CV logos ---------- */
.cv { position: relative; padding: 100px 0; }
.cv::before { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(0, 0, 0, 0.08); }
.cv > .container { position: relative; z-index: 1; }
.cv .section-lead { margin-bottom: 40px; }
.cv__logos { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: center; }
.cv__logo { padding: 25px; }
.cv__logo img { width: 100%; margin: 0 auto; }
.cv__logo--autenti img { max-width: 522px; }
.cv__logo--bbl img { max-width: 150px; }
.cv__logo--bbl { padding: 35px; }
.cv__logo--bbl img { filter: contrast(89%); }
.cv__logo--tvn img { width: 50%; }
.cv__logo--w92 img { width: 92%; }
.cv__logo--w70 img { width: 70%; }
@media (max-width: 1400px) {
  .cv { padding: 100px 25px; }
  .cv__logos { grid-template-columns: repeat(3, 33%); }
  .cv__logo--bbl { padding: 25px; }
}
@media (max-width: 800px) {
  .cv { padding: 50px 20px; }
  /* the original last row is 2px taller (inline-image line box) */
  .cv__logo:nth-child(n+7) { padding-bottom: 27px; }
}

/* ---------- LinkedIn ---------- */
.linkedin { padding: 6% 0 7%; background: var(--beige); }
.linkedin__inner { max-width: 600px; margin: 0 auto; text-align: center; }
.linkedin__inner > * { margin-bottom: 16px; }
.linkedin__inner > .pill { margin-bottom: 4px; }
.linkedin__title { padding-top: 20px; color: var(--navy); font-size: 24px; font-weight: 600; line-height: 19.6px; }
.linkedin__text { color: rgba(0, 0, 0, 0.63); font-size: 16px; line-height: 1.4; text-align: left; }
.linkedin__avatar a { display: block; width: 150px; margin: 0 auto; }
.linkedin__avatar img { width: 54%; margin: 0 auto; border-radius: 100px; }
.linkedin__more { margin-bottom: 0; color: rgba(0, 0, 0, 0.63); font-size: 16px; line-height: 1.4; }
.emoji { font-size: 1em; }
@media (max-width: 1400px) { .linkedin { padding: 8% 5%; } }
@media (max-width: 800px) {
  .linkedin { padding: 12% 5%; }
  .linkedin__title { line-height: 1.4; }
}

/* ---------- contact CTA + timeline ---------- */
.contact-cta { position: relative; z-index: 2; padding: 7% 0 0; background: #fff; }
.contact-cta__inner { display: flex; align-items: flex-end; min-height: 26vw; max-width: var(--container); margin: 0 auto; }
.contact-cta__card-col { position: relative; z-index: 12; flex: 0 0 50%; padding-top: 30px; }
.contact-card {
  margin-bottom: -60px;
  padding: 10%;
  background: #fff;
  border: 8px solid var(--beige);
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.12);
  text-align: center;
}
.contact-card > * { max-width: 440px; margin-left: auto; margin-right: auto; }
.contact-card__title { margin-bottom: 20px; color: var(--navy); font-size: 44px; font-weight: 600; line-height: 1; }
.contact-card__text { margin-bottom: 20px; color: var(--navy); font-size: 18px; font-weight: 600; line-height: 19.6px; }
.contact-card__cta { margin-bottom: 40px; }
/* +12px on the right: the original button reserves a gap for an (empty) icon */
.btn--big { padding: 25px 62px 25px 50px; border-radius: 6px; font-size: 16px; }
.contact-cta__steps { flex: 0 0 50%; padding: 0 0 94px 54px; align-self: center; }

.timeline { position: relative; }
.timeline__line { position: absolute; top: 32px; bottom: 32px; left: 30.5px; width: 3px; background: var(--beige); }
.timeline__progress { display: block; width: 100%; height: 0; background: var(--navy); }
.timeline__item { position: relative; display: flex; align-items: center; }
.timeline__item + .timeline__item { margin-top: 30px; }
.timeline__point {
  position: relative; z-index: 1;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  margin-right: 20px;
  border-radius: 50%;
  background: var(--beige);
  color: #000;
  font-size: 18px;
  transition: background-color 0.3s, color 0.3s;
}
.timeline__card {
  position: relative;
  flex: 1;
  padding: 30px 44px 30px 40px;
  border-radius: 16px;
  background: var(--beige);
  box-shadow: 2px 2px 30px rgba(0, 0, 0, 0.06);
  transition: background-color 0.3s;
}
.timeline__card::before {
  content: "";
  position: absolute; top: 50%; left: 0;
  width: 19px; height: 19px;
  margin: -9.5px 0 0 -9.5px;
  background: inherit;
  transform: rotate(45deg);
}
.timeline__title { margin: 21.6px 0 9px; color: var(--navy); font-size: 18px; font-weight: 600; line-height: 19.6px; transition: color 0.3s; }
.timeline__item.is-active .timeline__point { background: var(--navy); color: #fff; }
.timeline__item.is-active .timeline__card { background: var(--navy); }
.timeline__item.is-active .timeline__title { color: #fff; }

@media (max-width: 1400px) {
  .contact-cta { padding: 10% 5% 0; }
  .contact-cta__card-col { flex-basis: 44%; }
  .contact-cta__steps { flex-basis: 56%; padding: 0 0 40px 30px; }
  .contact-card__text { line-height: 1; }
  .contact-card__cta { margin-bottom: 20px; }
}
@media (max-width: 800px) {
  .contact-cta { padding: 12% 5%; }
  .contact-cta__inner { flex-direction: column-reverse; align-items: stretch; min-height: 0; }
  .contact-cta__card-col { padding-top: 40px; }
  .contact-cta__card-col, .contact-cta__steps { flex: none; align-self: stretch; }
  .contact-card { margin: 20px 0 0; }
  .contact-card__title { font-size: 30px; }
  .contact-card__text { font-size: 14px; }
  .contact-card__cta { padding-top: 11px; margin-bottom: 32px; }
  .btn--big { padding: 0 37px 0 25px; line-height: 56px; }
  .contact-cta__steps { padding: 0; }
  .timeline__card { padding: 26px; }
  .timeline__title { line-height: 56px; }
}

/* =====================================================================
   Deliberate mobile improvements (<= 767px) – logged in FIXES-home.md.
   768–800px keeps the original mobile layout above.
   ===================================================================== */
@media (max-width: 767px) {
  /* features: the original stacks six 40px-padded items with 56px title line-height */
  .features { padding: 50px 20px 30px; }
  .feature { padding: 20px 8px 24px; }
  .feature__icon img { width: 72px; }
  .feature__title { margin: 12px 0 10px; line-height: 1.3; }
  .feature__text { margin-bottom: 0; }

  /* "Z kim pracuję" icon boxes: 56px title line-height */
  .icon-box__icon { margin: 0 auto 12px; }
  .icon-box__title { margin-bottom: 8px; line-height: 1.3; }
  .clients__photo { padding: 32px 0; }
  .clients__side:last-child .icon-box { padding-top: 0; }

  /* testimonials: the section has no side padding, so the H2 touched the screen edges */
  .testimonials .section-head { padding: 0 20px; }
  .testimonials .section-lead { margin: 0 0 20px; padding: 0; }
  .t-slide { padding: 10px 0; justify-content: flex-end; }
  .t-slide__body { flex: none; }
  .t-slide__quote { margin-bottom: 24px; line-height: 1.5; }
  .t-slide__author { flex-wrap: wrap; min-height: 0; }
  .t-slide__who { flex: 1 1 100%; }
  .t-slide__name { font-size: 20px; line-height: 1.3; }
  .t-slide__role { font-size: 15px; line-height: 1.4; margin-top: 2px; }
  .t-slide__divider { display: none; }
  .t-slide__logo img { width: auto; max-width: 140px; height: 44px; margin-top: 14px; object-position: 0 50%; }
  .t-slide__photo img { margin-top: 12px; }

  /* CV logos: 25px padding left tiny logos in 3 narrow columns */
  .cv__logo, .cv__logo--bbl { padding: 12px; }
  .cv__logo:nth-child(n+7) { padding-bottom: 12px; }

  /* timeline: 56px title line-height made 2-line cards 190px tall */
  .timeline__line { top: 24px; bottom: 24px; left: 22.5px; }
  .timeline__point { width: 48px; height: 48px; margin-right: 18px; font-size: 16px; }
  .timeline__item + .timeline__item { margin-top: 16px; }
  .timeline__card { padding: 18px 20px; }
  .timeline__title { margin: 0; line-height: 1.35; }

  /* contact card: give the text room on narrow phones */
  .contact-card { padding: 32px 20px; }
  .contact-card__text { font-size: 15px; line-height: 1.4; }
  .contact-card__cta { margin-bottom: 0; }
}

/* ---------- QA mobile fixes (<= 767px), see FIXES-qa.md ---------- */
@media (max-width: 767px) {
  /* podcast: white lead text ran over the white table/glasses of the photo – darker veil behind the text */
  .podcast::before { z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.1) 100%); }
  .podcast__lead { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.7); }
  /* "Czytaj aktualne wpisy na LinkedIn..." link: 21px-high tap target -> 45px (look unchanged) */
  .linkedin__more a { display: inline-block; padding: 12px 0; margin: -12px 0; }
}
