/* ==========================================================================
   invite.cz — styles.css
   Design system: French Violet / Indigo (varianta A)
   Pro přepnutí na variantu B (Irish Green) stačí přepsat tokeny v :root.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Background */
  --bg-base:        #0A0A12;
  --bg-elevated:    #13131E;
  --bg-subtle:      #1A1A28;

  /* Border */
  --border-subtle:  #252538;
  --border-default: #2F2F45;

  /* Text */
  --text-primary:   #F5F5FA;
  --text-secondary: #A8A8C0;
  --text-muted:     #6E6E85;

  /* Brand — French Violet */
  --brand-50:       #F1EEFE;
  --brand-200:      #C9BDFB;
  --brand-400:      #8B6FF5;
  --brand-500:      #7C3AED;
  --brand-600:      #6D28D9;
  --brand-700:      #5B21B6;
  --brand-glow:     rgba(124, 58, 237, 0.30);

  /* Status */
  --success:        #34D399;
  --warning:        #FBBF24;
  --danger:         #F87171;

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.35);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.40);
  --shadow-glow: 0 0 28px var(--brand-glow);

  /* Container */
  --container-max: 1200px;
  --container-pad: 24px;

  /* Transitions */
  --t-fast:   120ms ease-out;
  --t-base:   180ms ease-out;
  --t-slow:   380ms ease-out;
}

@media (min-width: 768px) {
  :root { --container-pad: 40px; }
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-base);
}

button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

input, textarea, select { font: inherit; }

::selection { background: var(--brand-500); color: var(--text-primary); }

/* Focus stavy */
:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   3. Typografie
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(22px, 2.5vw, 24px);
  line-height: 1.25;
  font-weight: 500;
}

p { color: var(--text-secondary); }

.body-lg { font-size: clamp(17px, 1.5vw, 18px); line-height: 1.65; }
.small   { font-size: 14px; line-height: 1.55; }

.eyebrow {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-400);
  display: inline-block;
  margin-bottom: 16px;
  opacity: 0.85;
}

.mono {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
}

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

section {
  padding-block: 64px;
  position: relative;
}

@media (min-width: 768px) {
  section { padding-block: 96px; }
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head p {
  margin-top: 16px;
}

.divider {
  height: 1px;
  background: var(--border-subtle);
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 15px;
  transition: all var(--t-base);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--brand-500);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-600);
  box-shadow: 0 0 36px var(--brand-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-default);
  color: var(--text-primary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--bg-subtle);
  border-color: var(--brand-400);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-full { width: 100%; }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base), backdrop-filter var(--t-base);
}

.site-header.scrolled {
  background: rgba(10, 10, 18, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 29px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 9px;
  height: 9px;
  background: var(--brand-500);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--brand-glow);
}

.logo-name { font-weight: 700; color: var(--text-primary); }
.logo-tld  { font-weight: 600; color: var(--text-muted); transition: color var(--t-base); }
.logo:hover .logo-tld { color: var(--brand-400); }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-size: 14px;
  color: var(--text-secondary);
}

.nav-desktop a:hover { color: var(--text-primary); }

.header-cta { display: none; }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
}

/* Mobile menu trigger */
.menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

.menu-trigger:hover { background: var(--bg-subtle); }

@media (min-width: 1024px) {
  .menu-trigger { display: none; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 360px);
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-subtle);
  transform: translateX(100%);
  transition: transform 280ms ease-out;
  z-index: 200;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
}

.mobile-menu nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu nav a:hover { color: var(--brand-400); }

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease-out, visibility 280ms ease-out;
  z-index: 150;
}

.menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-block: 140px 100px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

@media (min-width: 768px) {
  .hero { padding-block: 200px 140px; }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, var(--brand-500) 0%, transparent 60%);
  opacity: 0.07;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--text-muted) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.05;
  z-index: -1;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 80%);
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero .lead {
  max-width: 580px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 28px;
}

.hero-microcopy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.hero-microcopy span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-microcopy svg { color: var(--brand-400); }

/* --------------------------------------------------------------------------
   8. About / Mise + Tým
   -------------------------------------------------------------------------- */

/* --- Horní mission blok (centrovaný) --- */
.about-mission {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-mission h2 {
  margin-top: 12px;
  margin-bottom: 24px;
}

.about-mission p + p { margin-top: 16px; }

.about-mission .body-lg {
  color: var(--text-secondary);
}

.about-divider {
  height: 1px;
  width: 64px;
  background: var(--border-default);
  margin: 32px auto;
}

.about-tagline {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
}

.about-tagline strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Spodní team grid (2 karty) --- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 64px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 80px;
  }
}

