*, body {
    margin: 0;
    padding: 0;
    font-family: Cambria, Georgia, serif;
    box-sizing: border-box;
}

:root {
    --white-color: #F4FAFA;
    --navy-blue-color: #001F2B;
    --brown-color: #7E570E;
}

a {
    text-decoration: none;
    color: inherit; /* Inherit color from parent */
}

/* Header section */
.header-section {
    background-image: url("img/main_img.webp");
    background-position: top center;
    background-size: cover;
    width: 100%;
    height: 100vh;
    background-repeat: no-repeat;
    position: relative;

    visibility: inherit;
    opacity: 1;
}

.header-section .header-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    color: var(--white-color);
    max-width: 1200px; /* Optional: limit maximum width */
    padding: 20px 20px; /* Optional: add some padding for mobile */

    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
}

.header-container .logo_m {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto; /* Center logo and add bottom margin */
    max-width: 120px; /* Adjust logo size as needed */
}

.header-container h1 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 680px;
}

.header-container p {
    font-size: 1.2rem;
    font-weight: 500;
    font-style: italic;
    opacity: 0.9;
    line-height: 1.4;
}

/* Profiles section */
/* Profiles section */
.profiles-section {
    padding: 80px 20px;
    background: #E9EFEF;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profiles-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.4;
    z-index: 1;
}

.profiles-section .profile-card-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1400px;
    position: relative;
    z-index: 2;
    gap: 30px;
}

.profile-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 405px;
    background: rgba(255, 255, 255, 0.1);
    /*border-radius: 20px;*/
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--navy-blue-color), var(--brown-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.profile-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.profile-card:hover::before {
    transform: scaleX(1);
}

.profile-card .profile-card-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.profile-card:hover .profile-card-img {
    transform: scale(1.05);
}

.profile-card .profile-card-footer {
    width: 100%;
    color: var(--white-color);
    background: var(--navy-blue-color);
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}

.profile-card .profile-card-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.profile-card:hover .profile-card-footer::before {
    left: 100%;
}

.profile-card .profile-card-footer .profile-card-name {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.profile-card .profile-card-footer .profile-card-position {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 20px;
    text-align: center;
    opacity: 0.8;
    position: relative;
    z-index: 2;
    line-height: 1.4;
}

.profile-card .profile-card-footer .profile-card-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);

}

.profile-card .profile-card-footer .profile-card-phone .phone-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: currentColor;
}

.profile-card .profile-card-footer .profile-card-phone .phone-number {
    text-decoration: none;
    color: var(--white-color);
    font-weight: 500;
    transition: color 0.3s ease;
}


/* Image overlay effect */
.profile-card .profile-card-img-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.profile-card .profile-card-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 31, 43, 0.1) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.profile-card:hover .profile-card-img-container::after {
    opacity: 0.7;
}

/** Service section */

.services-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    padding: 80px 20px;
    background: #E3E3E3; /* E9EFEF;*/
    position: relative;
    overflow: hidden;

    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;

    /* Set language for proper hyphenation rules */
    lang: cs;

    /* Optional: Control text wrapping */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 45px;
    margin-top: 0;
    max-width: 1400px;
    color: var(--navy-blue-color);
    position: relative;
    z-index: 2;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--navy-blue-color), var(--brown-color));
    border-radius: 2px;
}

.intro-text {
    text-align: justify;
    max-width: 900px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    background: var(--white-color);;
    padding: 30px;
    /*border-radius: 12px;*/
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
}

.card-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    max-width: 1400px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.service-card {
    background: var(--white-color);
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 300px
}


.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--navy-blue-color), var(--brown-color));
    /*border-radius: 50%;*/
    margin-bottom: 25px;
    color: var(--white-color);
    box-shadow: 0 8px 25px rgba(0, 31, 43, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 31, 43, 0.4);
}

.service-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--navy-blue-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.service-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
    text-align: justify;
}

.cta-section {
    margin-top: 80px;
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.cta-text {
    background: linear-gradient(135deg, var(--navy-blue-color), #34495e);
    color: var(--white-color);
    padding: 50px 40px;
    /*border-radius: 20px;*/
    font-size: 1.3rem;
    line-height: 1.6;
    box-shadow: 0 20px 40px rgba(0, 31, 43, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.cta-text:hover::before {
    left: 100%;
}

.cta-highlight {
    color: var(--white-color);
    font-weight: 800;
    display: block;
    margin-top: 20px;
    font-size: 1.5rem;
}

/* Icon styles */
.building-icon, .document-icon, .business-icon {
    width: 48px;
    height: 48px;
}

/** Footer section */
.footer-section .footer-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: 20% 35%;
    display: block;
}

.footer-section .footer-content-wrapper {
    display: flex;
    justify-content: center;
    background-color: var(--navy-blue-color);
    min-height: 300px;
}

.footer-section .footer-content {
    display: flex;
    flex-direction: row;
    padding: 0 50px 50px;
    width: 1600px;
}

.footer-section .footer-content .footer-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white-color);
    width: 100%;
}

.footer-section .footer-content .footer-info .footer-info-content {
    padding-top: 30px;
    padding-bottom: 30px;
}

.footer-section .footer-content .footer-info .footer-info-content .footer-contact-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 65px;
    padding-right: 20px;
}

