/*
 Theme Name:   GeneratePress Child TOMÁŠ DRAGON
 Template:     generatepress
 Description:  Prémiový design systém značky TOMÁŠ DRAGON (GeneratePress + GenerateBlocks 2 + WooCommerce)
 Author:       DRAGON solutions s.r.o.
 Version:      2.0.0
 Text Domain:  td
*/

/* =====================================================================
   TOMÁŠ DRAGON design system 2.0 · editorial premium
   Paleta: papír, kost, inkoust a bronz. Písma: Instrument Serif (nadpisy),
   Inter Tight (text). Ostré hrany, tenké linky, velké fotky, hodně vzduchu.
   00 Písma                06 Karty a mřížky       12 WooCommerce: výpis
   01 Tokeny               07 Seznamy, kroky, FAQ  13 WooCommerce: produkt
   02 Základ               08 Galerie, reference   14 Košík a pokladna
   03 Hlavička a menu      09 Formuláře (CF7)      15 Patička
   04 Sekce a typografie   10 Lišta                16 Responzivita
   05 Tlačítka             11 Hero a editorial     17 Omezený pohyb
   ===================================================================== */

/* 00 Písma (lokálně, SIL OFL 1.1) ------------------------------------- */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-tight-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-tight-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Náhradní písma se stejnými rozměry: text při načítání neposkočí a nikdy se neukáže výchozí patkové písmo prohlížeče. */
@font-face { font-family: "TD Serif Fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"); size-adjust: 84.64%; ascent-override: 116.96%; descent-override: 36.62%; line-gap-override: 0%; }
@font-face { font-family: "TD Sans Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); size-adjust: 96.96%; ascent-override: 99.91%; descent-override: 24.88%; line-gap-override: 0%; }

/* 01 Tokeny ----------------------------------------------------------- */
:root {
  --td-ink: #151311;          /* text, tlačítka, tmavé sekce */
  --td-ink-2: #3e3a35;        /* běžný text */
  --td-muted: #6b625a;        /* popisky: 5,2:1 na kosti, 4,6:1 na kameni (WCAG AA) */
  --td-line: #e3ddd4;         /* tenké linky */
  --td-paper: #fbfaf7;        /* pozadí webu */
  --td-bone: #f2eee7;         /* tónované sekce */
  --td-stone: #e8e2d8;        /* pozadí fotek */
  --td-bronze: #7a5b3b;       /* jediný akcent: kurzíva v nadpisech a nadtitulcích, 5,4:1 na kosti */
  --td-white: #ffffff;
  --td-ok: #4d6b4f;

  /* Aliasy z verze 1 (používají je šablony WooCommerce, blog a texty) */
  --td-brown: var(--td-ink);
  --td-brown-dark: #000000;
  --td-orange: var(--td-bronze);
  --td-orange-soft: #efe7dc;
  --td-sand: var(--td-bone);
  --td-sand-2: var(--td-stone);

  --td-font-head: "Instrument Serif", "TD Serif Fallback", Georgia, "Times New Roman", serif;
  --td-font-body: "Inter Tight", "TD Sans Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --td-wrap: 1320px;
  --td-text: 700px;
  --td-px: clamp(20px, 4vw, 56px);
  --td-py: clamp(72px, 40px + 7vw, 152px);
  --td-gap: clamp(16px, 2vw, 32px);
  --td-stack: clamp(36px, 20px + 3vw, 72px);
  --td-r: 2px;
  --td-r-lg: 2px;
  --td-ease: cubic-bezier(.22, 1, .36, 1);
}

/* 02 Základ ----------------------------------------------------------- */
body { font-family: var(--td-font-body); color: var(--td-ink-2); background: var(--td-paper); font-size: 16px; line-height: 1.7; letter-spacing: .005em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .site-title, .woocommerce-loop-product__title, .product_title { font-family: var(--td-font-head); font-weight: 400; color: var(--td-ink); letter-spacing: -.01em; line-height: 1.05; }
h1 em, h2 em, h3 em { font-style: italic; }
a { color: var(--td-ink); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--td-bronze); }
/* Focus: 2px linka v barvě textu, na tmavých plochách světlá (kontrast nad 3:1 všude) */
:focus-visible { outline: 2px solid var(--td-ink); outline-offset: 3px; }
:is(.td-sec--dark, .td-hero--full, .td-footer, .td-topbar) :focus-visible { outline-color: var(--td-paper); }
::selection { background: var(--td-ink); color: var(--td-paper); }
img { max-width: 100%; height: auto; }
.td-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.separate-containers .inside-article, .one-container .site-content, .one-container .container { padding: 0; background: transparent; }
.site, .site-content, .inside-article { background: transparent; }
.page .entry-content > :first-child, .page .site-main { margin-top: 0; }

/* 03 Hlavička a menu -------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--td-line); background: var(--td-paper); }
.site-header .inside-header { padding-block: 16px; max-width: var(--td-wrap); padding-inline: var(--td-px); }
.site-logo img, .header-image { height: 46px; width: auto; }
.site-logo a { display: inline-flex; align-items: center; min-height: 48px; }
.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a { font-family: var(--td-font-body); font-weight: 500; font-size: 15px; letter-spacing: .01em; color: var(--td-ink); padding-inline: 16px; }
.main-navigation .main-nav ul li:hover > a, .main-navigation .main-nav ul li.current-menu-item > a, .main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--td-bronze); background-color: transparent; }
.menu-toggle, .menu-toggle:hover, .menu-toggle:focus, .main-navigation .menu-toggle { color: var(--td-ink); background: transparent; font-family: var(--td-font-body); font-weight: 500; font-size: 15px; }
.main-navigation.toggled .main-nav > ul { background: var(--td-paper); border-top: 1px solid var(--td-line); }
.main-navigation ul ul { background: var(--td-paper); border: 1px solid var(--td-line); box-shadow: 0 24px 48px rgba(21, 19, 17, .08); border-radius: 0; padding: 10px 0; }
.main-navigation .main-nav ul ul li a { font-size: 14.5px; padding-block: 12px; }
.wc-menu-item .cart-contents, .main-navigation .menu-bar-item > a { color: var(--td-ink); }
.wc-menu-item .number-of-items, .cart-contents > .number-of-items { background: var(--td-ink); color: var(--td-paper); border-radius: 99px; font-size: 10px; }

/* 04 Sekce a typografie ----------------------------------------------- */
.td-sec { padding: var(--td-py) var(--td-px); position: relative; }
.td-sec--tint { background: var(--td-bone); }
.td-sec--sand { background: var(--td-stone); }
.td-sec--dark { background: var(--td-ink); color: rgba(251, 250, 247, .74); }
.td-sec--dark :is(h1, h2, h3, h4, strong) { color: var(--td-paper); }
.td-sec--dark a:not(.td-btn) { color: var(--td-paper); }
.td-sec--tight { padding-block: clamp(40px, 5vw, 72px); }
.td-sec:not([class*="--"]) + .td-sec:not([class*="--"]) { padding-top: 0; }
.td-sec__inner { max-width: var(--td-wrap); margin-inline: auto; }
.td-sec__inner--text { max-width: var(--td-text); }
.td-sec__inner.td-sec__inner--text > p + p { margin-top: 1em; }
.td-sec__inner.td-sec__inner > .td-eyebrow + * { margin-top: 18px; }
.td-sec__inner > * { margin-top: 0; margin-bottom: 0; }
.td-sec__inner.td-sec__inner > * + * { margin-top: var(--td-stack); }
.td-sec h1 { font-size: clamp(2.8rem, 1.6rem + 5vw, 6.2rem); text-wrap: balance; margin: 0; }
.td-sec h2 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4.2rem); text-wrap: balance; margin: 0; }
.td-sec h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); margin: 0; }
.td-sec p { margin: 0; }
.td-sec p + p { margin-top: 12px; }
/* Motiv značky: kurzíva Instrument Serif v bronzu. Stejný hlas nese důraz v nadpisech (em), nadtitulky, čísla kroků i názvy sloupců patičky. */
.td-eyebrow { display: inline-block; font-family: var(--td-font-head); font-style: italic; font-size: clamp(1.1rem, 1rem + .3vw, 1.3rem); line-height: 1.2; font-weight: 400; letter-spacing: 0; color: var(--td-bronze); }
.td-sec--dark .td-eyebrow { color: #c9ad86; }
.td-lead { font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); line-height: 1.6; color: var(--td-ink-2); max-width: 56ch; }
.td-sec--dark .td-lead { color: rgba(251, 250, 247, .74); }
.td-muted { color: var(--td-muted); font-size: 14px; }
.td-head { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.td-head > * { margin: 0 !important; }
.td-head--center { margin-inline: auto; text-align: center; align-items: center; }
.td-stack { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.td-stack > * { margin: 0 !important; }

/* 05 Tlačítka --------------------------------------------------------- */
.td-btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .wpcf7-submit, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 32px;
  border-radius: 0; border: 1px solid var(--td-ink); background: var(--td-ink); color: var(--td-paper) !important;
  font-family: var(--td-font-body); font-size: 15px; font-weight: 500; letter-spacing: .01em; line-height: 1;
  text-decoration: none !important; cursor: pointer; transition: background .3s var(--td-ease), border-color .3s, color .3s;
}
.td-btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .wpcf7-submit:hover, .button:hover { background: transparent; border-color: var(--td-ink); color: var(--td-ink) !important; }
.td-btn--secondary, .woocommerce a.button.td-btn--secondary { background: transparent; color: var(--td-ink) !important; border-color: var(--td-ink); }
.td-btn--secondary:hover { background: var(--td-ink); color: var(--td-paper) !important; }
.td-sec--dark .td-btn, .td-hero--full .td-btn { background: var(--td-paper); border-color: var(--td-paper); color: var(--td-ink) !important; }
.td-sec--dark .td-btn:hover, .td-hero--full .td-btn:hover { background: transparent; color: var(--td-paper) !important; }
.td-sec--dark .td-btn--secondary, .td-hero--full .td-btn--secondary { background: transparent; color: var(--td-paper) !important; border-color: rgba(251, 250, 247, .55); }
.td-sec--dark .td-btn--secondary:hover, .td-hero--full .td-btn--secondary:hover { background: var(--td-paper); border-color: var(--td-paper); color: var(--td-ink) !important; }
.woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce #place_order { background: var(--td-ink); border-color: var(--td-ink); color: var(--td-paper) !important; }
.woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover, .woocommerce #place_order:hover { background: #000; border-color: #000; color: var(--td-paper) !important; }
.woocommerce .button:disabled, .woocommerce button.button.disabled { opacity: .45; }
/* Textový odkaz: podtržení stačí, šipku nese jen dlaždice kategorie (celá karta je odkaz bez tlačítka). Výška 44 px kvůli dotyku. */
.td-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: 15px; color: var(--td-ink); text-decoration: underline !important; text-decoration-thickness: 1px !important; text-underline-offset: 6px; }
.td-more:hover { color: var(--td-bronze); }
.td-sec--dark .td-more { color: var(--td-paper); }
.td-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.td-row:has(> .td-head) { justify-content: space-between; align-items: flex-end; }
.td-row--center { justify-content: center; }

