/* ========== Reset & zmienne (spójne z resztą projektu) ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --bg: #f7f7f8;         /* jasne tło strony */
  --surface: #ffffff;    /* karty, sekcje */
  --text: #1f2328;       /* główny tekst */
  --muted: #6b7280;      /* opis/sekundarny */
  --accent: #f58220;     /* pomarańcz */
  --line: #e6e7ea;
  --shadow: 0 8px 24px rgba(16,24,40,.08);
  --radius: 12px;
  --transition: .25s ease;
  --hero-btn-offset: 120px;
}

/* ===== SUBHERO (jak na stronie głównej) ===== */
.subhero {
  position: relative;
  min-height: 68vh;
  display: grid;
  align-items: center;
  background: url("img/oferty.webp") center/cover no-repeat;
  background-attachment: fixed;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* Overlay – lekki rozjaśniacz tła */
.subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Kontener z treścią – biała karta */
.subhero__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255,255,255,0.88);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Tekst */
.subhero__text h1 {
  font-size: clamp(28px, 5.2vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}
.subhero__text h1 span { color: var(--accent); }

.subhero__text p {
  margin-top: 12px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 70ch;
}

/* Akcje (przyciski) */
.subhero__actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.subhero__actions .btn {
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition);
}
.subhero__actions .btn--primary {
  background: var(--accent);
  color: #111;
  box-shadow: 0 8px 20px rgba(245,130,32,.25);
}
.subhero__actions .btn--primary:hover {
  background: #ff983a;
  box-shadow: 0 10px 26px rgba(245,130,32,.35);
}
.subhero__actions .btn--ghost {
  background: transparent;
  border: 2px solid var(--line);
  color: var(--text);
}
.subhero__actions .btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245,130,32,0.08);
}

/* Desktop */
@media (min-width: 1025px) {
  .subhero { min-height: 90vh; }
}

/* Mobile */
@media (max-width: 1024px) {
  .subhero { 
    min-height: 90vh;
    background-attachment: scroll;
  }
  .subhero__container {
    background: rgba(255,255,255,0.94);
    padding: clamp(20px, 5vw, 32px);
  }
  .subhero__text h1 { font-size: clamp(26px, 7vw, 36px); }
}

