/* ==========================================================================
   Globální resety a nastavení
   ========================================================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Sjednocená a profesionalizovaná paleta barev */
    --logo-dark: #1e2229;
    --logo-light: #e3e1db;
    --body-bg: #f8fafc;
    --card-bg: #272f3c;
    --accent-blue: #3b82f6;
    
    --text-dark: #0f172a;
    --text-light: #ffffff;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Pomocné (utility) třídy
   ========================================================================== */
.mt-15 { margin-top: 15px; }
.mb-5  { margin-bottom: 5px; }

/* ==========================================================================
   Hlavička a Navigace
   ========================================================================== */
.main-header {
    background-color: var(--logo-dark);
    color: var(--text-light);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-img {
    height: 60px; 
    width: auto;
    border-radius: 6px;
}

.logo-text h1 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
    color: var(--text-light);
}

.logo-text p {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--logo-light);
    letter-spacing: 2px;
    font-weight: 600;
}

.header-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end; 
    gap: 20px;
}

.lang-switch {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0; 
}

/* Základní styl pro odkazy s jazyky */
.lang-switch a {
    display: flex; 
    align-items: center;
    gap: 8px; 
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    transition: color 0.25s ease;
}

/* Oddělovač (tento styl už v kódu máte, uvádím pro úplnost) */
.lang-switch a:not(:last-child)::after {
    content: '';
    width: 1px; 
    align-self: stretch; 
    background-color: rgba(255, 255, 255, 0.2); 
}

/* Styly pro aktivní jazyk a přejetí myší */
.lang-switch a.active, 
.lang-switch a:hover {
    color: var(--text-light);
}

/* Zajistíme, že vlaječka a text budou působit celistvě i při hoveru */
.lang-switch a.active img, 
.lang-switch a:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.lang-switch img {
    display: block;
    width: 15px; 
    height: auto;
    border-radius: 3px;
    filter: grayscale(100%);
    opacity: 0.4;
    transition: all 0.25s ease;
}


.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 28px;
    margin: 0; 
}

.main-nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.25s ease;
    position: relative;
}

.main-nav a:not(.btn-talk) {
    padding-bottom: 6px;
}

.main-nav a:not(.btn-talk)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--logo-light);
    transition: width 0.25s ease;
}

.main-nav a:hover, 
.main-nav a.active {
    color: var(--text-light);
}

.main-nav a.active:not(.btn-talk)::after,
.main-nav a:not(.btn-talk):hover::after {
    width: 100%;
}

.main-nav a.btn-talk {
    background-color: white;
    padding: 8px 20px;
    border-radius: 99px;
    color: var(--logo-dark);
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
    transition: all 0.25s ease;
}

.main-nav a.btn-talk:hover {
    background-color: var(--logo-light);
    transform: translateY(-1px);
}

/* ==========================================================================
   Hero Sekce a Slider
   ========================================================================== */
.hero-section {
    position: relative;
    height: 500px; 
    background-color: var(--logo-dark);
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    display: flex;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #ffffff 45%, var(--logo-dark) 100%);
    position: relative;
}

.hero-container {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
}

.slide-text {
    width: 50%;
    padding-right: 5%; 
}

.slide-text h2 {
    font-size: 2.4rem; 
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--logo-dark);
}

.slide-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.slide-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-size: cover;
    background-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 100%);
    z-index: 4;
}

.slider-dots {
    position: absolute;
    bottom: 40px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.dot {
    width: 24px;
    height: 4px;
    background-color: #cbd5e1;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--logo-dark);
    width: 40px;
}

/* ==========================================================================
   Statistiky
   ========================================================================== */
.stats-section {
    position: relative;
    z-index: 20;
    margin-top: -50px;
    padding-bottom: 80px;
}

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

.stat-card {
    background-color: var(--card-bg);
    color: var(--text-light);
    padding: 24px 24px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    transform: translateY(-8px);
}

.stat-number {
    position: absolute;
    top: -20px;
    left: 40px;
    background-color: var(--logo-light);
    color: var(--logo-dark);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card h3 {
    font-size: 1.35rem;
    margin-top: 10px;
    margin-bottom: 12px;
    font-weight: 700;
}

.stat-card p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* ==========================================================================
   Společné nadpisy sekcí
   ========================================================================== */
.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: var(--logo-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 5px auto; 
    font-size: 1.05rem;
}

.section-disclaimer {
    text-align: center;
    color: #94a3b8; 
    font-size: 0.8rem; 
    max-width: 650px;
    margin: 0 auto 60px auto; 
    line-height: 1.4;
    font-style: italic; 
}

/* ==========================================================================
   Sekce What We Do (Třípilířový model)
   ========================================================================== */
.what-we-do-section {
    padding: 100px 0;
    background-color: var(--body-bg);
}

.service-block {
    margin-top: 60px;
}

.service-main-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--logo-dark);
    margin-bottom: 25px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.service-main-info h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-blue);
    border-radius: 2px;
}

