/* ============================================================
   Web-Services.cz — Main Stylesheet
   Design: Refined Utility — Monochrome
   Fonts: Syne (headings) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Public+Sans:wght@400;500;600;700;800&display=swap');

/* ── 1. Custom Properties ─────────────────────────────────── */

:root {
  /* Monochrome palette */
  --c-primary: #111111;
  --c-primary-dark: #000000;
  --c-primary-mid: #2a2a2a;
  --c-primary-light: #f0f0f0;
  --c-accent: #111111;
  --c-accent-dark: #000000;
  --c-accent-light: #f5f5f5;

  /* Neutrals */
  --c-bg: #fafafa;
  --c-bg-alt: #f2f2f2;
  --c-surface: #ffffff;
  --c-border: #e4e4e4;
  --c-border-strong: #cccccc;

  /* Text */
  --c-text: #111111;
  --c-text-muted: #555555;
  --c-text-subtle: #888888;
  --c-text-inverse: #ffffff;
  --c-text-on-accent: #ffffff;

  /* Semantic — kept functional but desaturated */
  --c-success: #2d6a4f;
  --c-success-bg: #f0f7f4;
  --c-warning: #6b5700;
  --c-warning-bg: #faf7ec;
  --c-error: #991f1f;
  --c-error-bg: #fdf2f2;
  --c-info: #111111;
  --c-info-bg: #f0f0f0;

  /* Typography */
  --font-display: 'Public Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', monospace;

  /* Type scale */
  --text-xxs: 0.6rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows — subtle, monochrome */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);

  /* Layout */
  --container-max: 1200px;
  --container-wide-max: 1400px;
  --container-pad: var(--space-6);
  --header-height: 64px;

  /* Transitions */
  --transition-fast: 120ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 320ms ease;
}

/* ── 2. Reset & Base ──────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--c-text);
  background-color: var(--c-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

a {
  color: var(--c-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--c-primary-mid);
}

img,
svg {
  display: block;
  max-width: 100%;
}
ul,
ol {
  list-style: none;
}
button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}
input,
textarea,
select {
  font-family: var(--font-body);
  font-size: var(--text-base);
}
pre,
code {
  font-family: var(--font-mono);
}

/* ── 3. Layout ────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.site-main {
  flex: 1;
}

.hidden {
  display: none;
}

.no-padding {
  padding: 0;
}

.no-margin {
  margin: 0;
}

/* ── 4. Buttons ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--c-text);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--c-primary);
  color: var(--c-text-inverse);
  border-color: var(--c-primary);
}
.btn--primary:hover {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
  color: white;
}

.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border-strong);
}
.btn--ghost:hover {
  background: var(--c-bg-alt);
  color: var(--c-text);
}

.btn--ghost-inverse {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn--ghost-inverse:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
}
.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
}

/* ── 5. Header ────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--c-primary);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  height: var(--header-height);
}

/* ── 6. Logo ──────────────────────────────────────────────── */

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: white;
  color: var(--c-primary);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0;
  border-radius: var(--radius-sm);
}

.site-logo__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--c-text-inverse);
  letter-spacing: -0.03em;
}

.site-logo--footer .site-logo__name {
  color: var(--c-text-inverse);
}
.site-logo--footer .site-logo__mark {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* ── 7. Navigation ────────────────────────────────────────── */

.site-nav {
  flex: 1;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
}

.site-nav__link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.site-nav__item--dropdown {
  position: relative;
}

.site-nav__dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  min-width: 200px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  z-index: 200;
}

.site-nav__item--dropdown:hover .site-nav__dropdown,
.site-nav__item--dropdown:focus-within .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav__dropdown li a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.site-nav__dropdown li a:hover {
  color: var(--c-primary);
  background: var(--c-primary-light);
}

.site-header__cta {
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  margin-left: auto;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ── 8. Hero ──────────────────────────────────────────────── */

.hero {
  background: var(--c-primary);
  padding: var(--space-20) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: var(--space-5);
}

.hero__title-accent {
  color: rgba(255, 255, 255, 0.55);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  margin-bottom: var(--space-8);
  max-width: 480px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Hero right — stats grid */
.hero__stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.hero__stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hero__stat-card--wide {
  grid-column: 1 / -1;
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: white;
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 500;
}

.hero__stat-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* ── 9. Section utilities ─────────────────────────────────── */

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
}

.section-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text-muted);
}
.section-link:hover {
  color: var(--c-text);
  text-decoration: underline;
}

