/* EduTronik.sk — static rebuild in the visual language of the v2 shop.
   Every colour, size and radius below is taken from the archived Astra 2.1.4
   customiser CSS in site/assets, so this reads the same as the original
   without carrying 360 KB of Astra + WooCommerce + Elementor stylesheets. */

:root {
  --blue: #0274be;   /* primary: links, buttons, active tab, onsale */
  --ink:  #3a3a3a;   /* headings, idle nav, button hover background */
  --body: #808285;   /* body copy */
  --page: #f5f5f5;   /* the separate-container page background */
  --line: #eaeaea;   /* header rule, table and card borders */
  --rule: #7a7a7a;   /* footer top rule */
}

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

/* the hidden attribute must win over any display rule a class sets */
[hidden] { display: none !important; }

html { font-size: 93.75%; }            /* 15px root */

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
  background: #fff;
}

::selection { background: var(--blue); color: #fff; }

a { color: var(--blue); text-decoration: none; }
a:hover, a:focus { color: var(--ink); }

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

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 20px;
}
h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 15px; }

p  { margin: 0 0 1.65em; }
ul, ol { margin: 0 0 1.65em; padding-left: 20px; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }

.ast-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.muted { color: var(--body); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* ---------------------------------------------------------------- buttons */

.button,
button,
input[type="submit"] {
  display: inline-block;
  padding: 10px 40px;
  border: 1px solid var(--blue);
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.65;
  text-align: center;
  cursor: pointer;
  transition: all .2s linear;
}
.button:hover, .button:focus,
button:hover, button:focus,
input[type="submit"]:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.button--ghost {
  background: transparent;
  color: var(--blue);
}
.button--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.button[disabled], button[disabled] { opacity: .55; cursor: not-allowed; }

/* ----------------------------------------------------------------- header */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 4;
}
.main-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-branding { line-height: 1.2; }
.site-title {
  display: block;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}
.site-title a { color: var(--ink); }
.site-title a:hover { color: var(--blue); }
.site-description {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--body);
}

.main-header-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-header-menu li { margin: 0; }
.main-header-menu a {
  display: inline-block;
  padding: 0 1em;
  color: var(--ink);
  line-height: 3;
  transition: all .2s linear;
}
.main-header-menu a:hover,
.main-header-menu .current-menu-item > a { color: var(--blue); }

.cart-count {
  display: inline-block;
  min-width: 20px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  vertical-align: middle;
}
.main-header-menu a:hover .cart-count { background: var(--ink); }

/* CSS-only mobile menu, at v2's 921px breakpoint. No JavaScript involved,
   so navigation keeps working even if assets/js/cart.js fails to load. */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-toggle {
  display: none;
  padding: 6px 14px;
  border: 1px solid var(--blue);
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 921px) {
  .menu-toggle { display: inline-block; }
  .main-navigation { display: none; width: 100%; }
  .nav-toggle:checked ~ .main-navigation { display: block; }
  .main-header-menu {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border-top: 1px solid var(--line);
    margin-top: 12px;
  }
  .main-header-menu li + li { border-top: 1px solid var(--line); }
  .main-header-menu a { display: block; padding: 8px 0; line-height: 1.65; }
}

/* ------------------------------------------------------------- page shell */

.site-content { padding: 4em 0; }
.site-content--grey { background: var(--page); }

.content-card {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 3.5em 4em;
}
.entry-title, .page-title { font-size: 40px; }
.lead { font-size: 18px; line-height: 1.6; }

.section { margin-bottom: 3.5em; }
.section:last-child { margin-bottom: 0; }

/* --------------------------------------------------------- product grids */

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  list-style: none;
  margin: 0 0 2em;
  padding: 0;
}
.products--3 { grid-template-columns: repeat(3, 1fr); }
.products li { margin: 0; }

