/**
 * AI CORE - HLAVNÍ STYL - MOBILNĚ OPTIMALIZOVANÝ
 */

/* ================= ZÁKLAD ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #5bbfc4;
    --primary-dark: #4aa9ae;
    --secondary: #1e3a5f;
    --secondary-dark: #152b47;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --border: #e9ecef;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
}
body { 
    font-family: 'Poppins', sans-serif; 
    color: var(--text-dark); 
    background: var(--bg-light); 
    line-height: 1.6; 
    overflow-x: hidden; 
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ================= HLAVIČKA & MENU ================= */
.top-bar { 
    background: white; 
    padding: 12px 0; 
    border-bottom: 1px solid var(--border); 
    font-size: 13px; 
}
.top-bar-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}
.top-bar-left { 
    display: flex; 
    gap: 20px; 
    color: var(--text-light); 
    flex-wrap: wrap;
}
.top-bar-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.top-bar-right { 
    display: flex; 
    gap: 15px; 
}
.social-icon {
    color: var(--primary);
    font-size: 18px;
    transition: 0.3s;
}
.social-icon:hover {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.nav { 
    background: var(--primary); 
    padding: 15px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}
.nav-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    color: white; 
    z-index: 1001;
}
.logo-icon { 
    font-size: 24px; 
    background: white; 
    color: var(--primary); 
    width: 45px; 
    height: 45px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 10px; 
}
.logo-title { 
    font-weight: 800; 
    font-size: 22px; 
    line-height: 1; 
    letter-spacing: 1px; 
}
.logo-subtitle { 
    font-size: 10px; 
    opacity: 0.9; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}

.nav-menu { 
    display: flex; 
    gap: 30px; 
    position: relative;
}
.nav-menu a { 
    color: white; 
    font-weight: 600; 
    font-size: 15px; 
    padding-bottom: 5px; 
    border-bottom: 2px solid transparent; 
    opacity: 0.9; 
    transition: 0.3s;
}
.nav-menu a:hover, 
.nav-menu a.active { 
    opacity: 1; 
    border-color: white; 
}

.nav-btn { 
    background: white; 
    color: var(--primary); 
    padding: 12px 25px; 
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 14px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    transition: 0.3s;
    white-space: nowrap;
}
.nav-btn:hover { 
    background: var(--secondary); 
    color: white; 
    transform: translateY(-2px); 
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger { 
    display: none; 
    flex-direction: column;
    gap: 5px;
    cursor: pointer; 
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ================= WEB SEKCE (INDEX) ================= */
.hero { 
    background-size: cover; 
    background-position: center; 
    padding: 150px 0 100px; 
    color: white; 
    position: relative; 
    margin-top: -70px; 
}
.hero::before { 
    content:''; 
    position:absolute; 
    top:0; 
    left:0; 
    right:0; 
    bottom:0; 
    background: linear-gradient(to right, rgba(30,58,95,0.9), rgba(30,58,95,0.7)); 
}
.hero-container { 
    position: relative; 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
    text-align: left; 
}
.hero-content {
    max-width: 100%;
}
.hero h1 { 
    font-size: 48px; 
    font-weight: 800; 
    margin-bottom: 25px; 
    line-height: 1.2; 
}
.hero p { 
    font-size: 18px; 
    max-width: 650px; 
    margin-bottom: 40px; 
    opacity: 0.9; 
    font-weight: 300; 
}

/* FEATURES (První řada karet) */
.features-section { 
    position: relative; 
    z-index: 10; 
    margin-top: -60px; 
    padding-bottom: 80px; 
}
.features-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
}
.feature-card { 
    background: white; 
    padding: 30px 25px; 
    border-radius: 20px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
    transition: 0.4s; 
    cursor: pointer; 
    border-bottom: 5px solid transparent;
}
.feature-card:hover { 
    transform: translateY(-10px); 
    border-bottom-color: var(--primary); 
}
.feature-card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 20px; 
}
.feature-icon { 
    font-size: 36px; 
    color: var(--primary); 
}
.feature-arrow { 
    width: 35px; 
    height: 35px; 
    background: var(--bg-light); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--text-light); 
}
.feature-card h3 { 
    font-size: 20px; 
    font-weight: 700; 
    margin-bottom: 15px; 
    color: var(--secondary); 
}
.feature-card p { 
    font-size: 14px; 
    color: var(--text-light); 
    line-height: 1.6;
}

