/* MSPact - kompaktní hlavička */


/* Základ hlavičky */
.container-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "logo nav";
    gap: 0 30px;
}


/* Logo */
.container-header .grid-child:has(.navbar-brand) {
    grid-area: logo;
    padding-top: 10px;
    padding-bottom: 10px;
}


/* Velikost loga */
.container-header .navbar-brand {
    margin-right: 25px;
    padding-left: 20px;
}


.container-header .navbar-brand img {
    max-height: 65px;
    width: auto;
    display: block;
    filter: none;
}




/* Menu */
.container-header .container-nav {
    grid-area: nav;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transform: translateX(-160px);
}


/* Odstranění zbytečného horního odsazení menu */
.container-header .mod-menu {
    margin-left: 0;
    margin-top: 0;
}


/* MSPact - uvodni hero blok */


.mspact-hero {
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 35px;
    align-items: center;
    margin-bottom: 50px;
}


.mspact-hero-text {
    padding: 10px 0;
}


.mspact-hero-text h1 {
    margin-top: 0;
}


.mspact-hero-text h2 {
    margin-top: 10px;
}


.mspact-hero-image {
    width: 100%;
}


.mspact-hero-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Tablet */
@media (max-width: 1000px) {
/* Menu */
.container-header .container-nav {
    grid-area: nav;
    display: flex;
    align-items: right;
    justify-content: flex-start;
    transform: translateX(-40px);
}
}

/* jiny tablet */
@media (max-width: 1325px) {
    .mspact-hero {
        grid-template-columns: 1fr;
        gap: 25px;
    }
/* Menu */
.container-header .container-nav {
    grid-area: nav;
    display: flex;
    align-items: right;
    justify-content: flex-start;
    transform: none;
}

    .mspact-hero-image {
        order: 2;
    }
}


/* MSPact - technologie */


.mspact-tech-intro {
    margin-bottom: 25px;
}


.mspact-tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 25px 0 50px;
}


.mspact-tech-card {
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}


.mspact-tech-image {
    width: 100%;
    aspect-ratio: 12 / 7;
    overflow: hidden;
    background: #e5e7eb;
}


.mspact-tech-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.mspact-tech-content {
    padding: 18px 20px 20px;
}


.mspact-tech-content h3 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    line-height: 1.2;
}


.mspact-tech-content h4 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    line-height: 1.3;
}


.mspact-tech-content p {
    margin: 0;
    line-height: 1.5;
}


/* Tablet */
@media (max-width: 1000px) {
    .mspact-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Mobil */
@media (max-width: 600px) {
    .mspact-tech-grid {
        grid-template-columns: 1fr;
    }
}

/* MSPact - technologie */

.mspact-tech-intro {
    margin-bottom: 25px;
}

.mspact-tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 25px 0 50px;
}

.mspact-tech-card {
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.mspact-tech-image {
    width: 100%;
    aspect-ratio: 12 / 7;
    overflow: hidden;
    background: #e5e7eb;
}

.mspact-tech-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mspact-tech-content {
    padding: 18px 20px 20px;
}

.mspact-tech-content h3 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    line-height: 1.2;
}

.mspact-tech-content h4 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.mspact-tech-content p {
    margin: 0;
    line-height: 1.5;
}

/* Tablet */
@media (max-width: 1000px) {
    .mspact-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobil */
@media (max-width: 600px) {
    .mspact-tech-grid {
        grid-template-columns: 1fr;
    }
}

/* MSPact - služby */

.mspact-services-intro {
    margin-bottom: 25px;
}

.mspact-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 25px 0 50px;
}

.mspact-service-card {
    position: relative;
    background: #f3f4f6;
    border-left: 4px solid #283b75;
    padding: 25px 22px 22px;
    min-height: 190px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mspact-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.10);
}

.mspact-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    background: #283b75;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

.mspact-service-content h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    line-height: 1.25;
}

.mspact-service-content p {
    margin: 0;
    line-height: 1.5;
}

/* Tablet */
@media (max-width: 1000px) {
    .mspact-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobil */
@media (max-width: 600px) {
    .mspact-services-grid {
        grid-template-columns: 1fr;
    }
}

/* MSPact - skupina společností */

.mspact-companies-intro {
    margin-bottom: 25px;
}

.mspact-companies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 25px 0 50px;
}

.mspact-company-card {
    background: #f3f4f6;
    border-top: 4px solid #283b75;
    padding: 24px 22px 22px;
    min-height: 145px;
    box-sizing: border-box;
}