/* 06 Karty a mřížky --------------------------------------------------- */
.td-g2, .td-g3, .td-g4 { display: grid; gap: var(--td-gap); }
.td-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.td-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.td-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.td-g2 > *, .td-g3 > *, .td-g4 > * { margin: 0 !important; min-width: 0; }
.td-card { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 2.4vw, 36px) 0 0; background: transparent; border: 0; border-top: 1px solid var(--td-ink); border-radius: 0; }
.td-card > * { margin: 0 !important; }
.td-card p { color: var(--td-ink-2); font-size: 15px; }
.td-card .td-more, .td-card .td-btn { margin-top: auto !important; align-self: flex-start; }
.td-sec--dark .td-card { border-top-color: rgba(251, 250, 247, .3); }
.td-card__num { font-family: var(--td-font-head); font-style: italic; font-size: 1.5rem; color: var(--td-bronze); line-height: 1; }
.td-usp { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--td-line); }
.td-usp > * { margin: 0 !important; }
.td-usp h3 { font-size: 1.5rem !important; }
.td-usp p { font-size: 14.5px; color: var(--td-muted); max-width: 32ch; }

/* Dlaždice kategorií: fotka, pod ní název */
.td-tile { position: relative; display: flex; flex-direction: column; gap: 16px; text-decoration: none !important; color: var(--td-ink); }
.td-tile .td-tile__img { position: relative !important; margin: 0 !important; overflow: hidden; background: var(--td-stone); aspect-ratio: 4 / 5; }
.td-tile .td-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--td-ease); }
.td-tile:hover .td-tile__img img { transform: scale(1.035); }
.td-tile__label { position: static !important; margin: 0 !important; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0; background: none; font-family: var(--td-font-head); font-size: clamp(1.4rem, 1.2rem + .7vw, 1.9rem); line-height: 1.1; color: var(--td-ink); }
.td-tile__label::after { content: "→"; font-family: var(--td-font-body); font-size: 16px; color: var(--td-ink); transition: transform .3s var(--td-ease); }
.td-tile:hover .td-tile__label::after { transform: translateX(4px); }
.td-tile__sub { margin: -8px 0 0 !important; font-size: 13.5px; color: var(--td-muted); }

