/* =========================================================
   Dream space – firemní styl
   Brand: červená #ef0d33 / tmavá #d20b2d na bílé a tmavé
   ========================================================= */

:root {
    --red:        #ef0d33;
    --red-dark:   #d20b2d;
    --red-soft:   #ff3355;
    --ink:        #0e1015;   /* skoro černá */
    --ink-2:      #181b22;
    --ink-3:      #21252e;
    --gray:       #5b6270;
    --gray-light: #8a909c;
    --line:       #e7e9ee;
    --bg:         #ffffff;
    --bg-soft:    #f6f7f9;
    --white:      #ffffff;
    --radius:     16px;
    --radius-sm:  10px;
    --shadow:     0 18px 50px -20px rgba(14,16,21,.25);
    --shadow-sm:  0 8px 24px -12px rgba(14,16,21,.22);
    --maxw:       1180px;
    --t:          .25s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--red); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block; }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #e9ebf0; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px,5vw,64px); text-align: center; }
.section-head p { color: var(--gray); font-size: 1.08rem; }
.section--dark .section-head p { color: var(--gray-light); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-weight: 700; font-size: 1rem; padding: .95rem 1.7rem;
    border-radius: 999px; border: 2px solid transparent; cursor: pointer;
    transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t);
    white-space: nowrap; font-family: inherit;
}
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 12px 30px -10px rgba(239,13,51,.6); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -16px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--red); color: #fff; font-weight: 900; font-size: 1.05rem;
    padding: .35rem .5rem; border-radius: 8px; line-height: 1; letter-spacing: -.02em;
}
.brand-mark .dot { color: #fff; }
.brand-name { font-size: 1.18rem; letter-spacing: -.02em; color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a { font-weight: 600; color: var(--ink); font-size: .98rem; transition: color var(--t); }
.main-nav a:hover { color: var(--red); }
.main-nav .nav-cta {
    background: var(--red); color: #fff; padding: .55rem 1.25rem; border-radius: 999px;
    transition: background var(--t), transform var(--t);
}
.main-nav .nav-cta:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--t); }
.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); }

/* ---------- Hero ---------- */
.hero {
    position: relative; padding: 150px 0 90px; overflow: hidden;
    background:
      radial-gradient(900px 500px at 85% -10%, rgba(239,13,51,.16), transparent 60%),
      radial-gradient(700px 500px at -5% 20%, rgba(239,13,51,.08), transparent 55%),
      var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,64px); align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--red); }
.hero-lead { font-size: 1.18rem; color: var(--gray); max-width: 540px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-tags span {
    font-size: .82rem; font-weight: 600; color: var(--gray);
    background: #fff; border: 1px solid var(--line); padding: .35rem .85rem; border-radius: 999px;
}
.hero-visual { position: relative; height: 100%; display: flex; align-items: center;}
.hero-visual img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-visual .floaty {
    position: absolute; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow);
    padding: .9rem 1.1rem; display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: .92rem;
}
.hero-visual .floaty .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--red); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.1rem; }
.hero-visual .floaty.f1 { top: 18%; left: -28px; }
.hero-visual .floaty.f2 { bottom: 12%; right: -24px; }
.hero-visual .floaty small { display:block; color: var(--gray); font-weight: 500; font-size:.78rem; }

/* ---------- Trusted / marquee strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip-inner { display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: center; align-items: center; padding: 26px 0; color: var(--gray-light); font-weight: 700; letter-spacing: .04em; }
.strip-inner span { font-size: .95rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px 30px; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    position: relative; overflow: hidden;
}
.service-card::after { content:""; position:absolute; left:0; top:0; height:3px; width:0; background: var(--red); transition: width var(--t); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { width: 100%; }
.service-ico {
    width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: rgba(239,13,51,.1); color: var(--red); margin-bottom: 18px;
}
.service-ico svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: .5rem; }
.service-card p { color: var(--gray); font-size: .97rem; margin-bottom: 1rem; }
.service-tags { display:flex; flex-wrap:wrap; gap:.4rem; }
.service-tags span { font-size:.76rem; font-weight:600; color: var(--red); background: rgba(239,13,51,.08); padding:.25rem .6rem; border-radius:999px; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { position: relative; padding-top: 8px; }
.process-step .num {
    font-size: 2.4rem; font-weight: 900; color: var(--red); letter-spacing: -.04em; line-height: 1; margin-bottom: .6rem;
    -webkit-text-stroke: 1px var(--red); color: transparent;
}
.process-step h3 { font-size: 1.12rem; }
.process-step p { color: var(--gray); font-size: .95rem; }
.section--dark .process-step p { color: var(--gray-light); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
.about-media { position: relative; height: 100%; display: flex; align-items: center;}
.about-media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.about-list { list-style: none; padding: 0; margin: 1.2rem 0 2rem; display: grid; gap: .8rem; }
.about-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--gray); }
.about-list .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color:#fff; display:flex; align-items:center; justify-content:center; font-size:.75rem; margin-top:.2rem; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: clamp(2.2rem,4vw,3rem); font-weight: 900; color: #fff; letter-spacing: -.03em; }
.stat .num .plus { color: var(--red-soft); }
.stat .label { color: var(--gray-light); font-weight: 600; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px,5vw,56px); align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--gray); font-size: 1.08rem; margin-bottom: 1.8rem; }
.contact-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-points li { display: flex; gap: .9rem; align-items: center; }
.contact-points .ico { flex:none; width: 46px; height: 46px; border-radius: 12px; background: rgba(239,13,51,.1); color: var(--red); display:flex; align-items:center; justify-content:center; }
.contact-points .ico svg { width: 22px; height: 22px; }
.contact-points b { display:block; }
.contact-points a, .contact-points span { color: var(--gray); }
.contact-points a:hover { color: var(--red); }

.contact-form {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(26px,4vw,40px); box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
    width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
    padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; transition: border-color var(--t), box-shadow var(--t);
}
.field select {
    appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6270' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,13,51,.12); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,13,51,.14); }

/* Honeypot – schované pole pro boty */
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.field .err-msg { display: none; color: var(--red); font-size: .82rem; font-weight: 600; margin-top: .35rem; }
.field.invalid .err-msg { display: block; }

