/* Bloom-grove — škola webového vývoje
   Archetyp: SIDEBAR LAYOUT | Flexbox only */

:root {
  --bg: #f6f7fb;
  --ink: #15172a;
  --ink-soft: #4a4d66;
  --muted: #7a7e97;
  --panel: #ffffff;
  --sidebar: #14152b;
  --sidebar-soft: #20233f;
  --accent: #2dd4a7;
  --accent-deep: #159e7a;
  --violet: #6c6cf0;
  --line: #e4e6f0;
  --fallback-dark: #1b1d33;
  --fallback-warm: #e8eaf4;
  --shadow: 0 18px 40px -24px rgba(21, 23, 42, 0.45);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.18; font-weight: 700; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1.1rem; color: var(--ink-soft); }
a { color: var(--accent-deep); }

img { display: block; max-width: 100%; object-fit: cover; }

/* ---------- Shell: sidebar + content ---------- */
.shell { display: flex; min-height: 100vh; align-items: stretch; }

.sidebar {
  width: 288px;
  flex: 0 0 288px;
  background: var(--sidebar);
  color: #d9dcf0;
  display: flex;
  flex-direction: column;
  padding: 34px 26px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #0d0f1f; font-size: 1.25rem;
}
.brand-name { font-weight: 700; font-size: 1.18rem; letter-spacing: .2px; }
.brand-tag { font-size: .72rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }

.ad-badge {
  margin-top: 26px;
  background: rgba(45, 212, 167, 0.12);
  border: 1px solid rgba(45, 212, 167, 0.3);
  color: #9ff0d7;
  font-size: .72rem;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 10px;
}

