/* Wspólny rytm stron ofertowych Septsite: opieka, audyt, przejęcia, platformy i TIPIcms. */
body.magento-page,
body.magento2-page {
    background: #fff;
}

/* Zapobiega urywaniu pełnej szerokości hero na starszych podstronach oferty. */
body.magento-page #content {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0;
}

body.magento2-page #content {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0;
}

body.magento-page #wrapper {
    width: 100%;
    max-width: 100%;
}

body.magento2-page #wrapper {
    width: 100%;
    max-width: 100%;
}

body.magento-page,
body.magento-page #wrapper,
body.magento2-page,
body.magento2-page #wrapper {
    overflow-x: clip;
}

.magento-wrap {
    padding: 0 0 clamp(64px, 9vw, 120px);
    background:
        radial-gradient(circle at 88% 0, rgba(194, 36, 31, .055), transparent 30%),
        #fff;
}

/* Hero jest pełnoszeroką sekcją, a nie tłem elementu w kontenerze. Dzięki temu
   nie powstaje jasny pas przy szerokich ekranach, powiększeniu lub pasku przewijania. */
.magento-page .magento-hero,
.magento2-page .magento-hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: none;
    overflow: hidden;
    background:
        linear-gradient(168deg, transparent 0 87%, rgba(199, 39, 45, .78) 87.2% 87.7%, transparent 87.9% 100%),
        linear-gradient(174deg, transparent 0 91%, rgba(124, 151, 173, .68) 91.2% 91.7%, transparent 91.9% 100%),
        radial-gradient(circle at 78% 15%, rgba(76, 106, 132, .28), transparent 31%),
        radial-gradient(circle at 12% 92%, rgba(199, 39, 45, .17), transparent 25%),
        linear-gradient(130deg, #151a22, #1c2733);
}

.magento-page .magento-hero .magento-intro::before,
.magento-page .magento-hero .magento-intro::after,
.magento2-page .magento-hero .magento-intro::before,
.magento2-page .magento-hero .magento-intro::after {
    display: none;
}

.magento-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .72fr);
    align-items: center;
    gap: clamp(36px, 6vw, 92px);
}

.magento-hero .offer-visual-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .25);
    color: #171a21;
    transform: rotate(1.5deg);
}

.magento-hero .offer-visual-label {
    margin: 0 0 20px;
    color: #555962;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.magento-hero .offer-visual-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.magento-hero .offer-visual-list li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid #e9e5e1;
    color: #343942;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.35;
}

.magento-hero .offer-visual-list li::before {
    content: "✓";
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    background: #fff0f0;
    color: #c2241f;
    font-weight: 700;
}

.magento-hero .offer-visual-note {
    margin: 17px 0 0;
    color: #555962;
    font-size: .76rem;
    line-height: 1.55;
}

/* Katalogi modułów mają osobną, pełnoszeroką sekcję hero. Dzięki temu tło nie
   kończy się na szerokości wewnętrznego kontenera ani przy pionowym pasku strony. */
.modules-page .modules-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 15%, rgba(76, 106, 132, .28), transparent 31%),
        radial-gradient(circle at 12% 92%, rgba(199, 39, 45, .17), transparent 25%),
        linear-gradient(130deg, #151a22, #1c2733);
}

.modules-page #content {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
}

.modules-page .modules-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -8vw;
    bottom: 0;
    width: min(58vw, 760px);
    height: 130px;
    opacity: .82;
    background:
        linear-gradient(168deg, transparent 0 44%, rgba(199, 39, 45, .82) 44.3% 45%, transparent 45.3% 100%),
        linear-gradient(174deg, transparent 0 66%, rgba(124, 151, 173, .75) 66.3% 67%, transparent 67.3% 100%);
}

.modules-page .modules-hero .magento-intro {
    max-width: 1010px;
}

.modules-page .modules-hero .magento-intro::before,
.modules-page .modules-hero .magento-intro::after {
    display: none;
}

.modules-page .modules-hero .hero-actions .cta-secondary,
.modules-page .modules-hero .hero-actions .button.button-border.cta-secondary {
    border-color: rgba(255, 255, 255, .36);
    background: rgba(255, 255, 255, .04);
    color: #fff !important;
}

body.magento-page.modules-page #content .modules-hero .hero-actions .button.button-border.cta-secondary {
    color: #fff !important;
}

body.magento-page.modules-page,
body.magento-page.modules-page #wrapper {
    overflow-x: clip;
}

.modules-page .modules-hero .hero-actions .cta-secondary:hover,
.modules-page .modules-hero .hero-actions .button.button-border.cta-secondary:hover {
    border-color: rgba(255, 255, 255, .76);
    background: rgba(255, 255, 255, .1);
    color: #fff !important;
}

