/* Hobbyrock – styl webu */
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url("../fonts/big-shoulders-display-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Manrope"; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Manrope"; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Manrope"; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #121110;
  --surface: #1A1815;
  --surface-2: #1F1C19;
  --line: #2E2A25;
  --line-strong: #3A352F;
  --text: #F2EEE8;
  --text-soft: #D9D3CA;
  --muted: #B3ADA4;
  --muted-2: #8F897F;
  --accent: #F26B1D;
  --accent-ink: #121110;
  --ok: #8FBF8A;
  --radius: 12px;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--text); }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; }
.muted { color: var(--muted-2); }

.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1.15; letter-spacing: 0.01em; }
.h1 { font-size: clamp(46px, 6vw, 88px); line-height: 1.15; }
.h2 { font-size: clamp(40px, 5vw, 56px); }
.lead { color: var(--muted); font-size: 19px; max-width: 560px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.section-head .stack { gap: 12px; }
.link-accent { color: var(--accent); font-weight: 700; text-decoration: none; }
.link-accent:hover { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 6px; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: #ff7d33; color: var(--accent-ink); }
.btn-outline { border-color: #4A443D; color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--text); }
.btn-light { background: var(--text); color: var(--accent-ink); border-color: var(--text); }
.btn-light:hover { background: #fff; color: var(--accent-ink); }
.btn-ghost-accent { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hlavička */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18,17,16,.94); backdrop-filter: blur(8px); border-bottom: 1px solid #2A2622; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: 0.04em; line-height: 1; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.logo:hover { color: var(--text); }
.logo-small { font-size: 24px; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.main-nav a:not(.btn) { color: var(--text-soft); text-decoration: none; }
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"] { color: var(--accent); }
.nav-cta { min-height: 44px; padding: 0 18px; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; color: var(--text); border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-cta { margin-top: 16px; }
  .header-inner { position: relative; }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 80px; padding-bottom: 104px; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-media { flex: 1 1 420px; min-width: 0; min-height: 520px; border-radius: var(--radius); overflow: hidden; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; min-height: 520px; display: block; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.highlights { display: flex; flex-wrap: wrap; gap: 8px 28px; color: #A8A29A; font-size: 14px; font-weight: 600; padding-top: 8px; }

.ph { background-color: var(--surface-2); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 12px, transparent 12px 24px); border: 1px dashed var(--line-strong); display: flex; align-items: center; justify-content: center; color: #7D776F; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; padding: 16px; }

/* Kroky a služby */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 20px; font-weight: 700; }
.card p { color: #A8A29A; font-size: 15px; }
.step-num { font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; color: var(--accent); }
.services { margin-top: 56px; }
.service-price { font-weight: 700; color: var(--accent); margin-top: auto; padding-top: 8px; }

/* Produkty */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; background: transparent; color: var(--text); border: 1px solid var(--line-strong); text-decoration: none; display: inline-flex; align-items: center; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.product.in-build { border-color: var(--accent); }
.product-open { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.product-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.product-img { aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: #fff; }
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product-name { font-size: 15px; font-weight: 600; line-height: 1.35; }
.product-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.price { font-size: 19px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.stock { font-size: 13px; font-weight: 600; color: var(--ok); }
.stock.out { color: var(--muted-2); }
.product .btn { min-height: 44px; width: 100%; font-size: 14px; }
.product-teaser { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 14px; }
.product-teaser .product-img { border-radius: 10px; }
.skeleton { background: var(--surface-2); border-radius: var(--radius); min-height: 360px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } html { scroll-behavior: auto; } }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery .g-img { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { font-size: 15px; font-weight: 600; }
.gallery figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }

/* Na čem si zakládám */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px 40px; }
.principles li { position: relative; padding: 18px 0 18px 32px; border-top: 1px solid var(--line); color: var(--text-soft); font-size: 16px; }
.principles li::before { content: ""; position: absolute; left: 0; top: 26px; width: 14px; height: 2px; background: var(--accent); }
.statement { margin-top: 40px; max-width: 820px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; color: var(--text); }

/* Ceník */
.principles-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; }
.price-table-wrap { max-width: 920px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table thead th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); padding: 16px 24px; border-bottom: 1px solid var(--line-strong); }
.price-table .group th { text-align: left; padding: 24px 24px 10px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--line); }
.price-table tbody tr:not(.group) th, .price-table td { padding: 13px 24px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.price-table tbody tr:not(.group) th { text-align: left; font-weight: 600; color: var(--text-soft); }
.price-table tbody:last-child tr:last-child th, .price-table tbody:last-child tr:last-child td { border-bottom: 0; }
.price-table tbody tr:not(.group):hover { background: var(--surface); }
.price-table .col-note { color: var(--muted-2); font-size: 14px; }
.price-table .num { text-align: right; white-space: nowrap; font-weight: 700; color: var(--text); }
.price-table thead .num { color: var(--muted-2); }
.note-inline { display: none; }
@media (max-width: 640px) {
  .price-table .col-note { display: none; }
  .note-inline { display: block; font-weight: 400; font-size: 13px; color: var(--muted-2); margin-top: 2px; }
  .price-table thead th, .price-table tbody tr:not(.group) th, .price-table td { padding-left: 16px; padding-right: 16px; }
  .price-table .group th { padding: 20px 16px 8px; font-size: 20px; }
}

/* O mně, kontakt */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.about-img { aspect-ratio: 4 / 5; max-height: 640px; align-self: flex-start; position: sticky; top: 96px; border-radius: var(--radius); overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.prose { display: flex; flex-direction: column; gap: 16px; color: var(--muted); font-size: 17px; }
.quote { margin: 8px 0 0; padding: 20px 0 0; border-top: 2px solid var(--accent); }
.quote p { font-size: 20px; font-weight: 600; line-height: 1.45; color: var(--text); }
.quote cite { display: block; margin-top: 10px; font-style: normal; color: var(--muted-2); font-size: 14px; }
.footer-tagline { color: var(--muted); font-weight: 600; }
.contact-list { display: grid; grid-template-columns: 110px 1fr; gap: 12px 16px; margin: 0; }
.contact-list dt { color: var(--muted-2); font-weight: 600; }
.contact-list dd { margin: 0; }
.contact-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; align-self: stretch; justify-content: center; }

/* Patička */
.site-footer { border-top: 1px solid #2A2622; color: var(--muted-2); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 24px; }
.footer-company { display: flex; flex-direction: column; gap: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { padding-bottom: 32px; }

/* Katalog */
.catalog-head { padding-top: 48px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 14px; }
.breadcrumb { font-size: 14px; color: var(--muted-2); }
.breadcrumb a { color: var(--muted-2); text-decoration: none; }
.catalog-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; padding-bottom: 96px; }
.catalog-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea { min-height: 44px; padding: 0 12px; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: 6px; }
.field textarea { padding: 10px 12px; resize: vertical; }
.toolbar .field input, .toolbar .field select { background: var(--surface); }
.toolbar .field input { width: 220px; }
.result-info { font-size: 14px; color: var(--muted-2); }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

.build { flex: 1 1 340px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; }
.build h2 { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; text-transform: uppercase; }
.build-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.build-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.build-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.build-list .b-name { flex-grow: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.build-list .b-name small { display: block; color: var(--muted-2); }
.build-list .b-price { font-size: 14px; font-weight: 700; white-space: nowrap; }
.icon-btn { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #A8A29A; border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.build-total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.build-total strong { font-size: 24px; font-weight: 800; color: var(--accent); }
.note { font-size: 13px; color: var(--muted-2); }
.build form { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.form-msg { padding: 16px; border-radius: 8px; border: 1px solid var(--accent); }
.form-msg.error { border-color: #E5484D; }
.hp { position: absolute; left: -9999px; }

.mobile-build-bar { display: none; }
@media (max-width: 1040px) {
  .build { position: static; }
  .mobile-build-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; min-height: 56px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; background: var(--accent); color: var(--accent-ink); border-radius: 10px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
  .mobile-build-bar:hover { color: var(--accent-ink); }
  .mobile-build-bar[hidden] { display: none; }
  body.catalog-page { padding-bottom: 80px; }
}

/* Detail produktu */
dialog.product-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); }
dialog.product-dialog::backdrop { background: rgba(0,0,0,.7); }
.dlg-inner { display: flex; flex-wrap: wrap; gap: 28px; padding: 28px; position: relative; }
.dlg-media { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dlg-main-img { aspect-ratio: 1 / 1; background: #fff; border-radius: 8px; overflow: hidden; }
.dlg-main-img img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs button { width: 64px; height: 64px; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; cursor: pointer; overflow: hidden; }
.thumbs button[aria-pressed="true"] { border: 2px solid var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.dlg-info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.dlg-info h2 { font-size: 24px; font-weight: 700; line-height: 1.25; padding-right: 48px; }
.dlg-desc { color: var(--muted); font-size: 15px; white-space: pre-line; max-height: 260px; overflow: auto; }
.dlg-close { position: absolute; top: 16px; right: 16px; }

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .hero { padding-top: 40px; padding-bottom: 72px; gap: 36px; }
  .hero-media, .hero-media img, .hero-media video { min-height: 360px; }
  .lead { font-size: 17px; }
  .actions .btn { flex: 1 1 100%; }
  .toolbar .field, .toolbar .field input { width: 100%; }
  .toolbar { align-items: stretch; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product { padding: 10px; }
  .product .btn { font-size: 13px; padding: 0 8px; }
  [data-tabs] { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; width: calc(100% + 40px); }
  [data-tabs] .chip { flex-shrink: 0; }
  .product-name { font-size: 13px; }
  .price { font-size: 16px; }
  .contact-list { grid-template-columns: 1fr; gap: 2px; }
  .contact-list dd { margin-bottom: 10px; }
  .dlg-inner { padding: 20px; gap: 20px; }
  .dlg-info h2 { font-size: 18px; }
}