.footer-section .footer-content .footer-info .footer-contact-info .logo_m {
    display: block;
    width: 80px;
    height: 80px;
    max-width: 120px; /* Adjust logo size as needed */
}

.footer-section .footer-content .footer-info .footer-contact-info .footer-address {
    font-size: 1.1rem;
    font-weight: 500;

}

.footer-section .footer-content .footer-info .footer-contact-info .mail{
    word-break:break-all;
    min-width: 310px;
}

.footer-section .footer-content .footer-info .footer-partnership {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    padding-top: 20px;

}

.footer-section .footer-content .footer-info .footer-partnership .logo_m {
    display: block;
    width: 40px;
    height: 40px;
    max-width: 120px;
}

.footer-map-content {
    position: relative;
    margin-top: -170px;
    padding-top: 10px;
    padding-left: 10px;
    min-width: 400px;
    width: 50%;
    top: -100px;
    overflow: hidden;
}

.footer-map-content > div:first-child {
    position: relative;
    z-index: 2; /* Higher z-index = on top */
    height: 500px; /* iframe height + top shift */
}


.map {
    height: 100%;
}

/* Horizontal part */
.map::before {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 98%;
    height: 10px;
    background: var(--brown-color);
    content: '';
}

/* Vertical part */
.map::after {
    position: absolute;
    top: 0;
    left: -10px;
    width: 10px;
    height: 98%;
    background: var(--brown-color);
    content: '';
}

.map-background {
    position: absolute;
    top: -10px; /* Shifted down */
    left: -10px; /* Shifted right */
    width: 500px; /* Same width as iframe */
    height: 500px; /* Same height as iframe */
    background-color: var(--brown-color);
    z-index: 1; /* Lower z-index = behind */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}


/************************************ Responsive styles ************************************/
/**Main section**/
@media (max-height: 800px) and (max-width: 665px) {
    .header-section .header-container {
        display: block;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%; /* Optional: limit maximum width */
        height: 100%;

        position: absolute;
        top: 0;
        left: 0;
        transform: unset;
        padding-top: 55%;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-height: 550px) {
    .header-section .header-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;

        color: var(--white-color);
        max-width: 1200px; /* Optional: limit maximum width */
        padding: 20px 20px; /* Optional: add some padding for mobile */

        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    }
}

/** Profiles section */
@media (max-width: 440px) {
    .profile-card {
        width: 100%;
        margin: 20px 0;
    }

    .footer-map-content {
        width: 100%;
        min-width: unset;
        height: 400px;
    }

    .map::after{
        height: 75%;
    }

    .service-card{
        min-width: unset;
        flex: unset;
        width: 100%;
    }
}

/** Footer image section */
@media (min-width: 2000px) {
    .footer-section .footer-image {
        object-position: 20% 35%;
    }
}

@media (max-width: 1400px) {
    .footer-section .footer-image {
        object-position: 20% 45%;
    }
}

@media (max-width: 1000px) {
    .footer-section .footer-image {
        object-position: 45% 45%;
    }
}

/** Footer content section */
@media (max-width: 1730px) {
    .footer-section .footer-content {
        width: 100%;
        padding: 0 120px;
    }

    .footer-section .footer-content .footer-info .footer-info-content .footer-contact-info {
        flex-wrap: wrap;
        justify-content: left;
        column-gap: 60px;
        row-gap: 20px;
    }
}

@media (max-width: 1300px) {
    .footer-section .footer-content .footer-info .footer-partnership {
        max-width: 340px;
    }
}

@media (max-width: 1250px) {
    .footer-section .footer-content {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        padding: 0 50px;
    }

    .footer-map-content {
        margin-top: -160px;
    }

    .footer-section .footer-content .footer-info .footer-partnership {
        max-width: unset;
    }
}

@media (max-width: 1000px) {
    .footer-map-content {
        width: 100%; /* iframe width + left shift */
        top: -55px;
    }
}
