/* ═══════════════════════════════════════════════════════
   rucnibrouseni.cz — sdílený design systém
   Zelené schéma · DM Mono + Fraunces · 2026
═══════════════════════════════════════════════════════ */
:root {
  --ink:      #1a1614;
  --paper:    #ffffff;
  --steel:    #5a6a7a;
  --accent:   #3f8d0f;
  --accent-d: #2d6a08;
  --gold:     #a14e00;
  --rule:     #d8d4cc;
  --card:     #f4f4f2;
  --card-h:   #eaeae6;
  --faint:    #f9f9f8;
  --mono:     'DM Mono', monospace;
  --serif:    'Fraunces', Georgia, serif;
  --pad:      40px;
}
img {
  pointer-events: none
}
/* ── RESET ── */
*  { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: none; }
body { background: var(--paper); color: var(--ink); font-family: var(--mono);
       font-size: 16px; line-height: 1.75; min-height: 100vh; overflow-x: hidden; }
img  { max-width: 100%; height: auto; }

/* ── STRIPE ── */
.top-rule    { height: 4px; background: repeating-linear-gradient(90deg,
               var(--accent) 0 40px, var(--ink) 40px 44px,
               var(--gold) 44px 84px, var(--ink) 84px 88px); }
.bottom-rule { height: 3px; background: repeating-linear-gradient(90deg,
               var(--ink) 0 40px, var(--accent) 40px 44px); }

/* ── SITE HEADER ── */
.site-header { padding: 36px var(--pad) 24px; border-bottom: 1px solid var(--rule);
               display: block; grid-template-columns: 1fr auto; align-items: end;
               gap: 20px; width: 100%; max-width: 1200px;
               margin-left: auto; margin-right: auto; }
.site-title  { font-family: var(--serif); font-size: 34px; font-weight: 700;
               line-height: 1.05; letter-spacing: -0.02em; }
.site-title em { font-style: italic; font-weight: 300; color: var(--accent); }
.site-tag    { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
               color: var(--steel); margin-bottom: 10px; }
.site-meta   { font-size: 13px; color: var(--steel); text-align: right; line-height: 2; }
.site-meta a { color: var(--accent); text-decoration: none; }

/* ══════════════════════════════════════════════════════
   LAYOUT — sidebar vlevo, obsah vpravo
══════════════════════════════════════════════════════ */
.layout {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  min-height: calc(100vh - 200px);
}



/* ── MAIN CONTENT ── */
.main,
.main-content {
  padding: 44px 32px 44px var(--pad);
  min-width: 0;
  width: 100%;
  overflow-x: clip;
}

section { margin-bottom: 60px;  }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }



section[id] { scroll-margin-top: 2px; } 

/* ── MOBILE NAV — skryta na desktopu ── */
.mob-nav { display: none; }

.navbar {
  /* Základní barvy a linky */
  background-color: var(--ink);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: 5px;
  margin-bottom: 20px;

  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: hidden;
}

.navbar a {
  float: left;
  display: block;
  color: #bbb;
  text-align: center;
  padding: 8px 14px;
  text-decoration: none;
  font-size: 12px;
  transition: 0.1s ease;
}

.right {float: right;}