.mspact-company-card h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    line-height: 1.3;
}

.mspact-company-card p {
    margin: 0;
    line-height: 1.5;
}

/* Tablet */
@media (max-width: 1000px) {
    .mspact-companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobil */
@media (max-width: 600px) {
    .mspact-companies-grid {
        grid-template-columns: 1fr;
    }
}

/* MSPact - reference */

.mspact-reference-intro {
    margin-bottom: 25px;
}

.mspact-reference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 25px 0 50px;
}

.mspact-reference-card {
    background: #f3f4f6;
    border-left: 4px solid #283b75;
    padding: 24px 22px 22px;
    min-height: 175px;
    box-sizing: border-box;
    display: flex;
    gap: 18px;
}

.mspact-reference-number {
    flex: 0 0 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #283b75;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

.mspact-reference-content {
    flex: 1;
}

.mspact-reference-content h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    line-height: 1.3;
}

.mspact-reference-content p {
    margin: 0;
    line-height: 1.5;
}

/* Tablet */
@media (max-width: 1000px) {
    .mspact-reference-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobil */
@media (max-width: 600px) {
    .mspact-reference-card {
        padding: 20px;
    }
}

/* MSPact - poptávka a kontakt */

.mspact-contact-box {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    margin: 25px 0 20px;
    padding: 32px;
    background: #283b75;
    color: #ffffff;
    box-sizing: border-box;
}

.mspact-contact-text h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1.3;
}

.mspact-contact-text p {
    margin: 0;
    line-height: 1.6;
}

.mspact-contact-details {
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.mspact-contact-details p {
    margin: 0 0 18px;
    line-height: 1.6;
}

.mspact-contact-details p:last-child {
    margin-bottom: 0;
}

.mspact-contact-details a {
    color: #ffffff;
    text-decoration: underline;
}

.mspact-contact-details a:hover {
    text-decoration: none;
}

/* Tablet a mobil */
@media (max-width: 700px) {
    .mspact-contact-box {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px;
    }

    .mspact-contact-details {
        padding-left: 0;
        padding-top: 20px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.35);
    }
}

/* MSPact - výrobní proces */

.mspact-process {
    margin: 35px 0 50px;
    padding: 28px 25px;
    background: #f3f4f6;
    border-left: 5px solid #283b75;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
}

.mspact-process-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    color: #283b75;
    font-size: 1.05rem;
    font-weight: 600;
    white-space: nowrap;
}

.mspact-process-step img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
}

.mspact-process-arrow {
    flex: 0 0 auto;
    padding: 0 10px;

    color: #283b75;
    font-size: 1.8rem;
    font-weight: 400;
}

/* Tablet */
@media (max-width: 1000px) {
    .mspact-process {
        padding: 25px 15px;
    }

    .mspact-process-step {
        gap: 8px;
        font-size: 0.95rem;
    }

    .mspact-process-step img {
        width: 42px;
        height: 42px;
    }

    .mspact-process-arrow {
        padding: 0 5px;
    }
}

/* Mobil */
@media (max-width: 700px) {
    .mspact-process {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 10px;
    }

    .mspact-process-arrow {
        display: none;
    }

    .mspact-process-step {
        flex-direction: column;
        gap: 7px;
        white-space: normal;
        text-align: center;
    }

    .mspact-process-step img {
        width: 48px;
        height: 48px;
    }
}

/* MSPact - O společnosti */

.mspact-about {
    margin-bottom: 50px;
}

.mspact-about-intro {
    padding: 30px 35px;
    margin-bottom: 35px;
    background: #f3f4f6;
    border-left: 5px solid #283b75;
}

.mspact-about-intro h2 {
    margin-top: 0;
}

.mspact-about-section {
    margin: 35px 0;
    padding: 28px 30px;
    background: #f3f4f6;
    border-left: 4px solid #283b75;
}

.mspact-about-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.mspact-about-section p:last-child {
    margin-bottom: 0;
}

.mspact-about-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 35px 0;
}

.mspact-about-card {
    padding: 28px 30px;
    background: #f3f4f6;
    border-top: 4px solid #283b75;
}

.mspact-about-card h2 {
    margin-top: 0;
}

.mspact-about-card p:last-child {
    margin-bottom: 0;
}

