/* ========================================
   SENTEX agency – stylesheet
   Apple-inspired clean minimal design
   ======================================== */

/* --- CSS Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colors */
    --white: #ffffff;
    --off-white: #fbfbfd;
    --gray-50: #f5f5f7;
    --gray-100: #e8e8ed;
    --gray-200: #d2d2d7;
    --gray-300: #a1a1a6;
    --gray-500: #6e6e73;
    --gray-700: #424245;
    --gray-900: #1d1d1f;
    --black: #000000;

    --navy: #0a2540;
    --navy-light: #1d3557;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --accent-dark: #0058a8;

    --success: #2db84d;
    --error: #d93535;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --container-pad: 24px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 980px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.5;
    color: var(--gray-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover {
    color: var(--accent-hover);
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--t-base);
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    line-height: 1;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-900);
    border: 1px solid var(--gray-200);
}

.btn-ghost:hover {
    background: var(--gray-50);
    color: var(--gray-900);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
}

/* --- Typography --- */
.eyebrow {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--gray-900);
}

.accent {
    color: var(--accent);
}

.d-none-mobile {
    display: inline;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-base), background var(--t-base);
}

.site-header.scrolled {
    border-bottom-color: var(--gray-100);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
    transition: opacity var(--t-fast);
}

.logo:hover .logo-img {
    opacity: 0.75;
}

.site-footer .logo-img {
    height: 48px;
}

@media (max-width: 480px) {
    .logo-img {
        height: 38px;
    }
}

/* Desktop nav */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-desktop a {
    color: var(--gray-900);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--t-fast);
}

.nav-desktop a:hover {
    color: var(--accent);
}

.nav-desktop a.btn {
    color: var(--white);
}

.nav-desktop a.btn:hover {
    color: var(--white);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-900);
    border-radius: 1px;
    transition: transform var(--t-base), opacity var(--t-base);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--gray-100);
}

.nav-mobile.open {
    display: flex;
}

.nav-mobile a {
    color: var(--gray-900);
    font-size: 18px;
    font-weight: 500;
    padding: 14px 4px;
    border-bottom: 1px solid var(--gray-100);
}

.nav-mobile a:last-child {
    border-bottom: none;
    margin-top: 12px;
}

/* --- Hero --- */
.hero {
    padding: 168px 0 100px;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-sub {
    font-size: clamp(18px, 2.2vw, 22px);
    color: var(--gray-500);
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 88px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 720px;
    margin: 0 auto;
    padding-top: 56px;
    border-top: 1px solid var(--gray-100);
}

.stat-num {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
}

/* --- Sections --- */
.section {
    padding: 120px 0;
}

.section-light {
    background: var(--off-white);
}

.section-dark {
    background: var(--gray-900);
    color: var(--white);
}

.section-dark .section-title,
.section-dark h3 {
    color: var(--white);
}

.section-dark .section-sub {
    color: var(--gray-300);
}

.section-dark .eyebrow {
    color: #5eb0ff;
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 72px;
}

.section-title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.section-sub {
    font-size: clamp(17px, 1.8vw, 20px);
    color: var(--gray-500);
    line-height: 1.5;
}

/* --- Services grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: all var(--t-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 24px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.55;
}

/* --- Features grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 56px 48px;
}

.feature {
    position: relative;
}

.feature-num {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    font-feature-settings: "tnum";
}

.feature h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.015em;
}

.feature p {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.55;
}

/* --- References --- */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.ref-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ref-quote {
    font-size: 17px;
    line-height: 1.55;
    color: var(--white);
    font-weight: 400;
}

.ref-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ref-author strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
}

.ref-author span {
    font-size: 14px;
    color: var(--gray-300);
}

/* --- Contact --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-info .section-sub {
    text-align: left;
    margin-bottom: 48px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-value {
    font-size: 16px;
    color: var(--gray-900);
    line-height: 1.5;
}

a.contact-value:hover {
    color: var(--accent);
}

/* Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group label span[aria-hidden="true"] {
    color: var(--accent);
}

.form-group input,
.form-group textarea {
    font-family: inherit;
    font-size: 16px;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-900);
    transition: all var(--t-fast);
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-consent {
    flex-direction: row;
}

.checkbox-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.form-status {
    font-size: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(45, 184, 77, 0.1);
    color: var(--success);
    border: 1px solid rgba(45, 184, 77, 0.2);
}

.form-status.error {
    display: block;
    background: rgba(217, 53, 53, 0.1);
    color: var(--error);
    border: 1px solid rgba(217, 53, 53, 0.2);
}

/* --- Footer --- */
.site-footer {
    background: var(--off-white);
    padding: 72px 0 0;
    border-top: 1px solid var(--gray-100);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 56px;
    padding-bottom: 56px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--gray-500);
    font-size: 15px;
    max-width: 280px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

.footer-col a {
    color: var(--gray-500);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--gray-100);
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-500);
    text-align: center;
}

/* --- Legal / 404 stránky --- */
.container-narrow {
    max-width: 760px;
}

.legal-page {
    padding: 140px 0 100px;
}

.legal-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.legal-intro {
    font-size: 19px;
    color: var(--gray-500);
    line-height: 1.55;
    margin-bottom: 56px;
}

.legal-section {
    margin-bottom: 48px;
}

.legal-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: -0.015em;
}

.legal-section p,
.legal-section ul {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.65;
    margin-bottom: 14px;
}