.service-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pillar-card {
    background-color: #ffffff;
    padding: 30px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.pillar-why { border-top: 4px solid #ef4444; }  
.pillar-what { border-top: 4px solid #3b82f6; } 
.pillar-how { border-top: 4px solid #10b981; }  

.pillar-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.badge-why { background-color: #fee2e2; color: #ef4444; }
.badge-what { background-color: #dbeafe; color: #3b82f6; }
.badge-how { background-color: #d1fae5; color: #10b981; }

.pillar-list {
    list-style: none;
}

.pillar-list li {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 12px;
    position: relative;
    padding-left: 18px;
}

.pillar-list li::before {
    content: "•";
    color: var(--text-muted);
    font-size: 1.2rem;
    position: absolute;
    left: 2px;
    top: -2px;
}

.pillar-list li strong {
    color: var(--text-dark);
    font-weight: 600;
    display: block; 
    margin-bottom: 2px;
}

.service-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 60px 0;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 90px;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 0 0 calc(55% - 30px);
}

.feature-image {
    flex: 0 0 calc(45% - 30px);
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12);
}

.feature-text h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--logo-dark);
    margin-bottom: 24px;
}

.feature-bullets {
    list-style: none;
    margin-bottom: 20px;
}

.feature-bullets li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 12px;
    position: relative;
    padding-left: 24px;
}

.feature-bullets li::before {
    content: "•";
    color: var(--accent-blue);
    font-size: 20px;
    position: absolute;
    left: 4px;
    top: -2px;
}

.feature-bullets li strong {
    color: var(--text-dark);
    font-weight: 700;
}

.feature-description {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.7;
    border-left: 3px solid var(--border-color);
    padding-left: 16px;
    margin-top: 20px;
}

/* ==========================================================================
   Sekce How We Do It
   ========================================================================== */
.how-we-do-it-section {
    padding: 100px 0;
    background-color: white;
}

.step-card {
    background-color: var(--body-bg);
    padding: 48px 36px;
    border-radius: 16px;
    text-align: left;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.04);
    border-color: #cbd5e1;
}

.step-icon {
    width: 48px;
    height: 48px;
    background-color: var(--logo-dark);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.step-card h4 {
    font-size: 1.3rem;
    color: var(--logo-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

/* ==========================================================================
   Sekce Case Studies
   ========================================================================== */
.case-studies-section {
    padding: 100px 0;
    background-color: #f8fafc;
}

.case-intro-split {
    display: flex;
    align-items: flex-start; 
    gap: 30px; 
    margin-top: 20px;
}

.case-intro-image {
    flex: 0 0 25%; 
}

.case-intro-image img {
    width: 100%; 
    height: auto;
    border-radius: 8px; 
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1); 
}

.case-intro-text {
    flex: 1; 
}

.case-study-item {
    margin-bottom: 100px;
}

.case-study-item:last-child {
    margin-bottom: 0;
}

.case-header {
    width: 100%;
    text-align: left;
    margin-bottom: 30px;
}

.case-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.case-header h3 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--logo-dark);
    margin-bottom: 16px;
}

.case-calculation {
    width: 100%; 
    margin-bottom: 10px; 
    font-size: 14px;
}

.case-intro {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.case-body {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.case-study-item:nth-of-type(even) .case-body {
    flex-direction: row-reverse;
}

.case-data {
    flex: 0 0 calc(40% - 20px);
    width: calc(40% - 20px);
}

.case-image {
    flex: 0 0 calc(60% - 20px);
    width: calc(60% - 20px);
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-image-auto {
    width: 100%; 
    height: auto; 
    display: block;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-image-auto:hover,
.case-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12);
}

.case-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
}

.case-compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.case-compare-table th,
.case-compare-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.case-compare-table tr:last-child td {
    border-bottom: none;
}

.case-compare-table th {
    background-color: #f1f5f9;
    color: var(--text-dark);
    font-weight: 650;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.case-compare-table .text-accent {
    color: #16a34a; 
    font-weight: 600;
}

.case-compare-table tbody tr:hover {
    background-color: #f8fafc;
}

.case-sustainability {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 5px;
}

/* ==========================================================================
   Interaktivní kalkulačka
   ========================================================================== */
.calculator-section {
    padding: 100px 0;
    background-color: #f1f5f9;
}

.calculator-wrapper {
    display: flex;
    gap: 64px;
    align-items: center;
}

.calc-text {
    flex: 1;
}

.calc-text h2 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--logo-dark);
    letter-spacing: -0.5px;
}

.calc-box {
    flex: 1;
    background-color: var(--card-bg);
    color: var(--text-light);
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.input-group {
    margin-bottom: 28px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input[type="range"] {
    width: 100%;
    margin-bottom: 12px;
    -webkit-appearance: none;
    appearance: none;
    background: #475569;
    height: 6px;
    border-radius: 99px;
    outline: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--logo-light);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.input-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.input-group span {
    display: block;
    text-align: right;
    font-weight: 700;
    color: var(--text-light);
    font-size: 1.2rem;
}

.results {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 28px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-item strong {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f8fafc;
}

#save-max {
    color: var(--logo-light);
}

/* ==========================================================================
   CTA Sekce & Formulář
   ========================================================================== */
.cta-section {
    background-color: var(--logo-dark);
    color: var(--text-light);
    padding: 100px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.form-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.cta-text {
    flex: 1;
    text-align: left;
}

.cta-text h2 {
    font-size: 2.6rem;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.cta-text p {
    color: #94a3b8;
    font-size: 1.15rem;
    line-height: 1.6;
}

.cta-form-wrapper {
    flex: 1;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--logo-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #475569;
    background-color: #1e2229; 
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); 
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
}

.btn-submit {
    background-color: white;
    color: var(--logo-dark);
    border: none;
    padding: 16px 40px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.25s ease;
    align-self: flex-start;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--logo-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* ==========================================================================
   Patička
   ========================================================================== */
.main-footer {
    background-color: #11141a;
    color: var(--text-light);
    padding: 60px 0 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-col {
    max-width: 400px;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: var(--logo-light);
}

.footer-col p {
    color: #94a3b8;
}

.footer-col a {
    color: white;
    text-decoration: none;
}

.copyright {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* ==========================================================================
   Responzivita (Media Queries)
   ========================================================================== */
@media (max-width: 968px) {
    /* Header */
    .header-controls {
        align-items: center;
        gap: 16px;
        width: 100%;
    }
    .lang-switch {
        justify-content: center;
        width: 100%;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    /* Hero */
    .slide-content {
        flex-direction: column;
        background: #ffffff;
    }
    .hero-container {
        align-items: flex-start;
        padding-top: 40px;
    }
    .slide-text {
        width: 100%;
        padding: 0;
    }
    .slide-image {
        position: relative;
        width: 100%;
        height: 250px;
        mask-image: none;
        -webkit-mask-image: none;
    }
    
    /* Stats */
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    /* Layout & Flex */
    .feature-block, 
    .feature-block:nth-child(even),
    .case-body,
    .case-study-item:nth-of-type(even) .case-body {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }
    .feature-text, 
    .feature-image,
    .case-data,
    .case-image {
        flex: 0 0 100%;
        width: 100%;
    }
    .feature-image,
    .case-image {
        min-height: 250px;
        height: 280px;
    }
    
    /* Calculator */
    .calculator-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    .case-header {
        width: 100%;
    }
    
    /* Service Pillars */
    .service-pillars {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .service-divider {
        margin: 40px 0;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}