/* Mobil */
@media (max-width: 700px) {
    .mspact-about-intro,
    .mspact-about-section,
    .mspact-about-card {
        padding: 22px;
    }

    .mspact-about-columns {
        grid-template-columns: 1fr;
    }
}

/* MSPact - O společnosti - od výpalku k hotovému dílu */

.mspact-about-production {
    display: grid;
    width: 100%;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin: 35px 0 50px;
    align-items: stretch;
}

.mspact-about-production-image {
    overflow: hidden;
    background: #e5e7eb;
}

.mspact-about-production-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.mspact-about-production-text {
    padding: 30px;
    background: #f3f4f6;
    border-left: 4px solid #283b75;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.mspact-about-production-text h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.mspact-about-production-text p {
    line-height: 1.6;
}

.mspact-about-production-text p:last-child {
    margin-bottom: 0;
}

/* Mobil */
@media (max-width: 700px) {
    .mspact-about-production {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mspact-about-production-image img {
        min-height: 220px;
    }

    .mspact-about-production-text {
        padding: 22px;
    }
}

/* MSPact - Výroba */

.mspact-production {
    margin-bottom: 50px;
}

.mspact-production-intro {
    margin-bottom: 40px;
    padding: 30px 35px;
    background: #f3f4f6;
    border-left: 5px solid #283b75;
}

.mspact-production-intro h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.mspact-production-intro p {
    margin-bottom: 0;
    line-height: 1.6;
}

.mspact-production-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 0 0 35px;
    align-items: stretch;
}

.mspact-production-block-reverse {
    grid-template-columns: 1fr 1fr;
}

.mspact-production-block-reverse .mspact-production-image {
    order: 2;
}

.mspact-production-block-reverse .mspact-production-text {
    order: 1;
}

.mspact-production-image {
    overflow: hidden;
    background: #e5e7eb;
}

.mspact-production-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.mspact-production-text {
    padding: 30px;
    background: #f3f4f6;
    border-left: 4px solid #283b75;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.mspact-production-text h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.mspact-production-text p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* Mobil */
@media (max-width: 700px) {

    .mspact-production-intro {
        padding: 22px;
    }

    .mspact-production-block,
    .mspact-production-block-reverse {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mspact-production-image img {
        min-height: 220px;
    }

    .mspact-production-text {
        padding: 22px;
    }
}

/* MSPact - Technologie */

.mspact-technology {
    margin-bottom: 50px;
}

.mspact-technology-intro {
    margin-bottom: 35px;
    padding: 25px 30px;
    background: #f3f4f6;
    border-left: 5px solid #283b75;
}

.mspact-technology-intro h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.mspact-technology-intro p {
    margin-bottom: 0;
    line-height: 1.6;
}

.mspact-technology-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 35px;
    align-items: stretch;
}

.mspact-technology-image {
    overflow: hidden;
    background: #e5e7eb;
}

.mspact-technology-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.mspact-technology-text {
    padding: 30px;
    background: #f3f4f6;
    border-left: 4px solid #283b75;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.mspact-technology-text h2 {
    margin: 0 0 5px;
}

.mspact-technology-text h3 {
    margin: 0 0 15px;
    font-size: 1.15rem;
}

.mspact-technology-text p {
    margin-bottom: 0;
    line-height: 1.6;
}

.mspact-technology-block-reverse .mspact-technology-image {
    order: 2;
}

.mspact-technology-block-reverse .mspact-technology-text {
    order: 1;
}

@media (max-width: 700px) {
    .mspact-technology-block {
        grid-template-columns: 1fr;
    }

    .mspact-technology-block-reverse .mspact-technology-image {
        order: 1;
    }

    .mspact-technology-block-reverse .mspact-technology-text {
        order: 2;
    }

    .mspact-technology-text {
        padding: 22px;
    }

    .mspact-technology-image img {
        min-height: 220px;
    }
}

/* MSPact - Služby */

.mspact-services {
    margin-bottom: 50px;
}

.mspact-services-intro {
    margin-bottom: 30px;
}

.mspact-services-intro h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.mspact-services-intro p {
    margin-bottom: 0;
    line-height: 1.6;
}

.mspact-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 25px;
}

.mspact-service-card {
    background: #f3f4f6;
    border-left: 4px solid #283b75;
    padding: 22px 20px 24px;
    box-sizing: border-box;
    min-height: 220px;
}

.mspact-service-card h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    line-height: 1.2;
}

.mspact-service-card p {
    margin: 0;
    line-height: 1.55;
}

