:root {
  --color-primary: #22225b;   /* firemná modrá */
  --color-accent:  #df2665;   /* firemná červená */
  --color-page:    #f5f7fa;   /* svetlé pozadie stránky (fallback) */
  --color-surface: #ffffff;   /* pozadie kariet/sekcií */
  --color-border:  #d1d5db;
  --color-text:    #111827;
  --color-text-muted: #6b7280;

  --radius-lg: 1.25rem;
  --radius-full: 999px;

  --shadow-soft: 0 6px 16px rgba(15, 23, 42, 0.08);
  --transition-fast: 0.18s ease;
  --transition-med: 0.25s ease-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Presný jemný hero gradient aplikovaný na celú stránku */
  background: radial-gradient(circle at top left, #eef2ff, #ffffff 55%, #ffeaf2 100%);
  background-attachment: fixed;

  color: var(--color-text);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section__header {
  margin-bottom: 2.5rem;
}

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: clamp(1.9rem, 2.3vw, 2.3rem);
  margin: 0 0 0.75rem;
}

.section__subtitle {
  margin: 0;
  max-width: 40rem;
  color: var(--color-text-muted);
}

/* Grid */

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

/* Header & Navigation */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(209, 213, 219, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo {
  width: 180px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__link {
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-full);
  color: #4b5563;
  border: 1px solid transparent;
}

.nav__link:hover {
  border-color: rgba(209, 213, 219, 0.9);
  background: #f3f4f6;
}

/* Language toggle */

.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: #f9fafb;
}

.lang-toggle__option {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  color: #4b5563;
  cursor: pointer;
}

.lang-toggle__option--active {
  background: #ffffff;
  color: var(--color-primary);
  font-weight: 600;
}

/* CTA button in nav */

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.nav__cta:hover {
  filter: brightness(1.05);
}

/* Hamburger button */

.nav__toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.35rem;
  margin-left: auto;
  border-radius: var(--radius-full);
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.nav__toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: #111827;
  transition: transform var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-fast);
}

.nav__toggle-line + .nav__toggle-line {
  margin-top: 4px;
}

body.nav-open .nav__toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav__toggle-line:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav__toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */

.hero {
  padding: 4rem 0 3rem;
  background: transparent; /* hero používa globálny gradient z body */
}

.hero__grid {
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero__grid > div {
  max-width: 640px;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin: 0 0 0.75rem;
}

.hero__subtitle {
  margin: 0 0 1.5rem;
  color: var(--color-text-muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero__note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Cards */

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.card__title {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.card__subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  font-size: 0.9rem;
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              background var(--transition-fast),
              border-color var(--transition-fast);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
}

.btn--primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.9);
  color: var(--color-text);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
}

/* Contact form */

.form {
  display: grid;
  gap: 0.9rem;
}

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

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

.form__field label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
  color: var(--color-text-muted);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid var(--color-border);
  background: #f9fafb;
  color: var(--color-text);
  font-size: 0.9rem;
}

.form__input:focus,
.form__textarea:focus {
  outline: 1px solid var(--color-accent);
  border-color: var(--color-accent);
  background: #ffffff;
}

.form__hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.form__submit {
  margin-top: 0.75rem;
}

/* Footer */

footer {
  border-top: 1px solid var(--color-border);
  background: #f9fafb;
  padding: 1rem 0;
  font-size: 0.8rem;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  color: #6b7280;
}

.footer__link {
  color: #6b7280;
  text-decoration: none;
}

.footer__link:hover {
  color: #111827;
}

/* Skip link */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #111827;
  color: #f9fafb;
  z-index: 999;
}

/* Centered pages: thank-you & error */

.page-center .hero {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-center .hero__grid {
  display: flex;
  justify-content: center;
}

.page-center .hero__grid > div {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-center .hero__actions {
  justify-content: center;
}

/* Responsive navigation – default (no-js & js) */

@media (max-width: 768px) {
  .nav {
    height: auto;
    padding: 0.5rem 0;
    align-items: flex-start;
  }

  .nav__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
    font-size: 0.9rem;
    margin-left: auto;
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    padding: 0;
  }

  .nav__cta {
    order: 10;
  }

  .nav__links .lang-toggle {
    order: 9;
    margin-left: 0;
  }

  .nav__toggle {
    display: none;
  }
}

/* Overlay navigation – only when JS is enabled */

@media (max-width: 768px) {
  body.js .nav {
    height: 56px;
    align-items: center;
  }

  body.js .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.js .nav__links {
    position: fixed;
    inset: 0;
    padding: 5rem 1.75rem 2rem;

    /* prechodový overlay v brand farbách */
    background:
      radial-gradient(circle at top left, rgba(34, 34, 91, 0.92), rgba(240, 244, 255, 0.96)),
      radial-gradient(circle at bottom right, rgba(223, 38, 101, 0.85), rgba(248, 250, 252, 0.98));

    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;

    transition: transform var(--transition-med), opacity var(--transition-med);
    z-index: 30;
    color: #f9fafb;
  }

  body.js.nav-open .nav__links {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.js.nav-open {
    overflow: hidden;
  }

  body.js .nav__link {
    font-size: 1.05rem;
    color: #f9fafb;
  }

  body.js .nav__link:hover {
    color: #ffffff;
  }

  body.js .lang-toggle {
    margin-top: 0.5rem;
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.7);
  }

  body.js .lang-toggle__option {
    color: #e5e7eb;
  }

  body.js .lang-toggle__option--active {
    background: #ffffff;
    color: var(--color-primary);
  }

  body.js .nav__cta {
    margin-top: 1.25rem;
    align-self: stretch;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
    border: none;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.6);
  }
}