.product {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.product__image { display: block; margin-bottom: 1em; }
.product__image img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto;
}
.product__title {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 .5em;
}
.product__title a { color: var(--ink); }
.product__title a:hover { color: var(--blue); }
.product__tagline {
  display: block;
  font-size: 13px;
  color: var(--body);
  margin-bottom: .5em;
}
.product .price {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 1em;
}
.product .button { margin-top: auto; width: 100%; padding: 10px 12px; }

/* the archive's own #wp-custom-css breakpoints for this grid */
@media (max-width: 768px) { .products, .products--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 703px) { .products, .products--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 414px) { .products, .products--3 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- single product */

.single-product {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  margin-bottom: 3em;
}
.single-product__gallery img { width: 100%; border: 1px solid var(--line); }
.product_title { margin-bottom: .4em; }
.summary .price {
  font-size: 25px;
  color: var(--ink);
  margin: 0 0 .2em;
}
.woocommerce-price-suffix {
  display: block;
  font-size: 13px;
  color: var(--body);
  margin-bottom: 1.4em;
}

.cart-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.2em;
}
.quantity input.qty {
  width: 72px;
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  text-align: center;
  color: var(--ink);
}
.added-note {
  color: var(--blue);
  font-size: 14px;
}

.product_meta {
  border-top: 1px solid var(--line);
  padding-top: 1em;
  font-size: 14px;
}
.product_meta > span { display: block; }

/* single "Popis" tab, styled like ul.tabs.wc-tabs but always open */
.wc-tabs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.wc-tabs li {
  margin: 0;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--page);
  color: var(--ink);
  position: relative;
}
.wc-tabs li::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--blue);
}
.tab-panel {
  border: 1px solid var(--line);
  border-top: 0;
  padding: 2.5em 3em;
  margin-bottom: 3em;
}

.contents { columns: 2; column-gap: 40px; }
.contents li { break-inside: avoid; }

.related { border-top: 1px solid var(--line); padding-top: 2.5em; }

/* -------------------------------------------------------------- cards */

.grid {
  display: grid;
  gap: 30px;
  margin-bottom: 2em;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  border: 1px solid var(--line);
  padding: 24px;
  background: #fff;
}
.card h3, .card h4 { font-size: 20px; margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }

.tag {
  display: inline-block;
  margin-bottom: .6em;
  padding: 2px 10px;
  border-radius: 2px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

@media (max-width: 921px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 703px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .contents { columns: 1; }
}

/* ------------------------------------------------------- Pre školy page */

.hero {
  /* the archive's offline.css substitutes this gradient for the Elementor
     hero background that was never captured — matching it keeps the page
     looking the way v2 actually renders in this repo */
  background: linear-gradient(135deg, #37485e 0%, #55677f 100%);
  color: #fff;
  padding: 64px 0;
}
.hero h1 { color: #fff; }
.hero p { color: rgba(255, 255, 255, .9); max-width: 60ch; }
.hero .button--onDark {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.hero .button--onDark:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.hero .button--outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.hero .button--outline:hover { background: #fff; color: var(--ink); }

details.faq {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
details.faq summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
  list-style-position: outside;
}
details.faq summary:hover { color: var(--blue); }
details.faq p { margin: .8em 0 0; }

.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* --------------------------------------------------------- O nás facts */

.facts { margin: 0; }
.facts > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.facts dt { color: var(--ink); }
.facts dd { margin: 0; }
@media (max-width: 703px) {
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ------------------------------------------------------------- cart page */

/* the cart table is six columns wide; on a narrow screen it scrolls inside
   this wrapper rather than pushing the whole page sideways */
.table-scroll {
  overflow-x: auto;
  margin-bottom: 2em;
  -webkit-overflow-scrolling: touch;
}

table.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}
table.shop_table th,
table.shop_table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
table.shop_table th {
  color: var(--ink);
  font-weight: 400;
  border-bottom-width: 2px;
}
table.shop_table .product-thumbnail { width: 80px; }
table.shop_table .product-thumbnail img { width: 64px; display: block; }
table.shop_table .product-price,
table.shop_table .product-subtotal { white-space: nowrap; }
table.shop_table .product-subtotal { color: var(--ink); }
table.shop_table .product-remove { width: 40px; text-align: right; }
.remove {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: var(--line);
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}
.remove:hover { background: #c0392b; color: #fff; }

.cart_totals {
  border: 1px solid var(--line);
  padding: 20px 24px;
  margin-bottom: 3em;
}
.cart_totals .totals-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 3px 0;
}
.cart_totals .totals-row + .order-total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.cart_totals .order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  color: var(--ink);
  font-size: 25px;
}
.cart_totals .order-total + p { margin: .4em 0 0; font-size: 14px; }

.cart-empty { padding: 2em 0 3em; }

/* --------------------------------------------------------------- forms */

.order-form { max-width: 760px; }

/* six columns let fields sit two or three to a row, which keeps a form this
   long from turning into one tall stack */
.form-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0 16px;
}
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }

.form-row { margin-bottom: .85em; }

.order-form label {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 14px;
}
.order-form .req { color: var(--blue); }
.order-form input[type="text"],
.order-form input[type="email"],
.order-form input[type="tel"],
.order-form select,
.order-form textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.order-form textarea { min-height: 72px; resize: vertical; }

.order-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 1.4em;
}
.order-form .consent input { margin-top: 5px; }
.order-form .consent label { margin: 0; color: var(--body); font-size: 14px; }

.honeypot { position: absolute; left: -9999px; opacity: 0; }

.form-message { padding: 12px 16px; border-radius: 2px; margin-bottom: 1.2em; }
.form-message--error { background: #fdecea; border: 1px solid #f5c6c2; color: #7d2820; }
.form-message--ok { background: #eaf6ee; border: 1px solid #b7ddc4; color: #1e5b32; }

.order-done {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  padding: 2.5em 3em;
}

/* the two shipping and the two payment choices sit side by side */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: .85em;
}
.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .2s linear;
}
.radio-option:hover { border-color: var(--blue); }
.radio-option input { margin: 3px 0 0; flex: none; }
.radio-option__body { display: block; }
.radio-option__title { display: block; color: var(--ink); font-size: 14px; line-height: 1.35; }
.radio-option__note { display: block; margin-top: 2px; font-size: 13px; color: var(--body); }
.radio-option__price { display: block; margin-top: 2px; color: var(--blue); font-size: 14px; }
.radio-option:has(input:checked) { border-color: var(--blue); background: #f2f9fd; }
.radio-option--locked { opacity: .55; cursor: not-allowed; }
.radio-option--locked:hover { border-color: var(--line); }

@media (max-width: 703px) {
  .form-grid { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4, .span-6 { grid-column: auto; }
  .radio-group { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- legal */

.legal { max-width: 80ch; }
.legal h2 {
  font-size: 25px;
  margin-top: 2em;
}
.legal h2 .num { color: var(--blue); margin-right: .4em; }
.legal ol, .legal ul { margin-bottom: 1.65em; }
.legal li { margin-bottom: .8em; }

/* -------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--rule);
  background: #fff;
  padding: 2em 0;
  text-align: center;
  line-height: 1.857;
}
.site-footer .nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer .nav-menu li { display: inline-block; margin: 0; }
.site-footer .nav-menu a { padding: 0 .5em; }
.footer-copyright { margin-top: 1em; font-size: 14px; }
.footer-copyright p { margin: 0; }

/* --------------------------------------------------------- small screens */

@media (max-width: 921px) {
  .single-product { grid-template-columns: 1fr; gap: 24px; }
  .single-product__gallery img { max-width: 300px; }
}

@media (max-width: 768px) {
  html { font-size: 85.5%; }
  h1, .entry-title, .page-title { font-size: 30px; }
  h2 { font-size: 25px; }
  h3 { font-size: 20px; }
  .content-card { padding: 2em 1.5em; }
  .tab-panel { padding: 1.5em; }
  .order-done { padding: 1.5em; }
  .site-content { padding: 2.5em 0; }
  .hero { padding: 44px 0; }
}

@media (max-width: 520px) {
  table.shop_table th,
  table.shop_table td { padding: 10px 6px; }
  table.shop_table .product-thumbnail { width: 52px; }
  table.shop_table .product-thumbnail img { width: 44px; }
}

/* ------------------------------------------------- component gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0 0 2.5em;
  padding: 0;
}
.gallery li {
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.gallery span {
  display: block;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
}

@media (max-width: 703px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 414px) { .gallery { grid-template-columns: 1fr; } }

/* ---------------------------------------------------- former-name note */

.legacy-note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  background: var(--page);
  padding: 24px 28px;
  margin: 0 0 2.5em;
}
.legacy-note h2 { font-size: 20px; margin-bottom: .5em; }
.legacy-note p:last-child { margin-bottom: 0; }
.legacy-note strong { color: var(--ink); font-weight: 600; }

@media (max-width: 768px) { .legacy-note { padding: 18px 20px; } }

/* -------------------------------------- buyer type, country, form notes */

.form-legend {
  display: block;
  margin: 1.3em 0 .5em;
  color: var(--ink);
  font-size: 16px;
}
.form-row .form-legend { margin-top: 0; }

/* two adjoining buttons, in the same shape as every other button on the site */
.segmented { display: inline-flex; flex-wrap: wrap; }
.segmented input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.segmented label {
  margin: 0;
  padding: 9px 22px;
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  transition: all .2s linear;
}
.segmented label:first-of-type { border-radius: 2px 0 0 2px; }
.segmented label:last-of-type { border-radius: 0 2px 2px 0; border-left: 0; }
.segmented label:hover { background: var(--page); }
.segmented input:checked + label {
  background: var(--blue);
  color: #fff;
}
.segmented input:checked + label:hover {
  background: var(--ink);
  border-color: var(--ink);
}
.segmented input:focus-visible + label {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.order-form select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
.order-form select:focus { outline: none; border-color: var(--blue); }

.form-note {
  border: 1px solid #f0d9a8;
  border-left: 3px solid #d9a441;
  background: #fff7e6;
  color: #6b5320;
  padding: 10px 14px;
  margin: 0 0 1em;
  font-size: 14px;
}

@media (max-width: 703px) {
  .segmented { display: flex; width: 100%; }
  .segmented label { flex: 1; padding: 10px 12px; text-align: center; }
}

.label-hint { color: var(--body); font-size: 13px; }

.field-hint {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
}

/* ------------------------------------------------------------- /ai/ ------ */
/* Most medzi natrénovaným modelom a micro:bitom. Rovnaké farby a rádiusy ako
   zvyšok webu — pribúdajú len tvary, ktoré inde nie sú: očíslované kroky,
   ukazovatele istoty a plocha s kamerou. */

.ai-steps { counter-reset: ai-step; list-style: none; margin: 0; padding: 0; }
.ai-step {
  counter-increment: ai-step;
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  padding: 28px 32px 28px 78px;
  margin-bottom: 24px;
}
.ai-step::before {
  content: counter(ai-step);
  position: absolute;
  left: 28px;
  top: 28px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  line-height: 32px;
  text-align: center;
}
.ai-step > h3 { margin-bottom: .4em; }
.ai-step > p:last-child, .ai-step > ol:last-child { margin-bottom: 0; }

.ai-shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
  margin: 1.5em 0 0;
  padding: 0;
}
.ai-shots li { margin: 0; }
.ai-shots img { border: 1px solid var(--line); display: block; width: 100%; }
.ai-shots p { margin: .6em 0 0; font-size: 13px; line-height: 1.5; }

.ai-controls { display: grid; gap: 14px; max-width: 640px; }
.ai-controls input[type="url"] {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}
.ai-controls input[type="url"]:focus { outline: none; border-color: var(--blue); }
.ai-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

#ai-port-state {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--body);
  background: var(--page);
}
#ai-port-state[data-on="1"] { border-color: var(--blue); color: var(--blue); background: #eef6fc; }

/* --- živý panel --- */

.ai-live { display: grid; grid-template-columns: 440px 1fr; gap: 30px; align-items: start; }
.ai-stage {
  width: 400px;
  height: 400px;
  max-width: 100%;
  background: var(--page);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-stage canvas, .ai-stage video { display: block; max-width: 100%; height: auto; }

.ai-meter {
  display: grid;
  grid-template-columns: 110px 1fr 46px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.ai-meter__name {
  padding: 3px 6px;
  border: 1px dashed var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ai-meter__name:hover, .ai-meter__name:focus {
  background: var(--page);
  border-color: var(--blue);
  color: var(--blue);
}
.ai-meter__bar { height: 20px; background: var(--page); border-radius: 2px; overflow: hidden; }
.ai-meter__fill { display: block; height: 100%; width: 0; background: #c8d3dc; transition: width .12s linear; }
.ai-meter[data-hit="1"] .ai-meter__fill { background: var(--blue); }
.ai-meter[data-hit="1"] .ai-meter__name { border-style: solid; border-color: var(--blue); color: var(--blue); }
.ai-meter__pct { font-size: 13px; text-align: right; }

.ai-tuning { margin: 1.6em 0; }
.ai-tuning input[type="range"] { width: 100%; accent-color: var(--blue); }
.ai-tuning label { display: block; color: var(--ink); margin-bottom: .3em; }
.ai-check { display: flex; gap: 8px; align-items: baseline; margin-top: 1em; }

#ai-log {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 14px;
  max-height: 190px;
  overflow-y: auto;
  font-size: 13px;
}
#ai-log p { margin: 0 0 .35em; line-height: 1.5; }
#ai-log strong { color: var(--ink); font-weight: 400; }

.ai-warn {
  border: 1px solid #f0d9a8;
  border-left: 3px solid #d9a441;
  background: #fff7e6;
  color: #6b5320;
  padding: 14px 18px;
  margin: 0 0 1.65em;
}
.ai-warn :last-child { margin-bottom: 0; }

@media (max-width: 921px) {
  .ai-live { grid-template-columns: 1fr; }
  .ai-shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 703px) {
  .ai-step { padding: 24px 20px 24px 20px; }
  .ai-step::before { position: static; display: block; margin-bottom: 14px; }
  .ai-stage { width: 100%; height: auto; aspect-ratio: 1; }
}

/* --------------------------------------------------------------- metodiky */

/* The PDF viewer is the browser's own; <object> falls back to <iframe> and,
   where neither renders a PDF (most phones), to the buttons below it. */
.pdf-embed {
  border: 1px solid #eaeaea;
  background: #f5f5f5;
  margin: 0 0 1.2em;
}
.pdf-embed object,
.pdf-embed iframe {
  display: block;
  width: 100%;
  height: 80vh;
  min-height: 480px;
  border: 0;
}
.pdf-actions { margin: 0 0 1.2em; }
.pdf-actions .button + .button { margin-left: 10px; }

.worksheets {
  list-style: none;
  margin: 0 0 1.65em;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 30px;
}
.worksheets li {
  border-bottom: 1px solid #eaeaea;
  padding: 9px 0;
}
.pl-num {
  display: inline-block;
  min-width: 3.6em;
  color: #0274be;
  font-weight: 600;
}

@media (max-width: 703px) {
  .worksheets { grid-template-columns: 1fr; }
  .pdf-embed object, .pdf-embed iframe { height: 60vh; min-height: 360px; }
  .pdf-actions .button { display: block; margin: 0 0 10px; text-align: center; }
  .pdf-actions .button + .button { margin-left: 0; }
}
