/*
Theme Name: McProdukt Ranking
Theme URI: https://hostingnajlepszy.co.pl/
Author: McProdukt
Author URI: https://mcprodukt.pl/
Description: Lekki motyw WordPress dla rankingu hostingow WWW.
Version: 1.1.0
Text Domain: mcprodukt-ranking
*/

:root {
    --bg: #f3f6fb;
    --panel: #ffffff;
    --panel-soft: #f8fbff;
    --ink: #182235;
    --muted: #657085;
    --line: #dfe7f1;
    --brand: #1267ff;
    --brand-dark: #0c46b5;
    --green: #179a55;
    --green-soft: #e8f8ef;
    --red: #f0184d;
    --red-dark: #be103a;
    --amber: #f5aa22;
    --amber-soft: #fff4d8;
    --shadow: 0 18px 48px rgba(24, 34, 53, 0.10);
    --shadow-soft: 0 10px 28px rgba(24, 34, 53, 0.08);
    --radius: 8px;
    --container: min(1160px, calc(100vw - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(243,246,251,0.92) 46%, rgba(238,244,251,1) 100%),
        repeating-linear-gradient(90deg, rgba(18,103,255,0.05) 0 1px, transparent 1px 92px),
        repeating-linear-gradient(0deg, rgba(23,154,85,0.04) 0 1px, transparent 1px 92px);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-shell { width: var(--container); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
    width: 46px; height: 46px;
    border-radius: var(--radius);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--green));
    font-weight: 900;
    box-shadow: var(--shadow-soft);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; }
.brand small { font-size: 0.84rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.site-nav a {
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--muted);
    font-weight: 800;
    font-size: 0.92rem;
}
.site-nav a:hover { background: #eef4ff; color: var(--ink); }
.site-nav__cta { color: #fff !important; background: var(--red); }

.site-main { padding-bottom: 68px; }
.hero { padding: 34px 0 18px; }
.hero-card, .section-card, .fallback-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 24px;
    padding: 30px;
    overflow: hidden;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius);
    color: var(--brand-dark);
    background: #edf4ff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
h1, .section-title, .cta-title, .fallback-card h1 {
    margin: 16px 0 12px;
    letter-spacing: -0.045em;
    line-height: 0.98;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.9rem); max-width: 860px; }
