/* a'Gusto - treść: archiwa, wpisy, realizacje, referencje, katalogi,
   panel B2B, wyszukiwarka, 404, sekcje segmentowe. */

/* ------------------------------------------------------------------ *
 * Nagłówek podstrony i listy
 * ------------------------------------------------------------------ */
.ag-pagehead {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(28px, 3.4vw, 46px) var(--ag-gutter) clamp(24px, 3vw, 34px);
  background: var(--ag-paper); border-bottom: 1px solid var(--ag-line);
}
.ag-pagehead__title { margin: 0; font-size: clamp(28px, 3.8vw, 46px); font-weight: 700; letter-spacing: -.035em; }
.ag-pagehead__lead { margin: 0; max-width: 720px; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.55; color: #5D6B7C; }

.ag-list { padding: clamp(32px, 4vw, 56px) var(--ag-gutter) clamp(48px, 6vw, 76px); }
.ag-list--related { padding-top: 0; }

.ag-sechead { margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 30px); }
.ag-sechead__lead { margin: 0 0 20px; font-size: 16px; color: #5D6B7C; }

.ag-grid-cards {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.ag-grid-cards--cases { grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); }
.ag-grid-cards--catalogs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); }

.ag-chips--filter { padding-top: 6px; }
.ag-chip.is-active { background: var(--ag-navy); border-color: var(--ag-navy); color: #fff; }
.ag-chip__count { margin-left: 7px; font-size: 12px; opacity: .6; }

.ag-blank { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(40px, 6vw, 72px) 20px; text-align: center; background: var(--ag-paper); border: 1px dashed var(--ag-line-warm); }
.ag-blank__title { margin: 0; font-size: clamp(22px, 2.4vw, 28px); }
.ag-blank__text { margin: 0; max-width: 480px; color: #5D6B7C; }
.ag-blank__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.ag-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.ag-pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  min-width: 46px; height: 46px; padding: 0 14px;
  background: #fff; border: 1px solid var(--ag-line); border-radius: var(--ag-radius);
  font-size: 15px; font-weight: 600; color: var(--ag-ink);
}
.ag-pagination .page-numbers.current { background: var(--ag-navy); border-color: var(--ag-navy); color: #fff; }
.ag-pagination a.page-numbers:hover { border-color: var(--ag-ink); }

/* ------------------------------------------------------------------ *
 * Karta wpisu
 * ------------------------------------------------------------------ */
.ag-post { background: #fff; border: 1px solid var(--ag-line); border-radius: var(--ag-radius); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.ag-post:hover { border-color: var(--ag-green-border); box-shadow: var(--ag-shadow); }
.ag-post__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.ag-post__media img { width: 100%; height: 200px; object-fit: cover; display: block; }
.ag-post__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.ag-post__cat { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ag-green-ink); }
.ag-post__title { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; color: var(--ag-ink); }
.ag-post__excerpt { font-size: 15px; line-height: 1.55; color: #5D6B7C; }
.ag-post__meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 8px; font-size: 13.5px; color: var(--ag-muted); }

/* ------------------------------------------------------------------ *
 * Artykuł
 * ------------------------------------------------------------------ */
.ag-article { max-width: 820px; margin: 0 auto; padding: clamp(24px, 3vw, 40px) var(--ag-gutter) clamp(40px, 5vw, 64px); }
.ag-article__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.ag-article__cat { align-self: flex-start; padding: 6px 13px; background: var(--ag-green-soft); border-radius: var(--ag-pill); font-size: 12.5px; font-weight: 600; color: var(--ag-green-ink); }
.ag-article__title { margin: 0; font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; letter-spacing: -.038em; line-height: 1.08; }
.ag-article__lead { margin: 0; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; color: #5D6B7C; }
.ag-article__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ag-muted); }
.ag-article__cover { margin: 0 0 30px; }
.ag-article__cover img { width: 100%; height: auto; border-radius: var(--ag-radius); }
.ag-article__body { font-size: 17.5px; line-height: 1.7; color: #33465C; }
.ag-article__body h2 { margin: 38px 0 14px; font-size: clamp(23px, 2.6vw, 30px); }
.ag-article__body h3 { margin: 28px 0 10px; font-size: 21px; }
.ag-article__body ul, .ag-article__body ol { padding-left: 22px; }
.ag-article__body li { margin-bottom: 8px; }
.ag-article__body img { border-radius: var(--ag-radius); }
.ag-article__body blockquote { margin: 26px 0; padding: 18px 24px; background: var(--ag-green-soft); border-left: 3px solid var(--ag-green); font-size: 18px; }
.ag-article__body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
.ag-article__body th, .ag-article__body td { padding: 11px 14px; border: 1px solid var(--ag-line); text-align: left; }
.ag-article__body th { background: var(--ag-paper); font-weight: 600; color: var(--ag-ink); }
.ag-article__cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 44px; padding: 28px; background: var(--ag-paper); border: 1px solid var(--ag-line); }
.ag-article__cta h2 { margin: 0 0 6px; font-size: 22px; }
.ag-article__cta p { margin: 0; font-size: 15.5px; color: #5D6B7C; }
.ag-article__comments { max-width: 820px; margin: 0 auto; padding: 0 var(--ag-gutter) clamp(40px, 5vw, 64px); }

/* ------------------------------------------------------------------ *
 * Realizacje
 * ------------------------------------------------------------------ */
.ag-case { background: #fff; border: 1px solid var(--ag-line); border-radius: var(--ag-radius); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.ag-case:hover { border-color: var(--ag-green-border); box-shadow: var(--ag-shadow); }
.ag-case__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.ag-case__media img { width: 100%; height: 200px; object-fit: cover; display: block; background: var(--ag-paper); }
.ag-case__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.ag-case__type { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ag-muted); }
.ag-case__title { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: var(--ag-ink); }
.ag-case__scope { font-size: 14.5px; line-height: 1.5; color: #5D6B7C; }
.ag-case__meta { margin-top: auto; padding-top: 6px; font-size: 13.5px; color: var(--ag-muted); }

.ag-case-single { max-width: 1100px; margin: 0 auto; padding: clamp(24px, 3vw, 40px) var(--ag-gutter) clamp(40px, 5vw, 64px); }
.ag-case-single__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.ag-case-single__title { margin: 0; font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; letter-spacing: -.038em; }
.ag-case-single__cover img { width: 100%; height: auto; border-radius: var(--ag-radius); }
.ag-case-single__body { max-width: 780px; margin: 30px 0; font-size: 17px; line-height: 1.7; color: #33465C; }
.ag-case-single__gallery, .ag-case-single__products { margin: clamp(36px, 4vw, 56px) 0; }
.ag-case-single__cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 44px; padding: 30px; background: var(--ag-navy); color: #fff; }
.ag-case-single__cta h2 { margin: 0 0 6px; font-size: 24px; color: #fff; }
.ag-case-single__cta p { margin: 0; color: var(--ag-navy-mist); }

.ag-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; margin: 8px 0 0; background: #E1E5EA; border: 1px solid var(--ag-line); }
.ag-facts__item { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: #fff; }
.ag-facts dt { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ag-muted); }
.ag-facts dd { margin: 0; font-size: 16px; font-weight: 500; color: var(--ag-ink); }

.ag-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.ag-gallery__item img { width: 100%; height: 180px; object-fit: cover; display: block; border-radius: var(--ag-radius); }

/* ------------------------------------------------------------------ *
 * Referencje i katalogi
 * ------------------------------------------------------------------ */
.ag-grid-refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.ag-ref { display: flex; gap: 18px; padding: 22px; background: #fff; border: 1px solid var(--ag-line); border-radius: var(--ag-radius); }
.ag-ref__photo { flex: 0 0 96px; }
.ag-ref__photo img { width: 96px; height: 128px; object-fit: cover; border-radius: 3px; }
.ag-ref__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ag-ref__quote { margin: 0; font-size: 15.5px; line-height: 1.6; color: #33465C; }
.ag-ref__who { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.ag-ref__who b { color: var(--ag-ink); }
.ag-ref__who span { color: #5D6B7C; }
.ag-ref__who small { color: var(--ag-muted); }
.ag-ref__scan { font-size: 14px; font-weight: 600; }

.ag-catalog { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ag-line); border-radius: var(--ag-radius); overflow: hidden; }
.ag-catalog__cover img { width: 100%; height: 260px; object-fit: cover; display: block; background: var(--ag-paper); }
.ag-catalog__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.ag-catalog__brand { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ag-green-ink); }
.ag-catalog__title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.ag-catalog__meta { margin: 0; font-size: 13.5px; color: var(--ag-muted); }
.ag-catalog .ag-btn { margin-top: auto; }

/* ------------------------------------------------------------------ *
 * Wyszukiwarka i 404
 * ------------------------------------------------------------------ */
.ag-search--page { max-width: 620px; margin: 6px 0 0; }
.ag-search__scope {
  flex: none; height: 40px; padding: 0 10px;
  border: 1px solid var(--ag-line); border-radius: var(--ag-radius);
  font-family: var(--ag-font); font-size: 14.5px; color: var(--ag-ink); background: #fff;
}
@media (max-width: 640px) { .ag-search__scope { display: none; } }

.ag-404 { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: clamp(48px, 7vw, 96px) var(--ag-gutter); text-align: center; }
.ag-404__code { font-size: clamp(64px, 12vw, 132px); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--ag-green-soft); }
.ag-404__title { margin: 0; font-size: clamp(26px, 3.4vw, 40px); }
.ag-404__lead { margin: 0; max-width: 540px; color: #5D6B7C; }
.ag-404__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; width: 100%; max-width: 920px; margin-top: 20px; background: #E1E5EA; border: 1px solid var(--ag-line); text-align: left; }
.ag-404__link { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; background: #fff; color: inherit; }
.ag-404__link:hover { background: var(--ag-green-soft); color: inherit; }
.ag-404__link b { display: block; font-size: 16px; font-weight: 600; color: var(--ag-ink); }
.ag-404__link small { font-size: 14px; color: #5D6B7C; }

/* ------------------------------------------------------------------ *
 * Sekcje segmentowe
 * ------------------------------------------------------------------ */
.ag-speclist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px; background: #E1E5EA; border: 1px solid var(--ag-line); }
.ag-speclist__item { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; background: #fff; }
.ag-speclist__item b { display: block; font-size: 16px; font-weight: 600; color: var(--ag-ink); }
.ag-speclist__item span { font-size: 14.5px; line-height: 1.5; color: #5D6B7C; }

.ag-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; background: #E1E5EA; border: 1px solid var(--ag-line); counter-reset: step; }
.ag-steps__item { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 30px; background: #fff; }
.ag-steps__n { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--ag-green-ink); }
.ag-steps__item b { font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--ag-ink); }
.ag-steps__item span { font-size: 15px; line-height: 1.55; color: #5D6B7C; }

.ag-faq { display: grid; gap: 1px; background: #E1E5EA; border: 1px solid var(--ag-line); }
.ag-faq__item { background: #fff; }
.ag-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; color: var(--ag-ink);
}
.ag-faq__item summary::-webkit-details-marker { display: none; }
.ag-faq__item summary svg { transition: transform .15s ease; }
.ag-faq__item[open] summary svg { transform: rotate(90deg); }
.ag-faq__answer { padding: 0 22px 20px; font-size: 15.5px; line-height: 1.6; color: #5D6B7C; }
.ag-faq__answer p { margin: 0 0 .7em; }

/* ------------------------------------------------------------------ *
 * Sklep: leasing, pasek zakupu, wycena z koszyka
 * ------------------------------------------------------------------ */
.ag-delivery { display: flex; align-items: center; gap: 9px; margin: 12px 0; font-size: 15px; color: #33465C; }

.ag-buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 86;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px var(--ag-gutter) calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--ag-line);
  box-shadow: 0 -8px 24px -16px rgba(15,36,56,.4);
  transform: translateY(110%); transition: transform .2s ease;
}
.ag-buybar.is-visible { transform: none; }
@media (min-width: 981px) { .ag-buybar { display: none; } }
.ag-buybar__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ag-buybar__name { font-size: 13px; color: var(--ag-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-buybar__price .ag-price__net { font-size: 17px; }
.ag-buybar__price .ag-price__gross { display: none; }
.ag-buybar__cta { flex: none; }
body:has(.ag-buybar.is-visible) .ag-bottombar { display: none; }

.ag-quote-btn { display: flex; justify-content: center; width: 100%; margin-top: 10px; }
.ag-quote-note { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ag-muted); }

.ag-quotecart { margin: 0 0 28px; }
.ag-quotecart__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.ag-quotecart__head h2 { margin: 0; font-size: 22px; }
.ag-quotecart__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ag-quotecart__table th, .ag-quotecart__table td { padding: 12px 14px; border: 1px solid var(--ag-line); text-align: left; }
.ag-quotecart__table th { background: var(--ag-paper); font-weight: 600; color: var(--ag-ink); }
.ag-quotecart__table tfoot td { font-weight: 700; color: var(--ag-ink); background: var(--ag-green-soft); }

.ag-quickorder { display: flex; flex-direction: column; gap: 8px; max-width: 520px; padding: 22px; background: var(--ag-paper); border: 1px solid var(--ag-line); }
.ag-quickorder label { font-size: 15px; font-weight: 600; color: var(--ag-ink); }
.ag-quickorder__hint { margin: 0; font-size: 13.5px; color: var(--ag-muted); }
.ag-quickorder textarea { padding: 12px 14px; border: 1px solid var(--ag-line); border-radius: var(--ag-radius); font-family: var(--ag-font); font-size: 15px; }
.ag-quickorder .ag-btn { align-self: flex-start; }

.ag-recent { margin-top: clamp(32px, 4vw, 56px); }

/* ------------------------------------------------------------------ *
 * Panel B2B
 * ------------------------------------------------------------------ */
.ag-b2b { display: flex; flex-direction: column; gap: 22px; }
.ag-b2b__lead { margin: 0; font-size: 16px; color: #5D6B7C; }
.ag-b2b h3 { margin: 0 0 12px; font-size: 20px; }
.ag-b2b__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ag-b2b__table th, .ag-b2b__table td { padding: 13px 14px; border: 1px solid var(--ag-line); text-align: left; vertical-align: middle; }
.ag-b2b__table th { background: var(--ag-paper); font-weight: 600; color: var(--ag-ink); font-size: 13.5px; }
.ag-b2b__form { display: flex; flex-direction: column; gap: 4px; padding: 22px; background: var(--ag-paper); border: 1px solid var(--ag-line); }
.ag-b2b__form label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; color: var(--ag-ink); }
.ag-b2b__form select, .ag-b2b__form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--ag-line); border-radius: var(--ag-radius);
  font-family: var(--ag-font); font-size: 15.5px; color: var(--ag-ink); background: #fff;
}
.ag-b2b__check label { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.ag-b2b__form .ag-btn { align-self: flex-start; margin-top: 6px; }

.ag-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; background: var(--ag-paper); border: 1px solid var(--ag-line); border-radius: var(--ag-pill); font-size: 12.5px; font-weight: 600; color: var(--ag-ink); }
.ag-badge--ok { background: var(--ag-green-soft); border-color: var(--ag-green-border); color: var(--ag-green-ink); }
.ag-badge--warn { background: #FFF8E5; border-color: #F0DFAF; color: #8A6A12; }
.ag-badge--off { color: var(--ag-muted); }

/* Tabele na telefonie: etykieta przed wartością zamiast poziomego przewijania */
@media (max-width: 720px) {
  .ag-b2b__table, .ag-quotecart__table { display: block; }
  .ag-b2b__table thead, .ag-quotecart__table thead { display: none; }
  .ag-b2b__table tbody, .ag-b2b__table tr, .ag-b2b__table td,
  .ag-quotecart__table tbody, .ag-quotecart__table tr, .ag-quotecart__table td { display: block; width: 100%; }
  .ag-b2b__table tr, .ag-quotecart__table tr { margin-bottom: 14px; border: 1px solid var(--ag-line); }
  .ag-b2b__table td, .ag-quotecart__table td { display: flex; justify-content: space-between; gap: 16px; border: 0; border-bottom: 1px solid var(--ag-line-soft); }
  .ag-b2b__table td::before, .ag-quotecart__table td::before {
    content: attr(data-label); flex: none; font-size: 13px; font-weight: 600; color: var(--ag-muted);
  }
  .ag-b2b__table td:last-child, .ag-quotecart__table td:last-child { border-bottom: 0; }
}

/* ------------------------------------------------------------------ *
 * Podmenu dotykowe w nawigacji poziomej
 * ------------------------------------------------------------------ */
.ag-nav__menu .menu-item-has-children { position: relative; }
.ag-nav__expand {
  position: absolute; top: 50%; right: 2px; transform: translateY(-50%);
  width: 30px; height: 30px; background: transparent; border: 0; cursor: pointer;
}
.ag-nav__expand::after {
  content: ""; position: absolute; top: 10px; left: 10px;
  width: 8px; height: 8px;
  border-right: 1.7px solid var(--ag-ink); border-bottom: 1.7px solid var(--ag-ink);
  transform: rotate(45deg); transition: transform .15s ease;
}
.ag-nav__expand[aria-expanded="true"]::after { transform: rotate(-135deg); }
.ag-nav__menu li.is-open > .sub-menu { opacity: 1 !important; visibility: visible !important; transform: none !important; }

.ag-carousel__counter { font-size: 13.5px; font-weight: 600; color: var(--ag-muted); font-variant-numeric: tabular-nums; }


/* ------------------------------------------------------------------ *
 * Strony statyczne
 * ------------------------------------------------------------------ */
.ag-page--builder, .ag-page--front { width: 100%; }
.ag-page--builder > .elementor, .ag-page--front > .elementor { width: 100%; }

.ag-page--text { max-width: 860px; margin: 0 auto; padding: clamp(24px, 3vw, 40px) var(--ag-gutter) clamp(44px, 5vw, 68px); }
.ag-page__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.ag-page__title { margin: 0; font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; letter-spacing: -.038em; line-height: 1.08; }
.ag-page__lead { margin: 0; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; color: #5D6B7C; }
.ag-page__cover { margin: 0 0 30px; }
.ag-page__cover img { width: 100%; height: auto; border-radius: var(--ag-radius); }
.ag-page__body { font-size: 17.5px; line-height: 1.7; color: #33465C; }
.ag-page__body h2 { margin: 36px 0 14px; font-size: clamp(23px, 2.6vw, 30px); }
.ag-page__body h3 { margin: 26px 0 10px; font-size: 21px; }
.ag-page__body ul, .ag-page__body ol { padding-left: 22px; }
.ag-page__body li { margin-bottom: 8px; }
.ag-page__body img { max-width: 100%; height: auto; border-radius: var(--ag-radius); }
.ag-page__body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; }
.ag-page__body th, .ag-page__body td { padding: 11px 14px; border: 1px solid var(--ag-line); text-align: left; }
.ag-page__body th { background: var(--ag-paper); font-weight: 600; color: var(--ag-ink); }
.ag-page__body blockquote { margin: 26px 0; padding: 18px 24px; background: var(--ag-green-soft); border-left: 3px solid var(--ag-green); }

/* --- zastępniki obrazów ---------------------------------------------------- */

.ag-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background:
    linear-gradient(135deg, rgba(0,176,101,.05) 25%, transparent 25%) 0 0/18px 18px,
    var(--ag-paper);
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  color: var(--ag-muted);
  overflow: hidden;
}
.ag-ph--kwadrat { aspect-ratio: 1 / 1; }
.ag-ph--poziom { aspect-ratio: 3 / 2; }
.ag-ph--hero { aspect-ratio: 16 / 9; }
img.ag-ph { display: block; object-fit: cover; border: 0; background: none; }
.ag-ph__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 24px;
  color: var(--ag-green-600);
}
.ag-ph__label {
  max-width: 220px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  text-wrap: pretty;
}

/* --- formularze Contact Form 7 (układ 1:1 z podglądami) -------------------- */

.wpcf7 form { display: flex; flex-direction: column; gap: 16px; }
.wpcf7 form p { margin: 0; }
.ag-cf7__grid br, .ag-cf7__chips br, .ag-cf7__consent br, .ag-cf7__submit br { display: none; }
.ag-cf7__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(22px, 2.6vw, 30px);
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
}
.ag-cf7__grid label { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--ag-body-soft); }
.ag-cf7__cap { display: inline-flex; align-items: baseline; gap: 4px; }
.ag-cf7__wide { grid-column: 1 / -1; }
.ag-cf7__req { color: var(--ag-green-600); }
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ag-ink);
}
.wpcf7 textarea { height: auto; padding: 13px 15px; line-height: 1.5; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--ag-green-500); }

.ag-cf7__chips { display: flex; flex-direction: column; gap: 9px; }
.ag-cf7__label { font-size: 13.5px; font-weight: 500; color: var(--ag-body-soft); }
.ag-cf7__chips .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-cf7__chips .wpcf7-list-item { margin: 0; }
.ag-cf7__chips .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 21px;
  font-size: 14.5px;
  color: var(--ag-ink);
  cursor: pointer;
}
.ag-cf7__chips .wpcf7-list-item label:hover { border-color: var(--ag-green-500); }
.ag-cf7__chips .wpcf7-list-item label:has(input:checked) { background: var(--ag-green-soft); border-color: var(--ag-green-500); }
.ag-cf7__chips input[type="radio"] { width: 16px; height: 16px; accent-color: var(--ag-green-500); }

.ag-cf7__file {
  align-items: center;
  flex-direction: row !important;
  gap: 11px;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px dashed #C9D0D8;
  border-radius: var(--ag-radius);
  font-size: 14.5px;
}
.ag-cf7__consent { display: flex; grid-column: 1 / -1; font-size: 13.5px; line-height: 1.5; color: var(--ag-body-soft); }
.ag-cf7__consent .wpcf7-list-item { margin: 0; }
.ag-cf7__consent input[type="checkbox"] { width: 18px; height: 18px; margin-right: 10px; accent-color: var(--ag-green-500); }

.ag-cf7__submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; grid-column: 1 / -1; padding-top: 4px; }
.wpcf7 input[type="submit"] {
  height: 54px;
  padding: 0 28px;
  background: var(--ag-green-500);
  border: 0;
  border-radius: 27px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: #009354; }
.ag-cf7__note { max-width: 320px; font-size: 14px; line-height: 1.45; color: var(--ag-muted); text-wrap: pretty; }

.wpcf7 .wpcf7-not-valid { border-color: #C0392B; }
.wpcf7-response-output {
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid var(--ag-green-border) !important;
  border-radius: var(--ag-radius);
  background: var(--ag-green-soft);
  font-size: 15px;
  color: var(--ag-ink);
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: #F0C9C2 !important; background: #FCF3F1; }

.wpcf7 input[type="file"] { width: 100%; font-size: 14px; color: var(--ag-body-soft); }
.wpcf7 input[type="file"]::file-selector-button {
  height: 36px;
  margin-right: 12px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 18px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ag-ink);
  cursor: pointer;
}
.wpcf7 input[type="file"]::file-selector-button:hover { border-color: var(--ag-green-500); color: var(--ag-green-600); }
.wpcf7 .wpcf7-spinner { margin: 0; }
.ag-hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 620px) {
  .ag-cf7__grid { grid-template-columns: 1fr; }
  .ag-cf7__submit .wpcf7-spinner { display: none; }
}
