/* Web API adres. Vzhled navazuje na ostatní služby PiTS (companies, pits.cz):
   stejné barvy, komponenty a jejich jména (Header, Hero, Section, Card, …).
   Čisté CSS bez build kroku - je zabudované v binárce. */

:root {
  --primary-dark: #003d66;
  --primary-deep: #005c99;
  --primary-strong: #0071bd;
  --primary-main: #0099ff;
  --primary-light: #66ccff;

  --secondary-dark: #c74515;
  --secondary-deep: #a3380f;
  --secondary-light: #ff8c47;
  --secondary-main: #ff6b35;

  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-600: #525252;
  --success: #059669;
  --error: #e11d48;

  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --radius: 1rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #000;
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, dl, dd, pre, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
code, kbd, pre { font-family: var(--font-mono); }
button, input { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.SkipLink {
  position: absolute; left: -9999px; top: 1rem; z-index: 100;
  border-radius: .5rem; background: var(--secondary-dark); color: #fff;
  padding: .75rem 1.5rem; font-weight: 600;
}
.SkipLink:focus { left: 1rem; }

:focus-visible { outline: 2px solid var(--primary-main); outline-offset: 2px; }

/* ── Layout ─────────────────────────────────────────────────── */

.Container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .Container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .Container { padding-inline: 2rem; } }

.Main { display: flex; flex-direction: column; flex: 1; position: relative; isolation: isolate; overflow-x: clip; }

.Grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .Grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .Grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .Grid--split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; align-items: center; }
  .Grid--errors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.Stack { display: flex; flex-direction: column; gap: 1rem; }
.mt-3 { margin-top: .75rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* ── Header ─────────────────────────────────────────────────── */

.Header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgb(255 255 255 / .1);
  background: linear-gradient(to right, rgb(0 61 102 / .95), rgb(0 113 189 / .95));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@media (min-width: 640px) { .Header { box-shadow: var(--shadow-xl); } }

.Header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }

.Header__brand { display: flex; align-items: center; gap: .75rem; color: #fff; transition: transform .15s; }
.Header__brand:hover { transform: scale(1.05); }
.Header__brand svg { height: 2.25rem; width: auto; }

.Header__title {
  display: none; border-left: 1px solid rgb(255 255 255 / .2); padding-left: .75rem;
  font-size: .875rem; font-weight: 600; color: rgb(255 255 255 / .9);
}
@media (min-width: 640px) { .Header__title { display: inline; } }

.Header__nav { display: flex; align-items: center; gap: 1.5rem; }
@media (min-width: 1024px) { .Header__nav { gap: 2rem; } }

.Header__link {
  position: relative; display: none;
  font-size: .875rem; font-weight: 600; color: #fff;
  transition: transform .15s;
}
.Header__link::after {
  content: ''; position: absolute; bottom: -.25rem; left: 0;
  height: 2px; width: 0; background: var(--secondary-light); transition: width .15s;
}
.Header__link:hover { transform: translateY(-2px); }
.Header__link:hover::after, .Header__link[aria-current='page']::after { width: 100%; }
@media (min-width: 768px) { .Header__link { display: inline-block; } }

/* ── Hero ───────────────────────────────────────────────────── */

.Hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(to bottom right, var(--primary-dark), var(--primary-deep), var(--primary-strong));
  padding-block: 5rem; color: #fff;
}
@media (min-width: 1024px) { .Hero { padding-block: 7rem; } }
.Hero--compact { padding-block: 3.5rem; }
@media (min-width: 1024px) { .Hero--compact { padding-block: 5rem; } }

.Hero::before, .Hero::after {
  content: ''; position: absolute; z-index: -1; border-radius: 9999px;
  filter: blur(64px); pointer-events: none;
}
.Hero::before { top: -8rem; left: -8rem; width: 24rem; height: 24rem; background: rgb(102 204 255 / .25); }
.Hero::after { top: 33%; right: -6rem; width: 20rem; height: 20rem; background: rgb(255 107 53 / .25); }

.Hero__inner { margin-inline: auto; max-width: 56rem; text-align: center; }

