/* Redőny és rovarháló page only (redony-rovarhalo.html). Namespaced with .rr- so it never leaks into other pages. */

/* Hero: two real job photos in the sibling hero-frame */
.rr-hero-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rr-hero-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; border-radius: var(--radius-media); }
.rr-hero-photos img:first-child { object-position: center 30%; }
.rr-hero-photos img:last-child { object-position: center 40%; }

/* On-page nav */
.rr-subnav a.is-current { color: var(--brand); }

/* Redőny type cards: cutout on a neutral panel */
.rr-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rr-type { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-global); overflow: hidden; }
.rr-type-media { background: #fff; border-bottom: 1px solid var(--line); height: 300px; padding: 28px 32px; display: flex; align-items: center; justify-content: center; }
.rr-type-media img { max-width: 100%; max-height: 100%; width: auto; height: 100%; object-fit: contain; object-position: center; display: block; }
.rr-type-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.rr-type-body h3 { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 14px 0 12px; }
.rr-type-body p { font-size: 15px; color: var(--muted); margin: 0; }
.rr-type-fit { margin-top: auto; padding-top: 20px; }
.rr-type-fit > div { border-top: 1px solid var(--line); padding-top: 16px; min-height: 86px; font-size: 14px; color: var(--body); }
.rr-type-fit strong { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* Shared redőny spec block: real photo + ruled spec grid */
.rr-spec { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.rr-spec-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; display: block; border-radius: var(--radius-media); }
.rr-spec h3 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.12; margin-bottom: 14px; }
.rr-dl { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin: 28px 0; }
.rr-dl > div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.rr-dl > div:nth-child(odd) { border-right: 1px solid var(--line); }
.rr-dl > div:nth-child(even) { padding-left: 24px; padding-right: 0; }
.rr-dl dt { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rr-dl dd { margin: 6px 0 0; font-family: var(--display); font-size: 22px; line-height: 1.25; color: var(--ink); }
.rr-dl dd small { display: block; font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 4px; }

/* Rovarháló cards */
.rr-nets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rr-net { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-global); overflow: hidden; }
.rr-net-media { aspect-ratio: 4 / 3; overflow: hidden; background: #eef2f4; border-bottom: 1px solid var(--line); }
.rr-net-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.rr-net:hover .rr-net-media img { transform: scale(1.03); }
.rr-net-body { padding: 26px 28px 30px; }
.rr-net-body h3 { margin: 14px 0 10px; }
.rr-net-body p { font-size: 15px; color: var(--muted); margin: 0; }
.rr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rr-chips .chip { background: #fff; }

/* Dark "jó tudni" spec card in the grid */
.rr-net-facts { background: var(--brand-darkest, #00111a); color: #fff; border-radius: var(--radius-global); padding: 34px 32px; display: flex; flex-direction: column; }
.rr-net-facts .sec-index { color: #8fd3f7; margin-bottom: 14px; }
.rr-net-facts h3 { color: #fff; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.15; margin-bottom: 18px; }
.rr-net-facts dl { margin: 0; border-top: 1px solid rgba(255,255,255,.16); }
.rr-net-facts dl > div { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.rr-net-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.rr-net-facts dd { margin: 4px 0 0; font-size: 15px; color: #fff; line-height: 1.5; }
.rr-net-facts .link-arrow { color: #fff; margin-top: auto; padding-top: 22px; }

/* Combined (redőny + szúnyogháló with a new window) */
.rr-combo { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: center; }
.rr-combo-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.rr-combo-photos figure { margin: 0; }
.rr-combo-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; border-radius: var(--radius-media); }
.rr-combo-photos figure:last-child { transform: translateY(-40px); }
.rr-combo-photos figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); margin-top: 12px; }
.rr-combo-points { margin: 28px 0 32px; border-top: 1px solid #c9d6de; }
.rr-combo-points li { display: grid; grid-template-columns: 40px 1fr; gap: 0 14px; padding: 18px 0; border-bottom: 1px solid #c9d6de; }
.rr-combo-points i { color: var(--brand); font-size: 20px; padding-top: 3px; }
.rr-combo-points h4 { margin: 0 0 4px; }
.rr-combo-points p { margin: 0; font-size: 15px; color: var(--muted); }

/* Real job photos */
.rr-works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rr-works .gallery-item { height: auto !important; aspect-ratio: 3 / 4; width: 100%; padding: 0; border: 1px solid var(--line); background: #eef2f4; cursor: zoom-in; }
.rr-works .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.rr-works .gallery-item .rr-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(to top, rgba(0,17,26,.78), rgba(0,17,26,0)); color: #fff; font-size: 13px; font-weight: 700; text-align: left; pointer-events: none; }

@media (max-width: 1023px) {
  .rr-types, .rr-nets { grid-template-columns: 1fr 1fr; }
  .rr-spec, .rr-combo { grid-template-columns: 1fr; gap: 40px; }
  .rr-spec-photo img { aspect-ratio: 16 / 10; }
  .rr-works { grid-template-columns: repeat(3, 1fr); }
  .rr-combo-photos figure:last-child { transform: none; }
}
@media (max-width: 640px) {
  .rr-types, .rr-nets { grid-template-columns: 1fr; gap: 20px; }
  .rr-type-media { height: 240px; }
  .rr-type-body, .rr-net-body { padding: 22px 22px 24px; }
  .rr-type-body h3 { font-size: 26px; }
  .rr-spec { margin-top: 48px; padding-top: 48px; }
  .rr-spec h3 { font-size: 28px; }
  .rr-dl { grid-template-columns: 1fr; }
  .rr-dl > div, .rr-dl > div:nth-child(even) { padding: 16px 0; border-right: 0 !important; }
  .rr-works { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rr-net-facts { padding: 28px 22px; }
}
