:root{
    --bg0:#F7F9FC;
    --bg1:#EEF2F7;

    --stroke:rgba(15, 23, 42, .10);
    --stroke2:rgba(15, 23, 42, .07);

    --text:#0F172A;
    --muted:rgba(15, 23, 42, .70);
    --muted2:rgba(15, 23, 42, .56);

    --shadow: 0 18px 50px rgba(15, 23, 42, .10);
    --shadow2: 0 10px 28px rgba(15, 23, 42, .08);

    --radius: 22px;
    --radius2: 16px;

    --accent1:#2563EB;
    --accent2:#14B8A6;

    --green:#22C55E;

    --tintBlue: rgba(37, 99, 235, .12);
    --tintTeal: rgba(20, 184, 166, .12);
    --tintPurple: rgba(124, 58, 237, .08);
}

*{box-sizing:border-box}

body{
    margin:0;
    color:var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    background:
            radial-gradient(900px 600px at 10% 0%, var(--tintBlue), transparent 60%),
            radial-gradient(900px 600px at 92% 8%, var(--tintTeal), transparent 55%),
            radial-gradient(900px 700px at 70% 88%, var(--tintPurple), transparent 60%),
            linear-gradient(180deg, var(--bg0), var(--bg1));
    min-height:100vh;
}

.wrap{
    max-width: 1600px;
    margin: 0 auto;
    padding: 34px 28px 48px;
}

/* ===== Header ===== */
.top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin-bottom: 22px;
}

/* Whole brand is clickable */
.brand{
    display:flex;
    align-items:center;       /* align icon with word block */
    gap:18px;
}

.brand-link,
.brand-link:link,
.brand-link:visited,
.brand-link:hover,
.brand-link:active{
    text-decoration:none !important;
    color: inherit !important;
}

.brand-link:focus-visible{
    outline: 3px solid rgba(37,99,235,.25);
    outline-offset: 8px;
    border-radius: 16px;
}

/* Left icon */
.brand-mark{
    height: 56px;
    width: auto;
    display:block;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Right block: word + centered subtitle */
.brand-right{
    display:flex;
    flex-direction:column;
    align-items:center;     /* center subtitle under word */
    text-align:center;
    gap:8px;
}

/* Word HELPITO image */
.brand-word{
    height: 40px;           /* tweak if needed */
    width: auto;
    display:block;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Subtitle centered under HELPITO word */
.brand-subtitle{
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

/* Responsive */
@media (max-width: 700px){
    .brand{ gap:14px; }
    .brand-mark{ height: 46px; }
    .brand-word{ height: 32px; }
    .brand-subtitle{ font-size: 18px; }
}

/* Status pill */
.pill{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    border-radius:999px;
    background: rgba(255,255,255,.78);
    border:1px solid rgba(15,23,42,.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(15,23,42,.72);
    font-weight:800;
    box-shadow: var(--shadow2);
    white-space:nowrap;
}

.dot{
    width:10px; height:10px; border-radius:999px;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(34,197,94,.18);
}

.sep{opacity:.35; padding:0 6px}

.mono{
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight:800;
}

/* ===== Grid ===== */
.grid{
    display:grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 22px;
    align-items:start;
}

@media (max-width: 1100px){
    .grid{grid-template-columns:1fr; }
}

/* ===== Page shell ===== */
.page-shell{
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.65));
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    overflow:hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position:relative;
}

.page-shell::before{
    content:"";
    position:absolute; inset:-2px;
    background:
            radial-gradient(700px 240px at 25% 10%, rgba(37,99,235,.14), transparent 60%),
            radial-gradient(700px 240px at 88% 18%, rgba(20,184,166,.14), transparent 55%),
            radial-gradient(700px 240px at 70% 92%, rgba(124,58,237,.10), transparent 60%);
    pointer-events:none;
    filter: saturate(105%);
}

.page-shell__inner{
    position:relative;
    padding: 26px;
}

/* ===== Cards ===== */
.card{
    position:relative;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.72));
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    overflow:hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card::before{
    content:"";
    position:absolute; inset:-2px;
    background:
            radial-gradient(700px 240px at 25% 10%, rgba(37,99,235,.12), transparent 60%),
            radial-gradient(700px 240px at 85% 20%, rgba(20,184,166,.10), transparent 55%),
            radial-gradient(700px 240px at 70% 90%, rgba(124,58,237,.08), transparent 60%);
    pointer-events:none;
}

.card > *{ position:relative; }
.card-inner{ padding: 26px; }

/* Badge */
.badge{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.78);
    color: rgba(15,23,42,.68);
    font-weight:800;
    box-shadow: 0 10px 26px rgba(15,23,42,.08);
}