/* Obrázek + text */
.td-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.td-split--media-right > :first-child { order: 2; }
.td-split__media { margin: 0 !important; overflow: hidden; aspect-ratio: 4 / 5; background: var(--td-stone); }
.td-split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-split__text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.td-split__text > * { margin: 0 !important; }

/* Fakta */
.td-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--td-gap); }
.td-fact { border-top: 1px solid var(--td-ink); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; margin: 0 !important; }
.td-fact > * { margin: 0 !important; }
.td-fact > p:first-child { font-family: var(--td-font-head); font-size: clamp(2rem, 1.5rem + 1.6vw, 3.2rem); color: var(--td-ink); line-height: 1; }
.td-fact > p:last-child { font-size: 13.5px; color: var(--td-muted); }
.td-sec--dark .td-fact { border-top-color: rgba(251, 250, 247, .3); }
.td-sec--dark .td-fact > p:first-child { color: var(--td-paper); }

/* 07 Seznamy, kroky, FAQ ---------------------------------------------- */
.td-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--td-line); }
.td-checks li { position: relative; padding: 14px 0 14px 28px; margin: 0; border-bottom: 1px solid var(--td-line); font-size: 15px; }
.td-checks li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 12px; height: 1px; background: var(--td-bronze); }
.td-sec--dark .td-checks, .td-sec--dark .td-checks li { border-color: rgba(251, 250, 247, .16); }
.td-steps { counter-reset: td-step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--td-gap); }
.td-step { counter-increment: td-step; display: flex; flex-direction: column; gap: 10px; margin: 0 !important; padding-top: 22px; border-top: 1px solid var(--td-ink); }
.td-step > * { margin: 0 !important; }
.td-step::before { content: counter(td-step, decimal-leading-zero); font-family: var(--td-font-head); font-style: italic; font-size: 40px; color: var(--td-bronze); line-height: 1; }
.td-step p { font-size: 15px; }
.td-sec--dark .td-step { border-top-color: rgba(251, 250, 247, .3); }
.td-faq { max-width: 860px; margin-inline: auto !important; display: flex; flex-direction: column; }
.td-faq .wp-block-details { margin: 0; border-bottom: 1px solid var(--td-line); padding: 0; }
.td-faq .wp-block-details:first-child { border-top: 1px solid var(--td-ink); }
.td-faq .wp-block-details summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font-family: var(--td-font-head); font-size: clamp(1.2rem, 1.1rem + .4vw, 1.5rem); line-height: 1.25; color: var(--td-ink); position: relative; }
.td-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.td-faq .wp-block-details summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--td-font-body); font-size: 22px; font-weight: 300; color: var(--td-ink); }
.td-faq .wp-block-details[open] summary::after { content: "−"; }
.td-faq .wp-block-details > p { margin: 0; padding: 0 0 24px; max-width: 64ch; }

/* 08 Galerie, reference, loga ----------------------------------------- */
.td-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--td-gap); }
.td-gallery .wp-block-image { margin: 0 !important; display: flex; flex-direction: column; gap: 12px; }
.td-gallery .wp-block-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0; background: var(--td-stone); }
.td-gallery figcaption { margin: 0; font-size: 13px; letter-spacing: .04em; color: var(--td-muted); text-align: left; }
.td-faces { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.td-faces .wp-block-image img { aspect-ratio: 4 / 5; }
.td-quote { display: flex; flex-direction: column; gap: 22px; padding: 28px 0 0; background: none; border-top: 1px solid var(--td-ink); border-radius: 0; margin: 0 !important; }
.td-quote > * { margin: 0 !important; }
.td-quote p:first-child { font-family: var(--td-font-head); font-size: clamp(1.3rem, 1.15rem + .6vw, 1.7rem); line-height: 1.3; color: var(--td-ink); }
.td-quote p:first-child::before { content: "„"; }
.td-quote p:first-child::after { content: "“"; }
.td-quote p:last-child { font-size: 14px; color: var(--td-muted); }
/* Hlavní citace: jedna velká, další dvě menší (hierarchie místo tří stejných karet) */
.td-quotes { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.td-quotes > * { margin: 0 !important; }
.td-quotes > .td-quote:first-child { grid-row: 1 / span 2; border-top: 0; padding-top: 0; }
.td-quotes > .td-quote:first-child p:first-child { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); line-height: 1.15; }
.td-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--td-gap); align-items: center; }
.td-logos .wp-block-image { margin: 0 !important; display: grid; place-items: center; }
.td-logos img { height: 64px; max-width: 160px; width: auto; object-fit: contain; filter: grayscale(1) contrast(.9); opacity: .7; transition: opacity .3s; }
.td-logos img:hover { opacity: 1; }