.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--gray); margin: 4px 0 20px; }
.form-consent input { margin-top: .25rem; accent-color: var(--red); width:18px; height:18px; flex:none; }
.form-consent.invalid { color: var(--red); }
.form-consent a { color: var(--red); text-decoration: underline; }

.form-feedback { display: none; border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-weight: 600; margin-bottom: 16px; }
.form-feedback.show { display: block; }
.form-feedback.success { background: #e9f9ef; color: #157347; border: 1px solid #b6e6c6; }
.form-feedback.error   { background: #fdecef; color: var(--red-dark); border: 1px solid #f6b8c6; }
.btn.is-loading { opacity: .7; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7ccd6; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; padding: clamp(56px,7vw,80px) 0 48px; }
.brand--footer .brand-name { color: #fff; }
.footer-brand p { color: var(--gray-light); margin-top: 1rem; max-width: 320px; font-size: .95rem; }
.footer-col .social-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: .6rem; }
.footer-col .social-list li { margin: 0; }
.footer-col .social-list a {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); color: #c7ccd6; transition: background var(--t), color var(--t), transform var(--t);
}
.footer-col .social-list a:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.footer-col .social-list svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-col a { color: #aeb4c0; font-size: .94rem; transition: color var(--t); }
.footer-col a:hover { color: var(--red-soft); }
.footer-contact li { font-size: .94rem; color: #aeb4c0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 22px 0; font-size: .86rem; color: var(--gray-light); flex-wrap: wrap; }
.footer-legal { display: flex; gap: 1.4rem; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
    background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none;
    transform: translateY(12px); transition: var(--t); z-index: 90;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--red-dark); }

/* ---------- Legal pages ---------- */
.page-hero { padding: 140px 0 60px; background:
    radial-gradient(700px 360px at 90% -20%, rgba(239,13,51,.12), transparent 60%), var(--bg-soft);
    border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: .8rem; }
.page-hero h1 { font-size: clamp(2rem,4.5vw,3.1rem); }
.page-hero p { color: var(--gray); max-width: 640px; }
.legal { padding: clamp(48px,6vw,80px) 0 clamp(64px,8vw,100px); }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-wrap h2 { font-size: 1.5rem; margin-top: 2.4rem; padding-top: .4rem; }
.legal-wrap h2:first-child { margin-top: 0; }
.legal-wrap h3 { font-size: 1.12rem; margin-top: 1.6rem; }
.legal-wrap p, .legal-wrap li { color: #3a3f4b; }
.legal-wrap ul { padding-left: 1.2rem; }
.legal-wrap li { margin-bottom: .4rem; }
.legal-wrap a { color: var(--red); text-decoration: underline; }
.legal-meta { color: var(--gray); font-size: .9rem; margin-bottom: 2rem; }
.legal-note { background: var(--bg-soft); border-left: 3px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1rem 1.2rem; color: var(--gray); font-size: .92rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 520px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
    .main-nav {
        position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
        gap: 0; padding: 12px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
        transform: translateY(-130%); transition: transform .3s ease; visibility: hidden;
    }
    .main-nav.open { transform: none; visibility: visible; }
    .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
    .main-nav .nav-cta { text-align: center; margin-top: 12px; border-bottom: 0; }
    .nav-toggle { display: flex; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .hero-visual .floaty { display: none; }
    .footer-bottom-inner { justify-content: flex-start; }
}
@media (max-width: 520px) {
    .services-grid, .process-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