.Hero__badge {
  margin-bottom: 1.5rem; display: inline-flex; align-items: center; gap: .625rem;
  border-radius: 9999px; background: rgb(255 255 255 / .1); padding: .5rem 1rem;
  font-size: .875rem; font-weight: 600; backdrop-filter: blur(4px);
}

.Hero__title {
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, rgb(255 255 255 / .8));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 2.25rem; font-weight: 700; letter-spacing: -.025em;
  line-height: 1.15; padding-bottom: .1em;
}
@media (min-width: 640px) { .Hero__title { font-size: 3rem; } }
@media (min-width: 1024px) { .Hero__title { font-size: 3.75rem; } }

.Hero__lead {
  margin: 0 auto 2rem; max-width: 48rem;
  font-size: 1.125rem; line-height: 1.625; color: rgb(255 255 255 / .9);
}
@media (min-width: 640px) { .Hero__lead { font-size: 1.25rem; } }

.Hero__chips { margin-bottom: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.Hero__chip {
  display: inline-flex; align-items: center; gap: .375rem; border-radius: 9999px;
  background: rgb(255 255 255 / .1); padding: .375rem 1rem; font-size: .875rem; font-weight: 500;
  backdrop-filter: blur(4px); transition: background-color .15s;
}
.Hero__chip:hover { background: rgb(255 255 255 / .2); }

.Hero__actions { display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .Hero__actions { flex-direction: row; } }

.Pulse { position: relative; display: flex; width: .5rem; height: .5rem; }
.Pulse::before, .Pulse::after {
  content: ''; position: absolute; display: inline-flex; width: 100%; height: 100%;
  border-radius: 9999px; background: #34d399;
}
.Pulse::before { animation: ping 1s cubic-bezier(0, 0, .2, 1) infinite; opacity: .75; }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .Pulse::before { animation: none; } }

/* ── Button ─────────────────────────────────────────────────── */

.Button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .5rem 1rem; border: 0; border-radius: .5rem;
  font-size: .875rem; font-weight: 700; white-space: nowrap; cursor: pointer; user-select: none;
  color: #fff; background: #6b7280; box-shadow: var(--shadow-lg);
  transition: all .2s;
}
.Button:hover { box-shadow: var(--shadow-xl); transform: translateY(-2px); }
.Button:active { transform: scale(.95); }
.Button:disabled { opacity: .5; cursor: default; box-shadow: none; transform: none; }

.Button--accent { background: var(--secondary-dark); box-shadow: 0 10px 15px -3px rgb(255 107 53 / .3); }
.Button--accent:hover { background: var(--secondary-deep); }

