/* ─────────────────────────────────────────────────────────────────
   blog-article-base-v3.css  –  AAA Radiátory blog šablona (v3)
   Vizuálně zarovnáno s Macaly designem.
   Prefix: as3-
   ───────────────────────────────────────────────────────────────── */

:root {
  /* Barvy – blízko Macaly CSS proměnných */
  --as3-bg:              #f5f7fa;        /* bg-background */
  --as3-surface:         #ffffff;        /* bg-card */
  --as3-surface-muted:   #f1f5f9;        /* bg-muted */
  --as3-surface-accent:  #edf5e8;        /* bg-accent  (hsl 100 30% 94%) */
  --as3-text:            #1e2a38;        /* text-foreground */
  --as3-text-soft:       #64748b;        /* text-muted-foreground */
  --as3-border:          #dce4ed;        /* border */
  --as3-primary:         #5f9f23;        /* text-primary / bg-primary */
  --as3-primary-dark:    #4d861c;
  --as3-primary-fg:      #ffffff;        /* text-primary-foreground */
  --as3-secondary:       #1e78d7;

  /* Poloměry – Macaly používá rounded-xl = 12px konzistentně */
  --as3-radius-xl:  12px;
  --as3-radius-lg:  12px;
  --as3-radius-md:  10px;
  --as3-radius-sm:   8px;

  /* Stíny */
  --as3-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);

  /* Layout */
  --as3-max:  1160px;
  --as3-copy:  760px;
}

/* ── Základ ─────────────────────────────────────────────────────── */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--as3-bg);
  color: var(--as3-text);
  font-family: Arial, sans-serif;
  line-height: 1.7;
}

.as3-page,
.as3-page * { box-sizing: border-box; }

.as3-page { min-height: 100vh; }

.as3-wrap {
  max-width: var(--as3-max);
  margin: 0 auto;
  padding: 0 24px 72px;
}

/* ── Drobečková navigace ─────────────────────────────────────────── */

.as3-breadcrumbs {
  padding-top: 16px;
  margin-bottom: 20px;
  color: var(--as3-text-soft);
  font-size: 0.9rem;
}

.as3-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.as3-breadcrumbs a {
  color: var(--as3-text-soft);
  text-decoration: none;
  transition: color 0.15s;
}

.as3-breadcrumbs a:hover { color: var(--as3-text); }

/* ── Hero – flat, bez card boxu ──────────────────────────────────── */
/*
   HTML vzor:
   <header class="as3-hero">
     <div class="as3-hero-copy">
       <span class="as3-kicker">Rádce</span>
       <h1>...</h1>
       <p class="as3-hero-lead">...</p>
       <div class="as3-meta">...</div>
     </div>
   </header>
   <div class="as3-hero-image">
     <img src="..." alt="...">
   </div>
*/

.as3-hero {
  padding-bottom: 24px;
}

.as3-hero-copy {
  max-width: 780px;
}

.as3-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--as3-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.as3-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--as3-text);
}

.as3-hero-lead {
  margin: 0 0 12px;
  color: var(--as3-text-soft);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 680px;
}

.as3-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  color: var(--as3-text-soft);
  font-size: 0.9rem;
}

.as3-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Obrázek pod hero textem – plná šířka, zaoblené rohy */
.as3-hero-image {
  margin-bottom: 32px;
  border-radius: var(--as3-radius-xl);
  overflow: hidden;
}

.as3-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

/* ── Grid: hlavní obsah + sidebar ────────────────────────────────── */

.as3-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
}

.as3-main { min-width: 0; }

/* ── Mobilní obsah ───────────────────────────────────────────────── */

.as3-mobile-toc {
  display: none;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--as3-surface-accent);
  border-radius: var(--as3-radius-xl);
}

.as3-mobile-toc h3 {
  margin: 0 0 12px;
  color: var(--as3-text-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.as3-mobile-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.as3-mobile-toc li + li { margin-top: 2px; }

.as3-mobile-toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--as3-text-soft);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.15s;
}

