/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2ec2b3;
    --primary-dark: #25a89c;
    --primary-light: #4dd4c6;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo-image {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(46, 194, 179, 0.4);
    transition: all 0.3s ease;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(46, 194, 179, 0.6);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../obrazky/jan-petr.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.75) 40%, rgba(255, 255, 255, 0.95) 60%, rgba(255, 255, 255, 0.98) 100%);
    z-index: -1;
}

.hero-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    max-width: 600px;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-title .highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Scroll Down Arrow */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    animation: bounce 2s infinite;
    transition: var(--transition);
}

.scroll-down:hover {
    color: var(--primary-dark);
    transform: translateX(-50%) scale(1.1);
}

.scroll-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-down:hover {
    animation-play-state: paused;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 194, 179, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.service-card.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(2).animate-in {
    animation-delay: 0.1s;
}

.service-card:nth-child(3).animate-in {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-list li {
    color: var(--text-gray);
    padding-left: 24px;
    position: relative;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    gap: 60px;
}

.about-text {
    opacity: 0;
    transform: translateY(20px);
}

.about-text.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.about-text p {
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-20px);
}

.feature-item.animate-in {
    animation: slideInLeft 0.6s ease forwards;
}

.feature-item:nth-child(2).animate-in {
    animation-delay: 0.1s;
}

.feature-item:nth-child(3).animate-in {
    animation-delay: 0.2s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-gray);
    font-size: 15px;
    margin: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.stat-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.9);
}

.stat-card.animate-in {
    animation: scaleIn 0.6s ease forwards;
}

.stat-card:nth-child(2).animate-in {
    animation-delay: 0.1s;
}

.stat-card:nth-child(3).animate-in {
    animation-delay: 0.2s;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-gray);
}

/* ============================================
   REVIEWS SECTION
   ============================================ */

