:root{
  --bg:#0b1220;           /* deep navy */
  --panel:#0f1b33;        /* card */
  --panel2:#0b1730;
  --text:#eaf0ff;
  --muted:#a9b6d6;
  --brand:#1E293B;        /* Midnight Blue */
  --accent:#E42F2C;       /* Crimson Red */
  --line:rgba(255,255,255,.08);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 26px;
  --max: 1120px;
  --focus: 0 0 0 4px rgba(228,47,44,.25);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(228,47,44,.12), transparent 55%),
    radial-gradient(900px 500px at 85% 20%, rgba(66, 153, 225, .10), transparent 55%),
    radial-gradient(1200px 800px at 50% 90%, rgba(30,41,59,.55), transparent 60%),
    linear-gradient(180deg, #070b14 0%, var(--bg) 45%, #060912 100%);
  min-height:100vh;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.95}

.container{max-width:var(--max); margin:0 auto; padding:0 18px}
.section{padding:74px 0}
.section.compact{padding:54px 0}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(7,11,20,.55);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  height:66px;
  gap:14px;
}

.brand{
  display:flex; align-items:center; gap:12px;
  font-weight:750; letter-spacing:.2px;
}
.logo{
  width:36px; height:36px; border-radius:12px;
  background:
    radial-gradient(12px 12px at 30% 30%, rgba(255,255,255,.18), transparent 65%),
    linear-gradient(135deg, rgba(228,47,44,.95), rgba(30,41,59,.95));
  box-shadow: 0 14px 35px rgba(228,47,44,.12);
  border:1px solid rgba(255,255,255,.14);
}
.brand small{
  display:block;
  color:var(--muted);
  font-weight:600;
  letter-spacing:.2px;
  margin-top:1px;
}

.menu{
  display:flex; align-items:center; gap:8px;
}
.menu a{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  font-weight:650;
  border:1px solid transparent;
}
.menu a.active{
  color:var(--text);
  border-color:rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.menu a:hover{
  background: rgba(255,255,255,.04);
  color:var(--text);
}

.nav-cta{
  display:flex; align-items:center; gap:10px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color:var(--text);
  font-weight:750;
  cursor:pointer;
}
.btn:hover{background: rgba(255,255,255,.06)}
.btn:focus{outline:none; box-shadow: var(--focus)}
.btn.primary{
  background: linear-gradient(135deg, rgba(228,47,44,.95), rgba(228,47,44,.75));
  border-color: rgba(228,47,44,.35);
  box-shadow: 0 20px 50px rgba(228,47,44,.18);
}
.btn.primary:hover{filter:saturate(1.03)}
.btn.link{
  background:transparent; border:1px solid transparent; color:var(--muted);
}
.btn.link:hover{color:var(--text); background:rgba(255,255,255,.04); border-color:rgba(255,255,255,.10)}

.hero{
  position:relative;
  padding:70px 0 30px;
  overflow:hidden;
}
.hero-grid{
  position:absolute; inset:-80px -50px auto -50px;
  height:520px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(closest-side, rgba(0,0,0,.85), transparent 78%);
  opacity:.85;
  pointer-events:none;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:22px;
  align-items:stretch;
}
@media (max-width: 960px){
  .hero-inner{grid-template-columns:1fr; gap:16px}
}
.hero-photo{
  border-radius: var(--radius2);
  overflow: hidden;
  min-height: 320px;
  border: 2px dashed rgba(255,255,255,.12);
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.hero-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-photo:has(img[src=""]) img{
  display: none;
}

.kicker{
  display:inline-flex; align-items:center; gap:10px;
  color:var(--muted);
  font-weight:750;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(228,47,44,.13);
}
h1{
  margin:16px 0 10px;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height:1.02;
  letter-spacing:-.8px;
}
.lead{
  margin:0;
  color:var(--muted);
  font-size:18px;
  line-height:1.55;
  max-width: 58ch;
}
.hero-actions{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top: 18px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}
.card.pad{padding:18px}
.card.pad-xl{padding:22px}
.card-title{
  font-weight:850;
  letter-spacing:-.2px;
  margin:0 0 10px;
}
.card p{margin:0; color:var(--muted); line-height:1.55}

.profile{
  display:flex; gap:14px; align-items:flex-start;
}
.avatar{
  width:54px; height:54px; border-radius:18px;
  background:
    radial-gradient(18px 18px at 30% 30%, rgba(255,255,255,.18), transparent 65%),
    linear-gradient(135deg, rgba(30,41,59,.95), rgba(15,27,51,.95));
  border:1px solid rgba(255,255,255,.12);
}
.badges{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.badge{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  font-weight:750;
  font-size:13px;
}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 900px){
  .grid3{grid-template-columns:1fr}
}
.grid2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
}
@media (max-width: 900px){
  .grid2{grid-template-columns:1fr}
}

.h2{
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing:-.5px;
  margin:0 0 14px;
}
.sub{
  color:var(--muted);
  margin:0 0 22px;
  line-height:1.55;
  max-width: 70ch;
}

.icon{
  width:38px; height:38px; border-radius:14px;
  background: rgba(228,47,44,.12);
  border: 1px solid rgba(228,47,44,.25);
  display:grid; place-items:center;
  font-weight:900;
  color: rgba(255,255,255,.92);
}

.hr{height:1px; background:var(--line); margin:16px 0}

.pricing{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 980px){
  .pricing{grid-template-columns:1fr}
}
.price{
  padding:18px;
}
.price .tag{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  font-weight:800;
  font-size:12px;
}
.price h3{margin:12px 0 10px; letter-spacing:-.4px}
.ul{
  margin:0; padding:0 0 0 18px; color:var(--muted);
  line-height:1.55;
}
.ul li{margin:8px 0}
.price .bottom{
  display:flex; justify-content:space-between; align-items:center;
  gap:12px; margin-top:14px;
  padding-top:14px; border-top:1px solid var(--line);
}
.money{font-weight:900; letter-spacing:-.3px}
.muted{color:var(--muted)}

.toast{
  position:fixed;
  right:18px; bottom:18px;
  max-width: 420px;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(15,27,51,.92);
  box-shadow: var(--shadow);
  display:none;
  z-index:100;
}
.toast.show{display:block}
.toast strong{display:block; margin-bottom:4px}
.toast p{margin:0; color:var(--muted); line-height:1.45}

.form{
  display:grid; gap:10px;
}
.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color:var(--text);
}
.input:focus{outline:none; box-shadow: var(--focus); border-color: rgba(228,47,44,.35)}
label{font-weight:800; color:rgba(255,255,255,.9); font-size:13px}
.help{font-size:13px; color:var(--muted); line-height:1.45}

