/* a'Gusto - podstawa: reset, typografia, komponenty.
   Klasy .ag-* przypisujesz w Elementorze: Zaawansowane → Klasy CSS. */

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

body {
  margin: 0;
  font-family: var(--ag-font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ag-body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
body.ag-drawer-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ag-ink);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.03em;
  text-wrap: balance;
}
h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(26px, 3.4vw, 42px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--ag-green-ink); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--ag-green-dark); }

img { max-width: 100%; height: auto; }
svg { flex: none; }

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

.ag-main { display: block; min-height: 40vh; }

.ag-skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; padding: 14px 22px; background: var(--ag-navy); color: #fff; font-weight: 600; }
.ag-skip-link:focus { left: 0; color: #fff; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.ag-empty { padding: 24px; background: var(--ag-paper); border: 1px dashed var(--ag-line-warm); color: var(--ag-muted); font-size: 15px; }

/* ------------------------------------------------------------------ *
 * Typografia sekcji
 * ------------------------------------------------------------------ */
.ag-kicker:not(.elementor-widget), .ag-kicker .elementor-heading-title {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ag-green-ink);
}
.ag-kicker:not(.elementor-widget)::before, .ag-kicker .elementor-heading-title::before { content: ""; width: 34px; height: 2px; background: var(--ag-green); flex: none; }
.ag-kicker--light, .ag-kicker--light .elementor-heading-title { color: var(--ag-green-mint); }
.ag-kicker--center:not(.elementor-widget) { justify-content: center; }
.ag-kicker--center .elementor-heading-title { justify-content: center; }
.ag-kicker--center .elementor-heading-title::after { content: ""; width: 34px; height: 2px; background: var(--ag-green); flex: none; }