.reviews {
    background: var(--bg-white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.review-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    border: 1px solid var(--border-color);
}

.review-card.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.review-card:nth-child(2).animate-in {
    animation-delay: 0.1s;
}

.review-card:nth-child(3).animate-in {
    animation-delay: 0.2s;
}

.review-card:nth-child(4).animate-in {
    animation-delay: 0.3s;
}

.review-card:nth-child(5).animate-in {
    animation-delay: 0.4s;
}

.review-card:nth-child(6).animate-in {
    animation-delay: 0.5s;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.review-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.review-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.review-author h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.review-rating {
    display: flex;
    gap: 4px;
}

.review-rating .star {
    color: #ffc107;
    font-size: 16px;
}

.review-text {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 15px;
}

.review-date {
    display: inline-block;
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

.reviews-cta {
    text-align: center;
    padding-top: 20px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-dark);
}

.contact-box {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-20px);
}

.contact-box.animate-in {
    animation: slideInLeft 0.6s ease forwards;
}

.contact-box:nth-child(2).animate-in {
    animation-delay: 0.1s;
}

.contact-box:nth-child(3).animate-in {
    animation-delay: 0.2s;
}

.contact-box:nth-child(4).animate-in {
    animation-delay: 0.3s;
}

.contact-box:nth-child(5).animate-in {
    animation-delay: 0.4s;
}

.contact-box:hover {
    transform: translateX(0) translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 28px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-details strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-details a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 16px;
    display: block;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-details p {
    color: var(--text-gray);
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

/* Social Box Styling */
.social-box .contact-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.social-box .contact-details strong {
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 4px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
}

.social-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.social-link svg {
    width: 24px;
    height: 24px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.social-link:hover svg {
    transform: translate(-50%, -50%);
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.linkedin {
    background: #0077b5;
}

.social-link.youtube {
    background: #ff0000;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 194, 179, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-group span {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    margin-top: 8px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    font-size: 15px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.footer-col p {
    color: #cccccc;
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-text {
    margin-top: 12px;
}

.footer-col a {
    color: #cccccc;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 15px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #999999;
    font-size: 14px;
    margin: 0;
}

.footer-creator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-creator span {
    color: #999999;
    font-size: 14px;
}

.creator-logo {
    width: 20px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
    opacity: 0.7;
}

.footer-creator a:hover .creator-logo {
    filter: brightness(0) invert(1);
    opacity: 1;
    transform: scale(1.1);
}

/* ============================================
   COOKIE BAR (First Visit)
   ============================================ */

.cookie-bar {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    z-index: 9999;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-bar.show {
    bottom: 0;
}

.cookie-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-bar-text {
    flex: 1;
    color: var(--bg-white);
}

.cookie-bar-text p {
    margin: 0;
    line-height: 1.6;
}

.cookie-bar-text p:first-child {
    font-size: 18px;
    margin-bottom: 8px;
}

.cookie-bar-text p:last-child {
    font-size: 14px;
    color: #cccccc;
}

.cookie-bar-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--primary-color);
    color: var(--bg-white);
}

.cookie-btn-accept:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 194, 179, 0.4);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.cookie-btn-settings:hover {
    background: var(--bg-white);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background: transparent;
    color: #999999;
    border: 2px solid #555555;
}

.cookie-btn-reject:hover {
    background: #555555;
    color: var(--bg-white);
    border-color: #555555;
}

/* ============================================
   COOKIE MODAL (Settings) - NO ANIMATIONS
   ============================================ */

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
}

.cookie-modal-content {
    position: relative;
    max-width: 500px;
    width: 100%;
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px 25px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
}

.cookie-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    color: var(--text-dark);
    z-index: 10002;
}

.cookie-modal-close:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.cookie-modal-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    padding-right: 35px;
}

.cookie-modal-description {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.cookie-option {
    background: var(--bg-light);
    padding: 14px;
    border-radius: 10px;
    border: 2px solid transparent;
}

.cookie-option:hover:not(.cookie-option-disabled) {
    border-color: var(--primary-color);
}

.cookie-option-disabled {
    opacity: 0.7;
}

.cookie-option-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cookie-option-info {
    flex: 1;
}

.cookie-option-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.cookie-option-info small {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.3;
}

/* Toggle Switch - SIMPLE */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: background-color 0.2s ease;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: transform 0.2s ease;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: var(--primary-color);
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(20px);
}

.cookie-switch input:disabled + .cookie-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.cookie-modal-buttons .cookie-btn {
    padding: 11px 18px;
    font-size: 14px;
}

.cookie-btn-all {
    background: var(--text-dark);
    color: var(--bg-white);
}

.cookie-btn-all:hover {
    background: #333333;
}

.cookie-modal-links {
    font-size: 12px;
    color: var(--text-gray);
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

.cookie-modal-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.cookie-modal-links a:hover {
    text-decoration: underline;
}

/* ============================================
   PAGE CONTENT (for GDPR & Cookie Policy pages)
   ============================================ */

.page-content {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.content-wrapper h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.update-date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 40px;
    font-style: italic;
}

.content-wrapper h2 {
    font-size: 32px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.content-wrapper h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.content-wrapper p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.content-wrapper ul {
    margin: 20px 0;
    padding-left: 24px;
}

.content-wrapper ul li {
    color: var(--text-gray);
    margin-bottom: 12px;
    line-height: 1.7;
    list-style: disc;
}

.content-wrapper a {
    color: var(--primary-color);
    font-weight: 500;
}

.content-wrapper a:hover {
    text-decoration: underline;
}

.content-wrapper strong {
    color: var(--text-dark);
    font-weight: 600;
}

.back-link {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    .hero-content {
        justify-content: center;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.85) 40%, rgba(255, 255, 255, 0.95) 70%, rgba(255, 255, 255, 0.98) 100%);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        display: flex;
        flex-direction: column;
    }

    .contact-info {
        order: 2; /* Kontaktní údaje dolů */
    }

    .contact-form-wrapper {
        order: 1; /* Formulář nahoru */
    }

    .section-title {
        font-size: 36px;
    }

    .content-wrapper {
        padding: 40px 30px;
    }

    .content-wrapper h1 {
        font-size: 36px;
    }

    .content-wrapper h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 100px 40px 40px;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        gap: 24px;
        align-items: flex-start;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 18px;
        width: 100%;
    }

    .logo-image {
        height: 40px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }

    .hero {
        padding: 100px 0 80px;
        min-height: 100vh;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .scroll-down {
        bottom: 70px;
    }

    .scroll-text {
        font-size: 11px;
    }

    .scroll-arrow {
        width: 20px;
        height: 20px;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .review-card {
        padding: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cookie-bar-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .cookie-bar-text p:first-child {
        font-size: 16px;
    }

    .cookie-bar-text p:last-child {
        font-size: 13px;
    }

    .cookie-bar-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-modal-content {
        padding: 25px 20px 20px;
        max-width: 95%;
    }

    .cookie-modal-content h3 {
        font-size: 20px;
    }

    .cookie-option {
        padding: 12px;
    }

    .cookie-modal-buttons {
        grid-template-columns: 1fr;
    }

    .content-wrapper {
        padding: 30px 20px;
    }

    .content-wrapper h1 {
        font-size: 32px;
    }

    .content-wrapper h2 {
        font-size: 24px;
    }

    .content-wrapper h3 {
        font-size: 20px;
    }

    .page-content {
        padding: 100px 0 60px;
    }

    .social-links {
        gap: 10px;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .social-link svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 35px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }

    .hero {
        padding: 90px 0 60px;
        min-height: 100vh;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 15px;
    }

    .scroll-down {
        bottom: 60px;
    }

    .scroll-text {
        font-size: 10px;
    }

    .scroll-arrow {
        width: 18px;
        height: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .service-card,
    .contact-form {
        padding: 24px;
    }

    .stat-number {
        font-size: 36px;
    }

    .footer-creator {
        flex-direction: column;
        gap: 8px;
    }

    .creator-logo {
        width: 18px;
    }

    .cookie-bar {
        padding: 15px;
    }

    .cookie-modal {
        padding: 15px;
    }

    .cookie-modal-content {
        padding: 22px 16px 18px;
        border-radius: 14px;
    }

    .cookie-modal-content h3 {
        font-size: 18px;
    }

    .cookie-option {
        padding: 10px;
    }

    .cookie-option-info strong {
        font-size: 13px;
    }

    .cookie-option-info small {
        font-size: 11px;
    }

    .cookie-modal-close {
        width: 28px;
        height: 28px;
        top: 10px;
        right: 10px;
    }

    .cookie-switch {
        width: 40px;
        height: 22px;
    }

    .cookie-slider:before {
        height: 16px;
        width: 16px;
    }

    .cookie-switch input:checked + .cookie-slider:before {
        transform: translateX(18px);
    }
}

/* ============================================
   ANIMATIONS & UTILITIES
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.animate-in {
    animation-play-state: running !important;
}

/* Smooth scroll offset for anchor links */
html {
    scroll-padding-top: 100px;
}

/* Selection color */
::selection {
    background: var(--primary-color);
    color: var(--bg-white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
