/* ==========================================================================
   RM GROUP — podstrony: menu rozwijane, hero usługi, rysunki, zakres,
   czynniki ceny, FAQ, „zobacz też”, kontakt
   ========================================================================== */

/* --- Menu rozwijane -------------------------------------------------------- */
.nav-dd { position: relative; }
.nav-top { display: inline-flex; align-items: center; gap: .45em; }
.nav-top svg { transition: transform .25s; }
.nav-dd:hover .nav-top svg, .nav-dd:focus-within .nav-top svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; left: -18px; top: calc(100% + 14px); min-width: 270px;
  display: grid; padding: 8px; background: var(--ink-2); border: 1px solid var(--line-d);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease-out);
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }  /* mostek dla kursora */
.nav-dd:hover .nav-menu, .nav-dd:focus-within .nav-menu { opacity: 1; transform: none; pointer-events: auto; }
.hdr-nav .nav-menu a { display: flex; gap: 14px; align-items: baseline; padding: .7em .8em; color: rgba(255,255,255,.82); }
.hdr-nav .nav-menu a::after { display: none; }
.hdr-nav .nav-menu a:hover { background: var(--ink-3); color: #fff; }
.nav-menu .mono { color: var(--red-d); font-size: .66rem; min-width: 1.6em; }
.hdr-nav a[aria-current="page"] { color: #fff; }
.hdr-nav .nav-menu a[aria-current="page"] { background: var(--ink-3); box-shadow: inset 3px 0 0 var(--red); }

.drawer { overflow-y: auto; gap: 2px; }
.drawer-h { margin-top: 20px; color: var(--red-d); }
.drawer-h:first-child { margin-top: 0; }
.drawer a.big { font-size: 1.6rem; }
.drawer a[aria-current="page"] { color: var(--red-d); }
.drawer .drawer-foot { padding-top: 28px; }

/* --- Hero podstrony -------------------------------------------------------- */
.hero--sub { min-height: auto; padding-bottom: clamp(36px, 6vh, 64px); }
.crumbs { display: flex; flex-wrap: wrap; gap: .7em; color: var(--mute-d); }
.crumbs a:hover { color: #fff; }
.crumbs b { color: #fff; font-weight: 500; }
.crumbs span { color: var(--red-d); }
.sub-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: center;
  margin-top: clamp(26px, 5vh, 56px);
}
.hero--sub h1 { margin-top: 0; }
.hero--sub .lead { margin-top: 26px; color: rgba(255,255,255,.78); }
.hero--sub .hero-cta { margin-top: 30px; }
.drawing { margin: 0; }
.drawing figcaption { margin-top: 10px; color: var(--mute-d); text-align: right; }
.draw-svg { display: block; width: 100%; height: auto; overflow: visible; }
.draw-svg text { font-family: var(--mono); font-size: 14px; letter-spacing: .06em; fill: rgba(255,255,255,.85); text-transform: uppercase; }
.draw-svg .d-num { display: none; }
.draw-svg .d-num text { font-size: 19px; font-weight: 600; letter-spacing: 0; fill: #fff; }
.draw-legend { display: none; }
.draw-svg .d-lead { fill: none; stroke: rgba(255,255,255,.5); stroke-width: 1; }
.draw-svg .d-dim line { stroke: rgba(255,255,255,.5); stroke-width: 1; }
.sub-facts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.fact { padding-top: 16px; border-top: 1px solid var(--line-d2); }
.fact .mono { color: var(--mute-d); }
.fact strong { display: block; margin-top: 8px; font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 700; line-height: 1.2; }

/* --- Zakres ------------------------------------------------------------------- */
.scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.scope-item { position: relative; padding: 28px clamp(16px, 2vw, 32px) 34px 0; border-bottom: 1px solid var(--line-l); }
.scope-item:not(:nth-child(3n+1)) { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line-l); }
.scope-item .mono { color: var(--red-l); }
.scope-item h3 { margin: 14px 0 10px; font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.05; }
.scope-item p { color: #3a3a3a; font-size: .97rem; }
.scope-item::after { content: ""; position: absolute; left: 0; top: -1.5px; width: 0; height: 3px; background: var(--red); transition: width .5s var(--ease); }
.scope-item:not(:nth-child(3n+1))::after { left: -1px; }
.scope-item:hover::after { width: 60px; }

/* --- Czynniki ceny ------------------------------------------------------------ */
.price { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.price-side .lead { margin: 24px 0 30px; color: #333; }
.factors { border-top: 1.5px solid var(--ink); }
.factor { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-l); }
.factor dt { display: flex; gap: 14px; align-items: baseline; font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; }
.factor dt .mono { color: var(--red-l); }
.factor dd { color: #3a3a3a; font-size: .97rem; }

/* --- FAQ ------------------------------------------------------------------------ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.faq { border-top: 1px solid var(--line-d2); }
.faq-item { border-bottom: 1px solid var(--line-d); }
.faq-item summary {
  display: grid; grid-template-columns: 2.6em 1fr 24px; gap: 12px; align-items: baseline;
  padding: 22px 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .mono { color: var(--mute-d); }
.faq-item .q { font-size: clamp(1.02rem, 1.4vw, 1.2rem); font-weight: 600; }
.faq-item summary i { position: relative; width: 16px; height: 16px; align-self: center; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: #fff; transition: transform .3s var(--ease-out), background .3s; }
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0); background: var(--red); }
.faq-item[open] summary i::before { background: var(--red); }
.faq-item summary:hover .q { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.faq-item .a { padding: 0 40px 24px calc(2.6em + 12px); color: rgba(255,255,255,.7); }

/* --- Zobacz też ------------------------------------------------------------------ */
.related { padding: clamp(56px, 9vh, 100px) 0; border-top: 1px solid var(--line-d); }
.rel-list { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.related + .final { padding-top: clamp(60px, 10vh, 120px); }

/* --- Kontakt ---------------------------------------------------------------------- */
.contact-big { position: relative; z-index: 2; display: grid; gap: 6px; }
.contact-big a { font-weight: 800; letter-spacing: -.03em; line-height: 1; transition: color .25s; }
.contact-big a:hover { color: var(--red); }
.contact-big .tel-big { font-size: clamp(2.4rem, 6vw, 5.4rem); }
.contact-big .mail-big { font-size: clamp(1.1rem, 2.3vw, 2rem); font-weight: 600; letter-spacing: -.01em; }
.contact-big .mono { color: var(--mute-d); margin-top: 18px; }
.contact-data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-d2); margin-top: clamp(48px, 8vh, 90px); }
.contact-data > div { padding: 24px 22px 0 0; }
.contact-data > div + div { padding-left: 22px; border-left: 1px solid var(--line-d); }
.contact-data .mono { color: var(--mute-d); }
.contact-data p:not(.mono) { margin-top: 10px; color: rgba(255,255,255,.78); }
.contact-data a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-d2); }
.contact-data a:hover { text-decoration-color: var(--red); }

/* --- Responsywność ---------------------------------------------------------------- */
@media (max-width: 1180px) {
  .scope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope-item:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .scope-item:nth-child(even) { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line-l); }
  .scope-item:not(:nth-child(3n+1))::after { left: 0; }
}
@media (max-width: 900px) {
  .sub-grid, .price, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .sub-facts, .rel-list, .contact-data { grid-template-columns: minmax(0, 1fr); }
  .contact-data > div, .contact-data > div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line-d); }
  .factor { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 640px) {
  .scope { grid-template-columns: minmax(0, 1fr); }
  .scope-item, .scope-item:nth-child(even) { padding: 24px 0; border-left: 0; }
  .faq-item .a { padding: 0 0 22px; }
  /* telefon: zamiast podpisów w rysunku numery i legenda pod spodem */
  .draw-svg .d-txt, .draw-svg .d-lead, .draw-svg .d-dot { display: none; }
  .draw-svg .d-num { display: inline; }
  .draw-legend {
    display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 14px; padding: 0; list-style: none; counter-reset: lg;
    font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.85);
  }
  .draw-legend li { display: flex; align-items: center; gap: 8px; counter-increment: lg; }
  .draw-legend li::before {
    content: counter(lg); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    background: var(--red); color: #fff; font-weight: 600; font-size: .72rem; letter-spacing: 0;
  }
  .drawing figcaption { text-align: left; }
}

