@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --sky: #4fb0f5;
  --sky-light: #cfeaff;
  --ice: #f2f9ff;
  --snow: #ffffff;
  --navy: #17324d;
  --ink: #2b4a68;
  --muted: #607a94;
  --line: #d7e7f6;
  --accent: #ff6b4a;
  --accent-dark: #e4532f;
  --sun: #ffcc33;
  --green: #2fae74;
  --red: #e0453a;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(23, 50, 77, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: var(--ice);
  line-height: 1.6;
  font-size: 17px;
}
h1, h2, h3, .brand { font-family: 'Fredoka', 'Nunito', sans-serif; color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 .5em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
a { color: #1f7fd6; }
img, svg { max-width: 100%; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); margin-inline: auto; }

/* ── Header ─────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 1.7rem; font-weight: 700; text-decoration: none; color: var(--navy); }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a.active { background: var(--sky-light); color: var(--navy); }
.nav a.cta { background: var(--accent); color: #fff; }
.nav a.cta:hover { background: var(--accent-dark); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font-size: 1.7rem; color: var(--navy); cursor: pointer; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
}

/* ── Buttons & forms ────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; text-decoration: none;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  background: var(--accent); color: #fff; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
  box-shadow: 0 6px 16px rgba(255, 107, 74, .3);
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.secondary { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: none; }
.btn.secondary:hover { border-color: var(--sky); }
.btn.danger { background: #fff; color: var(--red); border-color: #f3c6c2; box-shadow: none; }
.btn.danger:hover { background: #fff1f0; }
.btn.small { padding: 7px 14px; font-size: .9rem; }

label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 4px; font-size: .95rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--navy);
  padding: 11px 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); }
.field { margin-bottom: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 170px; gap: 12px; align-items: end; }
@media (max-width: 620px) { .row, .row3 { grid-template-columns: 1fr; } }
.hint { font-size: .88rem; color: var(--muted); }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.msg { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; font-weight: 700; }
.msg.error { background: #fff0ee; color: #b3301f; }
.msg.ok { background: #e9f8f0; color: #1d7a4f; }
.msg:empty { display: none; }

/* ── Hero ───────────────────────────── */
.hero { background: linear-gradient(#3fa4f0 0%, #7cc6fb 55%, #bfe4ff 100%); overflow: hidden; position: relative; }
.hero-text { text-align: center; padding: 56px 16px 0; position: relative; z-index: 2; }
.hero-text h1 { color: #fff; text-shadow: 0 3px 0 rgba(23, 50, 77, .18); font-size: clamp(3rem, 9vw, 5.6rem); margin: 0; letter-spacing: .01em; }
.hero-text p { color: #fff; font-size: clamp(1.1rem, 2.4vw, 1.45rem); font-weight: 700; max-width: 640px; margin: 8px auto 22px; text-shadow: 0 1px 2px rgba(23, 50, 77, .25); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn.secondary { background: rgba(255, 255, 255, .9); }
.hero-art { display: block; width: 100%; height: auto; margin-top: -40px; }

/* ── Sections ───────────────────────── */
section.block { padding: 72px 0; }
section.block.white { background: #fff; }
.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-size: .82rem; margin-bottom: 8px; }
.lead { font-size: 1.15rem; color: var(--ink); max-width: 720px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: minmax(0,1fr); } }
.feature { background: var(--ice); border-radius: var(--radius); padding: 26px; }
.feature .icon { font-size: 2.2rem; margin-bottom: 6px; }
.values { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.value-pill { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 10px 20px; font-weight: 800; color: var(--navy); font-family: 'Fredoka', sans-serif; font-size: 1.1rem; }
.value-pill.big { background: var(--sun); border-color: var(--sun); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sky); color: #fff; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 1.3rem; margin-bottom: 12px; }
.cta-band { background: var(--navy); color: #fff; border-radius: 28px; padding: 44px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.page-head { background: linear-gradient(#4fb0f5, #a9dbff); padding: 54px 0 46px; color: #fff; }
.page-head h1 { color: #fff; margin: 0 0 6px; }
.page-head p { margin: 0; font-size: 1.15rem; font-weight: 600; max-width: 680px; }

.legal { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } }
.legal .card h2 { font-size: 1.6rem; }
.legal ul { padding-left: 20px; } .legal li { margin-bottom: 8px; }
.notice { background: #fff8e1; border: 2px solid #ffe08a; border-radius: 14px; padding: 16px 20px; color: #6b5300; font-size: .95rem; }

/* ── Calendar ───────────────────────── */
.cal-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .cal-layout { grid-template-columns: minmax(0,1fr); } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h2 { margin: 0; font-size: 1.6rem; text-transform: capitalize; }
.cal-nav { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--navy); }
.cal-nav:hover { border-color: var(--sky); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; }
.cal-dow { text-align: center; font-weight: 800; font-size: .8rem; color: var(--muted); text-transform: uppercase; padding: 4px 0; }
.cal-day {
  aspect-ratio: 1 / 1; border-radius: 14px; border: 2px solid var(--line); background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: inherit; cursor: pointer; padding: 2px; color: var(--navy); position: relative;
}
.cal-day .num { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.15rem; }
.cal-day .seats { font-size: .72rem; font-weight: 800; color: var(--green); }
.cal-day .dots { display: flex; gap: 2px; }
.cal-day .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.cal-day .dots i.on { background: var(--sky); }
.cal-day:hover:not(:disabled) { border-color: var(--sky); transform: translateY(-1px); }
.cal-day.sel { border-color: var(--navy); box-shadow: 0 0 0 3px var(--sky-light); }
.cal-day.full { background: #fff3f1; border-color: #f6cfc8; }
.cal-day.full .seats { color: var(--red); }
.cal-day.closed { background: repeating-linear-gradient(45deg, #f4f6f8, #f4f6f8 6px, #eceff3 6px, #eceff3 12px); color: #9aa8b5; }
.cal-day.closed .seats { color: #8a98a6; }
.cal-day.mine { background: #e9f8f0; border-color: var(--green); }
.cal-day.mine .seats { color: var(--green); }
.cal-day.past { opacity: .4; cursor: default; }
.cal-day.today .num { text-decoration: underline 3px var(--sun); text-underline-offset: 3px; }
.cal-empty { aspect-ratio: 1 / 1; }
@media (max-width: 520px) {
  .card { padding: 20px 16px; }
  .cal-grid { gap: 4px; }
  .cal-day { border-radius: 10px; }
  .cal-day .seats { display: none; }
}
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: .88rem; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; border: 2px solid var(--line); background: #fff; }
.legend .l-mine::before { background: #e9f8f0; border-color: var(--green); }
.legend .l-full::before { background: #fff3f1; border-color: #f6cfc8; }
.legend .l-closed::before { background: #eceff3; }

.day-panel h3 { font-size: 1.4rem; }
.day-panel h3.date::first-letter, .booking-row .when b::first-letter, .day-group h3::first-letter { text-transform: uppercase; }
.meter { display: flex; gap: 8px; margin: 14px 0 6px; }
.meter i { flex: 1; height: 16px; border-radius: 8px; background: var(--line); }
.meter i.on { background: var(--sky); }
.meter.full i.on { background: var(--red); }
.big-count { font-family: 'Fredoka', sans-serif; font-size: 1.15rem; color: var(--navy); font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; font-weight: 700; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

/* ── Profile ────────────────────────── */
.child-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.child-card .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-light); font-size: 1.3rem; }
.child-card .who { flex: 1; min-width: 150px; }
.child-card .who b { color: var(--navy); font-size: 1.05rem; }
.child-card .actions { display: flex; gap: 8px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs button { font: inherit; font-weight: 800; padding: 9px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.tabs button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.booking-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.booking-row:last-child { border-bottom: 0; }
.booking-row .when { flex: 1; min-width: 200px; }
.booking-row .when b { color: var(--navy); display: inline-block; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; background: var(--sky-light); color: var(--navy); }
.badge.green { background: #e2f6ec; color: #1d7a4f; }
.badge.red { background: #ffe7e3; color: #b3301f; }
.badge.grey { background: #eceff3; color: #5b6b7a; }

table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th { text-align: left; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 2px solid var(--line); }
table.data td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; }
.day-group { margin-bottom: 22px; }
.day-group h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }

/* ── Footer ─────────────────────────── */
.site-footer { background: var(--navy); color: #c9d8e8; padding: 40px 0; margin-top: 0; font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #fff; text-decoration: none; margin-right: 16px; }
.site-footer .brand { color: #fff; font-size: 1.4rem; }

.auth-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px 16px; background: linear-gradient(#bfe4ff, var(--ice)); }
.auth-wrap .card { width: min(560px, 100%); }
.hidden { display: none !important; }

/* ── Print (modulo delega) ──────────── */
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; font-size: 12.5pt; }
  .card { box-shadow: none; padding: 0; }
  .page-head { display: none; }
}