.as3-mobile-toc a:hover { color: var(--as3-primary); }

/* ── Intro CTA – zelený pruh pod hero ───────────────────────────── */

.as3-intro-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: var(--as3-surface-accent);
  border-radius: var(--as3-radius-xl);
}

.as3-intro-cta p {
  margin: 0;
  font-weight: 600;
  color: var(--as3-text);
  flex: 1 1 auto;
}

.as3-intro-cta .as3-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ── Článkový obsah ──────────────────────────────────────────────── */

.as3-article { color: var(--as3-text); }

.as3-article section { margin-bottom: 48px; }

.as3-article h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--as3-text);
}

.as3-num {
  color: var(--as3-primary);
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.as3-article h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--as3-text);
}

.as3-article p,
.as3-article ul,
.as3-article ol {
  margin: 0 0 16px;
  color: var(--as3-text-soft);
}

.as3-article ul,
.as3-article ol { padding-left: 22px; }

.as3-article strong { color: var(--as3-text); }

.as3-article a {
  color: var(--as3-secondary);
  text-decoration: none;
}

.as3-article a:hover { text-decoration: underline; }

/* ── Fancy list – Macaly pattern: tečka + tučný název + popis ────── */
/*
   HTML vzor:
   <ul class="as3-fancy-list">
     <li>
       <strong>Deskové radiátory</strong>
       <span> — nejčastější volba díky skvělému poměru cena/výkon.</span>
     </li>
   </ul>
*/

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

.as3-fancy-list li {
  display: flex;
  gap: 12px;
}

.as3-fancy-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--as3-primary);
}

.as3-fancy-list strong { color: var(--as3-text); }

.as3-fancy-list span { color: var(--as3-text-soft); }

/* ── Panel / info box ────────────────────────────────────────────── */

.as3-panel {
  margin-bottom: 24px;
  padding: 20px 24px;
  background: var(--as3-surface-accent);
  border-radius: var(--as3-radius-xl);
}

.as3-panel p:last-child,
.as3-panel ul:last-child { margin-bottom: 0; }

/* ── Highlight card – zelený tinted box (pro tipy / výhody) ─────── */
/*
   HTML vzor:
   <div class="as3-highlight-card">
     <h3>Hliníkové radiátory</h3>
     <p>Skvělá volba, protože hliník vede teplo rychleji...</p>
   </div>
*/

.as3-highlight-card {
  margin-bottom: 24px;
  padding: 20px 24px;
  background: var(--as3-surface-accent);
  border: 1px solid rgba(95, 159, 35, 0.15);
  border-radius: var(--as3-radius-xl);
}

.as3-highlight-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--as3-text);
  font-size: 1.05rem;
  font-weight: 600;
}

.as3-highlight-card p:last-child { margin-bottom: 0; }

/* ── Karta se dvěma sloupci ──────────────────────────────────────── */

.as3-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

/* ── Karta – základní ────────────────────────────────────────────── */

.as3-card {
  border: 1px solid var(--as3-border);
  border-radius: var(--as3-radius-xl);
  background: var(--as3-surface);
  padding: 20px;
}

.as3-card p:last-child { margin-bottom: 0; }

/* ── Icon card – karta s ikonkou v barevném boxu ────────────────── */
/*
   HTML vzor:
   <div class="as3-icon-card">
     <div class="as3-icon-box">
       <svg .../>
     </div>
     <h3>Nízké radiátory</h3>
     <p>Modely s výškou pouhých 200 mm...</p>
   </div>
*/

.as3-icon-card {
  border: 1px solid var(--as3-border);
  border-radius: var(--as3-radius-xl);
  background: var(--as3-surface);
  padding: 20px;
}

.as3-icon-card p:last-child { margin-bottom: 0; }

