:root, html {
 
  --card:#fff;
  --text:#111827;
  --muted:#6b7280;
  --primary:#11457E;   /* česká modrá */
  --accent:#D7141A;    /* česká červená */
  --border:#e5e7eb;
}
:root.dark, html.dark, html[data-theme="dark"]{
  --bg:#21304c;
  --card:#131820;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --primary:#11457E;
  --accent:#D7141A;
  --border:#1f2937;
}

*{box-sizing:border-box}
html,body{
  margin:0; padding:0;
  background:var(--bg); color:var(--text);
  font-family:"Inter","Manrope","Noto Sans",system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,Arial,sans-serif;
}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.bg-ornament{position:fixed; inset:0; z-index:-1; overflow:hidden; filter:blur(30px) saturate(1.1)}
.blob{position:absolute; border-radius:50%; opacity:.42; mix-blend-mode:multiply; animation:float 30s ease-in-out infinite}
.blob.b1{width:520px;height:520px;background:radial-gradient(circle at 30% 30%, #8b5cf6, transparent 60%);top:-120px;left:-120px;animation-delay:-4s}
.blob.b2{width:600px;height:600px;background:radial-gradient(circle at 70% 40%, #3b82f6, transparent 60%);bottom:-160px;right:-140px;animation-delay:-10s}
.blob.b3{width:420px;height:420px;background:radial-gradient(circle at 40% 70%, #22c55e, transparent 60%);top:40%;left:60%;animation-delay:-16s}
@keyframes float{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(0,-18px,0) scale(1.04)}}

.container{max-width:1100px; margin:0 auto; padding:16px}

.header{display:flex; align-items:center; justify-content:space-between; padding:10px 0}
.logo{display:flex; align-items:center; gap:10px; font-weight:800; font-size:22px}
.logo img{height:38px; width:auto; filter:drop-shadow(0 1px 2px rgba(0,0,0,.08))}
.actions{display:flex; align-items:center; gap:12px}

.btn{display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:12px; border:1px solid var(--border); background:var(--card); color:var(--text); box-shadow:0 2px 8px rgba(0,0,0,.04); cursor:pointer; transition:transform .15s ease, box-shadow .2s}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:linear-gradient(90deg,var(--primary),var(--accent)); color:#fff; border:none}

.theme-pill{width:44px; height:38px; border-radius:12px; background:var(--card); border:1px solid var(--border); display:grid; place-items:center; box-shadow:0 4px 14px rgba(0,0,0,.08)}
.theme-pill .dot{width:16px; height:16px; border-radius:50%; background:radial-gradient(circle at 30% 30%, var(--accent), var(--primary))}

h1{font-size:26px; margin:10px 0 18px}

/* АДАПТИВНАЯ СЕТКА ДЛЯ КАРТОЧЕК */
.grid{display:grid; gap:16px; grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}

/* Карточка оффера */
.card{margin: 5px 0 5px 0; transition: all 0.3s ease; background:var(--card); border:1px solid var(--border); border-radius:16px; overflow:hidden; display:flex; flex-direction:column; box-shadow:0 8px 20px rgb(0 0 0 / 28%)}
.card:hover {  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);}
.card .top{display:flex; align-items:center; gap:12px; padding:14px; border-bottom:1px solid var(--border)}
.card .top .logo-wrap{width:120px; height:50px; border-radius:10px; overflow:hidden; display:grid; place-items:center; background:#fff}
.card .body{padding:14px; display:flex; flex-direction:column; gap:10px}
.card .title{font-weight:800}

/* highlight mode */
.card.highlight{outline:2px solid var(--hl-bg); box-shadow:0 10px 30px rgba(0,0,0,.08)}
.card.highlight .top{background:color-mix(in srgb, var(--hl-bg) 55%, transparent)}
.card.highlight .title{color:var(--hl-text)}
.card .badge{padding:4px 8px; border-radius:999px; border:1px solid var(--border); font-size:12px; color:var(--muted); background:rgba(255,255,255,.4)}
.badge.sale{font-weight:800}

/* specs (label/value) */
.specs{display:grid; gap:10px}
.specs .row{display:grid; grid-template-columns:70px 1fr; column-gap:14px; align-items:baseline}
.specs .k{font-size:13px; color:var(--muted)}
.specs .v{text-align:right; font-weight:600; font-size:14px}

.cta{display:flex; gap:10px; margin-top:6px}
.cta .apply{transition: all 0.3s ease;flex:1; text-align:center; border-radius:12px; padding:10px 14px; background:linear-gradient(90deg,var(--primary),var(--accent)); color:#fff; font-weight:800; border:none; cursor:pointer}
.apply:hover {box-shadow: rgb(22 43 119 / 36%) 3px 3px 5px 0px;
    background: linear-gradient(90deg, #1864b8, #f2272e);}
.cta .details{padding:10px 14px; border-radius:12px; border:1px solid var(--border); background:transparent; color:var(--text); cursor:pointer}

.small{font-size:12px; color:var(--muted)}
.details-panel{display:none; padding:12px; border-top:1px dashed var(--border); font-size:14px}
.card.open .details-panel{display:block}

.section-title{margin:28px 0 10px; font-weight:800; font-size:18px; letter-spacing:.2px}

.footer{margin:20px 0 40px; padding-top:14px; border-top:1px solid var(--border); color:var(--muted); font-size:13px}
.footer .disclaimer{margin-top:4px}

.ads-block{background:var(--card); border:1px dashed var(--border); border-radius:12px; padding:10px; text-align:center}

/* SEO / Аккордеон */
.seo-content{margin-top:18px}
.seo-content h2{font-size:22px; margin:0 0 10px}
.accordion{display:grid; gap:10px; margin-top:10px}
.acc-item{background:var(--card); border:1px solid var(--border); border-radius:12px; overflow:hidden}
.acc-head{width:100%; text-align:left; padding:12px 14px; background:transparent; color:var(--text); border:0; cursor:pointer; font-weight:700; display:flex; align-items:center; justify-content:space-between}
.acc-head:after{content:"▾"; opacity:.6}
.acc-item.open .acc-head:after{content:"▴"}
.acc-body{display:none; padding:0 14px 14px; color:var(--text)}
.acc-item.open .acc-body{display:block}
.accordion .muted{color:var(--muted); font-size:13px}

/* Telegram кнопка */
.tg-dot{margin:0 10px 0 10px; width:16px; height:16px; border-radius:50%; background:linear-gradient(135deg,#37aee2,#1e96c8); display:inline-block}
.tg-btn{width:120px; height:38px; border-radius:12px; background:var(--card); border:1px solid var(--border); display:flex; place-items:center; box-shadow:0 4px 14px rgba(0,0,0,.08)}

/* Footer nav */
.footer .footer-nav{display:grid; gap:14px; margin-bottom:12px}
@media (min-width:720px){.footer .footer-nav{grid-template-columns:repeat(2,1fr)}}
@media (min-width:980px){.footer .footer-nav{grid-template-columns:repeat(3,1fr)}}
.footer .col-title{font-weight:800; font-size:14px; margin-bottom:6px}
.footer .footer-nav ul{list-style:none; margin:0; padding:0; display:grid; gap:6px}
.footer .footer-nav a{color:var(--muted); transition:color .15s ease}
.footer .footer-nav a:hover{color:var(--text)}
.footer .copy{display:flex; flex-direction:column; gap:6px; color:var(--muted); font-size:13px}
@media (min-width:640px){.footer .copy{flex-direction:row; justify-content:space-between; align-items:center}}

/* Sun–Moon theme switch */
.switch-wrapper-sun-moon input[type="checkbox"] { visibility:hidden; display:none; }
.switch-wrapper-sun-moon *, .switch-wrapper-sun-moon ::after, .switch-wrapper-sun-moon ::before { box-sizing:border-box; }
.switch-wrapper-sun-moon .switch-sun-moon {
  --width-of-switch: 3.5em;
  --height-of-switch: 2em;
  --size-of-icon: 1.4em;
  --slider-offset: 0.3em;
  position: relative; width: var(--width-of-switch); height: var(--height-of-switch); display: inline-block;
}
.switch-wrapper-sun-moon .slider-sun-moon {
    box-shadow: inset 0px 0px 5px 0px rgb(0 0 0 / 28%);
  position: absolute; cursor: pointer; inset: 0;
  background-color: #f4f4f5; transition: .4s; border-radius: 30px;
}
.switch-wrapper-sun-moon .slider-sun-moon:before {
  position: absolute; content: ""; height: var(--size-of-icon); width: var(--size-of-icon); border-radius: 20px;
  left: var(--slider-offset); top: 50%; transform: translateY(-50%);
  background: linear-gradient(40deg, #ffbc00, #ee9a1e 70%); transition: .4s;
}
.switch-wrapper-sun-moon input:checked + .slider-sun-moon { background-color: #303136; }
.switch-wrapper-sun-moon input:checked + .slider-sun-moon:before {
  left: calc(100% - (var(--size-of-icon) + var(--slider-offset)));
  background: #303136; box-shadow: inset -3px -2px 5px -2px #0aa696, inset -10px -4px 0 0 #0dd6c1;
}

/* (не обязательно) если больше не используешь старую кнопку темы, можно скрыть её стиль */
.theme-pill { display:none !important; }

