:root {
  --accent: #02b2eb;
  --accent-2: #00c3f5;
  --accent-deep: #0195c6;
  --accent-soft: #e3f6fd;
  --ink: #0f3242;
  --muted: #53707e;
  --bg: #ffffff;
  --paper: #ffffff;
  --danger: #e5484d;
  --danger-soft: #fde7e8;
  --success: #0f9d58;
  --success-soft: #dcf3e6;
  --radius: 20px;
  --shadow: 0 16px 40px rgba(2, 148, 199, 0.14);
  --shadow-lg: 0 24px 60px rgba(2, 148, 199, 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 480px at 50% -140px, rgba(2, 178, 235, 0.16), transparent 70%),
    radial-gradient(760px 380px at 12% 60px, rgba(2, 178, 235, 0.10), transparent 72%),
    radial-gradient(760px 380px at 88% 90px, rgba(2, 178, 235, 0.08), transparent 72%);
  background-repeat: no-repeat;
}

h1, h2, h3 {
  font-family: "Montserrat", "Manrope", system-ui, sans-serif;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.01em;
  margin: 0;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); }

img { max-width: 100%; }
button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.wave { display: block; width: 100%; max-width: 420px; height: 22px; margin: 10px auto 0; }
.wave path { stroke: var(--accent); stroke-width: 5; fill: none; stroke-linecap: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--accent);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.brand-logo-img {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(2, 178, 235, 0.35));
}

.brand-sub {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-actions { display: flex; gap: 10px; }

.header-left { display: flex; align-items: center; gap: 14px; }

.hero-cta { display: flex; justify-content: center; margin-top: 22px; }

/* ---------- Hero ---------- */
.hero { padding: 46px 0 4px; text-align: center; }

.hero-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 10px 20px rgba(2, 178, 235, 0.4));
}

.hero h1 {
  font-size: clamp(32px, 6vw, 58px);
  text-transform: uppercase;
  line-height: 1.03;
  color: var(--ink);
}

.hero h1 .hl { color: var(--accent); }

.hero .lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
  margin: 16px auto 0;
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: 0.15s;
  box-shadow: 0 6px 14px rgba(2, 178, 235, 0.14);
}