.as3-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: var(--as3-radius-md);
  background: var(--as3-surface-accent);
  color: var(--as3-primary);
  flex-shrink: 0;
}

/* ── Poznámka / varování ─────────────────────────────────────────── */

.as3-note {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-left: 4px solid #d92d20;
  border-radius: var(--as3-radius-sm);
  background: #fff7f7;
  color: #7e2030;
}

.as3-note p:last-child { margin-bottom: 0; }

/* ── Kroky (číslovaný seznam) ────────────────────────────────────── */

.as3-steps {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: as3-step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.as3-steps li {
  position: relative;
  padding: 18px 18px 18px 64px;
  border: 1px solid var(--as3-border);
  border-radius: var(--as3-radius-xl);
  background: var(--as3-surface);
  color: var(--as3-text-soft);
}

.as3-steps li::before {
  counter-increment: as3-step;
  content: counter(as3-step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--as3-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}

/* ── Video embed ─────────────────────────────────────────────────── */
/*
   HTML vzor (Macaly styl – s titulkem nad videem):
   <div class="as3-video-card">
     <div class="as3-video-card-head">
       <h3>Rozdíly mezi typy 11, 22 a 33</h3>
       <p>Podívejte se na naše video...</p>
     </div>
     <div class="as3-video-embed">
       <iframe src="..."></iframe>
     </div>
   </div>

   Nebo jen samotný embed:
   <div class="as3-video-embed">
     <iframe src="..."></iframe>
   </div>
*/

.as3-video-card {
  margin-bottom: 20px;
  border: 1px solid var(--as3-border);
  border-radius: var(--as3-radius-xl);
  background: var(--as3-surface);
  overflow: hidden;
}

.as3-video-card-head {
  padding: 20px 20px 0;
}

.as3-video-card-head h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--as3-text);
}

.as3-video-card-head p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--as3-text-soft);
}

.as3-video-embed {
  position: relative;
  overflow: hidden;
  background: #000;
}

/* standalone (bez .as3-video-card) */
.as3-article > .as3-video-embed,
.as3-article section > .as3-video-embed {
  border: 1px solid var(--as3-border);
  border-radius: var(--as3-radius-xl);
  margin: 0 0 20px;
}

.as3-video-embed::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.as3-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Tabulka ─────────────────────────────────────────────────────── */

.as3-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
}

.as3-article table,
.as3-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.as3-article th,
.as3-article td,
.as3-table-wrap th,
.as3-table-wrap td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

.as3-article thead th,
.as3-table-wrap thead th {
  background: var(--as3-primary);
  color: #fff;
  font-weight: 600;
}

/* zaoblení rohů tabulky */
.as3-article thead th:first-child,
.as3-table-wrap thead th:first-child { border-radius: var(--as3-radius-sm) 0 0 0; }

.as3-article thead th:last-child,
.as3-table-wrap thead th:last-child { border-radius: 0 var(--as3-radius-sm) 0 0; }

.as3-article tbody tr { border-bottom: 1px solid var(--as3-border); }

.as3-article tbody tr:nth-child(odd)  td { background: var(--as3-surface); }
.as3-article tbody tr:nth-child(even) td { background: rgba(95, 159, 35, 0.04); }

/* ── CTA pás (zelený s avatarem) ─────────────────────────────────── */
/*
   HTML vzor:
   <div class="as3-cta-band">
     <div class="as3-cta-band-inner">
       <div class="as3-avatar"><img src="..." alt="..."></div>
       <div>
         <p class="as3-cta-label">Konzultace s odborníkem</p>
         <h2>Potřebujete poradit?</h2>
         <p>...</p>
         <div class="as3-button-row">
           <a href="#" class="as3-button">Kontaktovat nás</a>
         </div>
       </div>
     </div>
   </div>
*/

.as3-cta-band {
  background: var(--as3-primary);
  color: #fff;
  padding: 36px 36px;
  border-radius: var(--as3-radius-xl);
  margin-bottom: 48px;
}

