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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f0f4f8;
    min-height: 100vh;
    padding: 0;
    color: #1a202c;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.header {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" 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;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.2em;
    opacity: 0.95;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.content {
    padding: 60px 40px;
    flex: 1;
    background: #ffffff;
}

/* Kalkulačka grid na hlavní stránce */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.calculator-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4, #14b8a6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.calculator-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
    border-color: #0ea5e9;
}

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

.calculator-card.coming-soon {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
}

.calculator-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
    border-color: #e2e8f0;
}

.calculator-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.calculator-card h2 {
    font-size: 1.75em;
    margin-bottom: 12px;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.calculator-card p {
    color: #64748b;
    font-size: 1em;
    line-height: 1.6;
}

/* Formulář */
.calculator-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.form-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #0ea5e9, #06b6d4, #14b8a6);
    border-radius: 16px 0 0 16px;
}

.form-section h2 {
    font-size: 1.5em;
    margin-bottom: 16px;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

.input-group label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    font-size: 0.9em;
    letter-spacing: -0.01em;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #ffffff;
    color: #1e293b;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.input-group input:hover,
.input-group select:hover {
    border-color: #cbd5e1;
}

.dite-ztp-container {
    margin-top: 24px;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dite-ztp-container h3 {
    font-size: 1.2em;
    margin-bottom: 16px;
    color: #1e293b;
    font-weight: 600;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #475569;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: #f1f5f9;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #0ea5e9;
}

.calculate-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
    color: white;
    border: none;
    padding: 18px 48px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-top: 32px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    letter-spacing: 0.01em;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.4);
}

.calculate-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(14, 165, 233, 0.3);
}

/* Výsledky */
.results-section {
    margin-top: 48px;
    padding: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.results-section h2 {
    font-size: 2em;
    margin-bottom: 32px;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.result-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #06b6d4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

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

.result-card.highlight {
    border: 3px solid #14b8a6;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.2);
}

.result-card.highlight::before {
    background: linear-gradient(90deg, #14b8a6, #10b981);
    transform: scaleX(1);
}

.result-label {
    font-size: 0.9em;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-value {
    font-size: 1.6em;
    font-weight: 700;
    color: #0ea5e9;
    letter-spacing: -0.02em;
}

.result-card.highlight .result-value {
    color: #14b8a6;
    font-size: 1.8em;
}

.result-subtitle {
    font-size: 0.75em;
    color: #94a3b8;
    margin-top: 8px;
    font-weight: 400;
}

.result-yearly {
    font-size: 0.85em;
    color: #64748b;
    margin-top: 8px;
    font-weight: 500;
}

.result-yearly::before {
    content: "Ročně: ";
    font-weight: 400;
}

.result-note {
    font-size: 0.85em;
    color: #64748b;
    margin-top: 8px;
    font-weight: 500;
}

.breakdown-toggle-section {
    margin-top: 32px;
    text-align: center;
}

.breakdown-toggle-btn {
    background: transparent;
    border: 2px solid #0ea5e9;
    color: #0ea5e9;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.breakdown-toggle-btn:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.toggle-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.savings-link-section {
    margin-top: 24px;
    text-align: center;
}

.savings-link-btn {
    display: inline-block;
    background: linear-gradient(135deg, #14b8a6 0%, #10b981 100%);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.savings-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.4);
}

.savings-link-btn:active {
    transform: translateY(-1px);
}

.related-calculators-section {
    margin-top: 32px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.related-calculator-link {
    display: block;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: all 0.3s ease;
}

.related-calculator-link:hover {
    border-color: #0ea5e9;
    background: #f0f9ff;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.year-calculation-section {
    margin-top: 32px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.calculate-year-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: fit-content;
}

.calculate-year-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.calculate-year-btn:active {
    transform: translateY(0);
}

.breakdown-section {
    margin-top: 32px;
    padding: 32px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.breakdown-section h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.breakdown-content {
    line-height: 1.9;
    color: #475569;
    font-size: 0.95em;
}

.breakdown-item {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    transition: padding-left 0.2s ease;
}

.breakdown-item:hover {
    padding-left: 8px;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item strong {
    color: #1e293b;
    font-weight: 700;
}

.footer {
    background: #f8fafc;
    padding: 32px 40px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.9em;
    margin-top: auto;
}

.footer a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #06b6d4;
    text-decoration: underline;
}

/* Navigační menu */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 16px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5em;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.menu-toggle {
    background: transparent;
    border: 2px solid #0ea5e9;
    color: #0ea5e9;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.menu-toggle:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.menu-toggle-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.menu-toggle.active .menu-toggle-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 40px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 8px;
    z-index: 1001;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-item {
    display: block;
    padding: 14px 20px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-menu-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.dropdown-menu-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.dropdown-menu-item:hover {
    background: #f0f9ff;
    color: #0ea5e9;
    padding-left: 24px;
}

/* Responzivní design */
@media (max-width: 768px) {
    .header {
        padding: 40px 24px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .header p {
        font-size: 1em;
    }
    
    .content {
        padding: 32px 24px;
    }
    
    .form-section {
        padding: 24px;
    }
    
    .form-section h2 {
        font-size: 1.5em;
    }
    
    .results-section {
        padding: 24px;
    }
    
    .results-section h2 {
        font-size: 1.75em;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calculator-card {
        padding: 32px 24px;
    }
    
    .footer {
        padding: 24px;
    }
    
    .navbar {
        padding: 12px 24px;
    }
    
    .navbar-content {
        flex-wrap: wrap;
    }
    
    .navbar-brand {
        font-size: 1.3em;
    }
    
    .dropdown-menu {
        right: 24px;
        left: 24px;
        min-width: auto;
    }
}