.contact-pill:hover { background: #fff; color: var(--accent-deep); border-color: var(--accent); box-shadow: none; }
.contact-pill svg { width: 17px; height: 17px; }

/* ---------- Booking layout ---------- */
.booking {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 26px;
  padding: 42px 0 30px;
  align-items: start;
}

.card {
  background: var(--paper);
  border: 1px solid #eaf3f8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.card-title {
  font-size: 18px;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.card-sub { color: var(--muted); font-size: 13px; margin: 0 0 18px; }

/* ---------- Calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-title { font-size: 20px; text-transform: capitalize; color: var(--ink); font-family: "Montserrat", sans-serif; font-weight: 800; }
.cal-nav { display: flex; gap: 8px; }

.cal-nav button, .icon-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 2px solid var(--accent);
  background: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--accent-deep);
  font-size: 18px; font-weight: 700;
  transition: 0.15s;
}
.cal-nav button:hover, .icon-btn:hover { background: var(--accent); color: #fff; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }

.cal-dow {
  text-align: center;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted);
  padding: 6px 0 10px;
}

.day {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-size: 14px; font-weight: 700;
  color: var(--ink);
  display: grid; place-items: center;
  transition: 0.13s;
  font-family: inherit;
}
.day:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); }
.day:disabled { color: #c6d3da; cursor: not-allowed; }
.day.today { border-color: var(--accent); }
.day.today::after {
  content: ""; position: absolute; bottom: 5px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.day.selected { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 14px rgba(2,178,235,.4); }
.day.selected.today::after { background: #fff; }
.day.full { color: #c6d3da; }

/* ---------- Slots ---------- */
.slots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.slot {
  padding: 12px 4px;
  border-radius: 12px;
  border: 2px solid #d9ecf4;
  background: #fff;
  cursor: pointer;
  font-size: 14px; font-weight: 800;
  color: var(--ink);
  transition: 0.13s;
  font-family: inherit;
  text-align: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.slot:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.slot:disabled { cursor: not-allowed; color: #c6d3da; background: #f2f6f9; border-color: #e6eef3; text-decoration: line-through; }
.slot.selected { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 14px rgba(2,178,235,.4); }

.slot-picker {
  border: 2px solid #d9ecf4;
  border-radius: 12px;
  padding: 10px;
  background: #f8fbfd;
  max-height: 220px;
  overflow-y: auto;
}
.slot-picker .slots-grid { gap: 6px; }
.slot-picker .slot { padding: 9px 2px; font-size: 13px; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 12px; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.free { background: var(--accent); }
.dot.busy { background: #d7e3ea; }

.empty-hint { text-align: center; color: var(--muted); padding: 40px 16px; font-size: 14px; }

/* ---------- Info block ---------- */
.info { padding: 20px 0 70px; text-align: center; }

.info h2 { font-size: clamp(26px, 4vw, 38px); text-transform: uppercase; }

.address {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 18px 0 4px;
}
.address svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

.bubble-wrap { display: flex; justify-content: center; margin: 26px 0 6px; }

.bubble {
  position: relative;
  background: var(--accent);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  border-radius: 30px;
  padding: 26px 46px;
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
}

.bubble::before,
.bubble::after {
  content: "";
  position: absolute;
  bottom: -18px;
  width: 74px;
  height: 48px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 46' fill='none' stroke='%2302b2eb' stroke-linecap='round'%3E%3Cpath d='M66 6 C 46 6 28 12 14 24' stroke-width='7'/%3E%3Cpath d='M68 20 C 52 20 38 26 26 36' stroke-width='6'/%3E%3Cpath d='M68 32 C 56 33 46 38 38 44' stroke-width='5'/%3E%3C/svg%3E");
}
.bubble::before { left: -58px; }
.bubble::after { right: -58px; transform: scaleX(-1); }

.metro-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.metro {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: #fff;
  line-height: 1;
}

.coords-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.chev { color: var(--accent); font-weight: 900; font-size: 22px; letter-spacing: 2px; }
.chev.flip { transform: scaleX(-1); display: inline-block; }

.coords-pill {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  box-shadow: 0 8px 18px rgba(2,178,235,.35);
  transition: 0.15s;
}
.coords-pill:hover { color: var(--accent-deep); background: #fff; border-color: var(--accent); box-shadow: none; }

.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin-top: 26px;
  font-size: 16px;
  font-weight: 700;
}
.contact-row a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-deep); }
.contact-row a:hover { color: var(--accent); }
.contact-row svg { width: 19px; height: 19px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15px; font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(2,178,235,.3); }
.btn-primary:hover { background: #fff; color: var(--accent-deep); border-color: var(--accent); box-shadow: none; }
.btn-ghost { background: #fff; color: var(--accent-deep); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #c92a2f; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Form ---------- */
.field { margin-bottom: 16px; text-align: left; }
.field label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.field label .req { color: var(--danger); }
.field input, .filters input, .filters select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #d9ecf4;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: 0.15s;
}
.field input:focus, .filters input:focus, .filters select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field input::placeholder { color: #a5b8c1; }

.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #d9ecf4;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  resize: vertical;
  min-height: 90px;
  transition: 0.15s;
}
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.form-error {
  background: var(--danger-soft);
  color: #b4232a;
  border: 2px solid #f5c6c8;
  padding: 10px 14px; border-radius: 12px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 14px; display: none;
}
.form-error.show { display: block; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 50, 66, 0.45);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 460px;
  padding: 30px 28px;
  animation: pop 0.2s ease;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}
@keyframes pop { from { transform: scale(0.96) translateY(8px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.modal h3 { margin: 0 0 6px; font-size: 22px; text-transform: uppercase; }
.modal .modal-sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.modal-close { position: absolute; top: 18px; right: 18px; }

.summary {
  background: var(--accent-soft);
  border: 1px solid #cdeefb;
  border-radius: 14px;
  padding: 16px; margin-bottom: 18px;
}
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.summary-row .k { color: var(--muted); }
.summary-row .v { font-weight: 800; }

.cancel-block {
  background: #fff7ec;
  border: 1px solid #fbe3c0;
  border-radius: 14px;
  padding: 14px 16px; margin: 16px 0;
}
.cancel-block .label { font-size: 12px; font-weight: 800; color: #c07c1c; margin-bottom: 6px; text-transform: uppercase; }
.cancel-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cancel-code code {
  font-size: 18px; font-weight: 800; letter-spacing: 0.1em;
  color: #9c6410; background: #fff;
  padding: 6px 12px; border-radius: 8px; border: 2px dashed #f2cd8e;
}
.copy-btn { border: 2px solid var(--accent); background: #fff; color: var(--accent-deep); border-radius: 8px; padding: 7px 10px; cursor: pointer; font-size: 13px; font-weight: 800; }
.copy-btn:hover { background: var(--accent); color: #fff; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: 0.25s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Admin ---------- */
.admin-login { max-width: 380px; margin: 80px auto; padding: 38px 32px; text-align: center; }
.admin-login h1 { font-size: 26px; margin: 16px 0 4px; text-transform: uppercase; }
.admin-login .logo-wrap { display: flex; justify-content: center; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0; }
.stat { padding: 20px 22px; }
.stat .num { font-size: 34px; color: var(--accent); font-family: "Montserrat", sans-serif; font-weight: 800; }
.stat .lbl { color: var(--muted); font-size: 13px; font-weight: 700; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 18px; }
.filters .field { margin: 0; }
.filters input, .filters select { padding: 10px 12px; font-size: 14px; }
.filters .grow { flex: 1; min-width: 180px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #e6eef3; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 800; }
tr:hover td { background: #f5fafc; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.badge.confirmed { background: var(--success-soft); color: var(--success); }
.badge.request { background: var(--accent-soft); color: var(--accent-deep); }
.badge.cancelled { background: var(--danger-soft); color: var(--danger); }
.badge.past { background: #eef3f6; color: var(--muted); }

.note-line { display: block; margin-top: 3px; color: #b45309; font-size: 12.5px; }

.row-actions { display: flex; gap: 6px; }
.mini-btn { border: 2px solid var(--accent); background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--accent-deep); }
.mini-btn:hover { background: var(--accent); color: #fff; }
.mini-btn.danger { border-color: var(--danger); color: var(--danger); }
.mini-btn.danger:hover { background: var(--danger); color: #fff; }

.contact-stack { display: flex; flex-direction: column; gap: 2px; }
.contact-stack .c-muted { color: var(--muted); font-size: 12.5px; }

.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 12px; }
.admin-toolbar h2 { margin: 0; font-size: 22px; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--accent-2), var(--accent-deep));
  color: #fff;
  padding: 40px 0 48px;
  text-align: center;
}
.site-footer .brand-mark { font-family: "Montserrat", sans-serif; font-size: 20px; font-weight: 800; text-transform: uppercase; }
.site-footer p { color: #dff4fb; margin: 8px 0 16px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 2px solid #fff; border-radius: 999px;
  color: #fff; font-weight: 700; font-size: 14px;
  transition: 0.15s;
}
.footer-links a:hover { background: #fff; color: var(--accent-deep); }
.footer-links a svg { width: 16px; height: 16px; }

/* ---------- Responsive ---------- */

/* Планшеты и широкие телефоны */
@media (max-width: 900px) {
  .booking { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .bubble::before { left: -40px; }
  .bubble::after { right: -40px; }
}

@media (max-width: 760px) {
  .site-header .container { height: auto; min-height: 66px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
  .brand { font-size: 17px; gap: 11px; }
  .brand-logo-img { width: 38px; height: 38px; }
  .brand-sub { font-size: 10px; }
  .header-actions .btn { padding: 9px 12px; font-size: 13px; }

  .hero { padding: 30px 0 0; }
  .hero-logo { width: 72px; height: 72px; }
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 15px; }

  .booking { gap: 18px; padding: 30px 0 24px; }
  .card { padding: 18px 14px; border-radius: 16px; }
  .cal-title { font-size: 17px; }
  .cal-nav button, .icon-btn { width: 36px; height: 36px; font-size: 17px; }
  .cal-dow { font-size: 10px; padding: 4px 0 6px; }
  .day { font-size: 13px; border-radius: 9px; min-height: 38px; }

  .slots-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .slot { padding: 11px 2px; font-size: 13px; border-radius: 10px; }
  .legend { font-size: 11px; }

  .info { padding: 16px 0 56px; }
  .info h2 { font-size: 24px; }
  .address { font-size: 16px; }
  .bubble { padding: 18px 18px; border-radius: 22px; }
  .bubble::before, .bubble::after { display: none; }
  .metro-line { font-size: 16px; gap: 8px; }
  .coords-strip { gap: 6px; }
  .chev { font-size: 15px; letter-spacing: 1px; }
  .coords-pill { font-size: 13px; padding: 10px 14px; letter-spacing: 0.01em; }

  .site-footer { padding: 30px 0 36px; }
  .footer-links a { font-size: 13px; padding: 8px 12px; }

  .modal { padding: 20px 16px; border-radius: 20px; }

  /* Админка */
  .stat-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat { padding: 14px 16px; }
  .stat .num { font-size: 26px; }
  .admin-toolbar h2 { font-size: 18px; }
  .filters { flex-direction: column; align-items: stretch; gap: 8px; }
  .filters .field, .filters .grow { width: 100%; min-width: 0; }
  th, td { padding: 9px 8px; font-size: 12.5px; white-space: nowrap; }
  .contact-stack .c-muted { font-size: 11.5px; }
  .mini-btn { padding: 5px 8px; font-size: 12px; white-space: nowrap; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 26px; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-sub { display: none; }
}