/* ---------------- Breadcrumbs ---------------- */
.breadcrumbs{
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.breadcrumbs ol{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px clamp(16px, 4vw, 24px);
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: .95rem;
  color: var(--muted);
}
.breadcrumbs a{
  color: var(--muted);
  text-decoration: none;
}
.breadcrumbs li+li::before{
  content:"›";
  margin: 0 6px;
  color: #999;
}

/* ---------------- Sekcje ofert + karty ---------------- */
.offer{
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.section-title{
  text-align: center;
  color: var(--text);
  font-size: clamp(22px,3.2vw,32px);
  padding: clamp(20px, 3vw, 28px) 0;
  letter-spacing: .2px;
  font-weight: 800;
}
.offer__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: clamp(28px, 4vw, 40px);
}
.card{
  display: grid;
  grid-auto-rows: min-content;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: clip;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(16,24,40,.12);
  border-color: var(--accent);
}
.card picture, .card img{
  display: block;
  width: 100%;
  height: auto;
}
.card__body{
  padding: 14px 14px 16px;
  display: grid;
  gap: 10px;
}
.card__title{
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--accent);
  font-weight: 700;
}
.card__desc{
  color: var(--muted);
  font-size: .98rem;
}
.card__bullets{
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.card__bullets li{
  background: #f9fafb;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.card__note{
  font-size: .9rem;
  color: var(--muted);
  margin-top: 4px;
}
.card__cta{
  display:flex;
  gap: 8px;
  margin-top: 6px;
}

/* ---------------- Cennik ---------------- */
.card--popular{
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(245,130,32,.12);
}
.card--popular .card__title{ color: var(--accent); }

/* ---------------- FAQ ---------------- */
.faq{
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.faq .container{
  padding-bottom: clamp(24px,4vw,40px);
}
.faq__list{
  display: grid;
  gap: 10px;
}
.faq__item{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq__item[open]{
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(245,130,32,.12);
}
.faq__item summary{
  cursor: pointer;
  padding: 14px 0;
  list-style: none;
  font-weight: 700;
  color: var(--text);
}
.faq__item summary::-webkit-details-marker{ display: none; }
.faq__content{
  color: var(--muted);
  padding: 0 0 14px;
  border-top: 1px solid var(--line);
}

/* ---------------- Kontakt teaser ---------------- */
.contact-teaser{
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.contact-teaser__box{
  margin: 0 auto;
  padding: clamp(18px,3.2vw,28px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-teaser__box .btn{
  white-space: nowrap;
  background: var(--accent);
  color: #111;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: background var(--transition), box-shadow var(--transition);
}
.contact-teaser__box .btn:hover{
  background: #ff983a;
  box-shadow: 0 8px 20px rgba(245,130,32,.25);
}

/* ---------------- Responsywność ---------------- */
@media (max-width: 1100px){
  .offer__grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px){
  .offer__grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-teaser__box{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .contact-teaser__box .btn{ justify-self: center; }
  .subhero{ background-attachment: scroll; }
}
@media (max-width: 560px){
  .offer__grid{ grid-template-columns: 1fr; }
}


/* ---------------- Cennik ---------------- */

/* Wrapper – boks na środku dla cennika */
.price-box {
  max-width: 800px;              /* szerokość boksa */
  margin: 0 auto;                /* wyśrodkowanie */
  background: #fff;              /* białe tło */
  padding: 30px;                 /* wewnętrzny odstęp */
  border-radius: 16px;           /* zaokrąglenie rogów */
  box-shadow: 0 12px 28px rgba(0,0,0,0.12); /* cień */
  border: 1px solid #e5e7eb;     /* delikatna ramka */
}

/* --- Lista cen --- */
.price-list {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.price-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px dashed var(--line, #ddd);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.price-list li span {
  flex: 1 1 auto;
  color: var(--text, #111);
  position: relative;
}

.price-list li b {
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--text, #111);
  white-space: nowrap;
}

/* kropki prowadzące między nazwą a ceną */
@media (min-width: 560px) {
  .price-list li span::after {
    content:" ";
    position: absolute;
    left: 0; right: 0; bottom: .5em;
    border-bottom: 1px dotted var(--line, #ddd);
    transform: translateY(50%);
    z-index: 0;
  }
  .price-list li span,
  .price-list li b {
    position: relative;
    z-index: 1;
    background: #fff;
  }
  .price-list li span { padding-right: 8px; }
}

/* hover efekt */
.price-list li:hover {
  border-color: var(--accent, #f58220);
  box-shadow: 0 6px 14px rgba(245,130,32,.12);
}

/* --- Wyszukiwarka usług w cenniku --- */
.price-search {
  display: grid;
  gap: 10px;
  margin: 8px 0 16px;
}

.price-search input[type="search"] {
  width: 100%;
  padding: 16px 18px;
  font-size: 18px;
  border-width: 2px;
  border-radius: calc(var(--radius, 12px) + 2px);
  border: 1px solid var(--line, #e6e7ea);
  background: var(--surface, #fff);
  color: var(--text, #1f2328);
  transition: box-shadow .2s ease, border-color .2s ease;
}

.price-search input[type="search"]:focus {
  outline: none;
  border-color: var(--accent, #f58220);
  box-shadow: 0 0 0 4px rgba(245,130,32,.12);
}

.price-search input[type="search"]::placeholder {
  font-size: 17px;
  opacity: .9;
}

.price-search__hint {
  color: var(--muted, #6b7280);
  font-size: 13px;
}

/* ukrywanie niedopasowanych pozycji */
.price-list li.is-hidden {
  display: none;
}

/* większe inputy na desktopie */
@media (min-width: 900px) {
  .price-search input[type="search"] {
    padding: 25px 25px;
    font-size: 23px;
  }
  .price-search input[type="search"]::placeholder {
    font-size: 23px;
  }
}