.magento-intro {
    position: relative;
    z-index: 0;
    isolation: isolate;
    max-width: 1010px;
    padding: clamp(64px, 9vw, 116px) 0 clamp(42px, 6vw, 76px);
}

.magento-intro::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background:
        linear-gradient(168deg, transparent 0 87%, rgba(199, 39, 45, .78) 87.2% 87.7%, transparent 87.9% 100%),
        linear-gradient(174deg, transparent 0 91%, rgba(124, 151, 173, .68) 91.2% 91.7%, transparent 91.9% 100%),
        radial-gradient(circle at 78% 15%, rgba(76, 106, 132, .28), transparent 31%),
        radial-gradient(circle at 12% 92%, rgba(199, 39, 45, .17), transparent 25%),
        linear-gradient(130deg, #151a22, #1c2733);
}

.magento-intro::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(239, 154, 157, .85), rgba(239, 154, 157, .18), transparent);
}

.magento-intro .eyebrow {
    margin-bottom: 20px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    color: #efa0a3;
}

.magento-intro h1 {
    max-width: 900px;
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(2.3rem, 4.4vw, 4.45rem);
    font-weight: 650;
    letter-spacing: -.043em;
    line-height: .99;
}

.magento-intro h2 {
    max-width: 850px;
    margin-bottom: 18px;
    color: #eee6f0;
    font-size: clamp(1.07rem, 1.8vw, 1.38rem);
    font-weight: 650;
    line-height: 1.45;
}

.magento-intro .lead {
    max-width: 790px;
    color: rgba(255, 255, 255, .72);
    font-size: 1.04rem;
    line-height: 1.75;
}

.magento-intro .hero-actions { margin: 30px 0 14px; }

.magento-intro .hero-actions .button,
.magento-intro .hero-actions .button.button-large {
    min-height: 50px;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: .92rem;
}

.magento-intro .hero-actions .cta-secondary {
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
    background: rgba(255, 255, 255, .04);
}

.magento-intro .hero-actions .cta-secondary:hover {
    border-color: rgba(255, 255, 255, .68);
    color: #fff;
}

/* Starsze arkusze używały ciemnego tekstu dla przycisku obrysowego. */
body.magento-page #content .magento-intro .hero-actions .button.button-border.cta-secondary {
    border-color: rgba(255, 255, 255, .36);
    background: rgba(255, 255, 255, .04);
    color: #fff !important;
}

body.magento-page #content .magento-intro .hero-actions .button.button-border.cta-secondary:hover {
    border-color: rgba(255, 255, 255, .76);
    background: rgba(255, 255, 255, .1);
    color: #fff !important;
}

.magento-intro .hero-pills { gap: 8px; }

.magento-intro .hero-pills .pill {
    padding: 7px 10px;
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .76);
    font-size: .76rem;
}

.magento-section {
    margin-top: 24px;
    padding: clamp(26px, 4vw, 42px);
    border-color: #e7e1dd;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(27, 19, 32, .055);
}

.magento-section h2 {
    color: #1b1620;
    font-size: clamp(1.55rem, 2.7vw, 2.42rem);
    letter-spacing: -.03em;
    line-height: 1.1;
}

