/* opiniesuplementy: opinion cards, the home wall and the rules page. Registry.css and its
   [data-display="serif"] tokens carry the frame, typography and buttons; this file adds only
   what the mockup needs beyond them. */

/* The mockup keeps rounded corners and a hairline border even on the serif display, unlike the
   sharp-corner serif profile suplementy uses; both read `display: serif`, so the override lives
   here rather than in the shared token block. */
[data-service="opiniesuplementy"] {
    --radius-lg: 18px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --card-border: 1px solid var(--line);
    /* The serif display profile assumes a light serif face; this theme's display font is bold
       Figtree, so every .h1/.h2/.h3/.section-head__title needs the heavier weight the mockup draws. */
    --display-weight: 800;
    --display-tracking: -0.03em;
}

/* The serif display keeps a sharp-cornered, non-italic brand mark for suplementy; the mockup's
   own mark is a rounded tile set in the quote font, italic like every other accent here. */
[data-service="opiniesuplementy"] .mark--tile {
    border-radius: 12px 12px 12px 3px;
    font-family: var(--font-quote);
    font-style: italic;
    padding-top: 3px;
}

[data-service="opiniesuplementy"] .brand__tld {
    font-style: normal;
    font-weight: 500;
}

/* --------------------------------------------------------------------- hero */

.ops-hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 56px;
    padding-block: 40px 56px;
    align-items: center;
}

.ops-hero h1 {
    font-size: 64px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.035em;
    font-family: var(--font-display);
}

.ops-hero h1 span {
    display: block;
    margin-top: 6px;
    font: 400 italic 52px/1.05 var(--font-quote);
    letter-spacing: -0.01em;
    color: var(--accent);
}

.ops-hero__sub {
    margin-top: 20px;
    max-width: 52ch;
    font-size: 18px;
    color: var(--text-2);
}

.ops-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    height: 58px;
    padding: 0 6px 0 20px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 1px 0 var(--line);
}

.ops-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    font: 500 17px var(--font-body);
    color: var(--ink);
    background: transparent;
}

.ops-search .btn {
    min-height: 46px;
}

.ops-note {
    font-size: 13px;
    color: var(--caption);
    margin-top: 12px;
}

.btn--ink {
    background: var(--ink);
    color: #FFFFFF;
    border-color: var(--ink);
}

.btn--ink:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.ops-header-cta {
    border-radius: 999px;
}

.site-menu__actions .ops-header-cta {
    width: 100%;
    min-height: 48px;
}

/* Below 1024 px the header shows only the brand and the menu button, like every other action;
   "Napisz opinię" then lives in the opened mobile panel (.site-menu__actions) instead. */
.ops-header-cta--bar {
    display: none;
}

@media (min-width: 1024px) {
    .ops-header-cta--bar {
        display: inline-flex;
    }
}

/* -------------------------------------------------------------- opinion card */

.op {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 26px 26px 20px;
    background: var(--card);
    border-radius: var(--radius-lg);
    border: var(--card-border);
}

.op__text {
    font: 400 italic 21px/1.4 var(--font-quote);
    color: var(--ink);
}

.op__text::before {
    content: '„';
    margin-right: 4px;
    font: 500 italic 56px/0 var(--font-quote);
    vertical-align: -0.32em;
    color: var(--accent);
}

.op__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 13px;
    color: var(--caption);
}

.op__meta b {
    color: var(--ink);
    font-weight: 700;
}

.op__product {
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    text-decoration: none;
}

.op__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
    font-size: 13px;
    color: var(--caption);
}

.op__foot a {
    color: var(--text-2);
}

.ops-hero .op {
    transform: rotate(-1.2deg);
    box-shadow: 0 18px 40px -24px rgba(26, 27, 31, 0.35);
}