/* ── 10. Featured tools ───────────────────────────────────── */

.featured-tools {
  padding: var(--space-16) 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.tool-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  align-items: start;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-5);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--c-text);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.tool-card:hover {
  border-color: var(--c-text);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--c-text);
}

.tool-card__icon {
  width: 48px;
  height: 48px;
  background: var(--c-bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
}

.tool-card__body {
  grid-column: 2;
  grid-row: 2;
}

.tool-card__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.tool-card__desc {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.5;
}

.tool-card__tag {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--c-text-muted);
  background: var(--c-bg-alt);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  white-space: nowrap;
  border: 1px solid var(--c-border);
}

.tool-card--small {
  grid-template-columns: 32px 1fr;
  padding: var(--space-3) var(--space-4);
  gap: var(--space-3);
}

.tool-card--small .tool-card__icon {
  width: 32px;
  height: 32px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

.tool-card--small .tool-card__name {
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* ── 11. Features section ─────────────────────────────────── */

.features-section {
  padding: var(--space-16) 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-10);
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-item__icon {
  width: 40px;
  height: 40px;
  background: var(--c-bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid var(--c-border);
}

.feature-item__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}

.feature-item__desc {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* ── 12. FAQ teaser ───────────────────────────────────────── */

.faq-teaser {
  padding: var(--space-16) 0;
}

.faq-teaser__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.faq-teaser__text {
  /* TODO: Just a placeholer value */
  background-image: none;
}
.faq-teaser__text .section-title {
  margin-bottom: var(--space-3);
}
.faq-teaser__desc {
  font-size: var(--text-base);
  color: var(--c-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

/* ── 13. FAQ items (shared between teaser and full page) ──── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-surface);
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--c-text);
}

.faq-question {
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  color: var(--c-text);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--c-text-muted);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  color: var(--c-text);
}

.faq-answer {
  padding: var(--space-4) var(--space-6) var(--space-5);
  color: var(--c-text-muted);
  line-height: 1.75;
  font-size: var(--text-sm);
  border-top: 1px solid var(--c-border);
}

.faq-answer a {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq-answer code {
  background: var(--c-bg-alt);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.875em;
  border: 1px solid var(--c-border);
}

/* ── 14. Full FAQ page ────────────────────────────────────── */

.faq-page {
  padding: var(--space-12) 0 var(--space-20);
}

.faq-page__header {
  max-width: 720px;
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--c-border);
}

.faq-page__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
}
.faq-page__subtitle {
  font-size: var(--text-lg);
  color: var(--c-text-muted);
  line-height: 1.7;
}
.faq-page__body {
  max-width: 720px;
}

.faq-category {
  margin-bottom: var(--space-12);
}

.faq-category__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-text-subtle);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--c-border);
}

/* ── 15. Tool page header ─────────────────────────────────── */

.tool-header {
  background: var(--c-primary);
  padding: var(--space-8) 0 var(--space-6);
}

.tool-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-4);
}

.tool-header__breadcrumb a {
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition-fast);
}
.tool-header__breadcrumb a:hover {
  color: white;
}
.tool-header__sep {
  color: rgba(255, 255, 255, 0.2);
}

.tool-header__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
  color: white;
}
.tool-header__description {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  max-width: 600px;
  line-height: 1.7;
}

/* ── 16. Tool layout ──────────────────────────────────────── */

.tool-layout {
  padding: var(--space-8) 0 var(--space-16);
}

.tool-layout--compact {
  padding-top: var(--space-4);
}

.tool-layout__inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-8);
  align-items: start;
  margin-bottom: var(--space-6);
}
.tool-layout__main {
  min-width: 0;
}
.tool-layout__sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
}

/* ── 17. Forms ────────────────────────────────────────────── */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: var(--space-2);
}
.form-label--optional::after {
  content: ' (nepovinné)';
  font-weight: 400;
  color: var(--c-text-subtle);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--c-text);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  line-height: 1.5;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--c-text);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--c-text-subtle);
}
.form-textarea {
  resize: vertical;
  min-height: 160px;
}
.form-textarea--large {
  min-height: 280px;
}
.form-hint {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}
.form-error {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--c-error);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* ── 18. Tool result ──────────────────────────────────────── */