.mspact-service-card ul {
    margin: 15px 0 0;
    padding-left: 20px;
}

.mspact-service-card li {
    margin-bottom: 5px;
}

@media (max-width: 1000px) {
    .mspact-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .mspact-services-grid {
        grid-template-columns: 1fr;
    }

    .mspact-service-card {
        min-height: 0;
    }
}

 /* MSPact - Skupina společností */

.mspact-companies {
    margin-bottom: 50px;
}

.mspact-companies-intro {
    margin-bottom: 35px;
}

.mspact-companies-intro h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.mspact-companies-intro p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.mspact-group {
    position: relative;
    margin-top: 30px;
}

/* Centrální společnost */

.mspact-group-parent {
    width: min(620px, 90%);
    margin: 0 auto;
    padding: 24px 35px 20px;
    background: #ffffff;
    border: 2px solid #283b75;
    border-radius: 5px;
    box-sizing: border-box;
    text-align: center;
}

.mspact-group-logo {
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mspact-group-logo img {
    display: block;
    max-width: 100%;
    max-height: 105px;
    width: auto;
    height: auto;
}

.mspact-group-parent-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
}

.mspact-group-parent-name strong {
    font-size: 1.15rem;
}

.mspact-group-parent-name span {
    font-size: 0.9rem;
    color: #666;
}

/* Spojení z mateřské společnosti */

.mspact-group-line {
    width: 2px;
    height: 38px;
    margin: 0 auto;
    background: #283b75;
    position: relative;
}

/* Řada společností */

.mspact-group-companies {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    padding-top: 25px;
}

/* Vodorovná spojovací čára */

.mspact-group-companies::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(8.333% + 7px);
    right: calc(8.333% + 7px);
    height: 2px;
    background: #283b75;
}

/* Jednotlivé společnosti */

.mspact-company {
    position: relative;
    background: #f3f4f6;
    border-top: 3px solid #283b75;
    padding: 18px 14px 20px;
    box-sizing: border-box;
    text-align: center;
    min-width: 0;
}

/* Svislé napojení na hlavní čáru */

.mspact-company::before {
    content: "";
    position: absolute;
    top: -28px;
    left: 50%;
    width: 2px;
    height: 28px;
    transform: translateX(-50%);
    background: #283b75;
}

.mspact-company-logo {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.mspact-company-logo img {
    display: block;
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
}

.mspact-company h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.25;
}

.mspact-company p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Tablet */

@media (max-width: 1100px) {

    .mspact-group-companies {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .mspact-group-companies::before {
        display: none;
    }

    .mspact-company::before {
        display: none;
    }

}

/* Mobil */

@media (max-width: 650px) {

    .mspact-group-parent {
        width: 100%;
        padding: 20px;
    }

    .mspact-group-logo {
        height: 90px;
    }

    .mspact-group-logo img {
        max-height: 80px;
    }

    .mspact-group-companies {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 0;
    }

    .mspact-company {
        text-align: left;
    }

    .mspact-company-logo {
        justify-content: flex-start;
    }

}

/* MSPact - Reference / Ukázky realizací */

.mspact-references {
    margin-bottom: 50px;
}

.mspact-references-intro {
    margin-bottom: 40px;
    padding: 30px 35px;
    background: #f3f4f6;
    border-left: 5px solid #283b75;
}

.mspact-references-intro h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.mspact-references-intro p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.mspact-references-intro p:last-child {
    margin-bottom: 0;
}


/* Jednotné sloupce pro všechny reference */

.mspact-reference-block {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 30px;
    margin: 0 0 35px;
    align-items: stretch;
}

/* Pouze prohodí pořadí obrázku a textu,
   šířka sloupců zůstává stejná */

.mspact-reference-block-reverse {
    grid-template-columns: 1.25fr 1fr;
}

.mspact-reference-block-reverse .mspact-reference-image {
    order: 2;
}

.mspact-reference-block-reverse .mspact-reference-text {
    order: 1;
}


/* Fotografie */

.mspact-reference-image {
    overflow: hidden;
    background: #e5e7eb;
    aspect-ratio: 12 / 7;
}

.mspact-reference-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Text */

.mspact-reference-text {
    padding: 30px;
    background: #f3f4f6;
    border-left: 4px solid #283b75;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.mspact-reference-text h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.mspact-reference-text p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.mspact-reference-text p:last-child {
    margin-bottom: 0;
}



/* Tablet */

@media (max-width: 700px) {

    .mspact-references-intro {
        padding: 22px;
    }

    .mspact-reference-block,
    .mspact-reference-block-reverse {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mspact-reference-image img {
        min-height: 220px;
    }

    .mspact-reference-text {
        padding: 22px;
    }

}

/* MSPact - Kontakty a poptávky */

.mspact-contacts {
    margin-bottom: 50px;
}

.mspact-contacts-intro {
    margin-bottom: 35px;
    padding: 30px 35px;
    background: #f3f4f6;
    border-left: 5px solid #283b75;
}

.mspact-contacts-intro h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.mspact-contacts-intro p {
    margin-bottom: 0;
    line-height: 1.6;
}


/* Jednotlivé společnosti */

.mspact-contact-section {
    margin-bottom: 40px;
}

.mspact-contact-section-header {
    margin-bottom: 20px;
}

.mspact-contact-section-header h2 {
    margin: 0 0 6px;
}

.mspact-contact-section-header p {
    margin: 0;
    line-height: 1.5;
    color: #666;
}


/* Kontaktní karty */

.mspact-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.mspact-contact-card {
    background: #f3f4f6;
    border-top: 3px solid #283b75;
    padding: 22px 20px 24px;
    box-sizing: border-box;
}

.mspact-contact-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    line-height: 1.25;
}

.mspact-contact-role {
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: #666;
}

.mspact-contact-card p {
    margin: 0;
    line-height: 1.7;
}

.mspact-contact-card a {
    text-decoration: none;
}

.mspact-contact-card a:hover {
    text-decoration: underline;
}


/* MSPact Steel – dvě karty */

.mspact-contact-section:nth-of-type(3) .mspact-contact-grid {
    grid-template-columns: repeat(3, 1fr);
}


/* Festra – jedna karta */

.mspact-contact-section:nth-of-type(4) .mspact-contact-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 33%;
}