.team-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 180ms ease-out, transform 180ms ease-out;
}

.team-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}

.team-photo {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 2px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.team-photo svg { width: 56px; height: 56px; }

.team-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--text-primary);
  margin: 0;
}

.team-role {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--brand-400);
  margin-top: 6px;
  margin-bottom: 16px;
}

.team-bio {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   9. Services
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--t-base), transform var(--t-base);
}

.card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}

.service-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-400);
  margin-bottom: 20px;
}

.service-card h3 { margin-bottom: 12px; }

.service-card p { font-size: 15px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   10. Pricing
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--t-base), transform var(--t-base);
}

.price-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}

.price-card.featured {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 1px var(--brand-500), 0 8px 32px rgba(124, 58, 237, 0.18);
}

.price-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-500);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 0 20px var(--brand-glow);
}

.price-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.price-card .price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.price-card .desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-secondary);
}

.price-card li svg {
  color: var(--brand-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.price-card .btn { margin-top: auto; }

/* Care banner */
.care-banner {
  margin-top: 48px;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  width: fit-content;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 21px 33px;
  text-align: center;
  box-sizing: border-box;
}

.care-banner h3 { margin-bottom: 3px; }

.care-banner .subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--brand-400);
  margin-bottom: 12px;
}

.care-banner > p {
  color: var(--text-secondary);
  margin: 0;
}

.care-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .care-features { grid-template-columns: repeat(3, 1fr); }
}

.care-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.care-feature svg {
  color: var(--brand-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.care-feature strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.care-feature span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   11. Why us
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

.why-pillar .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 27px;
  font-weight: 600;
  color: var(--brand-400);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  display: block;
}

.why-pillar h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.why-pillar p {
  color: var(--text-secondary);
  font-size: 15px;
}

.why-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 48px;
  color: var(--text-muted);
  font-size: 14px;
}

.why-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.why-trust svg { color: var(--brand-400); }

/* --------------------------------------------------------------------------
   12. References
   -------------------------------------------------------------------------- */
.refs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}

.ref-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t-base);
}

.ref-card:hover { border-color: rgba(124, 58, 237, 0.4); }

.ref-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a1a 50%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.ref-card:hover .ref-thumb img { transform: scale(1.02); }

.ref-thumb-placeholder {
  text-align: center;
  color: #c9a85a;
  font-family: 'Space Grotesk', sans-serif;
  padding: 24px;
}

.ref-thumb-placeholder .big {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.ref-thumb-placeholder .sub {
  font-size: 13px;
  color: #8a7e5a;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ref-body { padding: 28px; }

.ref-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ref-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--brand-400);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.ref-body h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.ref-body p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 15px;
}

.ref-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.ref-link strong { color: var(--text-primary); font-weight: 500; }

/* --------------------------------------------------------------------------
   13. Process
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}

@media (min-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.process-step {
  position: relative;
  padding: 24px 0;
}

@media (min-width: 900px) {
  .process-grid::before {
    content: "";
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-default) 8%, var(--border-default) 92%, transparent);
    z-index: 0;
  }
}

.process-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--brand-400);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
  }
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { margin-bottom: 32px; max-width: 420px; }

.contact-info hr {
  height: 1px;
  border: 0;
  background: var(--border-subtle);
  margin-block: 32px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 15px;
}

.contact-list svg {
  color: var(--brand-400);
  flex-shrink: 0;
}

.contact-list a:hover { color: var(--brand-400); }

/* Form */
.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 640px) { .contact-form { padding: 36px; } }

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
}

.form-field label .required { color: var(--brand-400); }

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color var(--t-base), background var(--t-base);
  font-family: inherit;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--brand-500);
  background: var(--bg-subtle);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
  font-family: inherit;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A8A8C0' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-field .error-msg {
  font-size: 13px;
  color: var(--danger);
  min-height: 0;
  opacity: 0;
  transition: opacity var(--t-base);
}

.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: var(--danger);
}

.form-field.has-error .error-msg { opacity: 1; }

/* Checkbox */
.form-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  background: var(--bg-subtle);
  margin: 1px 0 0;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: border-color var(--t-base), background var(--t-base);
}

