/* =======================================================
   PRAKTICKÁ AI · Pavel Kabelík
   style.css – veškeré styly webu

   STRUKTURA:
   1. Reset & proměnné
   2. Typografie & utility
   3. Navigace
   4. Hero
   5. Social proof strip
   6. Pilíře
   7. Produktové karty (B2B + B2C)
   8. Banner konzultace
   9. O mně
   10. Reference (carousel)
   11. Finální CTA
   12. Patička
   13. Modály (produktové stránky)
   14. Responsive
======================================================= */


/* ─── 1. RESET & PROMĚNNÉ ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:    #1A2D3D;   /* hlavní tmavá – text, headings */
  --mid:     #36536B;   /* střední modrá – popisky */
  --teal:    #2BB5A0;   /* akcentová tyrkysová */
  --teal-lt: #e8f7f5;   /* světlé pozadí pro teal prvky */
  --bg:      #F4F8FA;   /* světlé sekce */
  --border:  #DDE8EE;   /* ohraničení */
  --white:   #FFFFFF;
  --text:    #1A2D3D;
  --muted:   #6B8799;   /* šedý podtext */
  --radius:  14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}


/* ─── 2. TYPOGRAFIE & UTILITY ──────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

.tag-pill {
  display: inline-block;
  background: var(--teal-lt);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(43,181,160,.25);
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

section { padding: 88px 0; }

.section-header { text-align: center; margin-bottom: 56px; }

h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--dark);
  margin-bottom: 14px;
}

.section-perex {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #23a090; transform: translateY(-1px); box-shadow: 0 4px 18px rgba(43,181,160,.35); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-lg { font-size: 16px; padding: 15px 30px; border-radius: 12px; }


/* ─── 3. NAVIGACE ──────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
/* Logo – jen text, žádná ikona */
.nav-logo {
  font-size: 19px;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -.01em;
}
.nav-logo span { color: var(--teal); }   /* "AI" zvýrazněno teal */

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--teal); }


/* ─── 4. HERO ──────────────────────────────────────── */
.hero {
  padding: 90px 0 80px;
  background: var(--white);
  overflow: hidden;
  position: relative;
}
/* Jemná tečkovaná mřížka v pozadí */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #d0e4ef 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .45;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.hero-headline {
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--dark);
  margin-bottom: 24px;
}
.hero-headline .accent { color: var(--teal); }
.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--mid);
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero obrázek vpravo */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-visual img { width: 100%; border-radius: 20px; display: block; }


/* ─── 5. SOCIAL PROOF STRIP ────────────────────────── */
.strip { background: var(--dark); padding: 52px 0; }
.strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.strip-item {
  text-align: center;
  padding: 12px 32px;
  position: relative;
}
.strip-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; height: 60%;
  width: 1px;
  background: rgba(255,255,255,.12);
}
.strip-number {
  font-size: 44px;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.strip-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  letter-spacing: .02em;
}


/* ─── 6. PILÍŘE ────────────────────────────────────── */
.pillars { background: var(--bg); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: box-shadow .25s, transform .25s;
}
.pillar-card:hover { box-shadow: 0 8px 32px rgba(26,45,61,.08); transform: translateY(-3px); }
.pillar-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--teal-lt);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.pillar-icon svg { width: 24px; height: 24px; stroke: var(--teal); }
.pillar-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.pillar-card p  { font-size: 14px; line-height: 1.7; color: var(--mid); }


/* ─── 7. PRODUKTOVÉ KARTY ──────────────────────────── */
.products-b2b { background: var(--white); }
.products-b2c { background: var(--bg); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.product-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: border-color .2s, box-shadow .2s;
  position: relative;
}
.product-card:hover { border-color: var(--teal); box-shadow: 0 6px 28px rgba(43,181,160,.12); }
.product-card.featured { border-color: var(--teal); background: #f7fdfc; }

.product-card-tag { position: absolute; top: -12px; left: 24px; }
.product-card-icon { display: block; color: var(--teal); margin-top: 10px; margin-bottom: 8px; line-height: 1; }
.product-card h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 18px; margin-top: 10px; }
.product-card:has(.product-card-icon) h3 { margin-top: 0; }

.product-features { list-style: none; margin-bottom: 24px; flex: 1; }
.product-features li {
  font-size: 14px;
  color: var(--mid);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.product-features li:last-child { border-bottom: none; }
.check-icon { color: var(--teal); flex-shrink: 0; margin-top: 1px; font-size: 15px; }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1.5px solid var(--border);
}
.product-price { font-size: 22px; font-weight: 800; color: var(--dark); }
.product-price span { font-size: 13px; font-weight: 400; color: var(--muted); }