.aspects {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.aspect {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--tint);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.wall {
    columns: 3 320px;
    column-gap: 18px;
}

.wall .op {
    break-inside: avoid;
    margin-bottom: 18px;
}

/* ----------------------------------------------------------------- sections */

.section-head__title em {
    font-family: var(--font-quote);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.ops-band {
    background: var(--card);
    border-block: 1px solid var(--line);
}

.ops-how {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.ops-how li {
    display: grid;
    gap: 10px;
    align-content: start;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--page);
}

.ops-how svg {
    color: var(--accent);
}

.ops-how b {
    font-size: 16px;
}

.ops-how span {
    font-size: 14px;
    color: var(--text-2);
}

.ops-dont {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    margin-top: 14px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    border: 2px dashed var(--accent);
    color: var(--text-2);
    font-size: 15px;
}

.ops-dont b {
    display: block;
    color: var(--ink);
    margin-bottom: 4px;
}

.prod-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.prod-list li a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.prod-list b {
    font-size: 17px;
}

.prod-list small {
    color: var(--caption);
    font-size: 14px;
}

.prod-list .count {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-weight: 700;
    color: var(--accent);
    font-size: 14px;
}

.cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cats a {
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}

.ops-seo {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 32px;
}

.ops-seo p {
    color: var(--text-2);
    max-width: 70ch;
}

.ops-seo p + p {
    margin-top: 12px;
}

/* --------------------------------------------------------------------- rules */

.ops-page-title {
    padding-block: 34px 24px;
}

.ops-page-title h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-family: var(--font-display);
}

.ops-page-title h1 em {
    font: 400 italic 1em var(--font-quote);
    color: var(--accent);
    font-style: italic;
}

.ops-page-title p {
    margin-top: 10px;
    color: var(--text-2);
    max-width: 66ch;
    font-size: 17px;
}

.ops-rules {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
    gap: 48px;
    align-items: start;
}

.ops-toc {
    position: sticky;
    top: 16px;
    display: grid;
    gap: 2px;
    font-size: 14px;
}

.ops-toc a {
    padding: 9px 0;
    border-top: 1px solid var(--line);
    color: var(--text-2);
    text-decoration: none;
    font-weight: 600;
}

.ops-rule {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: var(--card-border);
    margin-bottom: 14px;
}

.ops-rule h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.015em;
    font-family: var(--font-display);
}

.ops-rule p {
    margin-top: 10px;
    color: var(--text-2);
    max-width: 66ch;
}

.ops-rule p + p {
    margin-top: 10px;
}

/* --------------------------------------------------------- lists and search */

.list-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding-block: var(--section);
}

.list-head__title {
    margin: 0;
}

.list-head__count {
    display: block;
    margin-top: 8px;
}

.list-search {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 52px;
    padding: 0 6px 0 18px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    flex: 0 0 auto;
    width: 100%;
    max-width: 420px;
}

.list-search__field {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    font: 500 15px var(--font-body);
    color: var(--ink);
    background: transparent;
}

.list-search__submit {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 0;
    background: var(--ink);
    color: #FFFFFF;
    cursor: pointer;
}

.page-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    padding-block: var(--section);
}

.page-head__title {
    margin: 0;
}

.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.option-list {
    display: grid;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.option-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--card);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}

.search-tips {
    margin-top: 20px;
}

.search-tips ul {
    margin-top: 8px;
    padding-left: 1.25em;
    list-style: disc;
    color: var(--text-2);
}

.cat-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
}

.cat-card__count {
    color: var(--caption);
    font-size: 14px;
    white-space: nowrap;
}

/* ----------------------------------------------------------------- legal note (frame override) */

.ops-legal {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: var(--card-border);
}

.ops-legal summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.ops-legal summary::-webkit-details-marker {
    display: none;
}

.ops-legal__toggle {
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    font-size: 16px;
    color: var(--caption);
    flex-shrink: 0;
}

.ops-legal__toggle::before {
    content: '+';
}

.ops-legal[open] .ops-legal__toggle::before {
    content: '−';
}

.ops-legal__body {
    padding: 0 22px 22px;
    display: grid;
    gap: 14px;
}

.ops-legal__intro {
    font-size: 14px;
    color: var(--text-2);
}

.ops-legal__acts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
}

.ops-legal__act {
    display: grid;
    gap: 2px;
}

.ops-legal__act b {
    font-size: 14px;
}

.ops-legal__act span {
    font-size: 14px;
    color: var(--text-2);
}

.ops-legal__act a {
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 640px) {
    .ops-legal__acts {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 1000px) {
    .ops-how {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .ops-hero .wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        padding-block: 20px 36px;
    }

    .ops-hero h1 {
        font-size: 42px;
    }

    .ops-hero h1 span {
        font-size: 36px;
    }

    .ops-hero__sub {
        font-size: 16px;
    }

    .ops-hero .op {
        transform: none;
    }

    .ops-how {
        grid-template-columns: minmax(0, 1fr);
    }

    .ops-how li {
        grid-template-columns: auto 1fr;
        align-items: start;
    }

    .ops-how li span {
        grid-column: 2;
    }

    .ops-seo,
    .ops-rules {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .ops-page-title h1,
    .ops-page-title h1 em {
        font-size: 36px;
    }

    .ops-toc {
        position: static;
    }

    .list-head,
    .page-head {
        align-items: stretch;
    }

    .list-search {
        max-width: none;
    }
}
