/* Home V2 owns its own vertical spacing. */
body.home .site-content { padding-top: 0 !important; }

/* Polrad Home V2 */
.polrad-home-v2 {
    --ph-text: #172033;
    --ph-muted: #657287;
    --ph-border: #dce4ed;
    --ph-soft: #f6f9fc;
    --ph-blue: #1258a8;
    --ph-blue-dark: #0d4788;
    width: min(100% - 40px, 1240px);
    padding: 34px 0 56px;
    color: var(--ph-text);
}

.polrad-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(290px, .72fr);
    align-items: stretch;
    gap: 28px;
    padding: 22px 0 30px;
}
.polrad-home-hero__copy { min-width: 0; }
.polrad-home-hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--ph-text);
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 780;
    letter-spacing: -.045em;
    line-height: 1.02;
}
.polrad-home-hero__lead {
    max-width: 780px;
    margin: 17px 0 21px;
    color: #536176;
    font-size: 16px;
    line-height: 1.62;
}
.polrad-home-search { position: relative; z-index: 20; max-width: 820px; margin: 0; }
.polrad-home-search__box {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 58px;
    padding: 5px 6px 5px 13px;
    border: 2px solid #b8cce1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(23, 32, 51, .08);
}
.polrad-home-search__box:focus-within { border-color: #6d9bca; box-shadow: 0 0 0 3px rgba(18, 88, 168, .08), 0 10px 28px rgba(23,32,51,.08); }
.polrad-home-search__icon {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
    justify-self: center;
    color: #96a4b5;
    font-size: 0;
    line-height: 1;
}
.polrad-home-search__icon::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 10px;
    height: 10px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}