/* ABOUT (Druhá řada karet) */
.about { 
    padding: 80px 0; 
    background: white; 
}
.about-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
}
.about-header { 
    text-align: center; 
    margin-bottom: 60px; 
}
.about-tag { 
    color: var(--primary); 
    font-weight: 800; 
    font-size: 13px; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    display: block; 
    margin-bottom: 10px; 
}
.about-header h2 { 
    font-size: 36px; 
    color: var(--text-dark); 
    margin-bottom: 15px; 
    font-weight: 700; 
}
.about-subtitle { 
    color: var(--text-light); 
    font-size: 16px; 
    max-width: 600px; 
    margin: 0 auto; 
}

.about-cards { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}

/* Barevné karty s obrázky */
.info-card {
    padding: 40px 25px; 
    border-radius: 25px; 
    text-align: center; 
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.info-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}

.card-blue { background-color: #e0f2fe; }
.card-pink { background-color: #fce7f3; }
.card-green { background-color: #dcfce7; }

.card-img-wrapper {
    width: 100%;
    height: 180px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.info-card h3 { 
    font-size: 20px; 
    font-weight: 800; 
    margin-bottom: 15px; 
    color: var(--secondary); 
}
.info-card p { 
    font-size: 14px; 
    color: #475569; 
    line-height: 1.7; 
}

/* WHY CHOOSE */
.why-choose { 
    padding: 80px 0; 
    background: var(--bg-light); 
}
.why-choose-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    align-items: center; 
}
.why-choose-image img { 
    border-radius: 20px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.1); 
    width: 100%;
}
.why-choose-content h2 { 
    font-size: 32px; 
    font-weight: 700; 
    margin-bottom: 20px; 
    color: var(--secondary); 
}
.features-list { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 15px; 
    margin-top: 30px; 
}
.feature-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    font-weight: 600; 
    color: var(--text-dark); 
}
.feature-item-icon { 
    width: 25px; 
    height: 25px; 
    background: var(--success); 
    color: white; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 12px; 
    flex-shrink: 0;
}

/* STATS */
.stats-section { 
    padding: 80px 0; 
    background: white; 
}
.stats-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    align-items: center; 
}
.stats-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.big-number { 
    font-size: 80px; 
    font-weight: 900; 
    color: var(--primary); 
    line-height: 1; 
    opacity: 0.2; 
}
.stats-description { 
    font-size: 16px; 
    color: var(--text-light); 
    margin-bottom: 20px; 
}
.stats-right img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    width: 100%;
}
.book-btn { 
    display: inline-block; 
    background: var(--secondary); 
    color: white; 
    padding: 15px 35px; 
    border-radius: 50px; 
    font-weight: 700; 
    margin-top: 20px; 
    transition: 0.3s;
}
.book-btn:hover { 
    background: var(--secondary-dark); 
    transform: translateY(-2px);
}

/* DEPARTMENTS LIST */
.departments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.departments-list li a {
    display: block;
    padding: 8px 0;
}

/* FOOTER */
.footer { 
    background: var(--secondary); 
    color: rgba(255,255,255,0.7); 
    padding: 60px 0 30px; 
    font-size: 14px; 
}
.footer-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1.5fr; 
    gap: 60px; 
}
.footer-section {
    text-align: left;
}
.footer h4 { 
    font-size: 18px; 
    margin-bottom: 20px; 
    color: white; 
    font-weight: 700; 
}
.footer a { 
    color: rgba(255,255,255,0.7); 
    transition: 0.3s; 
    display: block; 
    margin-bottom: 10px; 
}
.footer a:hover { 
    color: var(--primary); 
}
.footer-text {
    margin-bottom: 15px;
}
.footer-btn { 
    background: var(--primary); 
    color: white; 
    padding: 12px 30px; 
    border-radius: 8px; 
    display: inline-block; 
    font-weight: 600; 
    margin-top: 15px; 
    transition: 0.3s;
}
.footer-btn:hover {
    background: var(--primary-dark);
}
.footer-bottom { 
    text-align: center; 
    margin-top: 40px; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 30px; 
}