.footer{
  padding:40px 0;
  border-top:1px solid var(--line);
  color:var(--muted);
}
.footer .row{
  display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; align-items:center;
}
.footer a{color:var(--muted)}
.footer a:hover{color:var(--text)}

.articles{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 980px){
  .articles{grid-template-columns:1fr}
}
.article{
  overflow:hidden;
}
.article img{
  width:100%; height:170px; object-fit:cover;
  display:block;
  border-bottom: 1px solid var(--line);
}
.article .body{padding:14px}
.article .meta{display:flex; gap:10px; flex-wrap:wrap; color:var(--muted); font-weight:750; font-size:12px}
.article h3{margin:10px 0 6px; letter-spacing:-.35px}
.article p{margin:0; color:var(--muted); line-height:1.5}

.small{font-size:12px; color:var(--muted)}

/* ================================
   Articles (Seznam Medium) – 3 columns layout
   ================================ */

#articlesGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

@media (max-width: 980px){
  #articlesGrid{ grid-template-columns: 1fr; }
}

/* New card structure from updated articles.js */
.article-card{
  display:block;
  border-radius: var(--radius2);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.article-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}

.article-media{
  width:100%;
  border-bottom:1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.article-media img{
  width:100%;
  height:170px;          /* stejné jako dřív */
  object-fit:cover;
  display:block;
}

.article-body{
  padding:14px;
}

.article-date{
  color: var(--muted);
  font-weight: 750;
  font-size: 12px;
}

.article-title{
  margin-top:10px;
  letter-spacing:-.35px;
  font-weight: 850;
  line-height: 1.25;
}

.article-cta{
  margin-top:6px;
  color: var(--muted);
  line-height: 1.5;
}

/* Language switch (CZ / EN) */
.lang-switch{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}

.lang-switch a{
  padding:6px 8px;
  border-radius:10px;
  color: var(--muted);
  font-weight: 850;
  font-size: 12px;
  border:1px solid transparent;
}

.lang-switch a:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.lang-switch a.active{
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}

/* ── Hamburger / mobilní nav ─────────────────────────────────────────────── */
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span{
  display: block;
  width: 100%; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.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: 10px 0 16px;
  border-top: 1px solid var(--line);
  gap: 2px;
}
.nav-mobile a{
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 650;
}
.nav-mobile a:hover,
.nav-mobile a.active{
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.nav-mobile-cta{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.nav-mobile-cta .lang-switch{ align-self: flex-start; }

@media (max-width: 900px){
  .nav-toggle{ display: flex; }
  .menu{ display: none; }
  .nav-cta{ display: none; }
  .nav-mobile.open{ display: flex; }
}

/* ── Service cards with images ─────────────────────────────────────────────── */
.service-img-wrap {
  border-radius: var(--radius2) var(--radius2) 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(228,47,44,.08), rgba(66,153,225,.06));
}
.service-img-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.card:hover .service-img-wrap img {
  transform: scale(1.03);
}
.service-body {
  padding: 22px;
}

/* ── Animations ────────────────────────────────────────────────────────────── */
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(228,47,44,.13); }
  50%       { box-shadow: 0 0 0 12px rgba(228,47,44,.03); }
}
.dot {
  animation: dot-pulse 2.6s ease-in-out infinite;
}

@keyframes grid-drift {
  from { background-position: 0 0; }
  to   { background-position: 26px 26px; }
}
.hero-grid {
  animation: grid-drift 14s linear infinite;
}

.card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(228,47,44,.12);
  border-color: rgba(255,255,255,.15);
}

.badge {
  transition: transform .15s ease, color .15s ease, border-color .15s ease;
  cursor: default;
}
.badge:hover {
  transform: translateY(-2px) scale(1.04);
  color: var(--text);
  border-color: rgba(255,255,255,.2);
}

@media (prefers-reduced-motion: reduce) {
  .dot        { animation: none; }
  .hero-grid  { animation: none; }
  .card       { transition: none; }
  .badge      { transition: none; }
}

/* ── Scroll reveal ─────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .85s cubic-bezier(.22,1,.36,1) var(--delay, 0ms),
    transform .85s cubic-bezier(.22,1,.36,1) var(--delay, 0ms);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}