.form-checkbox input[type="checkbox"]:checked {
  background: var(--brand-500);
  border-color: var(--brand-500);
}

.form-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-checkbox.has-error input[type="checkbox"] {
  border-color: var(--danger);
}

.form-checkbox a { color: var(--brand-400); text-decoration: underline; }
.form-checkbox a:hover { color: var(--brand-200); }

/* Honeypot */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form result panels */
.form-msg {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  display: none;
}

.form-msg.success {
  display: block;
  border: 1px solid var(--success);
  background: rgba(52, 211, 153, 0.08);
  color: var(--success);
}

.form-msg.error {
  display: block;
  border: 1px solid var(--danger);
  background: rgba(248, 113, 113, 0.08);
  color: var(--danger);
}

.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
  display: none;
}

.btn[data-loading="true"] .spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  padding-block: 36px 20px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 96px; } }

.footer-col h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-family: 'Space Grotesk', sans-serif;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col a,
.footer-col li {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-col a:hover { color: var(--brand-400); }

.site-footer .logo {
  font-size: 29px;
  gap: 11px;
}

.site-footer .logo-mark {
  width: 9px;
  height: 9px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 260px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.footer-social:hover {
  color: var(--brand-400);
  border-color: var(--brand-400);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--brand-400); }

/* --------------------------------------------------------------------------
   16. GDPR page
   -------------------------------------------------------------------------- */
.legal-page {
  padding-block: 140px 96px;
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 { margin-bottom: 32px; }
.legal-page h2 {
  font-size: 22px;
  margin-block: 32px 12px;
  font-weight: 600;
}
.legal-page p { margin-bottom: 12px; color: var(--text-secondary); }
.legal-page ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}
.legal-page li { margin-bottom: 4px; }
.legal-page strong { color: var(--text-primary); font-weight: 500; }
.legal-page a { color: var(--brand-400); }
.legal-page a:hover { color: var(--brand-200); }
.legal-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   17. Scroll-in animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 380ms ease-out, transform 380ms ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* --------------------------------------------------------------------------
   18. Utility
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   19. Mobile responsive fixes
   -------------------------------------------------------------------------- */

/* --- Obecné --- */
@media (max-width: 639px) {

  /* Hero — zmenšit nadpis na velmi úzkých displejích */
  h1 { font-size: clamp(30px, 9vw, 42px); }

  /* Hero tlačítka — celá šířka na mobilu */
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 320px; }

  /* Section heading — méně mezery pod */
  .section-head { margin-bottom: 36px; }

  /* Care banner — oprava přetečení */
  .care-banner {
    width: auto;
    padding: 20px 16px;
  }
  .care-banner .subtitle {
    white-space: normal;
    font-size: 13px;
  }

  /* Team karta — méně paddingu */
  .team-card { padding: 24px 20px; }

  /* Pricing karta — méně paddingu */
  .price-card { padding: 28px 20px; }

  /* Kontakt — zmenšit padding formuláře */
  .contact-form { padding: 20px 16px; }

  /* Footer — kompaktní centrované zápatí na mobilu */
  .site-footer { padding-block: 32px 16px; }
  .footer-grid {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 28px !important;
    text-align: center;
  }
  .footer-col, .footer-col.footer-brand { width: auto !important; }
  .footer-brand p { max-width: 100% !important; margin: 6px auto 0; }
  .footer-col h4 { margin-bottom: 8px; }
  .footer-col ul { align-items: center; gap: 4px; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    margin-top: 20px;
  }
}

/* --- Slider tlačítka — viditelná na dotykových zařízeních --- */
@media (hover: none) {
  .ref-slide-btn { opacity: 1; }
}

/* --- Tablet (640–1023px) doladění --- */
@media (min-width: 640px) and (max-width: 1023px) {
  /* Care banner — nechceme přetečení ani na tabletu */
  .care-banner {
    width: auto;
    max-width: 100%;
    padding: 24px 28px;
  }
  .care-banner .subtitle { white-space: normal; }

  /* Pricing grid — 2 sloupce místo 1 na tabletu */
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }

  /* Process — 2 sloupce na tabletu */
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .process-grid::before { display: none; }

  /* Footer — 2 sloupce, centrovaně */
  .footer-grid { text-align: center; justify-items: center; }
  .footer-col ul { align-items: center; }
  .footer-brand p { margin: 6px auto 0; }
  .footer-bottom { justify-content: center; }
}
.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;
}