/* Tablet */

@media (max-width: 900px) {

    .mspact-contact-grid,
    .mspact-contact-section:nth-of-type(3) .mspact-contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mspact-contact-section:nth-of-type(4) .mspact-contact-grid {
        max-width: none;
        grid-template-columns: 1fr;
    }

}


/* Mobil */

@media (max-width: 600px) {

    .mspact-contacts-intro {
        padding: 22px;
    }

    .mspact-contact-grid,
    .mspact-contact-section:nth-of-type(3) .mspact-contact-grid {
        grid-template-columns: 1fr;
    }

    .mspact-contact-section:nth-of-type(4) .mspact-contact-grid {
        grid-template-columns: 1fr;
    }

}

/* MSPact - obchodní výzva */

.mspact-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 45px 0;
    padding: 30px 35px;
    background: #283b75;
    box-sizing: border-box;
}

.mspact-cta-text {
    color: #ffffff;
}

.mspact-cta-text h2 {
    margin: 0 0 10px;
    color: #ffffff;
}

.mspact-cta-text p {
    margin: 0 0 5px;
    line-height: 1.6;
}

.mspact-cta-text p:last-child {
    margin-bottom: 0;
}

.mspact-cta-button a {
    display: inline-block;
    padding: 14px 22px;
    background: #ffffff;
    color: #283b75;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.mspact-cta-button a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {

    .mspact-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
    }

    .mspact-cta-button a {
        white-space: normal;
    }

}

.container-footer {
    background: #283b75;
    color: #fff;
    margin-top: 50px;
}

.container-footer .grid-child {
    max-width: 1080px;
}

.mspact-footer {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 60px;
    padding: 40px 0 35px;
}

.mspact-footer-col h3 {
    margin: 0 0 15px;
    color: #fff;
    font-size: 1.2rem;
}

.mspact-footer-col p {
    margin: 0 0 10px;
    line-height: 1.6;
}

.mspact-footer-col a {
    color: #fff;
    text-decoration: none;
}

.mspact-footer-col a:hover {
    text-decoration: underline;
}

.mspact-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.25);
    padding: 15px 0;
    font-size: .85rem;
    color: rgba(255,255,255,.8);
}

@media (max-width: 700px) {
    .mspact-footer {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 20px;
    }

    .mspact-footer-bottom {
        padding: 15px 20px;
    }
}

/* =========================================================
   MSPact FOOTER
   ========================================================= */

.container-footer {
    background: #283b75;
    color: #fff;
    margin-top: 50px;
}

.container-footer .grid-child {
    max-width: 1200px;
}


