/*
   STYL PRO MARKETINGOVÝ WEB - SAAS AUTOŠKOLA
   Vizuální styl: Moderní, sebevědomý, profesionální
   Barvy: Námořnická modrá, břidlicová, oranžové akcenty
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #2c3e50;
    --primary-dark: #1a252f;
    --accent: #e67e22;
    --accent-hover: #d35400;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --border: #e2e8f0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Typography */
h1, h2, h3 {
    color: var(--primary-dark);
    font-weight: 800;
    line-height: 1.1;
}

h1 { font-size: 2.8rem; margin-bottom: 15px; }
h2 { font-size: 2rem; margin-bottom: 25px; text-align: center; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }

p { margin-bottom: 15px; font-size: 1rem; color: var(--text-light); }

.text-center { text-align: center; }

/* Navigation */
nav {
    background: var(--primary-dark);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--white);
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
}

.logo span { color: var(--accent); }

.nav-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--accent); }

/* Hero Section */
.hero {
    background: var(--bg-light);
    color: var(--text-main);
    padding: 60px 0;
    text-align: center;
}

.hero h1 { color: var(--primary-dark); }
.hero p { color: var(--text-light); max-width: 700px; margin: 0 auto 30px; font-size: 1.1rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Features / Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

/* Stats */
.stats {
    background: var(--white);
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-weight: 600;
    color: var(--text-main);
}

/* Images Section */
.img-previews {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.img-previews img {
    max-width: 160px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border: 6px solid var(--white);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--white);
}

.img-previews img:first-child {
    transform: perspective(1000px) rotateY(15deg) rotateX(5deg) rotateZ(-5deg);
    margin-right: -20px;
}

.img-previews img:last-child {
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg) rotateZ(5deg);
    margin-left: -20px;
}

.img-previews img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) rotateZ(0deg) scale(1.2);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Modal Styl */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Steps */
.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
}

.step-number {
    background: var(--accent);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-right: 20px;
    flex-shrink: 0;
}

/* Code Snippets (API) */
pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin: 20px 0;
    border-left: 4px solid var(--accent);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-bad { background: var(--danger); color: white; }
.status-success { background: var(--success); color: white; }

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0;
}

footer h3 { color: var(--white); }
footer p { color: #94a3b8; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .nav-inner { flex-direction: column; gap: 20px; }
    .nav-links a { margin: 0 10px; }
    .btn-outline { margin-left: 0; margin-top: 10px; }
    .img-previews { flex-direction: column; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; }
}
