:root {
  color-scheme: light;
  --ink: #17213a;
  --ink-soft: #34415e;
  --muted: #69758e;
  --line: #e2e8f2;
  --surface: #ffffff;
  --surface-soft: #f6f8fc;
  --navy: #111b36;
  --violet: #6558df;
  --violet-dark: #5145c4;
  --blue: #3b82f6;
  --green: #14805e;
  --red: #b93b50;
  --shadow: 0 18px 48px rgba(26, 41, 78, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #f4f6fb;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 4% 0%, rgba(102, 88, 223, 0.09), transparent 34rem),
    radial-gradient(ellipse at 100% 12%, rgba(59, 130, 246, 0.08), transparent 32rem),
    #f4f6fb;
  font-size: 15px;
  line-height: 1.55;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input[type="submit"] {
  cursor: pointer;
}

button:disabled,
input[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.65;
}

a {
  color: var(--violet-dark);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.48);
  outline-offset: 3px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 32px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(102, 88, 223, 0.42), transparent 39%),
    linear-gradient(135deg, #111a34 0%, #202a52 47%, #283d73 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(68vw, 660px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero::before {
  transform: translate(-50%, -50%) scale(1.08);
}

.hero::after {
  width: min(54vw, 520px);
  border-color: rgba(255, 255, 255, 0.055);
  transform: translate(-50%, -50%);
}

.hero .brand {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: clamp(3rem, 10vw, 7.5rem);
  font-weight: 850;
  letter-spacing: -0.085em;
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 12px 45px rgba(0, 0, 0, 0.24);
}

.hero .brand::after {
  display: block;
  width: 44%;
  height: 5px;
  margin: 24px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #8d7cff, #65b8ff);
  content: "";
}

.shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.site-header .brand {
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 850;
  letter-spacing: -0.055em;
}

.site-header .brand:hover {
  text-decoration: none;
}

.site-header nav,
.site-header .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card {
  min-width: 0;
  padding: clamp(22px, 3.5vw, 34px);
  border: 1px solid rgba(222, 229, 240, 0.92);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 22px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.card-head h1,
.card-head h2,
.card-head h3 {
  margin: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.22;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

p:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label,
.field > span:first-child {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 680;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea,
input[type="search"],
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #d8e0ed;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 31, 56, 0.025);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field textarea,
textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
input[type="search"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: #8c82ee;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(101, 88, 223, 0.12);
}

.field input::placeholder,
input::placeholder,
textarea::placeholder {
  color: #a0aabd;
}

.field small,
.field .help,
.help,
.muted {
  color: var(--muted);
  font-size: 0.89rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.option-card {
  position: relative;
  display: flex;
  min-height: 104px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.option-card:hover {
  border-color: #b7b0f4;
  box-shadow: 0 8px 24px rgba(50, 57, 104, 0.07);
  transform: translateY(-2px);
}

.option-card:has(input:checked),
.option-card.is-selected {
  border-color: #8175e9;
  background: linear-gradient(145deg, #f8f7ff, #f4f8ff);
  box-shadow: inset 0 0 0 1px rgba(101, 88, 223, 0.25);
}

.option-card input[type="radio"] {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  accent-color: var(--violet);
}

.option-card strong,
.option-card .option-title {
  padding-right: 20px;
  font-weight: 750;
}

.option-card small {
  color: var(--muted);
  font-size: 0.84rem;
}

.feature-fields {
  margin-top: 22px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
}

.feature-fields > :last-child {
  margin-bottom: 0;
}

.btn,
button.btn,
a.btn,
input[type="submit"].btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--ink-soft);
  background: #eef1f7;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.btn:hover,
button.btn:hover,
a.btn:hover,
input[type="submit"].btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  border-color: transparent !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--violet), #4b76e8) !important;
  box-shadow: 0 7px 17px rgba(91, 83, 211, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--violet-dark), #3764d5) !important;
  box-shadow: 0 9px 22px rgba(91, 83, 211, 0.27);
}

.btn-danger {
  border-color: #f1d2d8 !important;
  color: #a62c43 !important;
  background: #fff4f5 !important;
}

.btn-danger:hover {
  border-color: #e8b8c1 !important;
  background: #ffe9ec !important;
}

.btn-ghost {
  border-color: #dfe5ef !important;
  color: var(--ink-soft) !important;
  background: #fff !important;
}

.btn-ghost:hover {
  border-color: #bfc9d9 !important;
  background: #f8f9fc !important;
}

.btn-sm {
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 0.88rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #e0e6f0;
  border-radius: 999px;
  color: #52617c;
  background: #f5f7fb;
  font-size: 0.79rem;
  font-weight: 740;
  white-space: nowrap;
}

.badge-success {
  border-color: #c6e8d8;
  color: #13734f;
  background: #edfaf3;
}

.badge-warning {
  border-color: #f2e2b5;
  color: #8a6416;
  background: #fff9e7;
}

.badge-danger {
  border-color: #f2ced5;
  color: #a43649;
  background: #fff1f3;
}

.notice,
.error,
.success {
  margin: 16px 0;
  padding: 13px 16px;
  border: 1px solid;
  border-radius: 12px;
}

.notice {
  border-color: #d9e3f4;
  color: #354b72;
  background: #f2f7ff;
}

.error {
  border-color: #f0cbd2;
  color: #922d40;
  background: #fff2f4;
}

.success {
  border-color: #c6e8d8;
  color: #146a4c;
  background: #edfaf3;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: middle;
}

th {
  color: #5a6881;
  background: #f8f9fc;
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fbfcff;
}

td code,
code {
  padding: 3px 6px;
  border-radius: 6px;
  color: #3e4380;
  background: #f1f0ff;
  font-size: 0.92em;
  font-variant-numeric: tabular-nums;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
}

.toolbar form,
.toolbar .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.toolbar input,
.toolbar select {
  width: auto;
  min-width: 150px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #d8e0ed;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #f9faff);
}

.stat .stat-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
}

.stat strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.iban-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8f9fc;
}

.iban-row + .iban-row {
  margin-top: 10px;
}

.iban-row code,
.iban-row .iban-value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--navy);
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.025em;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.pagination a,
.pagination span {
  display: inline-grid;
  min-width: 40px;
  min-height: 40px;
  place-items: center;
  padding: 0 11px;
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  color: var(--ink-soft);
  background: #fff;
  font-weight: 680;
}

.pagination .current,
.pagination [aria-current="page"] {
  border-color: var(--violet);
  color: #fff;
  background: var(--violet);
}

#place-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

#place-results .place-result {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

#place-results .place-result:hover,
#place-results .place-result:focus-visible {
  border-color: #9489ed;
  background: #faf9ff;
}