.tool-result {
  margin-top: var(--space-6);
  background: var(--c-surface);
  border: 1.5px solid var(--c-text);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: slideUp 0.2s ease;
}

.tool-result--compact {
  margin-top: var(--space-3);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tool-result__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--c-primary);
  border-bottom: 1px solid var(--c-border);
}

.tool-result__heading {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: white;
}
.tool-result__content {
  padding: var(--space-5);
}

.tool-result-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) 0 var(--space-6);
  gap: var(--space-2);
}

.tool-result-display__value {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 800;
  color: var(--c-text);
  line-height: 1;
}

.tool-result-display__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

/* ── 19. Copy button ──────────────────────────────────────── */

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
}
.copy-btn:hover {
  color: white;
}
.copy-btn--success {
  color: black !important;
}

/* ── 20. Tool FAQ ─────────────────────────────────────────── */

.tool-faq {
  padding: var(--space-12) 0;
}
.tool-faq__heading {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}
.tool-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 100%;
}

.tool-faq__item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.tool-faq__item[open] {
  border-color: var(--c-text);
}

.tool-faq__question {
  padding: var(--space-4) var(--space-5);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.tool-faq__question::-webkit-details-marker {
  display: none;
}

.tool-faq__question::after {
  content: '+';
  font-size: var(--text-xl);
  color: var(--c-text-muted);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.tool-faq__item[open] .tool-faq__question::after {
  transform: rotate(45deg);
  color: var(--c-text);
}

.tool-faq__answer {
  padding: 0 var(--space-5) var(--space-4);
  border-top: 1px solid var(--c-border);
  padding-top: var(--space-3);
  color: var(--c-text-muted);
  line-height: 1.7;
  font-size: var(--text-sm);
}

.tool-faq__answer a {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--c-border-strong);
  transition: text-decoration-color var(--transition-fast);
}

.tool-faq__answer a:hover {
  text-decoration-color: var(--c-text);
}

/* ── 21. Related tools ────────────────────────────────────── */

.related-tools {
  padding: var(--space-10) 0;
  border-top: 1px solid var(--c-border);
}
.related-tools__heading {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
}
.related-tools__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ── 22. Ad slot ──────────────────────────────────────────── */

.ad-slot {
  background: var(--c-bg-alt);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--radius-md);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── 23. Cookie banner ────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  max-width: 480px;
  background: var(--c-primary);
  color: var(--c-text-inverse);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  display: none;
  animation: slideUp 0.3s ease;
}

.cookie-banner.is-visible {
  display: block;
}
.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.cookie-banner__text {
  font-size: var(--text-sm);
  line-height: 1.6;
  opacity: 0.9;
}
.cookie-banner__text a {
  color: var(--c-text-inverse);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: var(--space-2);
}

/* ── 24. Stat cards ───────────────────────────────────────── */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-3);
}

.stat-card {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.2;
  margin-bottom: var(--space-1);
}
.stat-card__label {
  font-size: var(--text-xxs);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── 25. Alerts ───────────────────────────────────────────── */

.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.alert--success {
  background: var(--c-success-bg);
  border-color: var(--c-success);
  color: var(--c-success);
}
.alert--warning {
  background: var(--c-warning-bg);
  border-color: var(--c-warning);
  color: var(--c-warning);
}
.alert--error {
  background: var(--c-error-bg);
  border-color: var(--c-error);
  color: var(--c-error);
}
.alert--info {
  background: var(--c-bg-alt);
  border-color: var(--c-border-strong);
  color: var(--c-text);
}

/* ── 26. Code ─────────────────────────────────────────────── */

.code-block {
  background: var(--c-primary);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  overflow-x: auto;
  font-size: var(--text-sm);
  line-height: 1.7;
}

.code-inline {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.4em;
  font-size: 0.875em;
  font-family: var(--font-mono);
  color: var(--c-text);
}

/* ── 27. Footer ───────────────────────────────────────────── */

.site-footer {
  background: var(--c-primary);
  color: var(--c-text-inverse);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.site-footer__tagline {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  opacity: 0.5;
}

.site-footer__heading {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.4;
  margin-bottom: var(--space-4);
}

.site-footer__links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}
.site-footer__links a:hover {
  color: white;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.site-footer__bottom p {
  font-size: var(--text-sm);
  opacity: 0.4;
}

/* ── 28. Error page ───────────────────────────────────────── */

.error-page {
  padding: var(--space-24) 0;
  text-align: center;
}
.error-page__inner {
  max-width: 520px;
  margin-inline: auto;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1;
  opacity: 0.08;
  margin-bottom: var(--space-4);
}
.error-page__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}
.error-page__message {
  font-size: var(--text-lg);
  color: var(--c-text-muted);
  margin-bottom: var(--space-8);
}
.error-page__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}
.error-page__stack {
  text-align: left;
  margin-bottom: var(--space-8);
}