/* 09 Formuláře (Contact Form 7) --------------------------------------- */
.td-formcard { padding: clamp(28px, 3.4vw, 48px); background: var(--td-white); border: 1px solid var(--td-line); border-radius: 0; scroll-margin-top: 110px; }
.td-formcard > * { margin: 0 !important; }
.td-formcard > * + * { margin-top: 18px !important; }
.td-form .td-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.td-form .td-form__full { grid-column: 1 / -1; }
.td-form label { display: block; font-size: 14px; font-weight: 500; color: var(--td-ink); margin-bottom: 8px; }
.td-form p { margin: 0; }
.td-form .td-form__grid > p { margin: 0 !important; }
.td-form .td-form__grid > p:has(> label) { display: flex; flex-direction: column; }
.td-form textarea { height: 150px; }
.td-form input[type="file"] { max-width: 100%; min-height: 48px; padding: 10px 0; font-size: 14px; }
.td-form .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.td-form .wpcf7-checkbox label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14.5px; letter-spacing: 0; text-transform: none; margin: 0; }
.td-form input.wpcf7-submit { cursor: pointer; align-self: flex-start; background: var(--td-ink); border: 1px solid var(--td-ink); color: var(--td-paper); }
.td-form input.wpcf7-submit:hover { background: transparent; color: var(--td-ink); }
.td-form input.wpcf7-submit:disabled { opacity: .5; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], textarea, select, .select2-container .select2-selection--single {
  width: 100%; max-width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #d6cfc5; border-radius: 0; background: var(--td-white); color: var(--td-ink); font: inherit; font-size: 15px; }
textarea { min-height: 140px; }
/* Pole formuláře: místo obrysu 2px inkoustový rámeček (rámeček + stín 1px), kontrast 17:1 */
input:focus, textarea:focus, select:focus { border-color: var(--td-ink); outline: none; box-shadow: 0 0 0 1px var(--td-ink); }
::placeholder { color: var(--td-muted); opacity: 1; }
.td-form .wpcf7-list-item { margin: 0; }
.td-form .wpcf7-acceptance label { font-weight: 400; font-size: 13px; color: var(--td-muted); text-transform: none; letter-spacing: 0; }
.wpcf7-not-valid-tip { font-size: 13px; color: #9b2c22; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: 0; }
.td-split--form { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }

/* 10 Lišta ------------------------------------------------------------- */
.td-topbar { background: var(--td-ink); color: rgba(251, 250, 247, .82); text-align: center; font-size: 13.5px; padding: 0 16px; }
.td-topbar p { margin: 0; }
.td-topbar a { display: inline-block; padding: 12px 0; color: var(--td-paper); text-decoration: underline; text-underline-offset: 4px; }

/* 11 Hero a editorial komponenty --------------------------------------- */
.td-hero { padding: 0; background: var(--td-bone); overflow: hidden; }
.td-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; max-width: none; margin-inline: auto; }
.td-hero__text { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: clamp(48px, 7vw, 120px) var(--td-px); max-width: 680px; margin-left: auto; width: 100%; box-sizing: border-box; }
.td-hero__text > * { margin: 0 !important; }
.td-hero__media { margin: 0 !important; min-height: 100%; background: var(--td-stone); }
.td-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; display: block; aspect-ratio: 4 / 5; }
.td-hero--page .td-hero__media img { aspect-ratio: 4 / 3; }
/* Hero přes celou šířku s textem na fotce */
.td-hero--full { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; background: var(--td-ink); color: var(--td-paper); }
.td-hero--full .td-hero__bg { position: absolute !important; inset: 0; margin: 0 !important; }
.td-hero--full .td-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 35%; display: block; }
/* Ztmavení fotky pod textem: jediný gradient na webu, slouží čitelnosti (bílý text nad 4,5:1 v celé ploše textu) */
.td-hero--full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 19, 17, .9) 0%, rgba(21, 19, 17, .9) 60%, rgba(21, 19, 17, 0) 82%); pointer-events: none; }
.td-hero--full .td-hero__text { position: relative; z-index: 1; margin: 0 auto; max-width: var(--td-wrap); padding: clamp(48px, 8vw, 120px) var(--td-px); justify-content: flex-end; }
.td-hero--full .td-hero__text > * { max-width: 640px; }
.td-hero--full h1 { color: var(--td-paper); }
.td-hero--full .td-lead { color: var(--td-paper); }
.td-hero--full .td-eyebrow { color: #e3cfb0; }
.td-proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--td-muted); }
.td-proof li { margin: 0; padding-left: 0; position: relative; }
.td-proof li + li::before { content: "·"; position: absolute; left: -16px; }
.td-hero--full .td-proof, .td-hero--full .rank-math-breadcrumb p, .td-hero--full .rank-math-breadcrumb a { color: rgba(251, 250, 247, .8); }
/* Do 1100 px by text zakryl obličej na fotce: fotka nahoře, text pod ní na plném inkoustu (žádný text přes fotku) */
@media (max-width: 1100px) {
  .td-hero--full { display: block; min-height: 0; }
  .td-hero--full::after { display: none; }
  .td-hero--full .td-hero__bg { position: relative !important; inset: auto; aspect-ratio: 16 / 10; overflow: hidden; }
  .td-hero--full .td-hero__text { padding-block: clamp(36px, 6vw, 64px); }
}
.rank-math-breadcrumb p { margin: 0; font-size: 14px; color: var(--td-muted); }
.rank-math-breadcrumb a { display: inline-block; padding: 12px 0; color: var(--td-muted); text-decoration: none; }
.rank-math-breadcrumb a:hover { color: var(--td-ink); text-decoration: underline; }
/* Manifest: velká věta uprostřed */
.td-manifesto { max-width: 1080px; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.td-manifesto > * { margin: 0 !important; }
.td-manifesto__text { font-family: var(--td-font-head); font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.6rem); line-height: 1.15; color: var(--td-ink); text-wrap: balance; }
.td-manifesto__text em { color: var(--td-bronze); }
/* Kolekce: velká dlaždice a tři menší */
.td-collection { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: clamp(28px, 3vw, 48px) var(--td-gap); }
.td-collection > * { margin: 0 !important; }
.td-collection > :first-child { grid-row: 1 / span 2; }
.td-collection > :first-child .td-tile__img { aspect-ratio: auto; flex: 1; min-height: 520px; }
.td-collection > :nth-child(4) { grid-column: 2 / span 2; }
.td-collection > :nth-child(4) .td-tile__img { aspect-ratio: 16 / 9; }
/* Pás „Na zakázku“ a čísla služeb */
.td-band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.td-band > * { margin: 0 !important; }
.td-services { list-style: none; margin: 0; padding: 0; counter-reset: td-svc; border-top: 1px solid rgba(251, 250, 247, .25); }
.td-services li { counter-increment: td-svc; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 18px 0; margin: 0; border-bottom: 1px solid rgba(251, 250, 247, .25); font-family: var(--td-font-head); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.6rem); line-height: 1.2; color: var(--td-paper); }
.td-services li::before { content: counter(td-svc, decimal-leading-zero); font-family: var(--td-font-head); font-style: italic; font-size: .9em; color: #c9ad86; }
.td-services li span { grid-column: 2; display: block; margin-top: -4px; font-family: var(--td-font-body); font-size: 15px; line-height: 1.6; color: var(--td-ink-2); }
.td-sec--dark .td-services li span { color: rgba(251, 250, 247, .74); }
.td-sec:not(.td-sec--dark) .td-services { border-top-color: var(--td-ink); }
.td-sec:not(.td-sec--dark) .td-services li { color: var(--td-ink); border-bottom-color: var(--td-line); }
.td-sec:not(.td-sec--dark) .td-services li::before { color: var(--td-bronze); }
/* Materiály: tři sloupce s fotkou */
.td-material { display: flex; flex-direction: column; gap: 14px; margin: 0 !important; }
.td-material > * { margin: 0 !important; }
.td-material .td-material__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--td-stone); margin-bottom: 8px !important; }
.td-material .td-material__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-material p { font-size: 15px; }
/* Produktová ikona */
.td-feature__price { font-family: var(--td-font-head); font-size: 2rem; color: var(--td-ink); }
/* Deník (nejnovější články) */
.td-journal .wp-block-latest-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--td-gap); margin: 0; padding: 0; list-style: none; }
.td-journal .wp-block-latest-posts li { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.td-journal .wp-block-latest-posts__featured-image { margin: 0 0 8px; overflow: hidden; background: var(--td-stone); }
.td-journal .wp-block-latest-posts__featured-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 1.2s var(--td-ease); }
.td-journal .wp-block-latest-posts li:hover img { transform: scale(1.035); }
.td-journal .wp-block-latest-posts__post-title { font-family: var(--td-font-head); font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); line-height: 1.15; color: var(--td-ink); text-decoration: none; }
.td-journal .wp-block-latest-posts__post-date { font-size: 14px; color: var(--td-muted); }
.td-journal .wp-block-latest-posts__post-excerpt { margin: 0; font-size: 14.5px; color: var(--td-muted); }

