/* ==========================================================================
   Основные стили и переменные
   ========================================================================== */

:root {
    /* Цветовая палитра */
    --primary-color: #0047AB;        /* Глубокий кобальтовый */
    --accent-color: #F2E205;         /* Яркий лимонный */
    --secondary-color: #2F2F2F;      /* Графитовый серый */
    --background-light: #E6F7FF;     /* Светло-голубой */
    --background-white: #FFFFFF;     /* Белый */
    --text-dark: #2F2F2F;
    --text-light: #666666;
    --border-light: #E0E0E0;
    
    /* Типографика */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-h1: 3.5rem;
    --font-size-h2: 2.8rem;
    --font-size-h3: 2.2rem;
    --font-size-body: 1.1rem;
    --font-size-small: 0.9rem;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --content-padding: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-light: 0 2px 10px rgba(0, 71, 171, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 71, 171, 0.15);
    --shadow-strong: 0 10px 30px rgba(0, 71, 171, 0.2);
}

/* Reset a základní styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-body);
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-white) 100%);
    overflow-x: hidden;
}

/* ==========================================================================
   Typografie
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Utility classes
   ========================================================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

.section {
    padding: var(--section-padding);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-medium);
    font-size: var(--font-size-body);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition-medium);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    color: white;
}

.btn-accent {
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    box-shadow: var(--shadow-medium);
}

.btn-accent:hover {
    background: #E6D000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    color: var(--primary-color);
}

/* ==========================================================================
   Header a Navigation
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-medium);
}

.nav {
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--content-padding);
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* Logo */
.nav-logo .logo-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    text-transform: lowercase;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: -5px;
    letter-spacing: 0.5px;
}

/* Skrytý checkbox pro mobilní menu */
.menu-toggle-checkbox {
    display: none;
}

/* Hamburger menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition-medium);
    border-radius: 2px;
}

/* Navigation menu */
.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition-medium);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: var(--accent-color);
    color: var(--primary-color);
}

.nav-phone {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition-medium);
}

.nav-phone:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Overlay */
.nav-overlay {
    display: none;
}

/* ==========================================================================
   Mobilní menu
   ========================================================================== */

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: white;
        padding: 80px 20px 20px;
        transition: var(--transition-medium);
        box-shadow: var(--shadow-strong);
        z-index: 999;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link,
    .nav-phone {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px;
    }
    
    /* Aktivní stav menu */
    .menu-toggle-checkbox:checked ~ .nav-container .nav-menu {
        right: 0;
    }
    
    /* Animace hamburger menu */
    .menu-toggle-checkbox:checked ~ .nav-container .nav-toggle .hamburger:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle-checkbox:checked ~ .nav-container .nav-toggle .hamburger:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle-checkbox:checked ~ .nav-container .nav-toggle .hamburger:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Overlay pro zavření menu */
    .menu-toggle-checkbox:checked ~ .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.main {
    margin-top: 80px; /* Výška header */
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/YPM2cu.jpg') center/cover;
    opacity: 0.2;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: white;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* O nás sekce */
.about {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about-content h3 {
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 15px;
    transition: var(--transition-medium);
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease forwards;
}

.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.4s; }

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 50px;
}

/* Přeímužstva sekce */
.advantages {
    background: linear-gradient(135deg, var(--background-light) 0%, white 100%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-medium);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.advantage-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    margin: -2.5rem -2rem 1.5rem;
}

.advantage-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-medium);
    border-radius: 15px 15px 0 0;
}

.advantage-card:hover .advantage-image img {
    transform: scale(1.05);
}

.advantage-card:hover .advantage-image::after {
    opacity: 0.3;
}

.advantage-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0.1;
    transition: var(--transition-medium);
}

.advantage-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

/* Služby sekce */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-medium);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(242, 226, 5, 0.2);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.service-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.service-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Kroky sekce */
.steps {
    background: linear-gradient(135deg, var(--background-light) 0%, white 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--accent-color);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
}

/* ==========================================================================
   Formulář
   ========================================================================== */

.contact-form {
    background: white;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(135deg, white 0%, var(--background-light) 100%);
    border-radius: 30px;
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: url('./img/YPM2cu.jpg') center/cover;
    opacity: 0.08;
    border-radius: 50%;
    transform: translate(50px, -50px);
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-light);
    border-radius: 15px;
    font-size: var(--font-size-body);
    transition: var(--transition-medium);
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.checkbox-group label {
    font-size: var(--font-size-small);
    color: var(--text-light);
    margin-bottom: 0;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-medium);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--accent-color);
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.testimonial-position {
    font-size: var(--font-size-small);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.contact-icon {
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.contact-info p,
.contact-info a {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.2rem;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.3rem;
}

.footer-note {
    font-size: var(--font-size-small);
    color: var(--accent-color);
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-strong);
    z-index: 1000;
    padding: 1.5rem;
    border-top: 3px solid var(--primary-color);
    opacity: 0;
    transform: translateY(100%);
    transition: var(--transition-medium);
}

.cookie-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-text p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: var(--font-size-small);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-accept {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.cookie-accept:hover {
    background: var(--secondary-color);
}

.cookie-more {
    color: var(--primary-color);
    font-size: var(--font-size-small);
    text-decoration: underline;
}

/* ==========================================================================
   Animace
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Intersection Observer pro animace */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    :root {
        --font-size-h1: 3rem;
        --font-size-h2: 2.5rem;
        --font-size-h3: 2rem;
        --section-padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-h1: 2.5rem;
        --font-size-h2: 2rem;
        --font-size-h3: 1.7rem;
        --content-padding: 15px;
        --section-padding: 50px 0;
    }
    
    .hero {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .services-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    /* Мобильные стили для карточек преимуществ */
    .advantage-image {
        margin: -2.5rem -1.5rem 1.5rem;
    }
    
    .advantage-image img {
        height: 180px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-accept {
        width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-h1: 2rem;
        --font-size-h2: 1.7rem;
        --font-size-h3: 1.4rem;
        --content-padding: 10px;
    }
    
    .form-container {
        margin: 0 0.5rem;
        padding: 1.5rem 1rem;
    }
    
    .service-card,
    .advantage-card {
        padding: 2rem 1.5rem;
    }
}