.side-nav { margin-top: 30px; display: flex; flex-direction: column; gap: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: #c3c7e4;
  padding: 11px 14px; border-radius: 11px;
  font-size: .97rem; font-weight: 500;
  transition: background .18s ease, color .18s ease;
}
.side-nav a:hover { background: var(--sidebar-soft); color: #fff; }
.side-nav a.is-active { background: linear-gradient(90deg, rgba(45,212,167,.18), transparent); color: #fff; }
.side-nav .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .7; }

.side-cta {
  margin-top: auto;
  background: var(--sidebar-soft);
  border-radius: 14px;
  padding: 18px;
}
.side-cta p { color: #aeb2d4; font-size: .85rem; margin-bottom: .8rem; }
.side-foot { margin-top: 22px; font-size: .74rem; color: var(--muted); }
.side-foot a { color: #9398c4; text-decoration: none; }
.side-foot a:hover { text-decoration: underline; }

/* ---------- Mobile top bar ---------- */
.topbar {
  display: none;
  align-items: center; justify-content: space-between;
  background: var(--sidebar); color: #fff;
  padding: 14px 18px; position: sticky; top: 0; z-index: 40;
}
.burger {
  background: none; border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 10px; padding: 8px 12px;
  font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.scrim { display: none; }

/* ---------- Content ---------- */
.content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 clamp(22px, 5vw, 64px); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  border: none; cursor: pointer; text-decoration: none;
  font-weight: 650; font-size: .96rem;
  padding: 13px 24px; border-radius: 12px;
  background: var(--accent); color: #07261d;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(45,212,167,.7); background: var(--accent-deep); color: #fff; }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-deep); box-shadow: none; }
.btn.light { background: #fff; color: var(--sidebar); }
.btn.light:hover { background: var(--accent); color: #07261d; }

.inline-link {
  font-weight: 650; color: var(--accent-deep);
  text-decoration: none; border-bottom: 2px solid rgba(45,212,167,.4);
  padding-bottom: 1px;
}
.inline-link:hover { border-color: var(--accent-deep); }

.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 14px;
}

/* ---------- Hero (asymmetric split inside sidebar shell) ---------- */
.hero { padding: clamp(46px, 7vw, 86px) 0 42px; }
.hero-inner { display: flex; flex-wrap: wrap; gap: 44px; align-items: center; }
.hero-text { flex: 1 1 340px; }
.hero-text p { font-size: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-media { flex: 1 1 320px; position: relative; }
.hero-media .frame {
  background: var(--fallback-dark);
  border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(-1.4deg);
}
.hero-media .frame img { width: 100%; height: 420px; }
.hero-chip {
  position: absolute; left: -14px; bottom: 26px;
  background: var(--panel); border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
  transform: rotate(2deg);
}
.hero-chip .num { font-size: 1.5rem; font-weight: 800; color: var(--accent-deep); }
.hero-chip span { font-size: .82rem; color: var(--muted); }

.stat-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.stat {
  flex: 1 1 150px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
}
.stat b { display: block; font-size: 1.7rem; color: var(--ink); }
.stat span { font-size: .84rem; color: var(--muted); }

/* ---------- Generic sections ---------- */
section { padding: clamp(38px, 6vw, 70px) 0; }
.section-head { max-width: 58ch; margin-bottom: 36px; }
.band { background: var(--sidebar); color: #e7e9f6; }
.band p { color: #b9bddd; }
.band .eyebrow { color: var(--accent); }
.band h2 { color: #fff; }
.tint { background: linear-gradient(180deg, #eef0fa, var(--bg)); }

/* feature list (editorial inline) */
.feature { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.feature.reverse { flex-direction: row-reverse; }
.feature .col { flex: 1 1 320px; }
.feature .media-box {
  background: var(--fallback-warm); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow);
}
.feature .media-box img { width: 100%; height: 340px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink-soft); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 6px;
  background: rgba(45,212,167,.18); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800;
}

/* card grid (flex wrap) */
.cards { display: flex; flex-wrap: wrap; gap: 22px; }
.card {
  flex: 1 1 290px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card .card-img { background: var(--fallback-warm); }
.card .card-img img { width: 100%; height: 180px; }
.card .card-body { padding: 22px; display: flex; flex-direction: column; flex: 1 1 auto; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .94rem; }
.card .price {
  margin-top: auto; font-weight: 800; font-size: 1.35rem;
  color: var(--ink); padding-top: 12px;
}
.card .price small { font-size: .78rem; color: var(--muted); font-weight: 600; }
.card .card-foot { margin-top: 14px; }

/* steps */
.steps { display: flex; flex-wrap: wrap; gap: 20px; counter-reset: s; }
.step {
  flex: 1 1 210px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px 22px; position: relative;
}
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-size: 2.1rem; font-weight: 800; color: rgba(108,108,240,.25);
  display: block; margin-bottom: 8px;
}

/* testimonials */
.quotes { display: flex; flex-wrap: wrap; gap: 22px; }
.quote {
  flex: 1 1 300px; background: var(--sidebar-soft);
  border-radius: 16px; padding: 26px; color: #d7daf1;
}
.band .quote { background: rgba(255,255,255,.06); }
.quote p { color: #e5e7f7; font-size: 1.02rem; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote .ava {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #0d0f1f; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.quote .who b { color: #fff; font-size: .92rem; }
.quote .who span { color: var(--muted); font-size: .8rem; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--accent-deep), var(--violet));
  border-radius: 22px; padding: clamp(30px, 5vw, 54px);
  color: #fff; display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.88); margin: 0; }

/* ---------- Form ---------- */
.form-wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; }
.form-aside { flex: 1 1 280px; }
.form-card {
  flex: 1 1 360px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 650; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line);
  border-radius: 11px; font: inherit; color: var(--ink);
  background: #fbfcff; transition: border-color .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.form-error {
  display: none; background: #fdecec; color: #b42318;
  border-radius: 10px; padding: 10px 13px; font-size: .86rem; margin-bottom: 14px;
}
.form-error.show { display: block; }

/* ---------- Contact blocks ---------- */
.info-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.info {
  flex: 1 1 240px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px;
}
.info h3 { font-size: 1.05rem; }
.info .big { font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.no-copy { user-select: all; }

/* ---------- Legal / article ---------- */
.article { max-width: 760px; }
.article h2 { margin-top: 2em; }
.article h3 { margin-top: 1.6em; }
.article ul { padding-left: 1.2em; color: var(--ink-soft); }
.article li { margin-bottom: 8px; }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-deep); }

/* ---------- Footer ---------- */
.site-foot {
  margin-top: auto; background: #0e0f22; color: #a9adcf;
  padding: 48px 0 30px;
}
.foot-top { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; }
.foot-col { flex: 1 1 200px; }
.foot-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.foot-col a { display: block; color: #a9adcf; text-decoration: none; font-size: .9rem; margin-bottom: 9px; }
.foot-col a:hover { color: var(--accent); }
.foot-col p { color: #8f93b8; font-size: .88rem; }
.foot-bottom {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .82rem; color: #7f84ab;
}
.disclaimer-box {
  background: rgba(255,255,255,.04); border-radius: 12px;
  padding: 16px 18px; margin-top: 26px; font-size: .82rem; color: #9398c0;
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 60;
  background: #16182f; color: #e7e9f6; border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  max-width: 980px; margin: 0 auto;
}
.cookie p { margin: 0; color: #c7cae6; font-size: .88rem; flex: 1 1 320px; }
.cookie .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie.hide { display: none; }
.cookie .btn { padding: 10px 18px; font-size: .88rem; }

/* ---------- Utilities (replace inline styles) ---------- */
.u-narrow { max-width: 660px; }
.u-mt-s { margin-top: 18px; }
.u-mt-m { margin-top: 26px; }
.u-mt-l { margin-top: 30px; }
.u-mb { margin-bottom: 20px; }
.btn-block { width: 100%; justify-content: center; }
.site-foot .brand { margin-bottom: 14px; }
.site-foot .brand-name { color: #fff; }
.cookie a { color: #9ff0d7; }
.btn.reject { color: #fff; border-color: rgba(255,255,255,.3); }
.btn.reject:hover { color: #fff; border-color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 50;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 0 0 60px rgba(0,0,0,.5);
  }
  .shell.nav-open .sidebar { transform: translateX(0); }
  .topbar { display: flex; }
  .scrim {
    display: block; position: fixed; inset: 0; z-index: 45;
    background: rgba(10,11,25,.55); opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
  }
  .shell.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .hero-media .frame { transform: none; }
  .hero-chip { position: static; transform: none; margin-top: 16px; display: inline-flex; }
}