/* Hero */
.hero h3{
    margin: 18px 0 10px;
    font-size: 56px;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

@media (max-width: 700px){
    .hero h3{ font-size: 40px; }
}

.hero p{
    margin: 0 0 20px;
    color: var(--muted);
    max-width: 70ch;
    font-size: 16px;
    line-height: 1.6;
}

/* Buttons */
.actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top: 14px;
}

.btn{
    display:inline-flex; align-items:center; gap:10px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.12);
    background: rgba(255,255,255,.80);
    color: rgba(15,23,42,.88);
    text-decoration:none;
    font-weight:900;
    transition: transform .12s ease, background .12s ease, box-shadow .12s ease, border-color .12s ease;
    box-shadow: 0 10px 24px rgba(15,23,42,.08);
}

.btn:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,.96);
    border-color: rgba(15,23,42,.16);
    box-shadow: 0 14px 32px rgba(15,23,42,.10);
}

.btn-primary{
    background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(20,184,166,.92));
    border-color: rgba(37,99,235,.20);
    color: #ffffff;
}
.btn-primary:hover{
    box-shadow: 0 18px 42px rgba(37,99,235,.18);
}

.btn .ext{
    opacity:.92;
    font-weight:900;
    display:inline-flex;
    width:18px; height:18px;
    align-items:center; justify-content:center;
    border-radius:6px;
    background: rgba(15,23,42,.10);
    color: rgba(15,23,42,.85);
}

/* Steps */
.steps-wrap{ margin-top: 22px; }

.steps-title{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap: 12px;
    margin: 0 0 14px;
}

.steps-title h4{
    margin:0;
    font-size: 18px;
    letter-spacing: .02em;
    color: rgba(15,23,42,.88);
    font-weight: 900;
}

.steps-title span{
    color: var(--muted2);
    font-size: 14px;
}

