/* kvalitnipostel.cz */
:root {
  --ink: #1d2733;
  --ink-soft: #4a5866;
  --muted: #6d7a86;
  --navy: #1f3a5f;
  --navy-2: #2c5282;
  --cream: #f8f4ee;
  --sand: #efe6d8;
  --paper: #ffffff;
  --line: #e4ddd2;
  --accent: #c8643b;
  --accent-dark: #a94f2a;
  --sage: #e6efe9;
  --sage-ink: #2f5d46;
  --warn: #fbefe3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29,39,51,.06), 0 6px 20px rgba(29,39,51,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--cream); }
img, svg { max-width: 100%; }
a { color: var(--navy-2); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--navy); letter-spacing: -.01em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 10; }

/* header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--serif); font-size: 1.35rem; white-space: nowrap; }
.logo svg { width: 34px; height: 34px; fill: var(--sand); stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; }
.logo b, .footer-logo b { color: var(--accent); font-weight: 700; }
.main-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-size: .95rem; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { background: var(--sand); color: var(--navy); }

/* hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #2b4d78 100%); color: #f3efe8; padding: 64px 0 72px; margin-bottom: 40px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.05); }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.1rem); max-width: 760px; margin: 0 0 16px; }
.hero h1 em { color: #f0b48f; font-style: italic; }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 0 28px; color: #dfe6ee; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 12px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* sections & cards */
.section-title { font-size: 1.7rem; margin: 40px 0 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card-art { height: 110px; display: flex; align-items: center; justify-content: center; background: var(--sand); }
.card-art svg, .cat-icon svg { width: 64px; height: 64px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.2rem; margin: 6px 0 8px; }
.card p { margin: 0 0 12px; color: var(--ink-soft); font-size: .95rem; }
.card-cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dark); font-weight: 600; }
.card-meta { margin-top: auto; font-size: .82rem; color: var(--muted); }
.cards-featured { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card-big .card-art { height: 150px; }
.card-big h3 { font-size: 1.4rem; }

/* category colours */
.cat-matrace .card-art, .cat-tile.cat-matrace .cat-icon, .cat-head.cat-matrace .cat-icon { background: #e3ebf5; }
.cat-rosty-postele .card-art, .cat-tile.cat-rosty-postele .cat-icon, .cat-head.cat-rosty-postele .cat-icon { background: #f1e5d6; }
.cat-polstare-prikryvky .card-art, .cat-tile.cat-polstare-prikryvky .cat-icon, .cat-head.cat-polstare-prikryvky .cat-icon { background: #ebe5f2; }
.cat-luzkoviny .card-art, .cat-tile.cat-luzkoviny .cat-icon, .cat-head.cat-luzkoviny .cat-icon { background: #f6e3dc; }
.cat-spanek .card-art, .cat-tile.cat-spanek .cat-icon, .cat-head.cat-spanek .cat-icon { background: var(--sage); }

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cat-tile { background: var(--paper); border-radius: var(--radius); padding: 18px; text-decoration: none; color: inherit; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.cat-tile strong { font-family: var(--serif); color: var(--navy); font-size: 1.15rem; }
.cat-tile span:last-child { font-size: .88rem; color: var(--ink-soft); }
.cat-tile .cat-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.cat-tile .cat-icon svg { width: 38px; height: 38px; }
.cat-head { display: flex; gap: 22px; align-items: center; margin: 10px 0 30px; }
.cat-head .cat-icon { flex: none; width: 96px; height: 96px; border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.cat-head h1 { margin: 0 0 6px; font-size: 2.3rem; }
.cat-head p { margin: 0; color: var(--ink-soft); }

.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 56px auto 20px; }
.trust > div { background: var(--paper); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.trust h2 { margin-top: 0; font-size: 1.35rem; }
.trust p { margin-bottom: 0; color: var(--ink-soft); }

/* article layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; padding-top: 24px; }
.article { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 44px 40px; margin-bottom: 30px; }
.narrow .article { margin-top: 30px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.article-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 14px; }
.perex { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 12px; }
.meta { font-size: .88rem; color: var(--muted); margin: 0; }
.disclosure { font-size: .82rem; color: var(--muted); background: var(--cream); border-radius: 8px; padding: 8px 12px; margin: 20px 0; }
.toc { background: var(--cream); border-left: 4px solid var(--navy); border-radius: 0 10px 10px 0; padding: 16px 22px 12px; margin: 22px 0 28px; }
.toc-title { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 3px 0; font-size: .95rem; }

.prose h2 { font-size: 1.7rem; margin: 2.1em 0 .6em; scroll-margin-top: 80px; }
.prose h3 { font-size: 1.25rem; margin: 1.6em 0 .4em; scroll-margin-top: 80px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 4px solid var(--sand); color: var(--ink-soft); font-style: italic; }
.prose a.aff { color: var(--accent-dark); font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 1.3em 0 1.6em; border: 1px solid var(--line); border-radius: 10px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--navy); color: #fff; font-weight: 600; }
.prose tbody tr:nth-child(even) { background: #faf8f4; }
.prose tbody tr:last-child td { border-bottom: 0; }
.faq-q { background: var(--cream); padding: 12px 16px; border-radius: 10px; font-size: 1.1rem !important; }

.note { border-radius: 12px; padding: 16px 20px 4px; margin: 1.6em 0; }
.note-title { font-weight: 700; margin-bottom: 4px; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.note-tip, .note-info { background: var(--sage); }
.note-tip .note-title, .note-info .note-title { color: var(--sage-ink); }
.note-pozor { background: var(--warn); }
.note-pozor .note-title { color: var(--accent-dark); }

.shop-box { border: 2px solid var(--sand); background: linear-gradient(180deg, #fffaf4, #fff); border-radius: var(--radius); padding: 18px 22px 20px; margin: 1.8em 0; }
.shop-box-head { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.shop-box p { margin-bottom: .7em; }
.shop-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 6px; }
.shop-btn { display: flex; flex-direction: column; gap: 2px; background: var(--accent); color: #fff !important; text-decoration: none; border-radius: 10px; padding: 11px 16px; transition: background .15s; }
.shop-btn:hover { background: var(--accent-dark); }
.shop-btn-label { font-weight: 700; }
.shop-btn-shop { font-size: .82rem; opacity: .9; }

/* sidebar */
.sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }
.side-box { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.side-box h2 { font-size: 1.1rem; margin: 0 0 10px; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .93rem; line-height: 1.4; }
.side-box li:last-child { border-bottom: 0; }
.side-box a { text-decoration: none; }
.side-box a:hover { text-decoration: underline; }
.related { margin-bottom: 50px; }
.related h2 { font-size: 1.6rem; }

/* ads */
.ad { margin: 1.8em 0; text-align: center; min-height: 100px; }
.ad-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.ad-preview { background: repeating-linear-gradient(45deg, #f2f2f2, #f2f2f2 10px, #e9e9e9 10px, #e9e9e9 20px); color: #888; display: flex; align-items: center; justify-content: center; border-radius: 10px; min-height: 250px; font-size: .9rem; }

/* footer */
.site-footer { background: var(--navy); color: #cfd8e3; margin-top: 40px; padding: 44px 0 20px; font-size: .93rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.site-footer h2 { color: #fff; font-family: var(--font); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #cfd8e3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-logo { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin: 0 0 8px; }
.footer-logo b { color: #f0b48f; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .8rem; color: #9fb0c3; }

/* responsive */
@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article, .sidebar { min-width: 0; }
  .sidebar { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 14px; }
  .header-inner { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding-top: 10px; }
  .logo { justify-content: center; }
  .main-nav { padding: 8px 0; margin: 0 -14px; padding-left: 14px; }
  .site-header { position: static; }
  .hero { padding: 40px 0 46px; margin-bottom: 20px; }
  .article { padding: 22px 18px 26px; border-radius: 10px; margin-left: -6px; margin-right: -6px; }
  .trust, .footer-inner { grid-template-columns: 1fr; }
  .cat-head { flex-direction: column; align-items: flex-start; }
  .prose h2 { font-size: 1.45rem; }
  .cards, .cards-featured { grid-template-columns: 1fr; }
}

/* produktové boxy z feedu */
.products { margin: 2em 0; padding: 20px 22px 14px; background: #fbf8f3; border: 1px solid var(--line); border-radius: var(--radius); }
.products-head { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.products-text { margin: 0 0 12px !important; color: var(--ink-soft); font-size: .95rem; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 12px; }
.pc { background: #fff; border-radius: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.pc-img { display: block; aspect-ratio: 4 / 3; background: #fff; padding: 10px; }
.pc-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pc-body { padding: 10px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.pc-name { font-weight: 700; color: var(--navy) !important; text-decoration: none; line-height: 1.3; font-size: .98rem; }
.pc-name:hover { text-decoration: underline; }
.prose .pc-specs { list-style: none; padding: 0; margin: 8px 0 10px; font-size: .82rem; color: var(--ink-soft); }
.prose .pc-specs li { margin: 2px 0; }
.pc-specs span { color: var(--muted); }
.pc-price { margin-top: auto; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.pc-size { font-size: .78rem; font-weight: 400; color: var(--muted); }
.pc-btn { margin-top: 8px; display: block; text-align: center; background: var(--accent); color: #fff !important; text-decoration: none; border-radius: 8px; padding: 8px 10px; font-weight: 600; font-size: .9rem; }
.pc-btn:hover { background: var(--accent-dark); }
.products-note { font-size: .75rem !important; color: var(--muted); margin: 12px 0 0 !important; }
@media (max-width: 720px) {
  .products { padding: 16px 14px 10px; margin-left: -4px; margin-right: -4px; }
  .pc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pc-body { padding: 8px 10px 12px; }
  .pc-btn { font-size: .82rem; }
}