.legal-section ul {
    padding-left: 24px;
}

.legal-section li {
    margin-bottom: 6px;
}

.legal-section strong {
    color: var(--gray-900);
    font-weight: 600;
}

.legal-back {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-100);
}

.footer-bottom a {
    color: var(--gray-500);
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* --- 404 stránka --- */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 80px;
    background: linear-gradient(180deg, var(--white) 0%, var(--off-white) 100%);
    position: relative;
    overflow: hidden;
}

.error-page::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.error-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.error-code {
    font-size: clamp(120px, 20vw, 200px);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    background: linear-gradient(180deg, var(--gray-900) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

.error-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.error-sub {
    font-size: 18px;
    color: var(--gray-500);
    margin-bottom: 40px;
    line-height: 1.5;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Fade-in animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }
.fade-in:nth-child(5) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-pad: 20px;
    }

    .nav-desktop {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 130px 0 72px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 40px;
    }

    .hero-cta {
        margin-bottom: 64px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .section {
        padding: 80px 0;
    }

    .section-head {
        margin-bottom: 48px;
    }

    .features-grid {
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 28px 24px;
    }

    .footer-cols {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .d-none-mobile {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: -0.025em;
    }

    .service-card {
        padding: 32px 24px;
    }
}

/* ==========================================
   COOKIE BANNER & CONSENT MANAGER
   ========================================== */

/* Banner */
.cookie-banner {
    position: fixed;
    bottom: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;
    right: 16px;
    z-index: 9000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 24px 28px;
    transform: translateY(calc(100% + 32px));
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-slow), opacity var(--t-slow);
    max-width: 1100px;
    margin: 0 auto;
    /* Skryjeme banner když je modal otevřený */
}

/* Při otevřeném modalu skryjeme banner */
body.cookie-modal-open .cookie-banner {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(calc(100% + 32px)) !important;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
}

.cookie-banner-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-900);
    letter-spacing: -0.01em;
}

.cookie-banner-text p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-500);
    margin: 0;
}

.cookie-banner-text strong {
    color: var(--gray-900);
    font-weight: 600;
}

.cookie-banner-text a {
    color: var(--accent);
    font-weight: 500;
}

.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-base);
    /* iOS Safari fix - počítáme s notch/safe area */
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.cookie-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.cookie-modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    max-height: 85dvh; /* dynamic viewport height pro mobily */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-xl);
    transform: scale(0.96);
    transition: transform var(--t-base);
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-50);
    color: var(--gray-700);
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
    padding: 0;
    border: none;
    z-index: 2;
}

.cookie-modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.cookie-modal-content h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    padding-right: 40px;
}

.cookie-modal-intro {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.55;
    margin-bottom: 28px;
}

/* Kategorie */
.cookie-category {
    padding: 20px 0;
    border-top: 1px solid var(--gray-100);
}

.cookie-category:first-of-type {
    border-top: none;
    padding-top: 0;
}

.cookie-category-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.cookie-category h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    letter-spacing: -0.01em;
    margin: 0;
}

.cookie-category p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--gray-500);
    margin: 0;
}

/* Toggle switch (Apple style) */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--gray-200);
    border-radius: 999px;
    transition: background var(--t-base);
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform var(--t-base);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--accent);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(18px);
}

.cookie-toggle.is-locked {
    cursor: not-allowed;
}

.cookie-toggle.is-locked .cookie-toggle-slider {
    background: var(--gray-300);
    opacity: 0.7;
}

.cookie-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 12px;
        right: 12px;
        padding: 18px 18px 16px;
        border-radius: var(--radius-lg);
    }

    .cookie-banner-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cookie-banner-text h3 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .cookie-banner-text p {
        font-size: 12.5px;
        line-height: 1.45;
    }

    /* Mobile button layout:
       - "Pouze nezbytné" + "Nastavení" vedle sebe (50/50)
       - "Přijmout vše" plná šířka pod nimi
    */
    .cookie-banner-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .cookie-banner-actions .btn {
        padding: 11px 12px;
        min-height: 42px;
        font-size: 14px;
        white-space: nowrap;
    }

    .cookie-banner-actions .btn-primary {
        grid-column: 1 / -1;
        order: 1;
    }

    #cookieRejectAll { order: 2; }
    #cookieSettings { order: 3; }

    /* Modal na mobilu */
    .cookie-modal {
        padding: 16px;
        padding-top: max(16px, env(safe-area-inset-top));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        align-items: flex-end; /* sheet-like na mobilu */
    }

    .cookie-modal-content {
        padding: 28px 22px 22px;
        max-height: 88vh;
        max-height: 88dvh;
        border-radius: var(--radius-xl);
    }

    .cookie-modal-content h2 {
        font-size: 22px;
        padding-right: 44px;
    }

    .cookie-modal-intro {
        font-size: 13px;
    }

    .cookie-category {
        padding: 18px 0;
    }

    .cookie-category h3 {
        font-size: 15px;
    }

    .cookie-category p {
        font-size: 12.5px;
    }

    .cookie-modal-actions {
        flex-direction: column-reverse;
        gap: 8px;
        margin-top: 20px;
        padding-top: 18px;
    }

    .cookie-modal-actions .btn {
        width: 100%;
        min-height: 44px;
    }
}

@media (max-width: 380px) {
    .cookie-banner {
        padding: 18px 16px;
    }

    .cookie-modal-content {
        padding: 24px 18px 18px;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