.section-title { font-size: clamp(2rem, 3.4vw, 3.35rem); }
.hero__lead, .section-intro, .cta-copy, .fallback-card p {
    margin: 0;
    max-width: 880px;
    color: var(--muted);
    line-height: 1.75;
    font-size: 1.04rem;
}
.hero__actions, .rank-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button {
    min-height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 18px;
    border-radius: var(--radius);
    font-weight: 900;
    transition: 0.18s ease;
    border: 1px solid transparent;
}
.button:hover { transform: translateY(-1px); }
.button--primary { color: #fff; background: var(--red); box-shadow: 0 12px 24px rgba(240,24,77,0.18); }
.button--primary:hover { background: var(--red-dark); }
.button--secondary { color: var(--brand-dark); background: #eef4ff; border-color: #d8e6ff; }
.button--ghost { color: var(--red); background: #fff; border-color: var(--red); }
.button--ghost:hover { color: #fff; background: var(--red); }

.hero-side {
    border-radius: var(--radius);
    border: 1px solid #d7e7ff;
    background: linear-gradient(135deg, #f8fbff 0%, #eef8f2 100%);
    padding: 22px;
}
.hero-side h2 { margin: 14px 0 8px; font-size: 1.8rem; }
.hero-side p { margin: 0; color: var(--muted); line-height: 1.7; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.metric {
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.82);
}
.metric strong { display: block; font-size: 1.35rem; line-height: 1; }
.metric span { display: block; margin-top: 5px; color: var(--muted); font-size: 0.82rem; }
.hero-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.section { padding: 18px 0; }
.section-card { padding: 28px; }
.criteria-grid, .knowledge-grid, .checklist-grid { display: grid; gap: 14px; margin-top: 22px; }
.criteria-grid { grid-template-columns: repeat(4, 1fr); }
.knowledge-grid { grid-template-columns: repeat(3, 1fr); }
.checklist-grid { grid-template-columns: repeat(2, 1fr); }
.criteria-item, .knowledge-card, .checklist-card, .cta-box {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--panel-soft);
    padding: 18px;
}
.criteria-item h3, .knowledge-card h3, .checklist-card h3 { margin: 0 0 8px; }
.criteria-item p, .knowledge-card p, .checklist-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.ranking-list { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.host-row {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 170px 168px;
    gap: 22px;
    align-items: center;
    padding: 22px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.host-row:last-child { border-bottom: 0; }
.host-row:nth-child(even) { background: #fbfdff; }
.host-row--top {
    background: linear-gradient(90deg, #fff8e4 0%, #ffffff 38%, #f6fff9 100%);
    border-left: 6px solid var(--amber);
}
.host-brand { display: grid; gap: 8px; }
.host-place { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 900; }
.host-place strong {
    width: 34px; height: 34px;
    border-radius: var(--radius);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; background: var(--ink);
}
.host-row--top .host-place strong { background: var(--amber); color: #402600; }
.host-name { font-size: 1.65rem; line-height: 1; font-weight: 950; letter-spacing: -0.04em; }
.host-name--mc { color: var(--brand); }
.rating { color: var(--amber); font-size: 1.05rem; letter-spacing: 0.02em; }
.rating small { color: var(--ink); font-weight: 800; margin-left: 6px; letter-spacing: 0; }
.host-main h3 { margin: 0 0 9px; font-size: 1.08rem; }
.host-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--ink); }
.host-features li { position: relative; padding-left: 18px; line-height: 1.42; }
.host-features li::before { content: ''; position: absolute; left: 0; top: 0.58em; width: 8px; height: 8px; border-radius: 999px; background: var(--green); }
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tech-tags span {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: #edf4ff;
    border: 1px solid #d9e8ff;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}
.price-box { text-align: right; }
.price-label { color: var(--muted); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; }
.price-main { margin-top: 3px; font-size: 1.8rem; line-height: 1; font-weight: 950; }
.price-renewal { margin-top: 7px; color: var(--muted); line-height: 1.35; font-size: 0.86rem; }
.price-renewal strong { color: var(--red); }
.rank-actions { margin-top: 0; justify-content: flex-end; }
.rank-actions .button { width: 100%; }
.promo-note {
    margin-bottom: 8px;
    padding: 7px 9px;
    border-radius: var(--radius);
    background: var(--amber-soft);
    color: #6f4900;
    font-size: 0.82rem;
    font-weight: 900;
    text-align: center;
}
.ranking-note { margin: 18px 0 0; color: var(--muted); line-height: 1.6; font-size: 0.92rem; }

ul.clean-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; color: var(--muted); line-height: 1.6; }
ul.clean-list li { position: relative; padding-left: 18px; }
ul.clean-list li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 8px; height: 8px; border-radius: 999px; background: var(--green); }
.cta-box { margin-top: 20px; background: linear-gradient(135deg, #eef4ff 0%, #effbf4 100%); }
.cta-title { margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.faq-list { display: grid; gap: 10px; margin-top: 22px; }
.faq-list details { border: 1px solid var(--line); background: var(--panel-soft); border-radius: var(--radius); overflow: hidden; }
.faq-list summary { padding: 17px 18px; cursor: pointer; font-weight: 900; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary { border-bottom: 1px solid var(--line); }
.faq-list p { margin: 0; padding: 0 18px 17px; color: var(--muted); line-height: 1.7; }

.fallback-card { margin-top: 36px; padding: 28px; }
.site-footer { padding: 22px 0 46px; }
.site-footer__inner { border-top: 1px solid var(--line); padding-top: 18px; }
.site-footer__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer__links a { padding: 8px 10px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 800; }
.site-footer__note { margin: 14px 0 0; color: var(--muted); line-height: 1.6; font-size: 0.9rem; }

@media (max-width: 1120px) {
    .hero-card, .criteria-grid, .knowledge-grid, .checklist-grid { grid-template-columns: 1fr; }
    .host-row { grid-template-columns: 170px minmax(0, 1fr); }
    .price-box { text-align: left; }
    .rank-actions { justify-content: flex-start; }
    .rank-actions .button { width: auto; }
}
@media (max-width: 760px) {
    .site-header__inner { align-items: flex-start; flex-direction: column; }
    .site-nav { justify-content: flex-start; }
    .hero-card, .section-card, .fallback-card { padding: 20px; }
    .metric-grid, .host-row { grid-template-columns: 1fr; }
    .host-name { font-size: 1.45rem; }
    .price-main { font-size: 1.55rem; }
}