.as3-cta-band h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  color: #fff;
}

.as3-cta-band p { color: rgba(255, 255, 255, 0.85); }

.as3-cta-band-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.as3-avatar {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
  background: #d4f0bf;
}

.as3-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.as3-cta-label {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.as3-cta-band .as3-button {
  background: #fff;
  color: var(--as3-primary-dark);
}

.as3-cta-band .as3-button:hover { background: #f3f8ed; }

.as3-cta-band .as3-button-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.as3-cta-band .as3-button-ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* ── FAQ ─────────────────────────────────────────────────────────── */

.as3-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.as3-faq-item {
  border: 1px solid var(--as3-border);
  border-radius: var(--as3-radius-xl);
  background: var(--as3-surface);
  overflow: hidden;
}

.as3-faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 18px 20px;
  text-align: left;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--as3-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.as3-faq-question:hover { background: rgba(95, 159, 35, 0.04); }

.as3-faq-question::after {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--as3-text-soft);
  border-bottom: 2px solid var(--as3-text-soft);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.as3-faq-item.is-open .as3-faq-question::after { transform: rotate(-135deg); }

.as3-faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--as3-text-soft);
  font-size: 0.93rem;
  line-height: 1.65;
}

.as3-faq-item.is-open .as3-faq-answer { display: block; }

/* ── Spodní CTA ──────────────────────────────────────────────────── */

.as3-bottom-cta {
  text-align: center;
  padding: 36px 32px;
  background: var(--as3-surface-accent);
  border-radius: var(--as3-radius-xl);
  margin-bottom: 32px;
}

.as3-bottom-cta h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: var(--as3-text);
}

.as3-bottom-cta p {
  margin: 0 0 20px;
  color: var(--as3-text-soft);
}

/* ── Tlačítka ────────────────────────────────────────────────────── */

.as3-button,
.as3-button-secondary,
.as3-button-ghost,
.as3-button-ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--as3-radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}

.as3-button {
  background: var(--as3-primary);
  color: #fff;
}

.as3-button:hover { opacity: 0.9; }

.as3-button-secondary {
  background: #fff;
  color: var(--as3-primary);
  border: 1px solid rgba(95, 159, 35, 0.3);
}

.as3-button-secondary:hover {
  border-color: rgba(95, 159, 35, 0.5);
  background: #f9fdf6;
}

.as3-button-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
}

.as3-button-ghost:hover { background: rgba(255, 255, 255, 0.18); }

.as3-button-ghost-dark {
  background: #fff;
  color: var(--as3-text-soft);
  border: 1px solid rgba(95, 159, 35, 0.24);
}

.as3-button-ghost-dark:hover {
  border-color: rgba(95, 159, 35, 0.42);
  background: #f9fdf6;
}

.as3-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

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

.as3-sidebar { display: block; }

.as3-sidebar-inner {
  position: sticky;
  top: 112px;   /* ~7rem, pod případnou sticky hlavičkou */
}

.as3-sidebar-toc-label {
  display: block;
  margin-bottom: 14px;
  color: var(--as3-text-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.as3-sidebar nav { margin-bottom: 24px; }

.as3-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.as3-sidebar li + li { margin-top: 2px; }

.as3-sidebar a {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 2px solid transparent;
  color: var(--as3-text-soft);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.as3-sidebar a:hover {
  color: var(--as3-primary);
  border-left-color: var(--as3-primary);
}

.as3-sidebar a.is-active {
  color: var(--as3-primary);
  border-left-color: var(--as3-primary);
  font-weight: 600;
}

/* Sidebar CTA box */
.as3-sidebar-cta {
  margin-top: 24px;
  padding: 16px;
  background: var(--as3-surface-accent);
  border-radius: var(--as3-radius-xl);
}

.as3-sidebar-cta p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--as3-text);
  line-height: 1.45;
}

.as3-sidebar-cta .as3-text-soft {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--as3-text-soft);
  margin-bottom: 12px;
}