.polrad-home-search__icon::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 11px;
    width: 6px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: left center;
}
.polrad-home-search__box input {
    width: 100%;
    min-width: 0;
    height: 44px;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ph-text);
    font: inherit;
    font-size: 15px;
}
.polrad-home-search__box input::placeholder { color: #8793a4; }
.polrad-home-search__box button {
    min-width: 104px;
    height: 44px;
    margin: 0 !important;
    padding: 0 17px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--ph-blue) !important;
    color: #fff !important;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
.polrad-home-search__box button:hover, .polrad-home-search__box button:focus-visible { background: var(--ph-blue-dark) !important; }
.polrad-home-search__results {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    max-height: min(560px, 70vh);
    overflow-y: auto;
    padding: 7px;
    border: 1px solid #d9e3ed;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 20px 46px rgba(23, 32, 51, .16);
}
.polrad-home-search__results[hidden] { display: none !important; }
.polrad-home-search__message { padding: 18px; color: var(--ph-muted); font-size: 13px; text-align: center; }
.polrad-home-hero__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.polrad-home-btn { gap: 8px; font-size: 13px; }

.polrad-home-hero__panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    border: 1px solid #d9e3ed;
    border-radius: 13px;
    background: linear-gradient(145deg, #f8fbfe 0%, #eef5fb 100%);
}
.polrad-home-hero__panel-label { margin: 0 0 12px; color: #59718e; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.polrad-home-hero__panel strong { display: block; margin-bottom: 7px; font-size: 21px; line-height: 1.2; }
.polrad-home-hero__panel > span { color: #56667a; font-size: 13px; line-height: 1.55; }
.polrad-home-hero__panel-contact { display: grid; gap: 5px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #d9e3ed; }
.polrad-home-hero__panel-contact a { color: var(--ph-blue); font-size: 13px; font-weight: 800; text-decoration: none; }

.polrad-home-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 44px;
    border: 1px solid var(--ph-border);
    border-radius: 11px;
    background: #fff;
    overflow: hidden;
}
.polrad-home-trust > div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 13px 15px;
}
.polrad-home-trust > div + div { border-left: 1px solid #e8edf2; }
.polrad-home-trust > div > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 8px;
    background: #edf5fc;
    color: var(--ph-blue);
    font-size: 12px;
    font-weight: 900;
}
.polrad-home-trust p { min-width: 0; margin: 0; }
.polrad-home-trust strong { display: block; color: #253149; font-size: 12px; }
.polrad-home-trust small { display: block; margin-top: 2px; color: #707d90; font-size: 10px; line-height: 1.35; }

.polrad-home-section { margin: 0 0 50px; }
.polrad-home-section__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 15px;
}
.polrad-home-section__heading h2 { margin: 0; font-size: 25px; line-height: 1.18; letter-spacing: -.015em; }
.polrad-home-section__heading > a { color: var(--ph-blue); font-size: 12px; font-weight: 800; text-decoration: none; }
.polrad-home-section__heading > span { max-width: 460px; color: var(--ph-muted); font-size: 12px; text-align: right; }
.polrad-home-section__heading--simple { justify-content: flex-start; }

.polrad-home-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.polrad-home-category-card {
    display: flex;
    min-width: 0;
    min-height: 176px;
    flex-direction: column;
    padding: 15px;
    border: 1px solid var(--ph-border);
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.polrad-home-category-card:hover { border-color: #b8cadc; box-shadow: 0 7px 20px rgba(23,32,51,.06); transform: translateY(-1px); }
.polrad-home-category-card__top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #edf1f5; }
.polrad-home-category-card__top > div { min-width: 0; }
.polrad-home-category-card h3 { margin: 0; font-size: 17px; line-height: 1.25; }
.polrad-home-category-card h3 a { color: var(--ph-text); text-decoration: none; }
.polrad-home-category-card h3 a:hover { color: var(--ph-blue); }
.polrad-home-category-card__top small { display: block; margin-top: 3px; color: #7b8797; font-size: 10px; }
.polrad-home-category-card__arrow { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid #dbe5ef; border-radius: 7px; color: var(--ph-blue) !important; text-decoration: none !important; }
.polrad-home-category-card__children { display: grid; gap: 1px; margin-top: 7px; }
.polrad-home-category-card__children a { display: flex; min-width: 0; justify-content: space-between; gap: 10px; padding: 4px 3px; border-radius: 5px; color: #40506a; font-size: 11px; text-decoration: none; }
.polrad-home-category-card__children a:hover { background: #f6f9fc; color: var(--ph-blue); }
.polrad-home-category-card__children a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.polrad-home-category-card__children a small { flex: 0 0 auto; color: #8994a5; }
.polrad-home-category-card__more { margin-top: auto; padding-top: 8px; color: var(--ph-blue) !important; font-size: 10px; font-weight: 800; text-decoration: none !important; }


.polrad-home-stock__heading { align-items: center; }
.polrad-home-stock__lead {
    max-width: 690px;
    margin: 6px 0 0;
    color: #66758a;
    font-size: 12px;
    line-height: 1.5;
}
.polrad-home-stock__catalog-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid #cbd9e7;
    border-radius: 8px;
    background: #fff;
    color: var(--ph-blue) !important;
    font-size: 11px !important;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.polrad-home-stock__catalog-link:hover,
.polrad-home-stock__catalog-link:focus-visible {
    border-color: #9fb8cf;
    background: #f7fbff;
    box-shadow: 0 4px 12px rgba(23,32,51,.05);
}

.polrad-home-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.polrad-home-brands__list { display: flex; flex-wrap: wrap; gap: 8px; }
.polrad-home-brands__list a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid var(--ph-border);
    border-radius: 7px;
    background: #fff;
    color: #39485f !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    text-decoration: none !important;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.polrad-home-brands__list a span { color: var(--ph-blue); font-size: 12px; }
.polrad-home-brands__list a:hover, .polrad-home-brands__list a:focus-visible {
    border-color: #a9bdd2;
    background: #f6f9fc;
    color: var(--ph-blue) !important;
}

.polrad-home-clients__panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 15px 17px;
    border: 1px solid var(--ph-border);
    border-radius: 10px;
    background: #fff;
}
.polrad-home-clients__panel > p {
    max-width: 620px;
    margin: 0;
    color: #647186;
    font-size: 12px;
    line-height: 1.55;
}
.polrad-home-clients__names {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}
.polrad-home-clients__names span {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 6px 10px;
    border: 1px solid #d8e2ec;
    border-radius: 7px;
    background: #f8fafc;
    color: #35445a;
    font-size: 11px;
    font-weight: 800;
}

.polrad-home-services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.polrad-home-services article { padding: 17px; border: 1px solid var(--ph-border); border-radius: 10px; background: #fff; }
.polrad-home-services article strong { display: block; margin-bottom: 6px; font-size: 15px; }
.polrad-home-services article p { margin: 0; color: #647186; font-size: 12px; line-height: 1.55; }
.polrad-home-services article a { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--ph-blue); font-size: 11px; font-weight: 800; text-decoration: none; }
.polrad-home-services__repair { border-color: #cbdced !important; background: #f8fbfe !important; }

.polrad-home-contact {
    display: grid;
    grid-template-columns: minmax(260px, .78fr) minmax(0, 1.35fr);
    align-items: start;
    gap: 28px;
    padding: 24px;
    border: 1px solid #cfdeec;
    border-radius: 12px;
    background: #f4f8fc;
}
.polrad-home-contact h2 { margin: 0; font-size: 24px; }
.polrad-home-contact__intro > p:not(.polrad-home-eyebrow) { max-width: 520px; margin: 7px 0 0; color: #5c697c; font-size: 13px; line-height: 1.5; }
.polrad-home-contact__direct { display: grid; gap: 5px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #d7e3ee; }
.polrad-home-contact__direct span { margin-bottom: 2px; color: #768397; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.polrad-home-contact__direct a { width: max-content; max-width: 100%; color: var(--ph-blue); font-size: 13px; font-weight: 800; text-decoration: none; }
.polrad-home-contact__form-wrap { min-width: 0; }
.polrad-home-contact-form {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #d7e1eb;
    border-radius: 10px;
    background: #fff;
}
.polrad-home-contact-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.polrad-home-contact-form label { display: grid; min-width: 0; gap: 5px; margin: 0; }
.polrad-home-contact-form label > span { color: #4d5b70; font-size: 10px; font-weight: 800; }
.polrad-home-contact-form label > span em { color: #b42318; font-style: normal; }
.polrad-home-contact-form input,
.polrad-home-contact-form select,
.polrad-home-contact-form textarea {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: 1px solid #cdd9e5 !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #253149 !important;
    font: inherit !important;
    font-size: 12px !important;
}
.polrad-home-contact-form input,
.polrad-home-contact-form select { height: 40px !important; padding: 0 10px !important; }
.polrad-home-contact-form textarea { min-height: 96px !important; padding: 9px 10px !important; resize: vertical; line-height: 1.45; }
.polrad-home-contact-form input:focus,
.polrad-home-contact-form select:focus,
.polrad-home-contact-form textarea:focus { border-color: #7ba6cd !important; outline: 2px solid rgba(32,106,169,.10); outline-offset: 0; }
.polrad-home-contact-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.polrad-home-contact-form__footer small { max-width: 430px; color: #7a8799; font-size: 9px; line-height: 1.4; }
.polrad-home-contact-form__footer button { flex: 0 0 auto; border: 0; cursor: pointer; }
.polrad-home-contact-form__trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.polrad-home-contact__notice { display: grid; gap: 2px; margin-bottom: 10px; padding: 10px 12px; border-radius: 8px; font-size: 11px; }
.polrad-home-contact__notice strong { font-size: 12px; }
.polrad-home-contact__notice--success { border: 1px solid #b7dec9; background: #edf9f2; color: #20623e; }
.polrad-home-contact__notice--error { border: 1px solid #edc1be; background: #fff2f1; color: #8f2822; }

@media (max-width: 1099px) {
    .polrad-home-hero { grid-template-columns: minmax(0, 1.45fr) minmax(260px, .72fr); gap: 18px; }
    .polrad-home-hero h1 { font-size: clamp(36px, 5vw, 50px); }
    .polrad-home-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .polrad-home-trust > div:nth-child(3) { border-left: 0; border-top: 1px solid #e8edf2; }
    .polrad-home-trust > div:nth-child(4) { border-top: 1px solid #e8edf2; }
    .polrad-home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .polrad-home-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .polrad-home-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .polrad-home-v2 { width: min(100% - 28px, 1240px); padding: 14px 0 38px; }
    .polrad-home-hero { display: block; padding-top: 12px; }
    .polrad-home-hero h1 { font-size: 34px; line-height: 1.04; }
    .polrad-home-hero__lead { margin: 12px 0 16px; font-size: 13px; line-height: 1.55; }
    .polrad-home-search__box { grid-template-columns: 27px minmax(0, 1fr) auto; min-height: 52px; padding-left: 9px; }
    .polrad-home-search__icon { width: 17px; height: 17px; }
    .polrad-home-search__box input { height: 40px; padding: 0 6px !important; font-size: 13px; }
    .polrad-home-search__box button { min-width: 72px; height: 40px; padding: 0 10px !important; font-size: 12px; }
    .polrad-home-hero__panel { margin-top: 16px; padding: 17px; }
    .polrad-home-hero__panel strong { font-size: 18px; }
    .polrad-home-trust { grid-template-columns: 1fr; margin-bottom: 34px; }
    .polrad-home-trust > div + div, .polrad-home-trust > div:nth-child(3), .polrad-home-trust > div:nth-child(4) { border-top: 1px solid #e8edf2; border-left: 0; }
    .polrad-home-section { margin-bottom: 36px; }
    .polrad-home-section__heading { display: block; margin-bottom: 11px; }
    .polrad-home-section__heading h2 { font-size: 21px; }
    .polrad-home-section__heading > a, .polrad-home-section__heading > span { display: block; margin-top: 5px; text-align: left; }
    .polrad-home-category-grid { grid-template-columns: 1fr; gap: 9px; }
    .polrad-home-category-card { min-height: 0; padding: 13px; }
    .polrad-home-products { grid-template-columns: 1fr; gap: 9px; }
    .polrad-home-clients__panel { display: block; padding: 13px; }
    .polrad-home-clients__names { justify-content: flex-start; margin-top: 11px; }
    .polrad-home-services__grid { grid-template-columns: 1fr; gap: 9px; }
    .polrad-home-contact { display: block; padding: 17px; }
    .polrad-home-contact h2 { font-size: 21px; }
    .polrad-home-contact__direct { margin: 14px 0 16px; padding-top: 13px; }
    .polrad-home-contact-form { padding: 13px; }
    .polrad-home-contact-form__row { grid-template-columns: 1fr; gap: 9px; }
    .polrad-home-contact-form__footer { display: grid; gap: 10px; }
    .polrad-home-contact-form__footer button { width: 100%; }
}

@media (max-width: 767px) {
    .polrad-home-stock__heading { align-items: flex-start; }
    .polrad-home-stock__catalog-link { width: 100%; justify-content: center; margin-top: 2px; }
    .polrad-home-stock__lead { font-size: 11px; }
}


/* reCAPTCHA v3 — błąd klienta bez utraty danych formularza. */
.polrad-home-contact-form__captcha-error {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e5b9b9;
    border-radius: 8px;
    background: #fff5f5;
    color: #8a2424;
    font-size: 13px;
    line-height: 1.45;
}
.polrad-home-contact-form__captcha-error[hidden] {
    display: none !important;
}
.polrad-home-contact-form button[disabled] {
    opacity: .68;
    cursor: wait;
}
