:root {
    --primary-red: #c41230;
    --light-red: #e63946;
    --dark-red: #9d0e28;
    --dark-grey: #333333;
    --light-grey: #f1f1f1;
    --beige: #f5e6ca;
    
    --space-xs: 5px;
    --space-sm: 10px;
    --space-md: 20px;
    --space-lg: 30px;
    --space-xl: 40px;
    
    --font-primary: 'Outfit', 'Open Sans', sans-serif;
    --font-size-xs: 0.8rem;
    --font-size-sm: 0.95rem;
    --font-size-base: 1.1rem;
    --font-size-md: 1.3rem;
    --font-size-lg: 1.6rem;
    --font-size-xl: 2rem;
    --line-height-tight: 1.3;
    --line-height-base: 1.6;
    --line-height-relaxed: 1.8;
    
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 10px;
    
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
    --shadow-md: 0 3px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 3px 15px rgba(0,0,0,0.08);
}

body { 
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    background-color: var(--light-grey);
    margin: 0;
    padding: 0;
    color: var(--dark-grey);
}

.header {
    background-color: white;
    box-shadow: var(--shadow-md);
    padding: var(--space-md) var(--space-sm);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 3px solid var(--primary-red);
}

.header-content {
    width: 100%;
    max-width: 1200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container {
    display: flex;
    justify-content: center;
}

.header img {
    max-height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.content-container {
    max-width: 900px;
    margin: var(--space-xl) auto;
    padding: var(--space-md);
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

h1 {
    color: var(--primary-red);
    margin-bottom: var(--space-md);
    text-align: center;
    font-size: var(--font-size-xl);
    font-weight: 600;
}

p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin-bottom: var(--space-md);
}

.content-section {
    margin-bottom: var(--space-xl);
}

.content-section h2 {
    color: var(--primary-red);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.benefit-item {
    background-color: #f9f9f9;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.benefit-item h3 {
    color: var(--primary-red);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-sm);
    font-weight: 600;
    text-align: center;
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid #eee;
}

.benefit-item p {
    margin-bottom: 0;
    text-align: center;
}

ul.feature-list {
    list-style-type: none;
    padding-left: 30px;
    margin: 20px 0 20px 15px;
    text-align: left;
}

ul.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.15rem;
    line-height: 1.5;
    text-align: left;
}

ul.feature-list li:before {
    content: "•";
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.4rem;
    position: absolute;
    left: 0;
}

.contact-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.contact-section p {
    margin: 0 auto;
    max-width: 400px;
}

.contact-section a {
    color: var(--primary-red);
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-section a:hover {
    color: var(--dark-red);
    text-decoration: none;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-card {
    background-color: #f9f9f9;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    max-width: 450px;
    text-align: center;
    margin-top: var(--space-md);
}

.contact-card h3 {
    color: var(--primary-red);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-sm);
    font-weight: 600;
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid #eee;
    text-align: center;
}

.contact-card p {
    text-align: center;
}

.representative-card p {
    text-align: center;
}

.heading-centered {
    text-align: center;
    margin-bottom: 45px;
    position: relative;
    font-size: 1.75rem;
}

.heading-centered:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-red);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.intro-text {
    font-size: var(--font-size-md);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.company-name {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid #eee;
}

.img-container {
    width: 100%;
    margin: var(--space-lg) 0;
    text-align: center;
}

.img-container img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.section-container {
    margin: var(--space-xl) auto;
    padding: var(--space-lg) var(--space-lg);
    border-radius: var(--radius-lg);
}

.section-white {
    background-color: white;
}

.section-gray {
    background-color: var(--light-grey);
}

.bordered-text, 
.why-choose-section,
.contact-section {
    margin: var(--space-xl) auto;
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: none;
    border: none;
}

.benefit-item, 
.representative-centered {
    background-color: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: none;
}

.benefit-item {
    background-color: #f9f9f9;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.representative-centered {
    background-color: #f9f9f9;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    max-width: 450px;
    margin: 0 auto;
}

.section-gray h2:after,
.section-white h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-red);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.content-container a {
    color: var(--primary-red);
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration: none;
}

.content-container a:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

.content-container a:not([href^="mailto:"]):not([href^="tel:"]) {
    position: relative;
    padding-left: 0;
    font-size: inherit;
}

.content-container a:not([href^="mailto:"]):not([href^="tel:"]):before {
    content: none;
    display: none;
}

.content-container a[href^="mailto:"],
.content-container a[href^="tel:"] {
    position: relative;
    padding-left: var(--space-md);
}

.content-container a[href^="mailto:"]:before {
    content: "\f0e0";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: var(--font-size-xs);
    position: absolute;
    left: 0;
    top: 2px;
}

.content-container a[href^="tel:"]:before {
    content: "\f095";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: var(--font-size-xs);
    position: relative;
    left: 0;
    top: 0px;
}

.bordered-text .content-section p {
    text-align: left;
}

.content-section:has(h2:contains("Kontakty")) p,
.content-container .content-section:last-of-type p {
    text-align: center !important;
}

.contacts-section p {
    text-align: center !important;
}

.bordered-text .content-section h2 {
    text-align: center;
}

.bordered-text .content-section p {
    text-align: left;
}

.bordered-text .content-section h2 {
    text-align: center;
}

.contact-card {
    background-color: #f9f9f9;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    max-width: 450px;
    text-align: center;
    margin-top: var(--space-md);
}

.contact-card h3 {
    color: var(--primary-red);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-sm);
    font-weight: 600;
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid #eee;
    text-align: center;
}

