/*
Theme Name: RankingProducts
Theme URI: https://rankingproducts.com
Author: RankingProducts
Description: Elegancki motyw rankingowy w stylu premium (krem + złoto). Edycja logo, czcionek, logo w stopce, favicony i sekcji strony głównej przez Wygląd → Dostosuj.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: rankingproducts
*/

:root {
  --bg: #FBF7EF;
  --card: #FFFDF8;
  --border: #EADFC6;
  --gold: #A8802F;
  --gold-light: #C79A45;
  --gold-dark: #8A6825;
  --ink: #2A2115;
  --muted: #6C5E44;
  --muted-2: #8B7B5C;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Jost', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; height: auto; }
.rp-container { max-width: 1240px; margin: 0 auto; padding: 0 4vw; }

/* Header */
.rp-header { position: sticky; top: 0; z-index: 100; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 14px 4vw; background: #FBF6EC; border-bottom: 1px solid #E7DBC2; box-shadow: 0 2px 10px rgba(138,104,37,0.08); }
.rp-logo-text { font-family: var(--font-serif); font-size: 21px; font-weight: 700; letter-spacing: 2.5px; color: var(--gold-dark); }
.rp-logo img { max-height: 56px; width: auto; }
.rp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; font-weight: 500; }
.rp-nav a { color: #4A4030; }
.rp-nav .current-menu-item > a { color: var(--ink); border-bottom: 2px solid var(--gold); padding-bottom: 4px; }
.rp-btn { display: inline-block; background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #FFF8E8 !important; padding: 12px 26px; border-radius: 4px; font-size: 14.5px; font-weight: 600; letter-spacing: 0.5px; box-shadow: 0 2px 8px rgba(138,104,37,0.35); border: none; cursor: pointer; font-family: var(--font-sans); }
.rp-btn-outline { display: inline-block; border: 1px solid #C4AE7E; color: #4A4030 !important; padding: 12px 26px; border-radius: 4px; font-size: 14.5px; font-weight: 500; background: rgba(255,253,247,0.7); }

/* Hero */
.rp-hero { position: relative; min-height: 560px; background-size: cover; background-position: center right; }
.rp-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251,247,239,0.97) 0%, rgba(251,247,239,0.9) 34%, rgba(251,247,239,0.25) 62%, rgba(251,247,239,0) 100%); }
.rp-hero-inner { position: relative; padding: 64px 0 48px; }
.rp-hero-content { max-width: 560px; display: flex; flex-direction: column; gap: 18px; }
.rp-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 2.2px; color: var(--gold); text-transform: uppercase; }
.rp-hero h1 { margin: 0; font-family: var(--font-serif); font-weight: 700; font-size: 44px; line-height: 1.16; color: #241C10; }
.rp-hero h1 .gold { color: var(--gold); }
.rp-hero p { margin: 0; font-size: 16px; line-height: 1.55; color: #4A4030; max-width: 470px; }
.rp-hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.rp-stats { display: flex; flex-wrap: wrap; gap: 20px 34px; margin-top: 22px; }
.rp-stat { display: flex; align-items: center; gap: 10px; }
.rp-stat-icon { width: 42px; height: 42px; border: 1px solid #C4AE7E; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.rp-stat-icon img { width: 34px; height: 34px; object-fit: cover; mix-blend-mode: multiply; }
.rp-stat b { font-weight: 600; font-size: 17px; display: block; }
.rp-stat span { font-size: 12px; color: var(--muted); line-height: 1.3; }

/* Sections */
.rp-section { padding: 42px 0 8px; }
.rp-section-title { display: flex; align-items: center; gap: 14px; justify-content: center; margin-bottom: 26px; }
.rp-section-title h2 { margin: 0; font-family: var(--font-serif); font-size: 20px; font-weight: 600; letter-spacing: 5px; color: var(--gold-dark); text-transform: uppercase; text-align: center; }
.rp-section-title::before, .rp-section-title::after { content: "•"; color: #C4AE7E; }
.rp-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; }
a.rp-card:hover { border-color: #C4AE7E; box-shadow: 0 6px 18px rgba(138,104,37,0.14); }

.rp-grid-6 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.rp-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.rp-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }

.rp-kategoria { background: #F7F5F0; border: 1px solid var(--border); border-radius: 8px; padding: 24px 12px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.rp-kategoria img.icon { width: 74px; height: 74px; object-fit: cover; mix-blend-mode: multiply; }
.rp-kategoria .name { font-size: 13.5px; font-weight: 600; letter-spacing: 1.6px; color: var(--ink); }
.rp-kategoria img.trophy { width: 100%; max-width: 170px; height: 170px; object-fit: contain; mix-blend-mode: multiply; }

.rp-laureat { overflow: hidden; display: flex; flex-direction: column; }
.rp-laureat .photo { position: relative; height: 250px; background: #F4EDDD; }
.rp-laureat .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-laureat .badge { position: absolute; top: 14px; right: 14px; width: 74px; height: 74px; border-radius: 50%; background: var(--card); border: 2px solid var(--gold-light); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(0,0,0,0.15); font-size: 10px; font-weight: 600; text-align: center; line-height: 1.15; }
.rp-laureat .badge .rok { font-size: 11px; color: var(--gold-dark); }
.rp-laureat .meta { padding: 16px 18px 18px; text-align: center; display: flex; flex-direction: column; gap: 5px; }
.rp-laureat .meta .nazwa { font-size: 17px; font-weight: 600; color: var(--ink); }
.rp-laureat .meta .kat { font-size: 13.5px; color: var(--gold); }
.rp-stars { color: var(--gold-light); letter-spacing: 2px; }

.rp-steps { display: flex; flex-wrap: wrap; gap: 14px 10px; align-items: flex-start; }
.rp-step { display: flex; gap: 14px; flex: 1 1 230px; }
.rp-step .icon { flex-shrink: 0; width: 64px; height: 64px; border: 1px solid #C4AE7E; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--card); }
.rp-step .icon img { width: 58px; height: 58px; object-fit: cover; mix-blend-mode: multiply; }
.rp-step h4 { margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; }
.rp-step h4 .nr { color: var(--gold); }
.rp-step p { margin: 5px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.rp-trust { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 0; padding: 18px 8px; }
.rp-trust-item { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 0 14px; }
.rp-trust-item img { width: 44px; height: 44px; object-fit: cover; mix-blend-mode: multiply; }
.rp-trust-item b { font-size: 12.5px; font-weight: 600; letter-spacing: 1px; display: block; }
.rp-trust-item span { font-size: 12.5px; color: var(--muted); }

.rp-ranking-card { overflow: hidden; display: flex; flex-direction: column; }
.rp-ranking-card .photo { height: 150px; background: #F4EDDD; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rp-ranking-card .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-ranking-card .meta { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.rp-ranking-card .meta b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.rp-ranking-card .meta span { font-size: 13px; color: var(--muted); }
.rp-link-gold { font-size: 12.5px; font-weight: 600; letter-spacing: 1.2px; color: var(--gold); text-transform: uppercase; }

.rp-benefit { padding: 18px; display: flex; gap: 13px; align-items: flex-start; }
.rp-benefit img { width: 52px; height: 52px; object-fit: cover; mix-blend-mode: multiply; flex-shrink: 0; }
.rp-benefit b { font-size: 14.5px; font-weight: 600; }
.rp-benefit p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.rp-ekspert { padding: 22px; display: flex; gap: 18px; align-items: flex-start; }
.rp-avatar { flex-shrink: 0; width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--gold-light); background: linear-gradient(145deg, #F0E4C9, #DCC698); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 26px; font-weight: 600; color: var(--gold-dark); overflow: hidden; }
.rp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rp-ekspert b { font-size: 15.5px; }
.rp-ekspert .rola { font-size: 12.5px; color: var(--gold); }
.rp-ekspert p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.rp-quote { padding: 24px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.rp-quote .mark { font-family: var(--font-serif); font-size: 34px; color: var(--gold-light); line-height: 0.5; margin-top: 10px; }
.rp-quote p { margin: 0; font-size: 14px; line-height: 1.6; color: #4A4030; }
.rp-quote footer { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }

.rp-faq details { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 12px 16px; margin-bottom: 10px; }
.rp-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 500; cursor: pointer; list-style: none; }
.rp-faq summary::-webkit-details-marker { display: none; }
.rp-faq summary::after { content: "⌄"; color: var(--gold); }
.rp-faq details p { font-size: 13px; color: var(--muted); line-height: 1.55; padding-top: 10px; margin: 0; }

/* Footer */
.rp-footer { background: #FBF6EC; border-top: 1px solid #E7DBC2; padding: 36px 4vw 0; margin-top: 46px; }
.rp-footer-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 26px; padding-bottom: 28px; }
.rp-footer-logo img { width: 210px; height: auto; }
.rp-footer h5 { margin: 0 0 4px; font-weight: 600; letter-spacing: 1px; font-size: 12px; color: var(--ink); text-transform: uppercase; }
.rp-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; }
.rp-footer ul a { color: var(--muted); }
.rp-footer .desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.rp-newsletter { display: flex; gap: 8px; }
.rp-newsletter input { flex: 1; border: 1px solid #D9C9A4; border-radius: 4px; padding: 9px 12px; font-family: var(--font-sans); font-size: 13px; background: var(--card); color: var(--ink); }
.rp-footer-bottom { border-top: 1px solid #E7DBC2; padding: 14px 0; max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; font-size: 11.5px; color: var(--muted-2); }

/* Back to top */
#rp-top { position: fixed; bottom: 26px; right: 26px; z-index: 300; width: 50px; height: 50px; border-radius: 50%; border: none; background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #FFF8E8; font-size: 22px; cursor: pointer; box-shadow: 0 5px 16px rgba(0,0,0,0.28); opacity: 0; pointer-events: none; transition: opacity .25s, transform .2s; }
#rp-top.show { opacity: 1; pointer-events: auto; }
#rp-top:hover { transform: translateY(-3px); }

/* Wpisy / strony */
.rp-content { padding: 42px 0; max-width: 860px; }
.rp-content h1, .rp-content h2, .rp-content h3 { font-family: var(--font-serif); }


/* ===== Rozwijane podmenu w nawigacji górnej ===== */
.rp-nav > ul > li { position: relative; }
.rp-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 999;
	display: block;
	flex-direction: column;
	flex-wrap: nowrap;
	min-width: 200px;
	margin: 0;
	padding: 8px 0;
	gap: 0;
	background: #FFFDF8;
	border: 1px solid #E5D9BE;
	border-radius: 6px;
	box-shadow: 0 12px 30px rgba(60,45,15,0.15);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.rp-nav .menu-item-has-children:hover > .sub-menu,
.rp-nav .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.rp-nav .sub-menu li { display: block; width: 100%; margin: 0; }
.rp-nav .sub-menu a {
	display: block;
	padding: 8px 18px;
	font-size: 14.5px;
	white-space: nowrap;
	color: #4A4030;
}
.rp-nav .sub-menu a:hover { background: #F5ECD7; color: var(--ink); }
.rp-nav .menu-item-has-children > a { position: relative; }
.rp-nav .menu-item-has-children > a::after {
	content: "\25BE";
	font-size: 10px;
	margin-left: 6px;
	color: #8B7B5C;
	vertical-align: middle;
}

/* rp-cachebust 1783794939176 */

/* rp-mobile-styles: responsywność i dostępność */
a:focus-visible, button:focus-visible, input:focus-visible, .rp-btn:focus-visible, .rp-nav a:focus-visible {
  outline: 3px solid var(--gold-dark, #A8802F);
  outline-offset: 2px;
  border-radius: 3px;
}
@media screen and (max-width: 992px) {
  .rp-hero { min-height: 460px; }
  .rp-hero h1, h1 { font-size: 38px; }
}
@media screen and (max-width: 768px) {
  .rp-header { justify-content: center; gap: 10px 18px; padding-top: 10px; padding-bottom: 10px; }
  .rp-nav ul { justify-content: center; gap: 8px 18px; font-size: 14px; }
  .rp-logo-text { font-size: 18px; letter-spacing: 1.5px; }
  .rp-hero { min-height: 0; background-position: center top; }
  .rp-hero-inner { padding: 34px 0 30px; }
  .rp-hero-content { max-width: 100%; background: rgba(251,247,239,0.72); border-radius: 12px; padding: 16px; }
  .rp-hero h1, h1 { font-size: 30px; line-height: 1.2; }
  .rp-hero-buttons { flex-wrap: wrap; }
  .rp-hero-buttons .rp-btn, .rp-hero-buttons .rp-btn-outline { width: 100%; text-align: center; }
  .rp-stats { gap: 14px 20px; }
  .rp-section { padding-left: 0; padding-right: 0; }
  .rp-section-title h2 { font-size: 20px; letter-spacing: 2px; }
}
@media screen and (max-width: 480px) {
  .rp-hero h1, h1 { font-size: 25px; }
  .rp-logo-text { font-size: 16px; }
  .rp-nav ul { font-size: 13px; gap: 6px 14px; }
  .rp-stat { flex: 1 1 45%; }
  .rp-section-title h2 { font-size: 18px; }
}