.Button--light {
  border: 2px solid var(--primary-strong); background: #fff; color: var(--primary-strong);
  box-shadow: 0 10px 15px -3px rgb(0 153 255 / .2);
}
.Button--light:hover { background: var(--primary-strong); color: #fff; }

.Button--small { padding: .25rem .5rem; font-size: .875rem; }
.Button--large { padding: .75rem 1.25rem; font-size: 1.25rem; }

/* ── Sekce ──────────────────────────────────────────────────── */

.Section { scroll-margin-top: 5rem; padding-block: 4rem; }
@media (min-width: 640px) { .Section { padding-block: 5rem; } }
.Section--muted { background: var(--neutral-50); }
.Section__header { margin-bottom: 2.5rem; max-width: 48rem; }
.Section__title { margin-bottom: 1rem; font-size: 1.875rem; line-height: 1.2; font-weight: 700; color: var(--primary-dark); }
@media (min-width: 640px) { .Section__title { font-size: 2.25rem; } }
.Section__lead { font-size: 1.125rem; line-height: 1.625; color: #4b5563; }

.Eyebrow {
  margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .5rem; border-radius: 9999px;
  background: linear-gradient(to right, rgb(0 153 255 / .1), rgb(255 107 53 / .1));
  padding: .5rem 1rem; font-size: .875rem; font-weight: 600; color: var(--primary-strong);
}
.Eyebrow__number { font-weight: 900; color: var(--secondary-dark); }

.Card {
  border-radius: var(--radius); border: 1px solid var(--neutral-200); background: #fff;
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .Card { padding: 2rem; } }
.Card--tint {
  border-color: transparent; box-shadow: none;
  background: linear-gradient(to bottom right, rgb(0 153 255 / .1), rgb(255 107 53 / .1));
}
.Card--compact { padding: 1.25rem; }
.Card__title { margin-bottom: .5rem; font-size: 1.125rem; font-weight: 700; color: var(--primary-dark); }
.Card__text { font-size: .875rem; line-height: 1.625; color: var(--neutral-600); }
.Card__text + .Card__text { margin-top: .75rem; }

.Row { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) { .Row { flex-direction: row; align-items: center; justify-content: space-between; } }
.Row__actions { display: flex; flex-shrink: 0; gap: .5rem; }

.BaseUrl { display: flex; flex-direction: column; gap: .5rem; }
@media (min-width: 640px) { .BaseUrl { flex-direction: row; align-items: center; gap: 1rem; } }
.BaseUrl__label { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--secondary-dark); white-space: nowrap; }
.BaseUrl__value { font-family: var(--font-mono); font-size: .875rem; color: var(--primary-dark); word-break: break-all; }
@media (min-width: 640px) { .BaseUrl__value { font-size: 1rem; } }

/* ── Endpointy ──────────────────────────────────────────────── */

.Endpoint {
  overflow: hidden; border-radius: var(--radius); border: 1px solid var(--neutral-200);
  background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .15s;
}
.Endpoint:hover, .Endpoint[open] { box-shadow: var(--shadow-lg); }
.Endpoint__summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: 1.25rem;
  cursor: pointer; user-select: none; list-style: none;
}
.Endpoint__summary::-webkit-details-marker { display: none; }
@media (min-width: 640px) { .Endpoint__summary { padding-inline: 1.75rem; } }
.Endpoint__path { font-size: .875rem; font-weight: 600; color: var(--primary-dark); }
@media (min-width: 640px) { .Endpoint__path { font-size: 1rem; } }
.Endpoint__chevron {
  margin-left: auto; display: flex; width: 2rem; height: 2rem; align-items: center; justify-content: center;
  border-radius: 9999px; background: var(--neutral-100); color: var(--primary-strong); transition: transform .15s;
}
.Endpoint__chevron svg { width: 1rem; height: 1rem; }
.Endpoint[open] .Endpoint__chevron { transform: rotate(180deg); }
.Endpoint__body {
  display: flex; flex-direction: column; gap: 1.25rem;
  border-top: 1px solid var(--neutral-100); padding: 1.25rem 1.25rem 1.5rem;
}
@media (min-width: 640px) { .Endpoint__body { padding-inline: 1.75rem; } }
.Endpoint__label { margin-bottom: .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--secondary-dark); }

.Method {
  display: inline-flex; align-items: center; border-radius: .375rem; background: var(--success);
  padding: .25rem .625rem; font-size: .75rem; font-weight: 700; letter-spacing: .025em; color: #fff;
}
.Method--post { background: var(--primary-strong); }
.Tag {
  display: inline-flex; align-items: center; border-radius: 9999px; background: rgb(255 107 53 / .15);
  padding: .125rem .625rem; font-size: .75rem; font-weight: 600; color: var(--secondary-dark);
}
.Tag--muted { background: var(--neutral-100); color: var(--neutral-600); }

.Params { display: flex; flex-direction: column; gap: .5rem; }
.Params__row {
  display: flex; flex-direction: column; gap: .25rem; border-radius: .5rem; background: var(--neutral-50);
  padding: .625rem 1rem; font-size: .875rem;
}
@media (min-width: 640px) { .Params__row { flex-direction: row; align-items: baseline; gap: 1rem; } }
.Params__name { flex-shrink: 0; font-weight: 600; color: var(--primary-dark); }
@media (min-width: 640px) { .Params__name { width: 14rem; } }
.Params__desc { color: var(--neutral-600); }

