:root {
  --navy: #2C4C5E;
  --navy-dark: #1f3746;
  --accent: #c8792a;
  --bg: #eef1f4;
  --card: #ffffff;
  --text: #1d2a33;
  --muted: #5f6f7a;
  --line: #dde3e8;
  --ok: #2e7d4f;
  --ok-bg: #e7f4ec;
  --err: #b3261e;
  --err-bg: #fbeaea;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(20, 40, 55, .08), 0 4px 14px rgba(20, 40, 55, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--navy); }
header.top {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff; padding: 18px 16px 26px;
}
.top-inner, main { max-width: 1040px; margin: 0 auto; }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; opacity: .9; }
.brand a { color: #fff; text-decoration: none; }
.claim { font-size: 12px; letter-spacing: .08em; opacity: .75; }
h1 { margin: 16px 0 4px; font-size: clamp(26px, 6vw, 36px); line-height: 1.15; }
.subtitle { opacity: .85; margin: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px; padding: 4px 12px; font-size: 14px; white-space: nowrap;
}
.chip.warn { background: var(--accent); border-color: var(--accent); }
@media (min-width: 900px) { .chip.jump { display: none; } }
#formIntro { margin-bottom: 4px; }
main { padding: 16px; margin-top: -14px; display: grid; gap: 16px; }
@media (min-width: 900px) {
  main { grid-template-columns: 5fr 6fr; align-items: start; }
  .col-left { position: sticky; top: 16px; }
}
.col { display: grid; gap: 16px; min-width: 0; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px; }
@media (min-width: 600px) { .card { padding: 22px 24px; } }
.card h2 { margin: 0 0 12px; font-size: 19px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.card h3 { margin: 18px 0 8px; font-size: 16px; color: var(--navy); }
.muted { color: var(--muted); font-size: 14px; }

/* Agenda */
.day { margin-top: 14px; }
.day:first-of-type { margin-top: 0; }
.day-title { font-weight: 700; font-size: 15px; color: var(--navy); padding: 6px 0; border-bottom: 2px solid var(--line); }
.item { display: grid; grid-template-columns: 74px 26px 1fr; gap: 6px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .t { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.item .i { font-size: 17px; line-height: 1.3; }
.item .w { font-weight: 600; }
.item .d { color: var(--muted); font-size: 14px; font-weight: 400; }
ul.notes { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
table.prices { width: 100%; border-collapse: collapse; font-size: 15px; }
table.prices td { padding: 6px 0; border-bottom: 1px solid var(--line); }
table.prices td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* Formular */
fieldset { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
legend { font-weight: 700; color: var(--navy); font-size: 16px; padding: 0; margin: 16px 0 8px; display: flex; gap: 8px; align-items: center; }
.grid { display: grid; gap: 12px; }
@media (min-width: 600px) { .grid.two { grid-template-columns: 1fr 1fr; } }
label.f { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--text); }
label.f span.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=number], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  border: 1px solid #c5cfd6; border-radius: 8px; padding: 10px 12px; background: #fff;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, textarea:focus { outline: 3px solid rgba(44, 76, 94, .25); border-color: var(--navy); }
.toggle { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 600; }
.toggle input { width: 20px; height: 20px; accent-color: var(--navy); }
.sub { margin-top: 12px; padding: 14px; background: #f6f8fa; border-radius: 8px; }
.child { position: relative; padding: 14px; background: #f6f8fa; border-radius: 8px; margin-bottom: 10px; }
.child .grid { grid-template-columns: 1fr 90px; }
.child .full { grid-column: 1 / -1; }
.child .rm {
  position: absolute; top: 8px; right: 8px; border: 0; background: transparent;
  color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; padding: 4px 8px;
}
.child-head { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; border-radius: 8px; padding: 12px 18px; cursor: pointer;
  border: 1px solid var(--navy); background: var(--navy); color: #fff; text-decoration: none;
}
.btn:hover { background: var(--navy-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: #fff; color: var(--navy); }
.btn.ghost:hover { background: #f0f4f6; }
.btn.danger { background: #fff; color: var(--err); border-color: #e3b3b0; }
.btn.block { width: 100%; }
.btn.small { padding: 7px 12px; font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 16px 0; }
.check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--navy); }
.summary-cost { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; background: #f0f4f6; border-radius: 8px; margin: 14px 0 4px; }
.summary-cost b { font-size: 20px; color: var(--navy); }
.msg { padding: 12px 14px; border-radius: 8px; font-size: 15px; margin: 12px 0; }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.err { background: var(--err-bg); color: var(--err); }
.msg.info { background: #eef3f7; color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.persons { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.persons td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 10px 16px 30px; }
footer a { color: var(--muted); }
.hidden { display: none !important; }