.error-page__stack pre {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--text-xs);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── 29. Legal pages ──────────────────────────────────────── */

.legal-page {
  padding: var(--space-12) 0 var(--space-20);
}

.legal-page__header {
  max-width: 720px;
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--c-border);
}

.legal-page__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
}
.legal-page__meta {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
}
.legal-page__body {
  max-width: 720px;
}
.legal-section {
  margin-bottom: var(--space-10);
}

.legal-section h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--c-bg-alt);
}

.legal-section p {
  color: var(--c-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
}
.legal-section p:last-child {
  margin-bottom: 0;
}
.legal-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.legal-section ul li {
  padding-left: var(--space-5);
  position: relative;
  color: var(--c-text-muted);
  line-height: 1.7;
  font-size: var(--text-base);
}

.legal-section ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--c-text-muted);
  font-weight: 700;
}
.legal-section a {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-section strong {
  color: var(--c-text);
  font-weight: 600;
}

/* ── 30. Contact ──────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-form-wrap h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

/* ── 31. Responsive ───────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__stats-grid {
    display: none;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-teaser__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
  .tool-layout__inner {
    grid-template-columns: 1fr;
  }
  .tool-layout__sidebar {
    position: static;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

@media (max-width: 768px) {
  :root {
    --container-pad: var(--space-4);
  }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--c-primary);
    padding: var(--space-6);
    overflow-y: auto;
    z-index: 99;
  }

  .site-nav.is-open {
    display: block;
  }
  .site-nav__list {
    flex-direction: column;
    gap: var(--space-1);
  }

  .site-nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: var(--space-4);
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-top: var(--space-1);
  }

  .site-nav__item--dropdown.is-open .site-nav__dropdown {
    display: block;
  }
  .site-nav__dropdown li a {
    color: rgba(255, 255, 255, 0.65);
  }
  .site-nav__dropdown li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
  }

  .site-header__cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: var(--space-12) 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .error-page__code {
    font-size: 5rem;
  }
  .legal-page__title {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: var(--text-3xl);
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn {
    justify-content: center;
  }
}

/* ── 32. Focus & accessibility ────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--c-text);
  outline-offset: 2px;
}

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

/* ── 33. Scrollbar ────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--c-bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--c-border-strong);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--c-text-subtle);
}

/* ── 34. Print ────────────────────────────────────────────── */

@media print {
  .site-header,
  .site-footer,
  .cookie-banner,
  .ad-slot,
  .nav-toggle {
    display: none !important;
  }
}

/* ── Sidebar Info ─────────────────────────────────────────── */

.sidebar-info {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.sidebar-info__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--c-text);
}

.sidebar-info__text {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.sidebar-info__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
}

.sidebar-info__list li {
  font-size: var(--text-xs);
  color: var(--c-text-subtle);
  padding-left: var(--space-4);
  position: relative;
  line-height: 1.5;
}

.sidebar-info__list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--c-text-subtle);
}

/* ── Disabled tool card ────────────────────── */

.tool-card--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── 35. Tool specific CSS ────────────────────────────────────────────── */

/* ── Core pages  ─────────────────────────────── */
/* ── Všechny nástroje───────────────────── */
.all-tools__category {
  margin-bottom: var(--space-12);
}

/* ── Text Tools  ─────────────────────────────── */
/* ── Poček znaků ────────────────────── */

.pocet-znaku-live {
  margin: var(--space-6) 0;
}

/* ── Developer Tools  ─────────────────────────────── */
/* ── JSON validator ────────────────────── */