#place-results .place-result strong {
  font-weight: 740;
}

#place-results .place-result span {
  color: var(--muted);
  font-size: 0.88rem;
}

#selected-place {
  margin-top: 12px;
}

.empty-state {
  padding: 32px 18px;
  color: var(--muted);
  text-align: center;
}

.divider {
  height: 1px;
  margin: 22px 0;
  border: 0;
  background: var(--line);
}

@media (max-width: 800px) {
  .shell {
    width: min(100% - 32px, 700px);
    padding-top: 24px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  .hero {
    padding: 24px;
  }

  .hero::before {
    width: 86vw;
  }

  .hero::after {
    width: 70vw;
  }

  .hero .brand {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .shell {
    width: calc(100% - 24px);
    padding: 16px 0 38px;
  }

  .site-header {
    margin-bottom: 18px;
  }

  .site-header nav,
  .site-header .actions {
    gap: 6px;
  }

  .card {
    padding: 19px 16px;
    border-radius: 16px;
  }

  .card-head {
    flex-direction: column;
    margin-bottom: 18px;
  }

  .option-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .option-card {
    min-height: 90px;
    padding: 13px;
  }

  .option-card input[type="radio"] {
    top: 10px;
    right: 10px;
  }

  .stat-grid {
    gap: 9px;
  }

  .stat {
    padding: 14px;
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar form {
    width: 100%;
  }

  .toolbar input,
  .toolbar select {
    min-width: 0;
    flex: 1;
  }

  .actions .btn,
  .site-header .btn {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 0.86rem;
  }

  .iban-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .iban-row .btn {
    align-self: stretch;
  }

  th,
  td {
    padding: 11px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}