/* 12 WooCommerce: výpis ------------------------------------------------ */
.woocommerce .woocommerce-products-header, .woocommerce-products-header { padding: clamp(40px, 5vw, 80px) 0 8px; }
.woocommerce-products-header__title.page-title { font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.6rem); margin-bottom: 16px; }
.term-description { max-width: 62ch; color: var(--td-ink-2); font-size: 16.5px; }
.term-description p { margin: 0 0 12px; }
.woocommerce .woocommerce-result-count { font-size: 14px; color: var(--td-muted); }
.woocommerce .woocommerce-ordering select { min-height: 44px; padding: 8px 12px; font-size: 14px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px var(--td-gap); margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; padding: 0; text-align: left; display: flex; flex-direction: column; }
.woocommerce ul.products li.product a img { aspect-ratio: 4 / 5; object-fit: cover; background: var(--td-stone); border-radius: 0; margin: 0 0 16px; transition: opacity .4s; }
.woocommerce ul.products li.product a:hover img { opacity: .88; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.3rem; padding: 0; margin: 0 0 6px; line-height: 1.15; }
.woocommerce ul.products li.product .price { color: var(--td-ink-2); font-weight: 400; font-size: 14.5px; margin: 0 0 14px; }
.woocommerce ul.products li.product .price del { color: var(--td-muted); }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--td-bronze); }
/* Do košíku ve výpisu: podtržený textový odkaz s dotykovou plochou 44 px, aby mřížka zůstala klidná a fotky vedly */
.woocommerce ul.products li.product .button { margin-top: auto; align-self: flex-start; min-height: 44px; padding: 0; font-size: 14.5px; background: transparent; color: var(--td-ink) !important; border: 0; text-decoration: underline !important; text-underline-offset: 6px; }
.woocommerce ul.products li.product .button:hover { background: transparent; color: var(--td-bronze) !important; }
.woocommerce ul.products li.product .added_to_cart { font-size: 12px; margin-top: 8px; }
.woocommerce span.onsale { min-height: 0; min-width: 0; padding: 6px 10px; line-height: 1; border-radius: 0; background: var(--td-paper); color: var(--td-ink); font-size: 13px; font-weight: 500; top: 12px; left: 12px; right: auto; margin: 0; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 6px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 44px; min-height: 44px; padding: 12px; border-radius: 0; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--td-ink); color: var(--td-paper); }
.td-catnav { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 24px 0 12px; padding: 0 0 16px; list-style: none; border-bottom: 1px solid var(--td-line); }
.td-catnav li { margin: 0; }
.td-catnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; border-radius: 0; font-size: 15px; color: var(--td-muted); text-decoration: none; }
.td-catnav a:hover, .td-catnav .is-current a { color: var(--td-ink); background: none; text-decoration: underline; text-underline-offset: 6px; }