.contact-card p {
    text-align: center;
}

.representative-card p {
    text-align: center;
}

.representative-centered {
    text-align: center;
    background-color: #f9f9f9;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    max-width: 450px;
    margin: 0 auto;
}

.representative-centered h3 {
    color: var(--primary-red);
    font-size: var(--font-size-md);
    margin-bottom: var(--space-sm);
    font-weight: 600;
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid #eee;
}

.representative-centered p {
    margin-bottom: 0;
}

.black-heading {
    color: black !important;
}

.mastertherm-link {
    color: var(--primary-red) !important;
    font-weight: 600;
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-left: 0 !important;
}

.content-container a.mastertherm-link:not([href^="mailto:"]):not([href^="tel:"]):before {
    content: none !important;
    display: none !important;
}

.section-container h2 {
    margin-bottom: 40px;
    font-weight: 600;
    font-size: var(--font-size-xl);
}

.section-gray p {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
}

@media (max-width: 767px) {
    .content-container a.mastertherm-link:not([href^="mailto:"]):not([href^="tel:"]):before {
        content: none !important;
        display: none !important;
    }
}

@media (max-width: 480px) {
    .content-container a.mastertherm-link {
        padding-left: 0;
    }
    
    .content-container a.mastertherm-link:not([href^="mailto:"]):not([href^="tel:"]):before {
        content: none !important;
        display: none !important;
    }
}

.section-container h2 {
    margin-bottom: 40px;
    font-weight: 600;
    font-size: var(--font-size-xl);
}

.section-gray p {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
}

@media (max-width: 991px) {
    :root {
        --space-xl: 30px;
        --space-lg: 25px;
    }
    
    .content-container {
        max-width: 95%;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    :root {
        --font-size-xl: 1.8rem;
        --font-size-lg: 1.6rem;
        --font-size-md: 1.25rem;
        --font-size-base: 1rem;
        --space-xl: 25px;
        --space-lg: 20px;
        --space-md: 15px;
    }
    
    .header img {
        max-height: 40px;
    }
    
    .content-container {
        margin: 30px 15px;
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .content-section h2 {
        font-size: 1.4rem;
    }
    
    .benefit-item h3 {
        font-size: 1.1rem;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .representative-card {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-xl: 1.6rem;
        --font-size-lg: 1.5rem;
        --font-size-md: 1.2rem;
        --font-size-base: 0.95rem;
        --font-size-sm: 0.9rem;
        --space-xl: 20px;
        --space-lg: 15px;
        --space-md: 12px;
        --space-sm: 8px;
    }
    
    .header {
        padding: 10px 5px;
    }
    
    .header img {
        max-height: 35px;
    }
    
    .content-container {
        margin: 20px 10px;
        padding: 12px;
    }
    
    h1 {
        font-size: 1.7rem;
    }
    
    .content-section {
        margin-bottom: 25px;
    }
    
    .content-section h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .benefit-item {
        padding: 15px;
    }
    
    .contact-section {
        padding: 15px;
    }
    
    .contact-card {
        padding: 6px;
    }
    
    ul.feature-list li {
        padding-left: 20px;
        margin-bottom: 8px;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    :root {
        --font-size-xl: 1.3rem;
        --font-size-lg: 1.2rem;
        --font-size-md: 1rem;
        --font-size-base: 0.9rem;
        --font-size-sm: 0.85rem;
    }
    
    .header img {
        max-height: 30px;
    }
    
    h1 {
        font-size: 1.3rem;
    }
    
    .content-section h2 {
        font-size: 1.2rem;
    }
    
    .benefit-item h3, .contact-card h3 {
        font-size: 1rem;
    }
    
    p, ul.feature-list li {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .contact-card {
        padding: 10px;
    }
    
    .content-container {
        margin: 15px 8px;
        padding: 10px;
    }
}
