:root {
  --ibsc-navy: #060E9F;
  --ibsc-cyan: #00add8;
  --ink: #1a1a2e;
  --grey: #6b7280;
  --line: #e5e7eb;
}

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

body {
  font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  padding: 28px 0 20px;
  border-bottom: 4px solid var(--ibsc-cyan);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img {
  height: 64px;
  width: auto;
  display: block;
}

main { flex: 1; padding: 40px 0 60px; }

footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  font-size: 13px;
  color: var(--grey);
}

footer a { color: var(--ibsc-navy); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }

h1 {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  color: var(--ibsc-navy);
  line-height: 1.15;
  margin-bottom: 8px;
}

.sub {
  font-size: 16px;
  color: var(--grey);
  margin-bottom: 32px;
}

/* ---------- builder form ---------- */

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ibsc-navy);
  margin-bottom: 7px;
}

.field input,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--ibsc-cyan);
}

.field .hint { font-size: 13px; color: var(--grey); margin-top: 6px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- link output ---------- */

.linkbox {
  margin-top: 34px;
  border: 2px solid var(--ibsc-navy);
  border-radius: 12px;
  overflow: hidden;
}

.linkbox-head {
  background: var(--ibsc-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 16px;
}

.linkbox-body { padding: 18px 16px; }

.linkbox-url {
  font-size: 14px;
  word-break: break-all;
  color: var(--ink);
  background: #f5f7fa;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.btnrow { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 8px;
  border: 2px solid var(--ibsc-navy);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, color 0.15s;
}

.btn-primary { background: var(--ibsc-navy); color: #fff; }
.btn-primary:hover { background: #0a17c4; }
.btn-outline { background: #fff; color: var(--ibsc-navy); }
.btn-outline:hover { background: #eef0ff; }

.copied-note {
  font-size: 14px;
  font-weight: 600;
  color: var(--ibsc-cyan);
  align-self: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.copied-note.show { opacity: 1; }

/* ---------- event page ---------- */

.event-name {
  font-size: clamp(28px, 5.5vw, 44px);
  font-weight: 800;
  color: var(--ibsc-navy);
  line-height: 1.12;
  margin-bottom: 6px;
}

.event-original {
  font-size: clamp(17px, 3vw, 22px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 30px;
}

.local-card {
  border: 3px solid var(--ibsc-cyan);
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 34px;
}

.local-card .label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ibsc-cyan);
  margin-bottom: 8px;
}

.local-time {
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 800;
  color: var(--ibsc-navy);
  line-height: 1.2;
}

.local-zone { font-size: 15px; color: var(--grey); margin-top: 8px; }

/* countdown */

.countdown-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ibsc-navy);
  margin-bottom: 12px;
}

.countdown {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.cd-cell {
  background: var(--ibsc-navy);
  color: #fff;
  border-radius: 12px;
  padding: 16px 10px 12px;
  min-width: 86px;
  text-align: center;
  flex: 0 1 auto;
}

.cd-num {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cd-unit {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ibsc-cyan);
  margin-top: 8px;
}

.event-started {
  font-size: 20px;
  font-weight: 700;
  color: var(--ibsc-cyan);
  margin-bottom: 38px;
}

/* world times */

.world h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ibsc-navy);
  margin-bottom: 14px;
}

.world table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.world td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}

.world td.city { font-weight: 600; }
.world td.time { text-align: right; font-variant-numeric: tabular-nums; color: var(--ibsc-navy); font-weight: 700; }
.world td.date-note { text-align: right; color: var(--grey); font-size: 13px; }

.actions { margin-top: 38px; }

.error-card {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  color: var(--grey);
  font-size: 16px;
}
.error-card a { color: var(--ibsc-navy); font-weight: 700; }