.json-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  flex-wrap: wrap;
}
.json-toolbar__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.json-toolbar__options {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.json-toolbar__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  white-space: nowrap;
}
.json-toolbar__select {
  width: auto;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
}
.json-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.json-panel {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}
.json-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--c-bg-alt);
  border-bottom: 1px solid var(--c-border);
  min-height: 44px;
  gap: var(--space-3);
}
.json-panel__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--c-text-muted);
}
.json-panel__meta {
  font-size: var(--text-xs);
  color: var(--c-text-subtle);
}
.json-panel__badge {
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}
.json-panel__badge--invalid {
  background: var(--c-error-bg);
  color: var(--c-error);
  border: 1px solid var(--c-error);
}
.json-panel__ace,
.json-panel__editor {
  flex: 1;
  width: 100%;
  min-height: 480px;
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-surface);
  border: none;
  resize: none;
  outline: none;
}
.json-panel__ace {
  padding: 0;
  display: none;
}
.json-panel__editor--output {
  background: var(--c-bg-alt);
  color: var(--c-text-muted);
}
.json-panel__error {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.json-panel__error-location {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--c-error);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.json-panel__error-message {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.7;
  background: var(--c-error-bg);
  border: 1px solid var(--c-error);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
@media (max-width: 768px) {
  .json-panels {
    grid-template-columns: 1fr;
  }
  .json-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .json-toolbar__options {
    justify-content: space-between;
  }
}

/* ── Health tools  ─────────────────────────────── */
/* ── BMI Tool ────────────────────── */

.bmi-classification {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.bmi-classification--underweight {
  background: #e8f4fd;
  border-color: #5b9bd5;
  color: #1a5276;
}
.bmi-classification--normal {
  background: var(--c-success-bg);
  border-color: var(--c-success);
  color: var(--c-success);
}
.bmi-classification--overweight {
  background: var(--c-warning-bg);
  border-color: var(--c-warning);
  color: var(--c-warning);
}
.bmi-classification--obese-1,
.bmi-classification--obese-2,
.bmi-classification--obese-3 {
  background: var(--c-error-bg);
  border-color: var(--c-error);
  color: var(--c-error);
}

.bmi-classification__label {
  font-size: var(--text-base);
  font-weight: 500;
}

.bmi-scale {
  margin-top: var(--space-5);
}

.bmi-scale__bar {
  display: grid;
  grid-template-columns: 8.5fr 6.5fr 5fr 5fr 5fr 5fr;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.bmi-scale__segment {
  padding: var(--space-3) var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.bmi-scale__segment-label {
  font-size: var(--text-xs);
  font-weight: 600;
}

.bmi-scale__segment-range {
  font-size: var(--text-xxs);
  color: var(--c-text-muted);
}

.bmi-scale__track {
  position: relative;
  height: 20px;
  margin-top: var(--space-2);
}

.bmi-scale__marker {
  position: absolute;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid var(--c-text);
  top: 0;
  animation: markerSlide 1s ease-out forwards;
}

@keyframes markerSlide {
  from {
    left: 0;
  }
  to {
    left: var(--marker-pos);
  }
}

.bmi-scale__segment--underweight {
  background: #e8f0f7;
  color: #1a3a5c;
}
.bmi-scale__segment--normal {
  background: var(--c-success-bg);
  color: var(--c-success);
}
.bmi-scale__segment--overweight {
  background: var(--c-warning-bg);
  color: var(--c-warning);
}
.bmi-scale__segment--obese-1 {
  background: #fde8e8;
  color: #7a1a1a;
}
.bmi-scale__segment--obese-2 {
  background: #f5b8b8;
  color: #6b0f0f;
}
.bmi-scale__segment--obese-3 {
  background: #e87878;
  color: #ffffff;
}

@media (max-width: 480px) {
  .bmi-scale__bar {
    grid-template-columns: 1fr;
  }

  .bmi-scale__segment {
    flex-direction: row;
    justify-content: space-between;
    padding: var(--space-2) var(--space-4);
  }

  .bmi-scale__track {
    display: none;
  }
}

/* ── Czech tools  ─────────────────────────────── */
/* Inflation calculator */

.inflation-section {
  padding: var(--space-6) 0;
}

.inflation-section__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.inflation-section__desc {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.inflation-form {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.inflation-divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 0;
}

.inflation-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-4);
  font-size: var(--text-base);
}

.inflation-table tr {
  border-top: 1px solid var(--c-border);
}

.inflation-table td {
  padding: var(--space-3) var(--space-4);
  color: var(--c-text-muted);
}

.inflation-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--c-text);
  font-family: var(--font-display);
}

.inflation-table tr:last-child {
  border-bottom: 1px solid var(--c-border);
}
