/* --- PROMĚNNÉ --- */
:root {
    --accent: #007aff;
    --accent-light: #e5f1ff;
    --dark: #1d1d1f;
    --light-bg: #ffffff;
    --section-bg: #f9f9fb;
    --border: #e2e2e7;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0; padding: 0;
    background-color: var(--light-bg);
    color: var(--dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

/* --- NAVIGACE --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 8%; background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border);
}
.logo { font-size: 1.5rem; font-weight: 800; }
.logo span { color: var(--accent); }
.nav-links a { color: var(--dark); text-decoration: none; margin-left: 25px; font-weight: 500; transition: color 180ms ease, transform 180ms ease; }
.nav-links a:hover { color: var(--accent); transform: translateY(-2px); }
.btn-nav { background: var(--accent); color: white !important; padding: 8px 18px; border-radius: 20px; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, background-color 180ms ease; }
.btn-nav:hover { transform: translateY(-3px) scale(1.02); filter: brightness(0.94); box-shadow: 0 14px 36px rgba(0,122,255,0.18); background-color: #0063e6; }

/* --- HERO --- */
.hero {
    position: relative; height: calc(100vh - 70px);
    display: flex; justify-content: center; align-items: center; text-align: center;
}
.hero-bg-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('socks-hero.jpg'); background-size: cover; background-position: center;
    opacity: 0.08; z-index: 1;
}
.hero-content { z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 40px; }
h1 { font-size: 6rem; font-weight: 900; letter-spacing: -3px; line-height: 1; margin: 0; }

.glitch-text {
    display: inline-block;
    background-image: url('img/nohy.gif');
    background-size: auto 230%;
    background-position: center center;
    background-repeat: repeat-x;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    will-change: background-position, transform;
}

.scroll-down { display: block; cursor: pointer; text-decoration: none; }
.arrow {
    width: 35px; height: 35px; border-bottom: 5px solid var(--accent); border-right: 5px solid var(--accent);
    transform: rotate(45deg); animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-20px) rotate(45deg); }
}

/* --- O PRODUKTU --- */
.product-explanation { padding: 120px 8% 120px 4%; background: var(--light-bg); }
.explanation-container { max-width: 900px; text-align: left; margin: 0 0 0 4%; }
.explanation-content h2 { font-size: 2.8rem; margin: 20px 0; font-weight: 800; line-height: 1.1; letter-spacing: -1px; color: var(--dark); }
.explanation-content p { font-size: 1.3rem; color: #444; max-width: 700px; }

/* --- FEATURES SPLIT --- */
.features-split {
    padding: 120px 8%;
    background: var(--section-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}
.features-image-side { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.features-image-side img {
    width: 90%;
    margin: 0 auto;
    border-radius: 30px;
    display: block;
    transition: transform 320ms cubic-bezier(.2,.9,.2,1), box-shadow 320ms;
    cursor: pointer;
}
.features-image-side img:hover {
    transform: scale(1.05);
    box-shadow: 0 22px 60px rgba(0,0,0,0.12);
}
.features-image-side img.features-image-side2:hover {
    transform: scale(1.02) rotate(-2deg);
}

.features-text-side { flex: 1; text-align: left; }
.features-text-side h3 { font-size: 2.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: var(--dark); }
.features-text-side p { font-size: 1.3rem; color: #444; }

/* --- TYPES / CATALOG SECTION (OPRAVENO) --- */
.types-section {
    padding: 100px 8%;
    background: var(--light-bg);
    border-bottom: 1px solid var(--border);
}
.types-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}
.types-text-side { flex: 1; }
.types-text-side h3 { font-size: 2.8rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: var(--dark); }
.types-text-side p { font-size: 1.3rem; color: #444; max-width: 700px; }

.types-carousel { flex: 1; }
.types-carousel .carousel { width: 100%; }

.types-carousel .carousel-inner {
    border-radius: 20px;
    overflow: hidden;
    background: var(--section-bg); /* Pozadí pod obrázky */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.types-carousel .carousel-item {
    height: 550px; /* Dostatečná výška pro vaše vertikální obrázky */
    text-align: center;
}

.types-carousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: contain; /* KLÍČ: Zabrání deformaci, zachová poměr stran */
    padding: 30px; /* Vytvoří elegantní odsazení od krajů */
}

/* --- RECENZE --- */
.social-proof { padding: 100px 8%; background: #ffffff; }
.social-proof h3 { font-size: 2.8rem; padding-bottom: 3rem; font-weight: 800; text-align: center; }

.review-box {
    max-width: 900px;
    margin: 22px auto;
    background: var(--light-bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.review-box:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 50px rgba(0,122,255,0.12); 
}

blockquote { margin: 0; padding-left: 14px; border-left: 4px solid var(--accent-light); font-style: italic; }
blockquote strong { display: block; margin-top: 12px; color: var(--accent); text-transform: uppercase; font-size: 0.85rem; font-style: normal; }

/* --- FOOTER --- */
footer { padding: 100px 8%; background: var(--section-bg); text-align: center; }
.contact-form input { padding: 16px; width: 350px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 10px; }
.btn-submit { padding: 16px 40px; background: var(--accent); color: white; border-radius: 12px; border: none; font-weight: 700; cursor: pointer; }

/* --- RESPONSIVITA --- */
@media (max-width: 768px) {
    h1 { font-size: 3.2rem; }
    .features-container, .types-container { flex-direction: column; text-align: center; }
    .types-carousel .carousel-item { height: 400px; } /* Menší výška pro mobily */
    .contact-form input { width: 100%; }
}

/* --- CAROUSEL IKONY --- */
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M11 1 5 8l6 7'/%3E%3C/svg%3E") !important;
}
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 1l6 7-6 7'/%3E%3C/svg%3E") !important;
}