/* 13 WooCommerce: produkt ---------------------------------------------- */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-top: clamp(24px, 3vw, 48px); }
.single-product div.product > .woocommerce-product-gallery, .single-product div.product > .summary { width: auto !important; float: none !important; margin: 0 !important; }
.single-product div.product > .summary { position: sticky; top: 32px; }
.single-product div.product > :not(.woocommerce-product-gallery):not(.summary):not(.onsale) { grid-column: 1 / -1; }
.woocommerce div.product div.images img { border-radius: 0; background: var(--td-stone); }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto !important; float: none; }
.woocommerce div.product div.images .flex-control-thumbs li img { border-radius: 0; opacity: .55; }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active { opacity: 1; }
.woocommerce div.product .product_title { font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3.6rem); margin-bottom: 14px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--td-ink); font-size: 18px; font-weight: 400; letter-spacing: .04em; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--td-ink-2); margin: 20px 0 28px; font-size: 16px; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin-bottom: 24px; }
.woocommerce div.product form.cart.variations_form { display: block; }
.woocommerce div.product form.cart .variations { margin-bottom: 18px; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0 0 8px; text-align: left; }
.woocommerce div.product form.cart .variations label { font-size: 14px; font-weight: 500; color: var(--td-ink); }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; gap: 12px; flex-wrap: wrap; }
.woocommerce .quantity .qty { width: 72px; min-height: 54px; text-align: center; }
.woocommerce div.product form.cart .single_add_to_cart_button { flex: 1 1 220px; }
.woocommerce div.product .product_meta { font-size: 14px; color: var(--td-muted); display: grid; gap: 4px; }
.woocommerce div.product .product_meta a { display: inline-block; padding-block: 12px; color: var(--td-muted); }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { width: 44px; height: 44px; }
.td-trust { list-style: none; margin: 8px 0 28px; padding: 0; display: grid; gap: 0; background: none; border-top: 1px solid var(--td-line); font-size: 14px; }
.td-trust li { margin: 0; padding: 12px 0 12px 24px; position: relative; border-bottom: 1px solid var(--td-line); }
.td-trust li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 10px; height: 1px; background: var(--td-bronze); }
.woocommerce div.product .woocommerce-tabs { margin-top: clamp(40px, 5vw, 96px); }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 28px; border-bottom: 1px solid var(--td-line); display: flex; gap: 32px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; margin: 0; padding: 0; border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: inline-flex; align-items: center; min-height: 48px; padding: 0; font-weight: 500; font-size: 15px; color: var(--td-muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--td-ink); box-shadow: inset 0 -1px 0 var(--td-ink); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 720px; }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { display: none; }
.woocommerce div.product .woocommerce-tabs .panel h3 { font-size: 1.6rem; margin: 32px 0 12px; }
.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border: 0; border-bottom: 1px solid var(--td-line); padding: 12px 0; font-style: normal; background: none !important; }
.woocommerce table.shop_attributes th { width: 40%; font-weight: 500; color: var(--td-ink); }
.related.products > h2, .upsells.products > h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); margin: clamp(56px, 8vw, 120px) 0 32px; }
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: var(--td-bronze); }