/* ================= APLIKACE ================= */
.app-wrapper { 
    display: flex; 
    height: calc(100vh - 70px); 
    background: #f0f2f5; 
}
.app-sidebar { 
    width: 280px; 
    background: var(--secondary); 
    color: white; 
    display: flex; 
    flex-direction: column; 
    border-right: 1px solid rgba(255,255,255,0.1); 
    flex-shrink: 0; 
}
.sidebar-header { 
    padding: 20px; 
    font-weight: 600; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-content { 
    padding: 15px; 
    overflow-y: auto; 
    flex: 1; 
}
.sidebar-btn { 
    display: block; 
    width: 100%; 
    text-align: left; 
    padding: 12px 15px; 
    color: rgba(255,255,255,0.8); 
    border: none; 
    background: transparent; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: 0.3s; 
    margin-bottom: 5px; 
    font-family: inherit;
    font-size: 14px;
}
.sidebar-btn:hover, 
.sidebar-btn.active { 
    background: rgba(255,255,255,0.15); 
    color: white; 
}
.sidebar-footer { 
    padding: 20px; 
    font-size: 12px; 
    color: rgba(255,255,255,0.5); 
    border-top: 1px solid rgba(255,255,255,0.1); 
}

.tip-box {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: #ddd;
    line-height: 1.4;
}
.tip-box strong { 
    color: #f1c40f; 
    display: block; 
    margin-bottom: 5px; 
}

.app-main { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
    overflow: hidden; 
}
.doc-tabs { 
    display: flex; 
    background: white; 
    padding: 0 20px; 
    border-bottom: 1px solid var(--border); 
    gap: 10px; 
    flex-shrink: 0; 
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.doc-tab { 
    padding: 15px 20px; 
    cursor: pointer; 
    color: var(--text-light); 
    font-weight: 500; 
    border-bottom: 3px solid transparent; 
    font-size: 14px; 
    white-space: nowrap;
}
.doc-tab.active { 
    color: var(--primary); 
    border-bottom-color: var(--primary); 
    background: #f0fcfc; 
}
.doc-content { 
    padding: 20px; 
    overflow-y: auto; 
    height: 100%; 
}
.doc-grid { 
    display: grid; 
    grid-template-columns: 250px 1fr; 
    gap: 30px; 
    height: 100%; 
}
.template-list { 
    background: white; 
    border-radius: 12px; 
    padding: 15px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    overflow-y: auto; 
    max-height: 100%;
}
.tpl-category { 
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    color: #999; 
    margin: 15px 0 5px; 
    padding-left: 10px; 
}
.template-btn { 
    display: block; 
    width: 100%; 
    text-align: left; 
    padding: 10px; 
    border: none; 
    background: transparent; 
    cursor: pointer; 
    font-size: 13px; 
    border-radius: 5px; 
    color: var(--text-dark); 
    font-family: inherit;
}
.template-btn:hover, 
.template-btn.active { 
    background: #e0f7fa; 
    color: var(--secondary); 
    font-weight: 600; 
}
.form-card { 
    background: white; 
    padding: 25px; 
    border-radius: 10px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}
.form-label { 
    display: block; 
    margin-bottom: 8px; 
    font-size: 13px; 
    font-weight: 600; 
}
.form-input { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid var(--border); 
    border-radius: 5px; 
    margin-bottom: 15px; 
    outline: none; 
    font-family: inherit; 
    font-size: 14px;
}
.form-input:focus { 
    border-color: var(--primary); 
    box-shadow: 0 0 0 3px rgba(91,191,196,0.1); 
}

/* CHAT */
.chat-container { 
    padding: 20px; 
    flex: 1; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}
.msg { 
    display: flex; 
    gap: 10px; 
    max-width: 90%; 
    animation: fadeIn 0.3s; 
}
.msg.user { 
    align-self: flex-end; 
    flex-direction: row-reverse; 
}
.msg-avatar { 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--bg-light); 
    flex-shrink: 0; 
    font-size: 16px;
}
.msg.bot .msg-avatar { 
    background: var(--primary); 
    color: white; 
}
.msg.user .msg-avatar { 
    background: var(--secondary); 
    color: white; 
}
.msg-bubble { 
    padding: 12px 16px; 
    border-radius: 15px; 
    font-size: 14px; 
    background: white; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    line-height: 1.6; 
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.msg.user .msg-bubble { 
    background: var(--secondary); 
    color: white; 
    border-top-right-radius: 2px; 
}
.msg.bot .msg-bubble { 
    background: white; 
    border-top-left-radius: 2px; 
    color: var(--text-dark); 
}

/* INPUT AREA */
.chat-input-area, .input-area {
    background: #fff;
    padding: 15px;
    border-top: 1px solid #e1e1e1;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-end;
    gap: 10px;
    position: relative;
    flex-shrink: 0;
}

.chat-input, .chat-textarea {
    flex-grow: 1;
    min-height: 45px;
    max-height: 120px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-family: inherit;
    font-size: 15px;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input:focus, 
.chat-textarea:focus {
    border-color: var(--primary);
}

.action-btn, .send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    border: none;
    flex-shrink: 0;
    transition: all 0.3s;
}

.btn-upload {
    background: #f0f2f5;
    color: #666;
}

.btn-upload:hover {
    background: #e1e4e8;
    color: #333;
}

.btn-send:hover, .send-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.hidden { 
    display: none !important; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.loader { 
    border: 3px solid #f3f3f3; 
    border-top: 3px solid var(--primary); 
    border-radius: 50%; 
    width: 20px; 
    height: 20px; 
    animation: spin 1s linear infinite; 
    display: inline-block; 
}

@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); } 
}

