/* Sudý/Lichý budík – web. No external fonts or scripts: the page itself sends nothing to anyone. */
:root {
  --navy: #0b1437;
  --indigo: #2f4fc4;
  --indigo-deep: #173eaf;
  --mist: #dce1ff;
  --half: #c9d3ff;
  --amber: #ffb871;
  --bg: #fbfbff;
  --surface: #ffffff;
  --surface-2: #eef0fb;
  --text: #171a2c;
  --muted: #545a78;
  --line: #dde1f1;
  --radius: 20px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "DejaVu Sans", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1022;
    --surface: #151a33;
    --surface-2: #1c2242;
    --text: #e8eaf8;
    --muted: #a3a9c8;
    --line: #2a3156;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--indigo); }
@media (prefers-color-scheme: dark) { a { color: #b6c4ff; } }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--navy) 92%, transparent);
  backdrop-filter: blur(10px);
  color: #fff;
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a { color: var(--mist); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: #fff; }
@media (max-width: 760px) { .site-nav { display: none; } }
.lang { color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
@media (max-width: 760px) { .lang { margin-left: auto; } }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--indigo-deep) 55%, var(--indigo) 100%);
  color: #fff;
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 48px; } }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--amber); margin: 0 0 16px; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.05; margin: 0 0 22px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #fff 50%, var(--half) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 19px; color: var(--mist); max-width: 34em; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: #fff; color: var(--navy); font-weight: 700; text-decoration: none;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.hero-note { font-size: 14px; color: var(--mist); opacity: .8; margin-top: 16px; }

/* ---------- phone mockup (mirrors the real app screen) ---------- */
.phone {
  width: min(330px, 100%); margin-inline: auto;
  background: #10132a; border-radius: 44px; padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 0 0 2px #2b3160;
}
.screen { background: #fbfbff; color: #171a2c; border-radius: 34px; padding: 18px 14px 22px; font-size: 13px; line-height: 1.4; min-height: 560px; }
.screen-bar { display: flex; justify-content: space-between; font-weight: 600; font-size: 12px; padding: 0 6px 12px; color: #444; }
.screen h4 { margin: 4px 6px 12px; font-size: 22px; font-weight: 500; }
.card { border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.card-week { background: var(--mist); color: #001550; }
.card-week b { display: block; font-size: 24px; letter-spacing: .02em; }
.card-info { background: #ffdcbe; color: #2c1600; display: flex; gap: 8px; }
.card-info::before { content: "i"; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; font: 700 11px/14px var(--font); text-align: center; margin-top: 1px; }
.card-alarm { background: #eceefa; }
.card-alarm .row { display: flex; align-items: center; justify-content: space-between; }
.card-alarm .time { font-size: 40px; font-weight: 300; line-height: 1.1; }
.card-alarm.off .time { color: #8a8fa8; }
.toggle { width: 42px; height: 24px; border-radius: 12px; background: var(--indigo); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; right: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.card-alarm.off .toggle { background: #c5c8d8; }
.card-alarm.off .toggle::after { right: auto; left: 3px; }
.next { color: var(--indigo); }
.skip { color: #6b708a; font-size: 12px; }

/* ---------- sections ---------- */
section { padding: 88px 0; scroll-margin-top: 64px; }
section.alt { background: var(--surface-2); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature h3 { margin: 14px 0 8px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mist); color: var(--indigo-deep); font-weight: 800; }
.ico-split { background: linear-gradient(90deg, #fff 50%, var(--half) 50%) !important; box-shadow: inset 0 0 0 2px var(--indigo); }

/* ---------- week widget ---------- */
.week-now {
  display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 36px;
}
@media (max-width: 760px) { .week-now { grid-template-columns: 1fr; padding: 26px; } }
.week-badge {
  width: 200px; height: 200px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(90deg, #fff 50%, var(--half) 50%);
  box-shadow: inset 0 0 0 6px var(--indigo); color: var(--navy);
}
.week-badge span { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.week-badge b { display: block; font-size: 38px; line-height: 1.1; }
.week-detail h3 { margin: 0 0 8px; font-size: 26px; }
.week-detail p { margin: 0 0 18px; color: var(--muted); }
.strip { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.strip li {
  min-width: 74px; padding: 8px 10px; border-radius: 12px; text-align: center; font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.strip li b { display: block; font-size: 16px; color: var(--text); }
.strip li.odd b { color: var(--indigo); }
.strip li.now { background: var(--indigo); border-color: var(--indigo); color: var(--mist); }
.strip li.now b { color: #fff; }
.note { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; list-style: none; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--indigo); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- holidays ---------- */
.holidays { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .holidays { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h3 { margin: 0 0 14px; font-size: 19px; }
.dates { list-style: none; padding: 0; margin: 0; }
.dates li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dates li:last-child { border-bottom: 0; }
.dates span:last-child { color: var(--muted); text-align: right; }
.search { width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; margin-bottom: 14px; }
.spring { width: 100%; border-collapse: collapse; font-size: 15px; }
.spring th { text-align: left; white-space: nowrap; padding: 10px 14px 10px 0; vertical-align: top; color: var(--indigo); }
.spring td { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.spring tr:last-child td { border-bottom: 0; }
.spring mark { background: var(--amber); color: #2c1600; border-radius: 4px; padding: 0 3px; }
.spring tr.dim { opacity: .35; }

/* ---------- faq ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--indigo); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* ---------- footer ---------- */
.site-foot { background: var(--navy); color: var(--mist); padding: 40px 0; font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-foot a { color: #fff; }

/* ---------- document pages (privacy) ---------- */
.doc { max-width: 760px; padding: 56px 0 80px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc li { margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