.ag-title .elementor-heading-title { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.03em; }
.ag-title--hero .elementor-heading-title { font-size: clamp(34px, 5.6vw, 68px); line-height: 1; font-weight: 700; letter-spacing: -.042em; color: #fff; }
.ag-title--banner .elementor-heading-title { font-size: clamp(30px, 5vw, 62px); line-height: 1.02; font-weight: 700; letter-spacing: -.04em; color: #fff; }
.ag-title--sm .elementor-heading-title { font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -.025em; }

.ag-lead, .ag-lead p { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: #5D6B7C; }
.ag-lead--light, .ag-lead--light p { color: var(--ag-navy-mist); }

.ag-on-dark, .ag-on-dark h1, .ag-on-dark h2, .ag-on-dark h3, .ag-on-dark .elementor-heading-title { color: #fff; }
.ag-on-dark p { color: var(--ag-navy-mist); }

/* ------------------------------------------------------------------ *
 * Przyciski
 * ------------------------------------------------------------------ */
a.ag-btn, button.ag-btn, .ag-btn .elementor-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px;
  border: 0; border-radius: var(--ag-pill);
  font-family: var(--ag-font); font-size: 16px; font-weight: 600; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
a.ag-btn--lg, button.ag-btn--lg, .ag-btn--lg .elementor-button { height: 56px; padding: 0 28px; font-size: 17px; }

a.ag-btn--primary, button.ag-btn--primary, .ag-btn--primary .elementor-button { background: var(--ag-green); color: #fff; }
a.ag-btn--primary:hover, button.ag-btn--primary:hover, .ag-btn--primary .elementor-button:hover { background: var(--ag-green-dark); color: #fff; }
a.ag-btn--navy, button.ag-btn--navy, .ag-btn--navy .elementor-button { background: var(--ag-navy); color: #fff; }
a.ag-btn--navy:hover, button.ag-btn--navy:hover, .ag-btn--navy .elementor-button:hover { background: var(--ag-navy-hover); color: #fff; }
a.ag-btn--white, button.ag-btn--white, .ag-btn--white .elementor-button { background: #fff; color: var(--ag-navy); }
a.ag-btn--white:hover, button.ag-btn--white:hover, .ag-btn--white .elementor-button:hover { background: var(--ag-paper); color: var(--ag-navy); }
a.ag-btn--ghost, button.ag-btn--ghost, .ag-btn--ghost .elementor-button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
a.ag-btn--ghost:hover, button.ag-btn--ghost:hover, .ag-btn--ghost .elementor-button:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
a.ag-btn--outline, button.ag-btn--outline, .ag-btn--outline .elementor-button { background: #fff; color: var(--ag-ink); border: 1px solid var(--ag-line-warm); }
a.ag-btn--outline:hover, button.ag-btn--outline:hover, .ag-btn--outline .elementor-button:hover { border-color: var(--ag-ink); color: var(--ag-ink); }

.ag-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex: none;
  background: transparent; border: 0; border-radius: 23px; cursor: pointer;
  color: var(--ag-ink);
  transition: background-color .15s ease;
}
.ag-iconbtn:hover { background: var(--ag-paper); }

/* ------------------------------------------------------------------ *
 * Karty, siatki, karuzele
 * ------------------------------------------------------------------ */
.ag-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.18); width: 100%; }
.ag-stats > div { display: flex; flex-direction: column; gap: 6px; padding: 22px 26px 24px 0; }
.ag-stats b { font-size: 27px; font-weight: 700; letter-spacing: -.025em; color: #fff; }
.ag-stats span { font-size: 14px; color: var(--ag-navy-fade); }
@media (max-width: 780px) { .ag-stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.ag-perks {
  display: grid; gap: 1px; margin: 0; padding: 0; list-style: none;
  background: #E1E5EA; border: 1px solid var(--ag-line);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.ag-perks li { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 24px; background: #fff; }
.ag-perks b { font-size: 16.5px; font-weight: 600; color: var(--ag-ink); }
.ag-perks span { font-size: 15px; line-height: 1.5; color: #5D6B7C; }

.ag-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.ag-chip {
  display: inline-flex; align-items: center; height: 44px; padding: 0 17px;
  background: #fff; border: 1px solid var(--ag-line); border-radius: var(--ag-pill);
  font-size: 14.5px; font-weight: 500; color: #33465C;
}
.ag-chip:hover { background: var(--ag-navy); border-color: var(--ag-navy); color: #fff; }

.ag-phonebox { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; padding: 24px; background: var(--ag-navy); }
.ag-phonebox small { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ag-navy-fade); }
.ag-phonebox__num { font-size: 31px; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.ag-phonebox__num:hover { color: var(--ag-green-mint); }

/* proximity, nie mandatory: przy mandatory przeglądarka cofa animację
   behavior: smooth do bieżącego punktu zaczepienia i strzałki nie przewijają. */
.ag-carousel { display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
.ag-carousel::-webkit-scrollbar { display: none; }
.ag-carousel--tight { gap: 1px; background: #E1E5EA; border: 1px solid var(--ag-line); }
.ag-carousel__nav { display: flex; align-items: center; gap: 10px; }
.ag-carousel__btn {
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; flex: none;
  background: #fff; border: 1px solid var(--ag-line-warm); border-radius: 25px; cursor: pointer;
  transition: border-color .15s ease, opacity .15s ease;
}
.ag-carousel__btn:hover { border-color: var(--ag-ink); }
.ag-carousel__btn[disabled] { opacity: .35; cursor: default; }
.ag-carousel__btn--prev svg { transform: rotate(180deg); }

.ag-work { display: flex; flex-direction: column; flex: 0 0 clamp(258px, 26vw, 340px); scroll-snap-align: start; padding: 22px 22px 0; background: #fff; border: 1px solid var(--ag-line); }
.ag-work:hover { border-color: var(--ag-green-border); box-shadow: var(--ag-shadow); }
.ag-work__photo { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--ag-paper); }
.ag-work__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-work__body { display: flex; flex-direction: column; gap: 7px; padding: 20px 2px 26px; }
.ag-work__type { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--ag-muted); }
.ag-work__name { font-size: 21px; font-weight: 600; letter-spacing: -.02em; color: var(--ag-ink); line-height: 1.2; }
.ag-work__scope { font-size: 15px; line-height: 1.5; color: #5D6B7C; }
.ag-work__city { font-size: 14px; color: var(--ag-muted); }

.ag-brand { display: flex; align-items: center; justify-content: center; flex: 0 0 clamp(150px, 15vw, 190px); scroll-snap-align: start; height: 112px; padding: 16px; background: #fff; }
.ag-brand img { max-width: 100%; max-height: 76px; width: auto; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