/* Hlavní část patičky */

.mspact-footer {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr 1.65fr;
    gap: 45px;
    padding: 40px 0 35px;
}


/* Jednotlivé sloupce */

.mspact-footer-col {
    min-width: 0;
}

.mspact-footer-col h3 {
    margin: 0 0 22px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.mspact-footer-col h3::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 10px;
    background: #159bd7;
}


/* Text */

.mspact-footer-col p {
    margin: 0 0 15px;
    color: #fff;
    font-size: 15px;
    line-height: 1.65;
}

.mspact-footer-col strong {
    color: #fff;
}


/* Odkazy */

.mspact-footer-col a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.mspact-footer-col a:hover {
    opacity: 0.75;
}


/* Rychlé odkazy */

.mspact-footer-col:nth-child(2) a::before {
    content: "›";
    display: inline-block;
    margin-right: 10px;
    color: #159bd7;
    font-weight: 700;
    font-size: 20px;
    line-height: 0;
    vertical-align: -2px;
}


/* Projekt */

.mspact-footer-project {
    width: 100%;
}

.mspact-project-image-link {
    display: block;
    width: 100%;
}

.mspact-project-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 0;
}


/* Spodní řádek */

.mspact-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 15px 0;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    text-align: left;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .mspact-footer {
        grid-template-columns: 1.3fr 1fr 1fr;
        gap: 35px;
        padding: 35px 20px;
    }

    .mspact-footer-project {
        grid-column: 1 / -1;
        max-width: 700px;
    }

    .mspact-project-image {
        max-width: 700px;
    }

    .mspact-footer-bottom {
        padding-left: 20px;
        padding-right: 20px;
    }
}


@media (max-width: 700px) {

    .mspact-footer {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 30px 20px;
    }

    .mspact-footer-project {
        grid-column: auto;
        max-width: none;
    }

    .mspact-project-image {
        width: 100%;
        max-width: none;
    }

    .mspact-footer-bottom {
        padding: 15px 20px;
        text-align: center;
    }

}

<div class="mspact-hero">

    <div class="mspact-hero-text">

        <div class="mspact-hero-kicker">
            MACHINERY &amp; STEEL PACT a.s.
        </div>

        <h1>
            Váš spolehlivý partner
            v těžké strojírenské výrobě
        </h1>

        <p class="mspact-hero-intro">
            Zajišťujeme zpracování plechů a výrobu kovových dílů
            od prvního řezu až po dokončení výrobku.
        </p>

        <p>
            Přijmeme vaši zakázku, připravíme technologii,
            provedeme CNC pálení nebo laserové řezání a následně
            zajistíme další zpracování podle požadavků zákazníka.
        </p>

        <a href="/o-spolecnosti" class="mspact-hero-button">
            Více o nás
            <span>→</span>
        </a>

    </div>


    <div class="mspact-hero-image">

        <img
            src="/images/mspact/20260918_151929.jpg"
            alt="CNC pálení plechů"
        >

    </div>

</div>

/* =========================================================
   MSPact – HERO ÚVODNÍ STRÁNKY – FINÁLNÍ ÚPRAVA
   ========================================================= */

.mspact-hero {
    display: grid;
    grid-template-columns: 0.88fr 1.32fr;
    gap: 45px;
    align-items: center;

    max-width: 1400px;
    margin: 10px auto 15px;
    padding: 0;
}


/* ---------------------------------------------------------
   LEVÁ ČÁST
   --------------------------------------------------------- */

.mspact-hero-text {
    padding: 25px 0 25px 25px;
}

.mspact-hero-kicker {
    margin: 0 0 15px;

    color: #14559a;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 1.4;
}