.iframe-kontejner {
            border: 2px solid #ccc;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        
        iframe {
            border: none; /* Odstraní výchozí ošklivý rámeček */
            display: block;
        }


.navbar a:hover { background: var(--gold);   color: #fff; }

/* Aktivní odkaz */
.navbar a.active { background: var(--accent); color: #fff; }
.navbar a.right {
  float: right;
}

/* ── SECTION HEADER ── */
.sh, .section-header { display: flex; align-items: baseline; gap: 14px;
                        margin-bottom: 22px; padding-bottom: 11px;
                        border-bottom: 1px solid var(--rule); }
.sn, .section-num    { font-size: 11px; color: var(--accent); letter-spacing: .1em;
                        flex-shrink: 0; font-family: var(--mono); }
.section-divider, .div { border: none; border-top: 1px solid var(--rule); margin: 2px 0; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--serif); font-weight: 700;
                     line-height: 1.15; letter-spacing: -.01em; text-align: left; }
h1 { font-size: 40px; margin-bottom: 20px; }
h2 { font-size: 28px; margin-bottom: 16px; }
h3 { font-size: 22px; margin-bottom: 12px; }
h4 { font-size: 18px; margin-bottom: 10px; }
h5 { font-size: 14px; color: var(--steel); font-weight: 400;
     font-style: italic; margin-bottom: 8px; font-family: var(--mono); }
.prose { color: var(--steel); line-height: 1.95; font-size: 15px;
         margin-bottom: 18px; text-align: justify; }
.prose strong { color: var(--ink); font-weight: 500; }
.cap { font-size: 14px; color: var(--steel); text-align: center;
       font-style: italic; margin-bottom: 18px; }

/* ── IMAGES ── */
.img-full { width: 100%;           display: block; margin: 18px 0 5px; }
.img-c    { max-width: min(80%,100%); display: block; margin: 18px auto 5px; }
.img-w    { max-width: min(60%,100%); display: block; margin: 18px auto 5px; }
.img-s    { max-width: min(38%,100%); display: block; margin: 18px auto 5px; }

/* ── STONE GRID ── */
.stone-grid   { display: grid; grid-template-columns: repeat(3,1fr); gap: 0;
                border: 1px solid var(--rule); border-radius: 4px;
                overflow: hidden; margin: 22px 0; }
.stone-grid-2 { grid-template-columns: repeat(2,1fr); }
.stone-cell   { padding: 24px 18px; text-align: center;
                border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stone-grid   .stone-cell:nth-child(3n)  { border-right: none; }
.stone-grid   .stone-cell:nth-child(n+4) { border-bottom: none; }
.stone-grid-2 .stone-cell:nth-child(2n)          { border-right: none; }
.stone-grid-2 .stone-cell:nth-last-child(-n+2)   { border-bottom: none; }
.stone-cell h4  { font-family: var(--serif); font-size: 16px; font-weight: 700;
                  margin-bottom: 12px; line-height: 1.2; }
.stone-cell img { display: block; max-width: 200px; max-height: 130px; width: auto;
                  height: auto; margin: 0 auto 10px; object-fit: contain; }
.stone-cell .hand { display: block; width: 60px; margin: 6px auto 8px; }
.stone-cell h5  { font-size: 13px; color: var(--steel); font-weight: 400;
                  font-style: normal; line-height: 1.75; font-family: var(--mono); }
.stone-cell h5 em, .stone-cell h5 i { font-style: italic; color: var(--ink); }

/* ── POINTING HAND ── */
.hand-link     { display: block; text-align: center; margin: 8px 0; }
.hand-link img { width: 60px; height: auto; display: inline-block; transition: transform .15s; }
.hand-link:hover img { transform: translateX(4px); }

/* ── VIDEO ── */
.vid, .video-wrap { position: relative; padding-bottom: 56.25%; margin: 18px 0 8px;
                    border-radius: 3px; overflow: hidden; }
.vid iframe, .video-wrap iframe { position: absolute; top: 0; left: 0;
                                   width: 100%; height: 100%; border: none; }

/* ── BUTTONS ── */
.btn { display: inline-block; background: var(--accent); color: #fff !important;
       padding: 10px 22px; font-family: var(--mono); font-size: 12px;
       letter-spacing: .08em; text-decoration: none; border-radius: 2px;
       border: none; cursor: pointer; transition: background .15s, box-shadow .15s;
       margin: 5px 3px 5px 0; }
.btn:hover { background: var(--accent-d); box-shadow: 0 4px 14px rgba(0,0,0,.18); }

.btn-o, .btn-outline { display: inline-block; background: transparent;
                        border: 1px solid var(--accent); color: var(--accent) !important;
                        padding: 10px 22px; font-family: var(--mono); font-size: 12px;
                        letter-spacing: .08em; text-decoration: none;
                        border-radius: 2px; transition: background .15s, color .15s;
                        margin: 5px 3px 5px 0; }
.btn-o:hover, .btn-outline:hover { background: var(--accent); color: #fff !important; }
.jump-row { margin: 24px 0; display: flex; gap: 10px; flex-wrap: wrap; }

/* ── GRIDS ── */
.cg       { display: grid; grid-template-columns: 1fr 1fr;     gap: 14px; margin: 18px 0; }
.cg-3     { grid-template-columns: 1fr 1fr 1fr; }
.card-grid { display: grid; grid-template-columns: 1fr 1fr;    gap: 14px; margin: 18px 0; }

/* ── CARD ── */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 4px;
        padding: 18px; transition: background .15s; }
.card:hover { background: var(--card-h); }
.card h3  { font-size: 17px; margin-bottom: 10px; }
.card img { width: 100%; height: auto; margin-bottom: 11px; border-radius: 2px; }
.card p   { font-size: 14px; color: var(--steel); line-height: 1.75; }

/* ── PRODUCT BLOCK ── */
.pb, .product-block { background: var(--card); border: 1px solid var(--rule);
                       border-radius: 4px; padding: 26px; margin: 22px 0; }
.pb h3, .product-block h3 { font-size: 22px; margin-bottom: 14px;
                              display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pb img, .product-block img { width: 100%; height: auto; margin: 10px 0; border-radius: 3px; }
.pb .pdesc, .product-block .product-desc,
.pb .product-desc { font-size: 14px; color: var(--steel); line-height: 1.9;
                     margin: 10px 0; text-align: justify; }

.badge, .product-badge { display: inline-block; padding: 2px 8px; border-radius: 2px;
                          font-size: 11px; font-weight: 500; letter-spacing: .07em;
                          font-family: var(--mono); background: var(--accent); color: #fff; }
.badge-b { background: #1a161422; color: var(--ink); }

/* ── HIGHLIGHT BAND ── */
.hband, .highlight-band { background: var(--card); border-top: 1px solid var(--rule);
                           border-bottom: 1px solid var(--rule);
                           padding: 18px var(--pad);
                           margin: 0 calc(-1 * var(--pad)) 26px;
                           text-align: center; }
.hband h3, .highlight-band h3 { font-size: 18px; margin-bottom: 5px; }
.hband p,  .highlight-band p  { font-size: 14px; color: var(--steel); }

/* ── CALLOUT ── */
.callout { background: #edf4e7; border-left: 3px solid var(--accent);
           padding: 14px 18px; border-radius: 0 3px 3px 0;
           margin: 18px 0; font-size: 14px; color: var(--steel); }
.callout strong { color: var(--ink); }
.callout a      { color: var(--accent); }

/* ── SPEC COMPONENTS (collapsible) ── */
.comp-grid { display: grid; gap: 2px; }
.comp-row  { display: grid; grid-template-columns: minmax(0,210px) minmax(0,1fr) auto;
             background: var(--card); border: 1px solid var(--rule); border-bottom: none;
             cursor: pointer; transition: background .15s; }
.comp-row:last-child  { border-bottom: 1px solid var(--rule); }
.comp-row:first-child { border-radius: 4px 4px 0 0; }
.comp-row:last-child  { border-radius: 0 0 4px 4px; }
.comp-row:hover       { background: var(--card-h); }
.comp-row.open        { background: #fff; }
.c-name { padding: 13px 15px; font-weight: 500; font-size: 13px; border-right: 1px solid var(--rule); }
.c-sum  { padding: 13px 15px; color: var(--steel); font-size: 13px; }
.c-tog  { padding: 13px 15px; color: var(--steel); font-size: 16px;
          border-left: 1px solid var(--rule); display: flex; align-items: center;
          transition: transform .2s; user-select: none; }
.comp-row.open .c-tog { transform: rotate(45deg); color: var(--accent); }
.c-det  { display: none; grid-column: 1/-1; padding: 15px 19px 19px;
          background: var(--faint); border-top: 1px solid var(--rule); }
.comp-row.open .c-det { display: block; }
.c-dg   { display: grid; grid-template-columns: repeat(auto-fill,minmax(170px,1fr));
          gap: 14px; margin-bottom: 11px; }
.spec-p   { display: flex; flex-direction: column; gap: 2px; }
.spec-p .k { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--steel); }
.spec-p .v { font-size: 13px; font-weight: 500; }
.c-note    { font-size: 12px; color: var(--steel); padding-top: 11px;
             border-top: 1px solid var(--rule); line-height: 1.75; }

/* ── STATS ── */
.stats  { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; margin-bottom: 36px; }
.stat   { background: var(--card); border: 1px solid var(--rule); padding: 18px; }
.stat:first-child { border-radius: 4px 0 0 4px; }
.stat:last-child  { border-radius: 0 4px 4px 0; }
.stat-v { font-family: var(--serif); font-size: 30px; font-weight: 700;
          line-height: 1; margin-bottom: 4px; }
.stat-v span { font-size: 15px; font-weight: 300; color: var(--steel); }
.stat-l { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--steel); }

/* ── TABLE ── */
table     { width: 100%; border-collapse: collapse; font-size: 13px; }
thead tr  { background: var(--ink); color: var(--paper); }
thead th  { padding: 10px 13px; text-align: left; font-weight: 500;
            font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
tbody tr  { border-bottom: 1px solid var(--rule); transition: background .1s; }
tbody tr:hover { background: var(--card); }
tbody td  { padding: 10px 13px; color: var(--steel); }
tbody td:first-child { color: var(--ink); font-weight: 500; }

/* ── TOOLTIP ── */
.tip { position: relative; display: inline-block; border-bottom: 1px dotted var(--steel); }
.tip .tiptext { visibility: hidden; width: 200px; background: var(--ink);
                color: var(--paper); font-size: 12px; text-align: center;
                border-radius: 3px; padding: 5px 9px; position: absolute;
                z-index: 10; top: -6px; left: 108%; opacity: 0; transition: opacity .15s; }
.tip:hover .tiptext { visibility: visible; opacity: 1; }

/* ── IMAGE PREVIEW (polaroid) ── */
/* Použití: <a class="btn-outline preview" ...> nebo <span class="preview"> v textu
   Uvnitř elementu vlož: <span class="preview-card"><img src="..."><span class="preview-cap">popis</span></span> */
.preview { position: relative; }
.preview-card {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) rotate(-3deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .3s cubic-bezier(.34,1.56,.64,1);
  z-index: 200;
  background: var(--paper);
  padding: 7px 7px 26px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: 0 6px 24px rgba(0,0,0,.13);
  white-space: nowrap;
}
.preview:hover .preview-card {
  opacity: 1;
  transform: translateX(-50%) translateY(0) rotate(0deg);
}
.preview-card img {
  width: 200px;
  height: 134px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.preview-cap {
  display: block;
  font-size: 11px;
  color: var(--steel);
  text-align: center;
  margin-top: 6px;
  font-family: var(--mono);
}
@media (max-width: 600px) { .preview-card { display: none; } }

/* ── PDF ── */
.pdf-e, .pdf-embed { width: 100%; height: 520px; border: 1px solid var(--rule);
                     border-radius: 3px; margin: 14px 0; }

/* ── SUPPORT ── */
.support, .support-block { background: var(--card); border: 1px solid var(--rule);
                            border-radius: 4px; padding: 26px; margin: 36px 0; text-align: center; }
.support img, .support-block img { width: 200px; margin: 14px auto 0; display: block; }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--rule); padding: 22px var(--pad);
               display: flex; justify-content: space-between; align-items: center;
               font-size: 12px; color: var(--steel); letter-spacing: .1em; width: 100%; }
.site-footer a { color: var(--accent); text-decoration: none; }

/* ── WIKI IMG ── */
.wiki-img { display: block; margin: 0 auto 10px; max-width: 200px; border: 1px solid var(--rule); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */

/* ── Pod 1100px: sidebar pryč, mob-nav se zapne ── */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }

  .sidebar,
  nav.sidebar-nav,
  .sidebar-nav-wrap { display: none; }

  .mob-nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--paper);
    border-bottom: 2px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 50;
    scrollbar-width: none;
  }
  .mob-nav::-webkit-scrollbar { display: none; }
  .mob-nav a {
    flex: 0 0 auto;
    padding: 12px 16px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--steel);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
  }
  .mob-nav a:hover  { color: var(--ink); }
  .mob-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
  .mob-nav .mob-sep { width: 1px; background: var(--rule); margin: 8px 0; flex-shrink: 0; }

  /* Section-nav sticky těsně na vrchu viewportu */
  .navbar { top: 0; }

  .main, .main-content { padding: 28px 18px; }
  .cg, .cg-3, .card-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .site-header { grid-template-columns: 1fr; }
  .site-meta { text-align: left; }
  .stone-grid { grid-template-columns: 1fr 1fr; }
  .stone-grid .stone-cell:nth-child(3n)        { border-right: 1px solid var(--rule); }
  .stone-grid .stone-cell:nth-child(2n)        { border-right: none; }
  .stone-grid .stone-cell:nth-child(n+4)       { border-bottom: 1px solid var(--rule); }
  .stone-grid .stone-cell:last-child,
  .stone-grid .stone-cell:nth-last-child(2)    { border-bottom: none; }
  .comp-row { grid-template-columns: 1fr auto; }
  .c-sum    { display: none; }
  .hband, .highlight-band { margin: 0 -18px 26px; padding: 18px; }
}

@media (max-width: 600px) {
  .img-c, .img-w, .img-s { max-width: 100%; width: 100%; }
  .stone-cell img { max-width: 140px; }
  .site-title { font-size: 28px; }
  body { font-size: 15px; }
  .prose { font-size: 15px; }
}

@media (max-width: 480px) {
  .stone-grid { grid-template-columns: 1fr; }
  .stone-grid .stone-cell { border-right: none !important; }
  .stone-grid .stone-cell:last-child { border-bottom: none; }
  .navbar a { padding: 7px 9px; font-size: 11px; }
  .stats { grid-template-columns: 1fr; }
  .pb, .product-block { padding: 16px; }
}

@media print {
  .sidebar, nav.sidebar-nav, .mob-nav, .navbar { display: none; }
  .layout { grid-template-columns: 1fr; }
  .comp-row .c-det { display: block !important; }
}