.steps{
    display:grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1300px){
    .steps{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px){
    .steps{ grid-template-columns: 1fr; }
}

.step{
    border-radius: var(--radius2);
    border:1px solid var(--stroke2);
    background: rgba(255,255,255,.70);
    padding: 14px 14px 16px;
    box-shadow: 0 12px 26px rgba(15,23,42,.06);
    min-height: 140px;
    position:relative;
    overflow:hidden;
}

.step::before{
    content:"";
    position:absolute; inset:-1px;
    background:
            radial-gradient(240px 120px at 22% 10%, rgba(37,99,235,.10), transparent 60%),
            radial-gradient(260px 120px at 90% 15%, rgba(20,184,166,.10), transparent 55%),
            radial-gradient(260px 140px at 70% 95%, rgba(124,58,237,.06), transparent 60%);
    opacity:.95;
    pointer-events:none;
}

.step > *{ position:relative; }

.step-top{
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    margin-bottom: 10px;
}

.icon{
    width:34px; height:34px;
    border-radius: 12px;
    display:grid; place-items:center;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 10px 20px rgba(15,23,42,.06);
}

.icon svg{ width:18px; height:18px; opacity:.92; }

.num{
    font-weight:900;
    color: rgba(15,23,42,.22);
    font-size: 18px;
    letter-spacing:.06em;
}

.step h5{
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 900;
    color: rgba(15,23,42,.92);
}

.step p{
    margin:0;
    color: var(--muted2);
    font-size: 14px;
    line-height: 1.45;
}

/* Right column */
.stack{
    display:grid;
    gap: 18px;
}

.subcard{
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.78);
    box-shadow: var(--shadow2);
    overflow:hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.subcard .card-inner{ padding: 18px 18px; }

.subcard-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.subcard h4{
    margin:0 0 10px;
    font-size: 18px;
    font-weight: 900;
}

.kv{
    display:grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px 14px;
    color: var(--muted);
    font-size: 14px;
    margin-top:12px;
}

.kv b{
    color: rgba(15,23,42,.92);
    font-weight:900;
}

.meter{
    height: 10px;
    background: rgba(15,23,42,.06);
    border-radius: 999px;
    overflow:hidden;
    border: 1px solid rgba(15,23,42,.10);
    margin-left:auto;
    width: 160px;
}

.meter > i{
    display:block;
    height:100%;
    width: 78%;
    background: linear-gradient(90deg, rgba(37,99,235,.95), rgba(20,184,166,.90));
}

.next ul{
    margin:10px 0 0 18px;
    padding:0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

/* Prose */
.prose{
    color: var(--muted);
    line-height: 1.7;
    font-size: 15px;
    max-width: 90ch;
}

.prose h1, .prose h2, .prose h3{
    color: var(--text);
    line-height: 1.15;
    margin: 16px 0 10px;
}

.prose p{ margin: 10px 0; }
.prose ul{ margin: 10px 0 10px 18px; }
.prose li{ margin: 6px 0; }

.prose a{
    color: rgba(37,99,235,.95);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Site footer */
.site-footer{
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(15,23,42,.08);
    color: rgba(15,23,42,.80);
}

.site-footer__grid{
    display:grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 16px;
}

@media (max-width: 1100px){
    .site-footer__grid{ grid-template-columns: 1fr; }
}

.site-footer__title{
    font-weight: 900;
    letter-spacing: .02em;
    margin-bottom: 10px;
    color: rgba(15,23,42,.92);
}

.site-footer__muted{
    color: rgba(15,23,42,.56);
    line-height: 1.55;
}

.site-footer__links{
    display:flex;
    flex-direction:column;
    gap: 8px;
}

.site-footer__links a{
    color: rgba(15,23,42,.74);
    text-decoration:none;
}

.site-footer__links a:hover{
    color: rgba(15,23,42,.92);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer__bottom{
    margin-top: 18px;
    color: rgba(15,23,42,.45);
    font-size: 12px;
    text-align:center;
}


/* =========================================================
   ORDER / FORM EXTENSIONS (append to site.css)
   ========================================================= */

/* Header right actions (OBJEDNEJ + ONLINE pill) */
.top-actions{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

/* Make primary CTA more "hero" without changing other buttons */
.btn-order{
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 16px 40px rgba(37,99,235,.18);
}
.btn-order:hover{
    box-shadow: 0 20px 54px rgba(37,99,235,.22);
}

/* Page heading inside card */
.card-title{
    margin: 0 0 8px;
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 900;
}
@media (max-width: 700px){
    .card-title{ font-size: 30px; }
}
.card-lead{
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 80ch;
}

/* Form layout: 12-col grid like your site */
.grid-12{
    display:grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    align-items:start;
}
.col-6{ grid-column: span 6; }
.col-4{ grid-column: span 4; }
.col-12{ grid-column: span 12; }

@media (max-width: 900px){
    .col-6, .col-4{ grid-column: span 12; }
}

/* Field wrapper: keeps spacing consistent */
.field{
    display:flex;
    flex-direction:column;
    gap: 8px;
}

/* Label style similar to your headings */
.field label{
    font-weight: 900;
    color: rgba(15,23,42,.86);
    letter-spacing: .01em;
}

/* Big "app" controls */
.control{
    width:100%;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,.12);
    background: rgba(255,255,255,.86);
    color: rgba(15,23,42,.92);
    box-shadow: 0 10px 24px rgba(15,23,42,.06);
    font-weight: 800;
    outline: none;
    transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

.control::placeholder{
    color: rgba(15,23,42,.42);
    font-weight: 800;
}

.control:focus{
    border-color: rgba(37,99,235,.35);
    box-shadow: 0 0 0 4px rgba(37,99,235,.14), 0 12px 28px rgba(15,23,42,.08);
    background: rgba(255,255,255,.96);
}

textarea.control{
    min-height: 140px;
    resize: vertical;
    line-height: 1.55;
}

select.control{
    appearance: none;
    -webkit-appearance: none;
    background-image:
            linear-gradient(45deg, transparent 50%, rgba(15,23,42,.55) 50%),
            linear-gradient(135deg, rgba(15,23,42,.55) 50%, transparent 50%);
    background-position:
            calc(100% - 22px) calc(50% - 3px),
            calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
}

/* Helper text */
.help{
    color: var(--muted2);
    font-size: 13px;
    line-height: 1.45;
}

/* Errors (works with Thymeleaf th:errors) */
.field-error{
    border: 1px solid rgba(239,68,68,.22);
    background: rgba(239,68,68,.06);
    color: rgba(127,29,29,.92);
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(15,23,42,.05);
}
.error-msg{
    color: rgba(185,28,28,.92);
    font-weight: 900;
    font-size: 13px;
}

/* Pills (radio group) - looks like your badge/pill style */
.pill-group{
    display:flex;
    gap: 10px;
    flex-wrap:wrap;
}

.pill-opt{
    display:inline-flex;
    align-items:center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.12);
    background: rgba(255,255,255,.76);
    box-shadow: 0 10px 22px rgba(15,23,42,.06);
    cursor:pointer;
    user-select:none;
    font-weight: 900;
    color: rgba(15,23,42,.78);
    transition: transform .12s ease, background .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.pill-opt:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,.92);
    border-color: rgba(15,23,42,.16);
    box-shadow: 0 14px 28px rgba(15,23,42,.08);
}

.pill-opt input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.pill-opt:has(input:checked){
    border-color: rgba(37,99,235,.26);
    background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(20,184,166,.12));
    color: rgba(15,23,42,.92);
}

/* Toggle (mobile switch) */
.toggle-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.72);
    box-shadow: 0 10px 22px rgba(15,23,42,.05);
}