.magento-section h3 { color: #2b2430; }

.magento-section p,
.magento-section li,
.service-card p,
.service-card li { color: #68616b; }

.magento-section .service-card,
.magento-section .service-panel {
    border-radius: 14px;
    box-shadow: none;
}

.magento-section .service-card { border-color: #e7e1dd; }

.magento-section .service-panel {
    background: linear-gradient(145deg, #151a22, #1c2733);
    border-color: #1c2733;
}

.magento-section .service-panel h2,
.magento-section .service-panel h3 { color: #fff; }

.magento-section .care-calculator {
    padding: clamp(23px, 3vw, 31px);
    border: 1px solid rgba(255, 255, 255, .1);
    background:
        radial-gradient(circle at 90% 6%, rgba(96, 119, 139, .28), transparent 35%),
        linear-gradient(145deg, #151a22, #1c2733);
}

.care-calculator-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.care-calculator .eyebrow { margin: 0; color: #efa0a3; }
.care-calculator-heading p { max-width: 190px; margin: 0; color: rgba(255, 255, 255, .62); font-size: .77rem; line-height: 1.48; text-align: right; }
.care-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 25px; }
.care-summary > div { min-height: 81px; padding: 14px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 11px; background: rgba(255, 255, 255, .055); }
.care-summary > div > span { display: block; margin-bottom: 7px; color: rgba(255, 255, 255, .6); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.care-summary > div > strong { display: block; color: #fff; font-size: 1.08rem; line-height: 1.2; }
.care-summary .care-summary-total { grid-column: 1 / -1; border-color: rgba(194, 36, 31, .5); background: linear-gradient(100deg, rgba(194, 36, 31, .22), rgba(194, 36, 31, .07)); }
.care-summary .care-summary-total strong { color: #fff; font-size: clamp(1.35rem, 2.1vw, 1.72rem); }
.care-calculator input[type="range"] { width: 100%; height: 7px; margin: 3px 0 19px; appearance: none; border-radius: 999px; background: linear-gradient(90deg, #c2241f, #ed665f); accent-color: #c2241f; cursor: pointer; }
.care-calculator input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; appearance: none; border: 3px solid #fff; border-radius: 50%; background: #c2241f; box-shadow: 0 3px 14px rgba(0, 0, 0, .3); }
.care-calculator input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: #c2241f; box-shadow: 0 3px 14px rgba(0, 0, 0, .3); }
.care-rate-guide { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.care-rate-guide span { padding: 9px 10px; border-radius: 8px; background: rgba(255, 255, 255, .055); color: rgba(255, 255, 255, .7); font-size: .74rem; line-height: 1.35; }
.care-rate-guide strong { display: block; color: #fff; font-size: .75rem; }

.magento-section .service-panel p,
.magento-section .service-panel li { color: rgba(255, 255, 255, .72); }

/* Przyciski outline na ciemnych panelach — biały tekst (globalnie mają #333). */
.magento-section .service-panel .button.button-border,
body.magento-page #content .service-panel .button.button-border:not(.button-light) {
    display: inline-block;
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    border-color: #c2241f;
    background: transparent;
    color: #fff !important;
    text-align: center;
}

.magento-section .service-panel .button.button-border:hover,
body.magento-page #content .service-panel .button.button-border:not(.button-light):hover {
    border-color: #c2241f;
    background: #c2241f;
    color: #fff !important;
}

.magento-page .cta-panel,
.magento2-page .cta-panel {
    border-color: #e7e1dd;
    border-radius: 18px;
    box-shadow: none;
}

/* Strona kontaktu korzysta z tego samego, pełnego tła hero co oferta. */
.contact-page .contact-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 77% 14%, rgba(76, 106, 132, .28), transparent 31%),
        radial-gradient(circle at 12% 92%, rgba(199, 39, 45, .16), transparent 25%),
        linear-gradient(130deg, #151a22, #1c2733);
}

.contact-page .contact-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -6vw;
    bottom: 0;
    width: min(57vw, 740px);
    height: 126px;
    opacity: .8;
    background:
        linear-gradient(168deg, transparent 0 44%, rgba(199, 39, 45, .82) 44.3% 45%, transparent 45.3% 100%),
        linear-gradient(174deg, transparent 0 66%, rgba(124, 151, 173, .75) 66.3% 67%, transparent 67.3% 100%);
}

.contact-page .contact-head {
    max-width: 920px;
    padding: clamp(64px, 9vw, 112px) 0 clamp(44px, 6vw, 76px);
    margin: 0;
}

.contact-page .contact-head .eyebrow {
    margin-bottom: 20px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    color: #efa0a3;
}

.contact-page .contact-head h1 {
    margin-bottom: 18px;
    color: #fff;
    font-size: clamp(2.3rem, 4.4vw, 4.45rem);
    font-weight: 650;
    letter-spacing: -.043em;
    line-height: .99;
}

.contact-page .contact-head .lead {
    max-width: 790px;
    color: rgba(255, 255, 255, .76);
    font-size: 1.04rem;
    line-height: 1.75;
}

.contact-page .contact-head .hero-actions { margin: 30px 0 0; }

.contact-page .contact-head .cta-secondary,
.contact-page .contact-head .button.button-border.cta-secondary {
    border-color: rgba(255, 255, 255, .36);
    background: rgba(255, 255, 255, .04);
    color: #fff !important;
}

.contact-page .contact-head .cta-secondary:hover,
.contact-page .contact-head .button.button-border.cta-secondary:hover {
    border-color: rgba(255, 255, 255, .76);
    background: rgba(255, 255, 255, .1);
    color: #fff !important;
}

.contact-page .magento-wrap { padding-top: clamp(34px, 5vw, 62px); }

/* Panele kontaktu są jasne (--navy-850); etykiety muszą mieć ciemny tekst (WCAG AA). */
.contact-page .service-panel label {
    color: #334155;
    font-weight: 600;
}

.contact-page .service-panel label small {
    color: #c2241f;
}

.contact-page .service-panel .sm-form-control {
    border: 1px solid #c5ced9;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    box-shadow: none;
}

.contact-page .service-panel .sm-form-control:focus {
    border-color: #e05a5e;
    box-shadow: 0 0 0 3px rgba(224, 90, 94, .2);
}

.contact-page .service-panel .sm-form-control[aria-invalid="true"] {
    border-color: #c2241f;
    box-shadow: 0 0 0 3px rgba(194, 36, 31, .2);
}

.contact-page .service-panel .form-result:not(:empty) {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(162, 23, 23, .34);
    border-left: 4px solid #a21717;
    border-radius: 8px;
    background: #fff4f4;
    color: #7f1010;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Karty realizacji otrzymują ten sam spokojny rytm i wyraźną informację zwrotną. */
.magento-page #portfolio .portfolio-item { padding: 10px; }

.magento-page #portfolio .grid-inner {
    overflow: hidden;
    height: 100%;
    border: 1px solid #e7e1dd;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 45px -32px rgba(27, 19, 32, .42);
    transition: transform .22s ease, box-shadow .22s ease;
}

.magento-page #portfolio .grid-inner:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 52px -30px rgba(27, 19, 32, .3);
}

.magento-page #portfolio .portfolio-image { overflow: hidden; }
.magento-page #portfolio .portfolio-image img { transition: transform .28s ease; }
.magento-page #portfolio .grid-inner:hover .portfolio-image img { transform: scale(1.025); }

.magento-page #portfolio .portfolio-desc {
    padding: 19px 20px 21px;
    background: #fff;
}

.magento-page #portfolio .portfolio-desc h3 { margin: 0 0 7px; }
.magento-page #portfolio .portfolio-desc span { color: #7a737d; }

/* Czytelny, celowy stan kart przed dostarczeniem grafiki produktu. */
.modules-page .module-card-media {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    background: #eef2f5;
}

.modules-page .module-card-media::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .44;
    background:
        linear-gradient(145deg, transparent 0 47%, rgba(199, 39, 45, .58) 47.2% 48%, transparent 48.2% 100%),
        linear-gradient(165deg, transparent 0 64%, rgba(91, 119, 142, .55) 64.2% 65%, transparent 65.2% 100%);
}

.modules-page .module-card-image {
    position: relative;
    z-index: 1;
    max-width: 100%;
    transition: transform .25s ease;
}

.modules-page .module-card:hover .module-card-image { transform: scale(1.025); }

/* Spójniejsza, bardziej czytelna stopka na wszystkich podstronach. */
#footer,
#footer.dark {
    background: #fbfbfa;
    border-top: 1px solid #e7e1dd;
}

#footer .footer-main {
    padding: clamp(52px, 7vw, 84px) 0 clamp(34px, 5vw, 58px);
    background: #fbfbfa;
}

#footer .footer-heading {
    margin: 0 0 18px;
    color: #24202a;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

#footer .footer-heading.footer-brand {
    margin-bottom: 18px;
    font-size: clamp(1.5rem, 2vw, 1.85rem);
    letter-spacing: -.055em;
    line-height: 1;
    text-transform: lowercase;
}

#footer .footer-heading.footer-brand a { color: #c2241f; }
#footer .footer-heading.footer-brand a:hover { color: #a21717 !important; }

#footer .footer-text {
    max-width: 390px;
    color: #68616b;
    font-size: .9rem;
    line-height: 1.72;
}

#footer .footer-usp { margin-top: 20px; }

#footer .footer-usp li,
#footer .footer-contact-list li,
#footer .footer-links a {
    color: #5d5760;
    font-size: .84rem;
    line-height: 1.62;
}

#footer .footer-usp li,
#footer .footer-contact-list li { margin-bottom: 8px; }
#footer .footer-links li { margin-bottom: 7px; }

#footer #copyrights {
    padding: 23px 0;
    background: #fff;
    border-top: 1px solid #e7e1dd;
}

#footer #copyrights .copyright-text,
#footer #copyrights .footer-contact {
    color: #555962;
    font-size: .78rem;
}

/* Akcenty informacyjne na jasnym tle zachowują kontrast tekstu WCAG AA. */
.magento-page .service-block .heading-block .before-heading {
    color: #a21717;
}

@media (max-width: 991px) {
    .magento-hero-grid { grid-template-columns: 1fr; }
    .magento-hero .offer-visual-card { max-width: 620px; margin-bottom: clamp(44px, 7vw, 70px); transform: none; }
}

@media (max-width: 575px) {
    .magento-intro { padding-top: 54px; }
    .magento-intro h1 { font-size: clamp(2.2rem, 12vw, 3.25rem); }
    .magento-intro .hero-actions .button { width: 100%; }
    .magento-section { padding: 23px 18px; border-radius: 15px; }
}