/* 14 Košík a pokladna -------------------------------------------------- */
.woocommerce-cart .site-main, .woocommerce-checkout .site-main, .woocommerce-account .site-main { padding: clamp(28px, 4vw, 64px) var(--td-px); max-width: var(--td-wrap); margin-inline: auto; }
.woocommerce table.shop_table { border: 0; border-top: 1px solid var(--td-ink); border-radius: 0; border-collapse: collapse; }
.woocommerce table.shop_table th { font-size: 14px; font-weight: 500; color: var(--td-muted); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--td-line); padding: 16px 12px; }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-checkout #order_review { background: var(--td-bone); padding: 28px; border-radius: 0; }
.woocommerce form .form-row label { font-size: 14px; font-weight: 500; color: var(--td-ink); }
.woocommerce-checkout #payment { background: var(--td-white); border-radius: 0; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--td-ink); background: var(--td-bone); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--td-ink); }
.woocommerce-error { border-top-color: #9b2c22; }
.woocommerce-cart .cart-collaterals .cart_totals { box-sizing: border-box; }
.woocommerce-cart table.cart td.actions .coupon .input-text { width: 180px; }
.woocommerce .wc-proceed-to-checkout a.checkout-button { display: flex; align-items: center; justify-content: center; padding: 18px 24px; font-size: 15px; margin-bottom: 0; }
@media (max-width: 767px) { .woocommerce-cart table.cart td.actions .coupon .input-text { width: 100%; } }

/* 15 Patička ----------------------------------------------------------- */
.td-footer { background: var(--td-ink); color: rgba(251, 250, 247, .62); font-size: 14px; }
.td-footer a { color: rgba(251, 250, 247, .86); text-decoration: none; }
.td-footer a:hover { color: var(--td-paper); }
.td-footer__news { max-width: var(--td-wrap); margin-inline: auto; padding: clamp(64px, 8vw, 120px) var(--td-px) clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 32px; align-items: end; border-bottom: 1px solid rgba(251, 250, 247, .14); }
.td-footer__news > * { margin: 0 !important; }
.td-footer__news h2 { color: var(--td-paper); font-size: clamp(2.4rem, 1.4rem + 3.6vw, 5rem); line-height: 1; margin: 0; }
.td-footer__news .td-row { justify-content: flex-end; }
.td-footer__grid { max-width: var(--td-wrap); margin-inline: auto; padding: 48px var(--td-px) 40px; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.td-footer__col { display: flex; flex-direction: column; gap: 2px; margin: 0 !important; min-width: 0; }
.td-footer__col > * { margin: 0 !important; }
.td-footer__col a { display: inline-flex; align-items: center; min-height: 44px; }
.td-footer__title { color: #c9ad86; font-family: var(--td-font-head); font-style: italic; font-size: 1.25rem; font-weight: 400; margin-bottom: 6px !important; }
.td-footer__logo img { width: 150px; height: auto; filter: invert(1); }
.td-footer__about { max-width: 34ch; margin-top: 16px !important; line-height: 1.6; }
.td-footer__group { margin-top: 18px !important; font-size: 13px; }
.td-footer__bottom { max-width: var(--td-wrap); margin-inline: auto; padding: 12px var(--td-px) 24px; border-top: 1px solid rgba(251, 250, 247, .14); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 24px; font-size: 13.5px; }
.td-footer__bottom > * { margin: 0 !important; }
.td-footer__legal { display: flex; flex-wrap: wrap; gap: 0 20px; }
.td-footer__legal a, .td-footer__about a, .td-footer__group a { display: inline-flex; align-items: center; min-height: 44px; }
.td-footer__legal > * { margin: 0 !important; }
.site-footer .site-info { display: none; }

/* Tlačítka v patičce */
.td-footer .td-btn { background: var(--td-paper); border-color: var(--td-paper); color: var(--td-ink) !important; }
.td-footer .td-btn:hover { background: transparent; color: var(--td-paper) !important; }
.td-footer .td-btn--secondary { background: transparent; color: var(--td-paper) !important; border-color: rgba(251, 250, 247, .55); }
.td-footer .td-btn--secondary:hover { background: var(--td-paper); color: var(--td-ink) !important; }
/* Produktové fotky na světle šedém pozadí splynou s teplým tónem webu */
.td-tile__img img, .td-material__img img, .td-split__media img, .td-hero:not(.td-hero--full) .td-hero__media img, .woocommerce ul.products li.product a img, .td-journal .wp-block-latest-posts__featured-image img, .woocommerce div.product div.images img, .td-gallery .wp-block-image img, .td-pcard__img img, .blog .post-image img, .single-post .featured-image img { mix-blend-mode: multiply; }
.td-collection > :first-child .td-tile__img img { object-position: 72% 30%; }

/* 16 Responzivita ------------------------------------------------------ */
@media (max-width: 1024px) {
  .td-g4, .woocommerce ul.products, .td-logos, .td-faces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .td-steps, .td-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .td-split, .td-split--form, .td-band, .td-hero__grid, .td-footer__news { grid-template-columns: minmax(0, 1fr); }
  .td-split--media-right > :first-child { order: 0; }
  .td-hero__text { max-width: none; margin: 0; }
  .td-hero__media img { aspect-ratio: 4 / 3; }
  .td-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .td-footer__news .td-row { justify-content: flex-start; }
  .single-product div.product { grid-template-columns: minmax(0, 1fr); }
  .single-product div.product > .summary { position: static; }
  .td-collection { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .td-collection > :first-child { grid-row: auto; grid-column: 1 / -1; }
  .td-collection > :first-child .td-tile__img { min-height: 0; aspect-ratio: 4 / 3; }
  .td-collection > :nth-child(4) { grid-column: auto; }
  .td-collection > :nth-child(4) .td-tile__img { aspect-ratio: 4 / 5; }
  .td-journal .wp-block-latest-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .td-quotes { grid-template-columns: minmax(0, 1fr); }
  .td-quotes > .td-quote:first-child { grid-row: auto; }
}
@media (max-width: 767px) {
  .td-g2, .td-g3, .td-gallery, .td-form .td-form__grid { grid-template-columns: minmax(0, 1fr); }
  .td-g4, .woocommerce ul.products, .td-logos, .td-faces, .td-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce ul.products { gap: 36px 14px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.1rem; }
  .td-steps { grid-template-columns: minmax(0, 1fr); }
  .td-hero .td-row .td-btn { flex: 1 1 100%; }
  .td-hero--full .td-hero__bg { aspect-ratio: 4 / 3; }
  .td-hero--full .td-hero__bg img { object-position: 80% 30%; }
  .td-sec { padding-block: clamp(56px, 30px + 8vw, 96px); }
  .td-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .td-footer__grid > :first-child { grid-column: 1 / -1; }
  .td-footer__bottom { flex-direction: column; }
  .woocommerce div.product .woocommerce-tabs ul.tabs { overflow-x: auto; }
  .td-collection { grid-template-columns: minmax(0, 1fr); }
  .td-journal .wp-block-latest-posts { grid-template-columns: minmax(0, 1fr); }
  .td-services li { grid-template-columns: 36px minmax(0, 1fr); }
}

/* 17 Omezený pohyb ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

.td-crumbs { max-width: var(--td-wrap); margin: 22px auto 0; padding: 0 var(--td-px); }

/* 18 Textové stránky (obchodní podmínky, GDPR) ----------------------------- */
.td-sec__inner.td-prose > * + * { margin-top: 1em; }
.td-prose h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin-top: 2.2em !important; }
.td-prose h3 { font-size: 1.15rem; margin-top: 1.6em !important; }
.td-prose ul, .td-prose ol { padding-left: 1.3em; }
.td-prose li + li { margin-top: .35em; }
.td-prose .wp-block-table { overflow-x: auto; }
.td-prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.td-prose td, .td-prose th { border: 1px solid var(--td-line); padding: 8px 10px; vertical-align: top; }

/* 19 Obchod na mobilu: okraje obsahu ---------------------------------- */
@media (max-width: 767px) {
  body.woocommerce .site-main { padding-inline: var(--td-px); }
}

/* 20 Pokladna ve dvou sloupcích --------------------------------------- */
@media (min-width: 1025px) {
  .woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 64px); align-items: start; }
  .woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
  .woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
  .woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; }
  .woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin-top: 0; }
  .woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: 24px; }
}
.woocommerce form .form-row .input-text, .woocommerce form .form-row select, .woocommerce-page form .form-row .input-text { border: 1px solid #d9cfc6; border-radius: var(--td-r); }

/* 21 Blog --------------------------------------------------------------- */
.blog .site-main, .category .site-main { max-width: var(--td-wrap); margin-inline: auto; padding: 0 var(--td-px) var(--td-py); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) var(--td-gap); align-items: start; }
.blog .site-main > :not(article), .category .site-main > :not(article) { grid-column: 1 / -1; margin: 0; }
.td-crumbs + .td-blog-head, .td-blog-head { padding: clamp(28px, 4vw, 56px) 0 clamp(8px, 1vw, 16px); }
.td-blog-head h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); margin: 10px 0 14px; }
.td-blog-head .td-lead { margin: 0; }
.td-blog-head .td-catnav { margin-top: 22px; }
.blog article.post, .category article.post { margin: 0; min-width: 0; }
.blog article.post .inside-article, .category article.post .inside-article { display: flex; flex-direction: column; gap: 10px; padding: 0; background: none; }
.blog .post-image, .category .post-image { order: -1; margin: 0 0 6px !important; border-radius: var(--td-r-lg); overflow: hidden; background: var(--td-sand); }
.blog .post-image img, .category .post-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--td-ease); }
.blog article.post:hover .post-image img, .category article.post:hover .post-image img { transform: scale(1.03); }
.blog .entry-header, .category .entry-header { display: flex; flex-direction: column; gap: 8px; }
.blog .entry-title, .category .entry-title { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); margin: 0; }
.blog .entry-title a, .category .entry-title a { display: inline-block; min-height: 44px; padding-block: 12px; color: var(--td-ink); text-decoration: none; }
.blog .entry-title a:hover, .category .entry-title a:hover { color: var(--td-brown); }
.blog .entry-header .entry-meta, .category .entry-header .entry-meta { order: 3; }
.blog .entry-summary, .category .entry-summary { margin: 0; font-size: 15px; color: var(--td-muted); }
.blog .entry-summary p, .category .entry-summary p { margin: 0; }
/* první článek přes celou šířku */
body.blog:not(.paged) .site-main > article.post:first-of-type .inside-article { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 56px); align-items: center; }
body.blog:not(.paged) .site-main > article.post:first-of-type { grid-column: 1 / -1; }
body.blog:not(.paged) .site-main > article.post:first-of-type .post-image { grid-row: 1 / span 2; margin: 0 !important; }
body.blog:not(.paged) .site-main > article.post:first-of-type .entry-title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
body.blog:not(.paged) .site-main > article.post:first-of-type .entry-summary { font-size: 16px; align-self: start; }
body.blog:not(.paged) .site-main > article.post:first-of-type .entry-header { align-self: end; }
.td-post-cat { display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; font-family: var(--td-font-head); font-style: italic; font-size: 1.15rem; font-weight: 400; color: var(--td-bronze); text-decoration: none; margin: 0; }
p.td-post-cat { min-height: 0; }
a.td-post-cat:hover { color: var(--td-orange); }
.entry-meta { font-size: 13px; color: var(--td-muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.entry-meta a { color: inherit; }
.td-read::before { content: "·"; margin: 0 8px 0 2px; }
.paging-navigation .nav-links { display: flex; gap: 8px; justify-content: center; }
.paging-navigation .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; border: 1px solid var(--td-line); border-radius: 99px; text-decoration: none; color: var(--td-ink); }
.paging-navigation .page-numbers.current { background: var(--td-ink); border-color: var(--td-ink); color: #fff; }

/* článek */
.single-post .site-main { margin: 0; }
.single-post .inside-article { max-width: var(--td-wrap); margin-inline: auto; padding: 0 var(--td-px); background: none; }
.single-post .entry-header { max-width: 820px; margin: clamp(24px, 4vw, 48px) auto clamp(24px, 3vw, 40px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.single-post .entry-header .td-post-cat { align-self: center; }
.single-post .entry-title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem); margin: 0; text-wrap: balance; }
.td-post-lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--td-ink-2); margin: 0; max-width: 62ch; }
.single-post .entry-header .entry-meta { justify-content: center; }
.single-post .entry-header .byline .author-name { font-weight: 600; color: var(--td-ink); }
.single-post .featured-image { max-width: 880px; margin: 0 auto clamp(32px, 4vw, 56px) !important; border-radius: var(--td-r-lg); overflow: hidden; background: var(--td-sand); }
.single-post .featured-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.single-post .entry-content { max-width: var(--td-text); margin: 0 auto; font-size: 17px; }
.single-post .entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.single-post .entry-content > h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); margin-top: 2em; }
.single-post .entry-content > h3 { font-size: 1.2rem; margin-top: 1.6em; }
.single-post .entry-content ul, .single-post .entry-content ol { padding-left: 1.3em; }
.single-post .entry-content li + li { margin-top: .45em; }
.single-post .entry-content li::marker { color: var(--td-orange); font-weight: 600; }
.single-post .entry-content .wp-block-table { overflow-x: auto; }
.single-post .entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.single-post .entry-content th { text-align: left; font-size: 14px; font-weight: 500; color: var(--td-ink); background: var(--td-sand); }
.single-post .entry-content td, .single-post .entry-content th { border: 0; border-bottom: 1px solid var(--td-line); padding: 10px 12px; }
.single-post .entry-content .woocommerce { max-width: none; margin: 2em calc(50% - min(48vw, 520px)); }
.single-post .entry-content .woocommerce ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.single-post .entry-content details { border-top: 1px solid var(--td-line); padding: 14px 0; margin: 0; }
.single-post .entry-content details:last-of-type { border-bottom: 1px solid var(--td-line); }
.single-post .entry-content details summary { cursor: pointer; font-weight: 600; color: var(--td-ink); padding-block: 10px; }
.single-post .entry-content details p { margin: 10px 0 0; }
.td-post-cta { background: var(--td-sand); padding: 20px 24px; border-radius: 0; font-family: var(--td-font-head); font-size: 1.35rem; line-height: 1.3; color: var(--td-ink); }
.td-post-cta a { font-family: var(--td-font-body); font-size: 15px; font-weight: 500; white-space: nowrap; }
.td-post-cta a { font-weight: 600; white-space: nowrap; }
.td-draft-note { background: #fff6dc; border: 1px dashed #d9b44a; padding: 10px 14px; border-radius: var(--td-r); font-size: 14px; color: #6b5310; }
.td-author { max-width: var(--td-text); width: calc(100% - 2 * var(--td-px)); margin: clamp(40px, 5vw, 64px) auto; padding: 22px 24px; display: flex; gap: 18px; align-items: center; border: 1px solid var(--td-line); border-radius: var(--td-r-lg); box-sizing: border-box; }
.td-author img, .td-author__mark { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; background: var(--td-sand); object-fit: contain; padding: 8px; box-sizing: border-box; display: grid; place-items: center; font-family: var(--td-font-head); color: var(--td-brown); }
.td-author p { margin: 0; font-size: 15px; }
.td-author__name { font-family: var(--td-font-head); font-weight: 600; color: var(--td-ink); font-size: 1.05rem !important; }
.td-related { max-width: var(--td-wrap); margin: 0 auto; padding: var(--td-py) var(--td-px); }
.td-related h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); margin: 0 0 28px; }
.td-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--td-gap); }
.td-pcard { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.td-pcard__img { display: block; border-radius: var(--td-r-lg); overflow: hidden; background: var(--td-sand); margin-bottom: 6px; }
.td-pcard__img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.td-pcard h3 { font-size: 1.15rem; margin: 0; }
.td-pcard h3 a { display: inline-block; min-height: 44px; padding-block: 12px; color: var(--td-ink); text-decoration: none; }
.td-pcard h3 a:hover { color: var(--td-brown); }
.td-pcard__meta { font-size: 13px; color: var(--td-muted); margin: 0; }
.td-post-band { margin: 0 var(--td-px); border-radius: var(--td-r-lg); }
@media (max-width: 1024px) {
  .blog .site-main, .category .site-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .single-post .entry-content .woocommerce { margin-inline: 0; }
  .single-post .entry-content .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .blog .site-main, .category .site-main, .td-related__grid { grid-template-columns: minmax(0, 1fr); }
  body.blog:not(.paged) .site-main > article.post:first-of-type .inside-article { display: flex; }
  .single-post .entry-content { font-size: 16px; }
  .td-author { align-items: flex-start; }
}