.hdr-nav { align-items: center; }


/* Tytuł podstrony wyraźnie większy niż nagłówki sekcji */
.hero--sub h1.h-l { font-size: clamp(2.4rem, 5.2vw, 5.8rem); }

/* Wariant nagłówka sekcji: tytuł i opis jeden pod drugim (urozmaica rytm) */
.sec-head--stack { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 54rem; align-items: start; }
.sec-head--stack .lead { max-width: 38em; }

/* Kontakt: dłuższe hasło w węższej kolumnie */
.page-kontakt .hero--sub h1.h-l { font-size: clamp(2rem, 4.1vw, 4.2rem); }

/* --- SEO 15.10.2026: wiersz nad H1, linki w treści, Kontakt ---------------- */
.hero h1 .h-kicker { display: flex; margin-bottom: clamp(12px, 2vh, 22px); font-size: .74rem; line-height: 1.4; color: #fff; }
.hero-top .hero-meta { margin-left: auto; }
.scope-item p a, .faq .a a, .factor dd a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.scope-item p a:hover, .faq .a a:hover { text-decoration-color: var(--red); }
h2.mono { font-family: var(--mono); }
.area-note { margin-top: 22px; max-width: 38em; color: rgba(255,255,255,.7); }
.doc-lead { margin-top: 22px; }
.doc-lead a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
@media (max-width: 480px) { .hero h1 .h-kicker { font-size: .64rem; letter-spacing: .08em; gap: .7em; } .hero h1 .h-kicker::before { width: 26px; } }