.Code {
  border-radius: .25rem; background: rgb(0 153 255 / .1); padding: .125rem .375rem;
  font-size: .875em; color: var(--primary-dark);
}
.CodeBlock {
  overflow-x: auto; border-radius: .75rem;
  background: linear-gradient(to bottom right, var(--primary-dark), #00294a);
  padding: 1.25rem; font-size: .8125rem; line-height: 1.625; color: rgb(255 255 255 / .9);
  box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05), 0 0 0 1px rgb(255 255 255 / .1);
}
.CodeBlock--tall { max-height: 40rem; }
.CodeBlock .c { color: rgb(255 255 255 / .5); }

.Note { font-size: .875rem; line-height: 1.625; color: var(--neutral-600); }
.Note--small { font-size: .75rem; }

.Status { display: flex; align-items: flex-start; gap: 1rem; }
.Status__code { font-size: 1.875rem; line-height: 1; font-weight: 700; color: rgb(0 153 255 / .4); }
.Status__code--server { color: rgb(255 107 53 / .6); }

.Limit__name { margin-bottom: .5rem; font-family: var(--font-mono); font-size: .875rem; font-weight: 600; color: var(--primary-strong); word-break: break-all; }

.Cta {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 1.5rem;
  background: linear-gradient(to bottom right, var(--primary-dark), var(--primary-deep), var(--primary-strong));
  padding: 2rem; color: #fff; box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; gap: 2rem;
}
@media (min-width: 640px) { .Cta { padding: 3rem; } }
@media (min-width: 1024px) { .Cta { flex-direction: row; align-items: center; justify-content: space-between; } }
.Cta::after {
  content: ''; position: absolute; right: -4rem; bottom: -4rem; z-index: -1;
  width: 18rem; height: 18rem; border-radius: 9999px; background: rgb(255 107 53 / .3); filter: blur(64px);
}
.Cta__body { display: flex; max-width: 42rem; flex-direction: column; gap: .75rem; }
.Cta__title { font-size: 1.875rem; font-weight: 700; }
.Cta__lead { font-size: 1.125rem; line-height: 1.625; color: rgb(255 255 255 / .9); }
.Cta__small { font-size: .875rem; color: rgb(255 255 255 / .7); }
.Cta a:not(.Button) { font-weight: 600; color: var(--secondary-light); text-decoration: underline; text-underline-offset: 2px; }
.Cta a:not(.Button):hover { color: #fff; }
.Cta .Button { flex-shrink: 0; }

/* ── Demo našeptávače ───────────────────────────────────────── */

.Demo {
  padding-block: 3rem;
  background: linear-gradient(to bottom right, rgb(0 153 255 / .05), rgb(255 107 53 / .05));
}
@media (min-width: 640px) { .Demo { padding-block: 4rem; } }
.Demo__field { display: flex; flex-direction: column; gap: .5rem; max-width: 32rem; margin-inline: auto; }
.Demo__label { font-size: .875rem; font-weight: 500; color: rgb(0 0 0 / .8); }
.Demo__box { position: relative; }
.Demo__icon {
  position: absolute; inset-block: 0; left: 0; display: flex; align-items: center; padding-left: .75rem;
  pointer-events: none; color: rgb(0 0 0 / .4);
}
.Demo__icon svg { width: 1rem; height: 1rem; }
.Demo__input {
  width: 100%; appearance: none; border-radius: .5rem; border: 1px solid rgb(0 153 255 / .4); background: #fff;
  padding: .625rem .75rem .625rem 2.25rem; font-size: .875rem; line-height: 1.25rem; color: var(--primary-dark);
  transition: border-color .15s, box-shadow .15s;
}
.Demo__input::placeholder { color: rgb(0 0 0 / .4); }
.Demo__input:focus { outline: none; border-color: var(--primary-main); box-shadow: 0 0 0 3px rgb(0 153 255 / .3); }

.Demo__dropdown {
  position: absolute; top: 100%; left: 0; z-index: 20; margin-top: .5rem; width: 100%;
  overflow: hidden; border-radius: .5rem; border: 1px solid rgb(0 0 0 / .1); background: #fff;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
}
.Demo__results { max-height: 20rem; overflow-y: auto; overscroll-behavior: contain; }
.Demo__result { padding: .625rem 1rem; cursor: pointer; border-top: 1px solid rgb(0 0 0 / .05); }
.Demo__result:first-child { border-top: 0; }
.Demo__result[aria-selected='true'], .Demo__result:hover { background: rgb(102 204 255 / .15); }
.Demo__resultMain { display: block; font-size: .875rem; font-weight: 500; color: var(--primary-dark); }
.Demo__resultMeta { display: block; font-size: .75rem; color: rgb(0 0 0 / .55); }
.Demo__status { padding: .625rem 1rem; font-size: .875rem; color: rgb(0 0 0 / .55); }
.Demo__status--error { color: var(--error); }
.Demo__footer {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  border-top: 1px solid rgb(0 0 0 / .05); background: rgb(102 204 255 / .05);
  padding: .5rem 1rem; font-size: .75rem; color: rgb(0 0 0 / .6);
}

.Demo__selected {
  margin-top: .5rem; display: flex; flex-direction: column; gap: .75rem; border-radius: .5rem;
  border: 1px solid rgb(0 153 255 / .3); background: rgb(102 204 255 / .1); padding: 1rem;
}
.Demo__selectedHead { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.Demo__selectedLabel { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: rgb(0 61 102 / .7); }
.Demo__selectedName { display: block; font-size: .875rem; font-weight: 600; color: var(--primary-dark); overflow-wrap: anywhere; }
.Demo__clear { border: 0; background: none; padding: 0; font-size: .75rem; color: rgb(0 0 0 / .5); cursor: pointer; flex-shrink: 0; }
.Demo__clear:hover { color: var(--primary-dark); }
.Demo__props { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; font-size: .75rem; }
.Demo__props dt { color: rgb(0 0 0 / .5); }
.Demo__props dd { color: rgb(0 0 0 / .8); overflow-wrap: anywhere; }
.Demo__props .mono { font-family: var(--font-mono); color: var(--primary-dark); }
.Demo__map { font-weight: 600; color: var(--primary-strong); text-decoration: underline; text-underline-offset: 2px; }

.Demo__curl { margin: 2.5rem auto 0; display: flex; max-width: 42rem; flex-direction: column; gap: .5rem; }
.Demo__curlHead { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.Demo__curlHead .Endpoint__label { margin-bottom: 0; }

kbd.Code { font-size: .8em; }

/* ── Swagger UI ─────────────────────────────────────────────── */

#swagger-ui .swagger-ui,
#swagger-ui .swagger-ui .opblock-tag { font-family: var(--font-sans); }
#swagger-ui .swagger-ui .info { display: none; }
#swagger-ui .swagger-ui .scheme-container { background: transparent; box-shadow: none; padding: 0 0 1rem; }
#swagger-ui .swagger-ui .wrapper { padding: 0; }

/* ── Footer ─────────────────────────────────────────────────── */

.Footer { position: relative; overflow: hidden; background: var(--primary-dark); padding: 4rem 0 2.5rem; color: #fff; }
.Footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .Footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .Footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.Footer__about { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 640px) { .Footer__about { grid-column: span 2; } }
.Footer__logo { width: fit-content; color: #fff !important; }
.Footer__logo:hover { opacity: .8; }
.Footer__logo svg { height: 2.75rem; width: auto; }
.Footer__text { max-width: 24rem; font-size: .875rem; line-height: 1.625; color: rgb(255 255 255 / .7); }
.Footer__heading { margin-bottom: 1.25rem; font-size: 1rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--secondary-light); }
.Footer__links { display: flex; flex-direction: column; gap: .75rem; }
.Footer a { font-size: .875rem; color: rgb(255 255 255 / .7); transition: color .15s; }
.Footer a:hover { color: var(--secondary-light); }
.Footer__bottom {
  margin-top: 3.5rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem;
  border-top: 1px solid rgb(255 255 255 / .1); padding-top: 2rem; text-align: center; font-size: .75rem; color: rgb(255 255 255 / .7);
}
@media (min-width: 640px) { .Footer__bottom { flex-direction: row; text-align: left; } }