/* ─── 8. BANNER KONZULTACE ─────────────────────────── */
.consult-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #2a4a62 100%);
  border-radius: 18px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 40px;
}
.consult-banner h3 { font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.consult-banner p  { font-size: 15px; color: rgba(255,255,255,.6); }


/* ─── 9. O MNĚ ─────────────────────────────────────── */
.about { background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: start;
}
.about-photo { position: relative; }
.about-photo-frame {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.about-photo-badge {
  position: absolute;
  bottom: 20px; right: -16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(26,45,61,.1);
}
.about-photo-badge .badge-num   { font-size: 22px; font-weight: 800; color: var(--dark); line-height: 1; }
.about-photo-badge .badge-label { font-size: 11px; color: var(--muted); font-weight: 500; white-space: nowrap; }

.about-content h2 { text-align: left; margin-bottom: 24px; }
.about-content p  { font-size: 16px; color: var(--mid); line-height: 1.8; margin-bottom: 20px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.about-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--mid);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
}


/* ─── 10. REFERENCE (CAROUSEL) ─────────────────────── */
.testimonials { background: var(--bg); }
.testimonials-wrap { position: relative; overflow: hidden; }
.testimonials-track { display: flex; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.testimonial-slide  { min-width: 100%; padding: 0 2px; }

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 52px;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}
.testimonial-quote-mark {
  font-size: 80px;
  line-height: 1;
  color: var(--teal);
  opacity: .2;
  font-family: Georgia, serif;
  position: absolute;
  top: 20px; left: 40px;
  font-weight: 700;
}
.testimonial-text {
  font-size: 18px;
  line-height: 1.75;
  color: var(--dark);
  font-style: italic;
  margin-bottom: 28px;
  position: relative;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author-dot { width: 4px; height: 36px; background: var(--teal); border-radius: 2px; flex-shrink: 0; }
.testimonial-author-name { font-size: 15px; font-weight: 700; color: var(--dark); line-height: 1.3; }
.testimonial-author-role { font-size: 13px; color: var(--muted); font-weight: 400; }

/* Tečky navigace */
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.testimonial-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none; cursor: pointer; padding: 0;
  transition: background .2s, transform .2s;
}
.testimonial-dot.active { background: var(--teal); transform: scale(1.3); }
/* Skrýt tečky pokud je jen jedna reference */
.testimonial-dots:has(.testimonial-dot:only-child) { display: none; }


/* ─── 11. FINÁLNÍ CTA ──────────────────────────────── */
.final-cta {
  background: var(--dark);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(43,181,160,.15) 0%, transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.final-cta h2 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 42px);
  max-width: 700px;
  margin: 0 auto 16px;
  position: relative;
}


/* ─── 12. PATIČKA ──────────────────────────────────── */
footer { background: #111e28; padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand   { font-size: 15px; font-weight: 700; color: rgba(255,255,255,.8); }
.footer-contacts { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-contacts a { font-size: 14px; color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.footer-contacts a:hover { color: var(--teal); }
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  width: 100%;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.07);
}


/* ─── 13. MODÁLY (PRODUKTOVÉ STRÁNKY) ─────────────── */
/*
   Každý produkt má svůj modal s id="modal-[kód]"
   Kódy: jednodenne, dvoudenne, na-drate, implementace,
         start-s-ai, pro-vas-byznys

   Struktura modálu:
   .modal-overlay
     .modal-panel
       .modal-close  (tlačítko ×)
       .modal-inner
         .modal-left  (detail produktu)
         .modal-right (formulář nebo termíny)
*/
.modal-overlay {
  display: none;              /* skryto — JS přepne na flex */
  position: fixed;
  inset: 0;
  background: rgba(10,20,30,.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.is-open { display: flex; }

.modal-panel {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(10,20,30,.25);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border: none; background: var(--bg);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--mid);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 1;
}
.modal-close:hover { background: var(--border); }

.modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-left {
  padding: 48px 40px;
  border-right: 1px solid var(--border);
}
.modal-right {
  padding: 48px 40px;
  background: var(--bg);
  border-radius: 0 20px 20px 0;
}

/* Modal – levá strana */
.modal-tag { margin-bottom: 16px; }
.modal-title { font-size: 26px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.modal-price { font-size: 20px; font-weight: 700; color: var(--teal); margin-bottom: 24px; }
.modal-price span { font-size: 13px; font-weight: 400; color: var(--muted); }
.modal-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  margin-top: 24px;
}
.modal-features { list-style: none; }
.modal-features li {
  font-size: 14px;
  color: var(--mid);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 10px; align-items: flex-start;
  line-height: 1.5;
}
.modal-features li:last-child { border-bottom: none; }
.modal-desc { font-size: 15px; color: var(--mid); line-height: 1.75; margin-top: 16px; }

/* Modal – pravá strana (formulář) */
.modal-form-title { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.modal-form-sub   { font-size: 14px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }

/* Tally iframe wrapper */
.tally-embed {
  width: 100%;
  min-height: 420px;
  border: none;
  border-radius: 12px;
}

/* Modal – termíny školení (Start s AI) */
.dates-list { list-style: none; }
.date-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color .2s;
}
.date-item:hover { border-color: var(--teal); }
.date-info-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); margin-bottom: 3px; }
.date-info-date  { font-size: 15px; font-weight: 700; color: var(--dark); }
.date-info-spots { font-size: 13px; color: var(--muted); margin-top: 2px; }
.date-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}


/* ─── 14. RESPONSIVE ───────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner           { grid-template-columns: 1fr; }
  .hero-visual          { display: none; }
  .strip-inner          { grid-template-columns: 1fr; gap: 24px; }
  .strip-item::after    { display: none; }
  .pillars-grid         { grid-template-columns: 1fr; }
  .products-grid        { grid-template-columns: 1fr; }
  .about-inner          { grid-template-columns: 1fr; }
  .consult-banner       { flex-direction: column; text-align: center; }
  .nav-links            { display: none; }
  .modal-inner          { grid-template-columns: 1fr; }
  .modal-right          { border-radius: 0 0 20px 20px; }
  .modal-left           { border-right: none; border-bottom: 1px solid var(--border); }
}
