:root {
  --navy:        #3d5c4a;
  --navy-light:  #e5ede8;
  --sage:        #5e7d68;
  --sage-light:  #e8f0ea;
  --beige:       #eceeec;
  --bg:          #f4f6f4;
  --white:       #ffffff;
  --text:        #1e2124;
  --text-muted:  #5a6660;
  --border:      #dde3de;
  --radius:      10px;
  --shadow:      0 2px 16px rgba(61,92,74,.08);
}

*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* ---- Typografie ---- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 400; color: var(--text); font-family: 'DM Serif Display', Georgia, serif; }
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; font-family: 'DM Sans', system-ui, sans-serif; font-weight: 600; }
h4 { font-family: 'DM Sans', system-ui, sans-serif; font-weight: 600; }
p  { margin: 0 0 1rem 0}
a  { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Navbar ---- */
.in-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(244,246,244,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.in-navbar.scrolled { box-shadow: 0 2px 16px rgba(61,92,74,.1); }
.in-navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; max-width: 1200px; margin: 0 auto; padding: 0 40px;
}
.in-brand {
  display: flex; align-items: center; gap: 20px;
  font-size: 1.95rem; font-weight: 400;
  color: #111;
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.4; max-width: 560px;
  text-decoration: none !important;
  position: relative;
  left:0;
  top: -40px
}
.in-brand-logo {
  width: 52px; height: 52px; flex-shrink: 0;
  object-fit: contain;
}
.in-brand-top {
  font-size: 1.0rem; font-weight: 400; 
  color: #333;
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.4; max-width: 280px;
  text-decoration: none !important;
}
.in-brand-top:hover {
  text-decoration: none !important;
   color: var(--navy);
} 
.hero-logo {
  max-width: 85px; width: 100%; height: auto;
  margin-bottom: 0.1rem; display: block;
}
.in-nav { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.in-nav a {
  padding: 8px 18px; border-radius: 7px; font-size: 1rem;
  text-decoration: none !important;
  color: var(--text); transition: color .15s;
}
.in-nav a:hover { color: var(--navy); background: var(--navy-light); text-decoration: none !important; }
.in-nav .btn-nav {
  background: var(--navy); color: var(--white) !important;
  padding: 10px 22px; border-radius: 7px; font-weight: 500; font-size: 1rem;
}
.in-nav .btn-nav:hover { background: #2a4337; }
.in-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.in-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---- Sections -------------------------------------------- */
section { padding: 68px 0 50px 0 }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sage); margin-bottom: .6rem;
}
.section-title { margin-bottom: .75rem; }
.section-lead { font-size: 1.1rem; color: var(--text-muted); max-width: 640px; margin-bottom: 0; }
.team .section-lead { max-width: 99% }
.services .section-lead { max-width: 95% }
.institutions .section-lead { max-width: 95% }
section.institutions {
  padding: 70px 0 80px 0;
}

/* ---- Hero ------------------------------------------------- */
.hero {
  padding: 160px 0 90px 110px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.hero-visual {
  border-radius: 16px;
  overflow: hidden;
  align-self: center;
  margin-top: 1px;
  max-width: 480px;
}
.hero-eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 1.2rem;
}
.hero h1 { margin-bottom: 1.25rem; color: var(--navy); }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--white);
  padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer; transition: all 0.2s ease-in;
}
.btn-primary:hover { background: #2a4337; color: var(--white); text-decoration: none; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center;
  background: #ececec; color: var(--text);
  padding: 14px 28px; border-radius: 8px; font-weight: 500; font-size: .95rem;
  border: 1.5px solid var(--border); cursor: pointer; transition: all 0.2s ease-in;
}
.btn-secondary:hover { border-color: #b0c4b8; background: #e5ede8; color:#111; text-decoration: none; }

/* ---- Hlavní oblasti (3 karty) -------- */
.services { background: var(--bg); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px;
}
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 36px 28px;
  border: 1px solid var(--border); transition: box-shadow .2s, transform .2s;
  position: relative;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-icon {
  width: 48px; height: 48px; border-radius: 0;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
img.services-icon { width: 48px; height: 48px; }
.service-icon.blue  { background: var(--navy-light); color: var(--navy); }
.service-icon.green { background: var(--sage-light);  color: var(--sage); }
.service-icon.warm  { background: var(--beige); color: #8a7050; }
.service-card h3 { margin-bottom: .5rem; }
.service-card p  { color: var(--text-muted); font-size: .9rem; margin: 0; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .875rem; font-weight: 500; color: var(--navy);
  margin-top: 20px; transition: gap .15s;
}
.service-link:hover { gap: 10px; text-decoration: none; }

.institutions { background: var(--navy); color: var(--white); }
.institutions .section-label { color: rgba(255,255,255,.5); }
.institutions .section-title { color: var(--white); }
.institutions .section-lead { color: rgba(255,255,255,.7); }
.institutions-grid {align-items: center}
.inst-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.inst-list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: .95rem; color: rgba(255,255,255,.85);
}
.inst-bullet {
  width: 24px; height: 24px; min-width: 24px; border-radius: 6px;
  background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.inst-bullet svg { width: 13px; height: 13px; color: rgba(255,255,255,.7); }
.inst-visual {
  background: rgba(255,255,255,.06); border-radius: 14px; padding: 32px;
  border: 1px solid rgba(255,255,255,.1);
}
.inst-stat { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.inst-stat:last-child { border-bottom: none; padding-bottom: 0; }
.inst-stat-label { font-size: .8rem; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.inst-stat-value { font-size: 1.1rem; font-weight: 600; color: var(--white); }

/* ---- O institutu ------------------------------------------ */
.about { background: var(--white); }
.about-inner { display: grid; gap: 40px; align-items: start; }
.about-values { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.about-value { display: flex; gap: 16px; }
.about-value-icon {
  width: 40px; height: 40px; min-width: 40px; border-radius: 8px;
  background: var(--sage-light); display: flex; align-items: center; justify-content: center;
}
.about-value-icon svg { width: 18px; height: 18px; color: var(--sage); }
.about-value h4 { font-size: .9rem; margin-bottom: 2px; }
.about-value p  { font-size: .85rem; color: var(--text-muted); margin: 0; }
.about-quote {
  background: var(--beige); border-radius: 14px; padding: 32px;
  border-left: 4px solid var(--sage);
  margin-top: 0.4rem;
}
.about-quote blockquote {
  font-size: 1.15rem; line-height: 1.75; color: var(--text);
  margin: 0; font-style: italic;
  font-family: 'DM Serif Display', Georgia, serif;
}
.about-quote cite { display: block; margin-top: 20px; font-style: normal; font-size: .85rem; color: var(--text-muted); }

/* ---- Praxe studentů --------------------------------------- */
.students { background: var(--bg); }
.students-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.students-cards { display: flex; flex-direction: column; gap: 16px; }
.student-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); display: flex; gap: 16px; align-items: flex-start;
}
.student-card-num {
  width: 32px; height: 32px; min-width: 32px; border-radius: 6px;
  background: var(--navy-light); color: var(--navy);
  font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.student-card h4 { font-size: .9rem; margin-bottom: 4px; }
.student-card p  { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* ---- Tým -------------------------------------------------- */
.team { background: var(--white); }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; }
.team-card {
  display: flex; align-items: stretch; gap: 20px; padding-right: 20px;
  background: var(--bg); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}
.team-card img { width: 140px; min-width: 140px; height: auto; object-fit: cover; border-radius: 0; align-self: stretch; }
.team-card-text { display: flex; flex-direction: column; justify-content: center; }
.team-more-btn { border: none; background: none; cursor: pointer; font: inherit; padding: 0; margin-top: 10px !important;}
.team-card-text h4 { margin: 5px 0 10px 0; font-size: 1.05rem}
.team-card-text p { margin: 0; color: var(--text-muted); font-size: .9rem;}
.team-card-text p.elipsis {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Kontakt a objednání ---------------------------------- */
.contact { background: var(--beige); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item-icon {
  width: 38px; height: 38px; min-width: 38px; border-radius: 8px;
  background: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.contact-item-icon svg { width: 16px; height: 16px; color: var(--navy); }
.contact-item-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 0; }
.contact-item-value { font-size: .95rem; color: var(--text); }
#mapa { border-radius: 9px; overflow: hidden; box-shadow: 3px 3px 10px #999999; margin-top: 1.4rem;}
#mapa iframe { display: block; }
.contact-form {
  background: var(--white); border-radius: 14px; padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form h3 { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 7px;
  font-size: .9rem; background: var(--bg); color: var(--text); outline: none; font-family: inherit;
  transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--navy);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-note { font-size: .95rem; color: var(--text-muted); margin-bottom: 18px; padding: 5px;}
.btn-submit {
  width: 100%; padding: 14px; background: var(--navy); color: var(--white);
  border: none; border-radius: 8px; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease-in;
}
.btn-submit:hover { background: #2a4337; }

/* ---- Modální okno služby ---------------------------------- */
.svc-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(30,33,36,.55); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.svc-modal-overlay.is-open { display: flex; }
.svc-modal {
  background: var(--white); border-radius: 16px;
  max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(30,33,36,.22);
  animation: svcModalIn .22s ease;
}
@keyframes svcModalIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.svc-modal-head {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 32px 32px 0;
}
.svc-modal-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.svc-modal-title {
  flex: 1; 
  font-size: 1.15rem; font-weight: 600; line-height: 1.3;
  color: var(--text); margin: 0; padding-top: 8px;
}
.svc-modal-close {
  background: none; border: none; cursor: pointer; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: background .15s;
}
.svc-modal-close:hover { background: var(--beige); }
.svc-modal-close svg { width: 18px; height: 18px; }
.svc-modal-body {
  padding: 20px 32px; color: var(--text-muted);
  font-size: .97rem; line-height: 1.75;
}
.svc-modal-footer { padding: 0 32px 16px 32px; display: flex; gap: 12px; }
.service-card { cursor: pointer; }

/* ---- Footer ---- */
.in-footer {
  background: var(--text); color: rgba(255,255,255,.6);
  padding: 40px 0; font-size: .85rem;
}
.in-footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.in-footer a { color: rgba(255,255,255,.5); }
.in-footer a:hover { color: rgba(255,255,255,.9); }

label sup {
  position: relative;
  top: -1px;
  left: 0;
  color: rgb(185, 36, 13);
  font-size: 1.2rem
}
.qr-kod {
  max-width: 180px;
}

/* ---- Odeslana (potvrzení objednávky) ---- */
.odeslana { max-width: 860px; margin: 0 auto; padding: 8px 0 16px; }
.odeslana-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.odeslana-right { display: flex; flex-direction: column; gap: 16px; }
.odeslana-card {
  background: var(--white); border-radius: 14px; padding: 24px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.odeslana-card-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 1rem; font-weight: 600; margin-bottom: 18px; color: var(--text);
}
.odeslana-icon {
  width: 40px; height: 40px; min-width: 40px; border-radius: 10px;
  background: var(--sage-light); display: flex; align-items: center; justify-content: center;
}
.odeslana-icon svg { width: 20px; height: 20px; color: var(--navy); }
.odeslana-rows { display: flex; flex-direction: column; }
.odeslana-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid #ececec;
}
.odeslana-row:last-child { border-bottom: none; }
.odeslana-label { font-size: .88rem; color: var(--text-muted); }
.odeslana-value { font-size: .88rem; color: var(--text); text-align: right; max-width: 55%; }
.odeslana-price { color: var(--navy); font-weight: 600; font-size: .95rem; }
.odeslana-qr { display: flex; justify-content: center; padding: 4px 0; }
.odeslana-qr img { max-width: 160px; border: 0 }
.odeslana-note { font-size: .78rem; color: var(--text-muted); margin-top: 12px; margin-bottom: 0; line-height: 1.5; }
.odeslana-actions { display: flex; align-items: center; gap: 48px; justify-content: center; }
.odeslana-btn {
  display: inline-block; padding: 13px 28px; background: var(--navy); color: var(--white);
  border-radius: 8px; font-weight: 600; font-size: .95rem; text-decoration: none;
}
.odeslana-btn:hover { background: var(--sage); color: var(--white); text-decoration: none; }
.odeslana-link { color: var(--navy); font-weight: 600; font-size: .95rem; }
.odeslana-link:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .odeslana-grid { grid-template-columns: 1fr; }
}
.btn-sm {
  padding: 6px 14px;
}
.table tr td {vertical-align: middle !important}
.cenik-table tr td {vertical-align: middle !important}
.cenik-table th:last-child,
.cenik-table td:last-child {
  width: 156px;
  text-align: center;
}

@media (max-width: 768px) {
  section { padding: 44px 0 }
  .hero   { padding: 125px 0 40px 0 }
  h3 {font-size: 1.1rem}
  .table tr td {font-size: 0.9rem !important}
  .hero-inner, .about-inner, .institutions-grid,
  .students-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .team-grid { grid-template-columns: 1fr; }
  .section-lead {
    font-size: 1.0rem;
  }
  .hero-visual { display: none; }
  .in-nav { display: none; flex-direction: column; position: absolute; 
    top: 60px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px;
  }
  .service-card {
    padding: 25px 20px;
  }
  .hero-desc {
    font-size: 1.0rem;
    max-width: 99%;
  }
  .in-nav.open { display: flex; }
  .in-hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  #mapa { margin-top: 0.2rem;}
  .in-brand {
    font-size: 1.1rem;
    line-height: 1.3;
    max-width: 99%;
  }  
  .in-nav {
    align-items: first baseline; 
  }
  .about-quote {
    margin-top: 0.2rem;
  }  
  .about-quote blockquote {
    font-size: 1.05rem;
    line-height: 1.7;
  }  
  .in-brand-top {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.35;
    position: relative;
    top: 0;
    left: -15px;
  }
  .team-card img {
    width: 110px;
    min-width: 110px;
  }
  .team-card-text h4 {
    margin: 5px 0 6px 0;
    font-size: 0.95rem;
  } 
  .team-card-text p.elipsis {
    line-height: 18px;
    font-size: 0.85rem;
  }
  .team-more-btn {
    padding: 0;
    margin-top: 4px !important;
  }      
}