.mspact-hero-text h1 {
    margin: 0 0 22px;

    color: #17233b;
    font-size: clamp(38px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.08;
}

.mspact-hero-text p {
    margin: 0 0 17px;

    color: #39404c;
    font-size: 17px;
    line-height: 1.55;
}

.mspact-hero-text .mspact-hero-intro {
    font-size: 19px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   TLAČÍTKO VÍCE O NÁS
   --------------------------------------------------------- */

.mspact-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    margin-top: 8px;
    padding: 13px 24px;

    background: #1468b5;
    color: #ffffff !important;

    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;

    text-decoration: none !important;
    border-radius: 3px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.mspact-hero-button:hover {
    background: #0f528f;
    color: #ffffff !important;
    transform: translateX(3px);
}

.mspact-hero-arrow {
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
}


/* ---------------------------------------------------------
   FOTOGRAFIE
   --------------------------------------------------------- */

.mspact-hero-image {
    width: 100%;
    height: 560px;

    overflow: hidden;
    border-radius: 2px;
}

.mspact-hero-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 1000px) {

    .mspact-hero {
        grid-template-columns: 1fr 1.1fr;
        gap: 30px;
    }

    .mspact-hero-text {
        padding-left: 15px;
    }

    .mspact-hero-text h1 {
        font-size: 40px;
    }

    .mspact-hero-image {
        height: 470px;
    }

}


/* ---------------------------------------------------------
   MOBIL
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .mspact-hero {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 10px;
    }

    .mspact-hero-text {
        padding: 20px;
    }

    .mspact-hero-kicker {
        font-size: 13px;
        letter-spacing: 2.5px;
    }

    .mspact-hero-text h1 {
        font-size: 36px;
        line-height: 1.12;
    }

    .mspact-hero-text p,
    .mspact-hero-text .mspact-hero-intro {
        font-size: 16px;
    }

    .mspact-hero-button {
        margin-top: 5px;
    }

    .mspact-hero-image {
        height: 320px;
        border-radius: 0;
    }

}

/* =========================================================
   NÁKUP A PRODEJ PLECHŮ
   ========================================================= */

.mspact-steel-page {
    max-width: 1100px;
    margin: 0 auto;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.mspact-steel-hero {
    display: grid;
    grid-template-columns: 1.35fr 1.35fr;
    gap: 25px;
    align-items: center;
    margin-bottom: 55px;
}

.mspact-steel-hero-text {
    padding-left: 5px;
}

.mspact-steel-kicker {
    margin-bottom: 12px;
    color: #1468b5;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
}

.mspact-steel-hero h1 {
    margin: 0 0 22px;
    color: #17233b;
    font-size: clamp(38px, 4vw, 52px);
    line-height: 1.1;
}

.mspact-steel-lead {
    color: #283b75 !important;
    font-size: 20px !important;
    line-height: 1.5 !important;
}

.mspact-steel-hero p {
    color: #39404c;
    font-size: 16px;
    line-height: 1.65;
}

.mspact-steel-hero-image {
    height: 460px;
    overflow: hidden;
}

.mspact-steel-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}


/* ---------------------------------------------------------
   OBSAHOVÉ BLOKY
   --------------------------------------------------------- */

.mspact-steel-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
    margin-bottom: 65px;
}

.mspact-steel-row-reverse .mspact-steel-image {
    order: 2;
}

.mspact-steel-row-reverse .mspact-steel-content {
    order: 1;
}

.mspact-steel-image {
    overflow: hidden;
}

.mspact-steel-image img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.mspact-steel-content {
    padding: 10px;
}

.mspact-steel-number {
    display: block;
    margin-bottom: 10px;
    color: #1468b5;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.mspact-steel-content h2,
.mspact-steel-company h2 {
    margin: 0 0 18px;
    color: #17233b;
    font-size: 30px;
}

.mspact-steel-content p,
.mspact-steel-company p {
    color: #39404c;
    font-size: 16px;
    line-height: 1.65;
}


/* ---------------------------------------------------------
   MSPACT STEEL
   --------------------------------------------------------- */

.mspact-steel-company {
    margin: 15px 0 55px;
    padding: 38px 45px;
    background: #eef3f8;
    border-left: 5px solid #1468b5;
}

.mspact-steel-company > div {
    max-width: 850px;
}


/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.mspact-steel-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;

    padding: 32px 40px;
    margin-bottom: 30px;

    background: #283b75;
    color: #fff;
}

.mspact-steel-cta h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 25px;
}

.mspact-steel-cta p {
    margin: 0;
    color: #fff;
    line-height: 1.6;
}

.mspact-steel-cta a {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    gap: 15px;

    padding: 14px 22px;

    background: #1468b5;
    color: #fff !important;

    text-decoration: none !important;
    font-weight: 700;
}

.mspact-steel-cta a span {
    font-size: 22px;
}


