/* Strona główna. Listy przecen i podzespołów biorą style z components.css
   i price_cuts.css — tutaj tylko hero, karty zestawów i kafle kategorii. */

/* ---- hero ---- */
.hero {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.hero-in {
    max-width: 1180px;
    margin: 0 auto;
    padding: 52px 20px 40px;
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 40px;
    align-items: center;
}

.hero h1 {
    font-size: 38px;
    font-weight: 650;
    letter-spacing: -.03em;
    line-height: 1.12;
}

.hero h1 b {
    color: var(--accent);
    font-weight: 650;
}

.hero .lead {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.6;
    max-width: 54ch;
    margin-top: 12px;
}

.hero .find {
    display: flex;
    margin-top: 20px;
    max-width: 480px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    overflow: hidden;
}

.hero .find:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero .find input {
    font: inherit;
    font-size: 14px;
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    color: var(--text);
    background: transparent;
    border: 0;
}

.hero .find input:focus {
    outline: none;
}

.hero .find button {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 0 18px;
    cursor: pointer;
    color: var(--surface);
    background: var(--accent);
    border: 0;
}

.hero .find button:hover {
    background: var(--ink);
}

.hero .hints {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 11px;
}

.hero .hints span {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-3);
    align-self: center;
    margin-right: 2px;
}

.hero .hints a {
    font-size: 12.5px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text-2);
    text-decoration: none;
}

.hero .hints a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* prawa kolumna hero: co robi serwis, w liczbach */
.hero .panel {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.hero .panel h2 {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--text-3);
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
}

.hero .panel ol {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
    counter-reset: step;
}

.hero .panel li {
    list-style: none;
    display: flex;
    gap: 11px;
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
    counter-increment: step;
}

.hero .panel li::before {
    content: counter(step);
    font-family: var(--mono);
    font-size: 10px;
    width: 19px;
    height: 19px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    color: var(--text-3);
}

.hero .panel b {
    color: var(--text);
    font-weight: 600;
}

.hero .nums {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.hero .nums div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hero .nums b {
    font-family: var(--mono);
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    color: var(--text);
}

.hero .nums span {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* ---- nagłówek sekcji ---- */
.sec {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    margin: 38px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.sec h2 {
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sec h2 i {
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: var(--dot, var(--accent));
}

.sec p {
    font-size: 13px;
    color: var(--text-2);
}

.sec .more {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--text-3);
    text-decoration: none;
    white-space: nowrap;
}

.sec .more:hover {
    color: var(--accent);
}

/* ---- zestawy PC ---- */
.rigs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.rig {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.rig:hover {
    border-color: var(--line-strong);
}

.rig .shot {
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.rig .shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rig .shot .ph {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.rig .body {
    padding: 14px 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.rig h3 {
    font-size: 15.5px;
    font-weight: 600;
}

.rig h3 a {
    color: var(--text);
    text-decoration: none;
}

.rig h3 a:hover {
    color: var(--accent);
}

.rig .desc {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.rig .budgets {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dotted var(--line);
}

.rig .budgets span {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-3);
    width: 100%;
}

.rig .budgets a {
    font-family: var(--mono);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    padding: 4px 9px;
    border-radius: 5px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text-2);
    text-decoration: none;
}

.rig .budgets a:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.rig .go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 9px 12px;
    border-radius: 7px;
    border: 1px solid var(--line-strong);
    color: var(--text);
    background: var(--surface-2);
    text-decoration: none;
}

.rig .go:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

/* ---- kafle kategorii ---- */
.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 10px;
}

.tile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text-2);
    font-size: 13.5px;
    text-decoration: none;
}

.tile i {
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: var(--dot);
    flex: none;
}

.tile:hover {
    border-color: var(--line-strong);
    color: var(--text);
}

@media (max-width: 940px) {
    .hero-in {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 34px 20px 30px;
    }

    .hero h1 {
        font-size: 30px;
    }
}