/* ================= KONTAKT STRÁNKA ================= */
.kontakt-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.kontakt-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.kontakt-box h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-icon {
    width: 45px;
    height: 45px;
    background: rgba(91, 191, 196, 0.1);
    color: #5bbfc4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-content h4 { 
    margin: 0 0 5px 0; 
    color: #333; 
    font-size: 16px; 
}

.info-content p { 
    margin: 0; 
    color: #666; 
    font-size: 14px;
}

.info-content a { 
    color: #5bbfc4; 
    text-decoration: none; 
    font-weight: 500; 
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 500; 
    color: #333; 
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: 0.3s;
    box-sizing: border-box;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #5bbfc4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(91, 191, 196, 0.1);
}

.form-btn {
    background: #5bbfc4;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.form-btn:hover { 
    background: #4caeb3; 
    transform: translateY(-2px); 
}

.msg-box { 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    text-align: center; 
}

.chyba { 
    background: #fee2e2; 
    color: #991b1b; 
    border: 1px solid #fecaca; 
}

.uspech { 
    background: #dcfce7; 
    color: #166534; 
    border: 1px solid #bbf7d0; 
}

.antispam { 
    display: none; 
}

/* ================= MAGAZÍN ================= */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.magazine-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.magazine-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.magazine-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.magazine-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.magazine-card:hover .magazine-card-image img {
    transform: scale(1.1);
}

.magazine-card-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
}

.magazine-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.magazine-card-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.magazine-card-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.magazine-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.magazine-card-btn:hover {
    gap: 12px;
}

/* Stránkování */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: white;
    border: 2px solid var(--border);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.pagination-number:hover,
.pagination-number.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Mobilní optimalizace magazínu */
@media (max-width: 992px) {
    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .magazine-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .magazine-card-image {
        height: 200px;
    }
    
    .magazine-card-content {
        padding: 20px;
    }
    
    .magazine-card-content h2 {
        font-size: 18px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================= RESPONSIVE - MOBILY ================= */
@media (max-width: 1200px) {
    .why-choose-container,
    .stats-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .about-header h2,
    .why-choose-content h2 {
        font-size: 28px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .doc-grid {
        grid-template-columns: 1fr;
    }
    
    .template-list {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    /* Top bar - skrýt na mobilu */
    .top-bar {
        display: none;
    }
    
    /* Navigace */
    .nav {
        padding: 12px 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .logo-title {
        font-size: 18px;
    }
    
    .logo-subtitle {
        font-size: 9px;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
    
    /* Hamburger menu */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        font-size: 16px;
        padding: 10px 0;
        border-bottom: none;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    /* Hero sekce */
    .hero {
        padding: 120px 0 80px;
        margin-top: -60px;
    }
    
    .hero h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .hero p {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    /* Features */
    .features-section {
        margin-top: -40px;
        padding-bottom: 60px;
    }
    
    .features-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        font-size: 32px;
    }
    
    /* About sekce */
    .about {
        padding: 60px 0;
    }
    
    .about-header {
        margin-bottom: 40px;
    }
    
    .about-header h2 {
        font-size: 26px;
    }
    
    .about-subtitle {
        font-size: 15px;
    }
    
    .about-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .info-card {
        padding: 30px 20px;
    }
    
    .card-img-wrapper {
        height: 150px;
    }
    
    /* Why choose, Stats */
    .why-choose,
    .stats-section {
        padding: 60px 0;
    }
    
    .big-number {
        font-size: 60px;
    }
    
    .why-choose-container,
    .stats-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Aplikace - sidebar skrytý na mobilu */
    .app-wrapper {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 70px);
    }
    
    .app-sidebar {
        display: none;
    }
    
    .app-main {
        height: calc(100vh - 70px);
    }
    
    /* Chat */
    .chat-container {
        padding: 15px;
    }
    
    .msg {
        max-width: 95%;
    }
    
    .msg-bubble {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .chat-input-area,
    .input-area {
        padding: 12px;
    }
    
    .chat-input,
    .chat-textarea {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .action-btn,
    .send-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    /* Kontakt */
    .kontakt-wrapper {
        margin: 20px auto;
        gap: 20px;
        grid-template-columns: 1fr;
    }
    
    .kontakt-box {
        padding: 25px 20px;
    }
    
    .kontakt-box h2 {
        font-size: 22px;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .nav-btn,
    .book-btn,
    .footer-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .feature-card h3,
    .info-card h3 {
        font-size: 18px;
    }
    
    .about-header h2,
    .why-choose-content h2 {
        font-size: 22px;
    }
    
    .big-number {
        font-size: 50px;
    }
}