.toggle-row .toggle-label{
    font-weight: 900;
    color: rgba(15,23,42,.86);
}

.toggle{
    position: relative;
    width: 56px;
    height: 34px;
    display:inline-block;
    flex: 0 0 auto;
}

.toggle input{
    position:absolute;
    opacity:0;
    width:0;
    height:0;
}

.toggle .track{
    position:absolute;
    inset:0;
    border-radius: 999px;
    background: rgba(15,23,42,.14);
    border: 1px solid rgba(15,23,42,.14);
    transition: .15s ease;
}

.toggle .thumb{
    position:absolute;
    top: 3px;
    left: 4px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 18px rgba(15,23,42,.14);
    transition: .15s ease;
}

.toggle input:checked + .track{
    background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(20,184,166,.90));
    border-color: rgba(37,99,235,.18);
}
.toggle input:checked + .track + .thumb{
    transform: translateX(22px);
}

/* Nice divider section inside card */
.form-section{
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(15,23,42,.08);
}

.form-actions{
    margin-top: 18px;
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    align-items:center;
}

.note{
    margin-top: 12px;
    color: rgba(15,23,42,.52);
    font-size: 12px;
    line-height: 1.55;
}


/* --- Header logo integration (single image) --- */

.brand-link{
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;          /* zruší podtržení */
    color: inherit;
}

.brand-link:hover{
    text-decoration: none;          /* pojistka proti hover underline */
}


/* větší logo v headeru */
.brand-logo{
    height: 80px;        /* bylo ~40px → cca 2× */
    width: auto;
    max-width: min(520px, 70vw);
}

/* mobil */
@media (max-width: 700px){
    .brand-logo{
        height: 56px;      /* pořád větší než text */
        max-width: 80vw;
    }
}



/* Pokud máš někde pravidlo co podtrhává všechny <a>, tohle to přebije */
.top a, .top a:visited{
    text-decoration: none;
}
.top a:hover, .top a:focus{
    text-decoration: none;
}


/* --- Timeline "Jak to funguje" (homepage) --- */
.timeline-wrap{
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(15,23,42,.08);
}

.timeline-head{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:12px;
    margin-bottom: 12px;
}

.timeline-head h4{
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.01em;
}

.timeline-head span{
    color: var(--muted2);
    font-weight: 800;
    font-size: 13px;
}

.timeline{
    display:flex;
    flex-direction:column;
    gap: 12px;
}

.tl-item{
    display:grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items:start;
}

.tl-rail{
    position: relative;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.tl-dot{
    width: 34px;
    height: 34px;
    border-radius: 14px;
    display:grid;
    place-items:center;
    background: linear-gradient(135deg, rgba(37,99,235,.16), rgba(20,184,166,.14));
    border: 1px solid rgba(37,99,235,.18);
    box-shadow: 0 12px 26px rgba(15,23,42,.08);
}

.tl-num{
    font-weight: 900;
    color: rgba(15,23,42,.86);
    font-size: 14px;
}

.tl-line{
    width: 2px;
    flex: 1 1 auto;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(
            180deg,
            rgba(37,99,235,.30),
            rgba(20,184,166,.18),
            rgba(15,23,42,.05)
    );
}

.tl-item--last .tl-line{ display:none; }

.tl-body{
    border-radius: 18px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.70);
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
    padding: 14px 14px 12px;
}

.tl-title{
    display:flex;
    align-items:center;
    gap: 10px;
    margin-bottom: 6px;
}

.tl-ico{
    font-size: 18px;
    opacity: .92;
}

.tl-body h5{
    margin: 0;
    font-size: 16px;     /* větší než předtím */
    font-weight: 900;
    letter-spacing: -.01em;
}

.tl-body p{
    margin: 0;
    color: rgba(15,23,42,.62);
    font-size: 13.5px;
    line-height: 1.5;
}