.as3-sidebar-cta .as3-button {
  display: flex;
  font-size: 0.82rem;
  min-height: 36px;
  padding: 0 14px;
}

/* ── Doporučené články ───────────────────────────────────────────── */

.as3-related {
  background: var(--as3-surface);
  border-top: 1px solid var(--as3-border);
  padding: 48px 0;
}

.as3-related-inner {
  max-width: var(--as3-max);
  margin: 0 auto;
  padding: 0 24px;
}

.as3-related h2 {
  margin: 0 0 24px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--as3-text);
}

.as3-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.as3-related-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--as3-border);
  border-radius: var(--as3-radius-xl);
  background: var(--as3-bg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.as3-related-card:hover {
  border-color: rgba(95, 159, 35, 0.35);
  box-shadow: var(--as3-shadow-sm);
}

.as3-related-card time {
  color: var(--as3-text-soft);
  font-size: 0.82rem;
}

.as3-related-card h3 {
  margin: 8px 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--as3-text);
  line-height: 1.4;
  transition: color 0.15s;
}

.as3-related-card:hover h3 { color: var(--as3-primary); }

.as3-related-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--as3-text-soft);
}

/* ── Text + obrázek vedle sebe ───────────────────────────────────── */
/*
   HTML vzor:
   <div class="as3-text-image">
     <div class="as3-text-image-copy">text...</div>
     <div class="as3-text-image-visual"><img ...></div>
   </div>
*/

.as3-text-image {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
  margin-bottom: 24px;
}

.as3-text-image-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--as3-radius-xl);
  object-fit: cover;
}

@media (max-width: 720px) {
  .as3-text-image {
    grid-template-columns: 1fr;
  }
}

/* ── Media card grid (3 sloupce s obrázkem) ─────────────────────── */
/*
   HTML vzor:
   <div class="as3-media-grid">
     <div class="as3-media-card">
       <img src="..." alt="...">
       <h3>Teplovodní provoz</h3>
       <p>Klasická varianta napojená na otopnou soustavu.</p>
     </div>
   </div>
*/

.as3-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.as3-media-card {
  border: 1px solid var(--as3-border);
  border-radius: var(--as3-radius-xl);
  background: var(--as3-surface);
  overflow: hidden;
}

.as3-media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.as3-media-card h3 {
  margin: 14px 18px 6px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--as3-text);
}

.as3-media-card p {
  margin: 0 18px 16px;
  font-size: 0.88rem;
  color: var(--as3-text-soft);
  line-height: 1.55;
}

/* Sidebar tlačítka */
.as3-sidebar-cta .as3-button-row {
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.as3-sidebar-cta .as3-button-row .as3-button,
.as3-sidebar-cta .as3-button-row .as3-button-secondary {
  display: flex;
  width: 100%;
  min-height: 38px;
  font-size: 0.85rem;
}

/* ── Responzivní breakpointy ─────────────────────────────────────── */

@media (max-width: 980px) {
  .as3-content-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .as3-sidebar { display: none; }

  .as3-mobile-toc { display: block; }

  .as3-related-grid,
  .as3-card-grid,
  .as3-media-grid { grid-template-columns: 1fr; }

  .as3-cta-band-inner { align-items: flex-start; }
}

@media (max-width: 640px) {
  .as3-wrap { padding: 0 16px 56px; }

  .as3-related-inner { padding: 0 16px; }

  .as3-hero h1 { font-size: 1.75rem; }

  .as3-intro-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .as3-intro-cta .as3-button { width: 100%; }

  .as3-cta-band {
    padding: 24px 20px;
  }

  .as3-cta-band-inner {
    flex-direction: column;
    gap: 16px;
  }

  .as3-bottom-cta { padding: 28px 20px; }

  .as3-related-grid { grid-template-columns: 1fr; }
}