/* ---------------------------------------------------------
   MOBIL
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .mspact-steel-page {
        padding: 0 20px;
    }

    .mspact-steel-hero {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 45px;
    }

    .mspact-steel-hero-text {
        padding-left: 0;
    }

    .mspact-steel-hero h1 {
        font-size: 36px;
    }

    .mspact-steel-hero-image {
        height: 300px;
    }

    .mspact-steel-row {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 45px;
    }

    .mspact-steel-row-reverse .mspact-steel-image {
        order: 1;
    }

    .mspact-steel-row-reverse .mspact-steel-content {
        order: 2;
    }

    .mspact-steel-image img {
        height: 280px;
    }

    .mspact-steel-company {
        padding: 28px 25px;
    }

    .mspact-steel-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 25px;
    }

}

/* =========================================================
   MSPact – KOMPAKTNÍ HAMBURGER PRO TABLET A FOLD
   ========================================================= */

@media (max-width: 1325px) {

    /* Hlavička */
    .container-header {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas: "logo nav";
        gap: 0;
        align-items: center;
    }

    /* Logo */
    .container-header .grid-child:has(.navbar-brand) {
        grid-area: logo;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .container-header .navbar-brand {
        margin-right: 0;
        padding-left: 15px;
    }

    .container-header .navbar-brand img {
        max-height: 55px;
        width: auto;
    }

    /* Pravá část hlavičky */
    .container-header .container-nav {
        grid-area: nav;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        transform: none;
        padding-right: 15px;
    }

    /* Hamburger */
    .container-header .navbar-toggler {
        display: block;
        margin: 0;
    }

    /* Menu je ve výchozím stavu zavřené */
    .container-header .navbar-collapse {
        display: none !important;
    }

    /* Po kliknutí na hamburger */
    .container-header .navbar-collapse.show {
        display: block !important;
    }

    /* Rozbalené menu */
    .container-header .navbar-collapse.show .mod-menu {
        display: block;
        width: 100%;
    }

}

/* =========================================================
   MSPact – kompaktní hlavička / hamburger do 1325 px
   ========================================================= */

@media (max-width: 1325px) {

    .container-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: 0;
    }

    /* Logo */
    .container-header > .grid-child:not(.container-nav) {
        flex: 1 1 auto;
        min-width: 0;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .container-header .navbar-brand {
        margin-right: 0;
        padding-left: 15px;
    }

    .container-header .navbar-brand img {
        max-height: 55px;
        width: auto;
    }

    /* Pravá část */
    .container-header .container-nav {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        transform: none;
        padding: 0 15px 0 10px;
    }

}

/* =========================================================
   MSPACT – MENU ALIGNMENT
   Hamburger menu – Fold / tablet / mobile
   ========================================================= */

@media (max-width: 1325px) {

    .container-header .container-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        transform: none;
    }

}

/* =========================================================
   MSPACT – MENU POSITION ON MOBILE
   ========================================================= */

@media (max-width: 1000px) {

    .container-header .container-nav {
        justify-self: end;
        align-self: center;
        width: auto;
        margin-left: auto;
        margin-right: 0;
        transform: none;
    }

}
/* =========================================================
   MSPACT – HAMBURGER DO 1325 PX
   ========================================================= */

@media (min-width: 992px) and (max-width: 1325px) {

    /* Logo dostane vlastní prostor, menu tlačítko bude vpravo */
    .container-header {
        grid-template-columns: 1fr auto;
        grid-template-areas: "logo nav";
    }

    .container-header .container-nav {
        display: flex;
        justify-self: end;
        align-self: center;
        margin-left: auto;
        margin-right: 0;
        transform: none;
    }

    /* Zobrazit hamburger */
    .container-header .container-nav .navbar-toggler {
        display: block !important;
    }

    /* Skrýt plné menu */
    .container-header .container-nav .navbar-collapse {
        display: none !important;
    }

    /* Po stisknutí hamburgeru menu opět zobrazit */
    .container-header .container-nav .navbar-collapse.show {
        display: block !important;
    }
}

/* =========================================================
   MSPACT – MENU 992–1325 PX
   ========================================================= */

@media (min-width: 992px) and (max-width: 1325px) {

    .container-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 20px !important;
    }

    .container-header .grid-child:has(.navbar-brand) {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .container-header .container-nav {
        flex: 0 0 auto !important;
        width: auto !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        transform: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    /* hamburger */
    .container-header .container-nav .navbar-toggler {
        display: block !important;
    }

    /* schovat otevřené menu */
    .container-header .container-nav .navbar-collapse:not(.show) {
        display: none !important;
    }

    /* menu po kliknutí na hamburger */
    .container-header .container-nav .navbar-collapse.show {
        display: block !important;
    }
}