/* Kominictví B+B — hlavní styl */
:root {
  --brick: #b3261e;
  --brick-dark: #8a1c16;
  --ember: #e8762b;
  --ink: #1f1b1a;
  --ink-soft: #4a4442;
  --muted: #776f6b;
  --bg: #faf6f1;
  --surface: #ffffff;
  --line: #e7dfd7;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(31, 27, 26, .25);
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick); }
a:hover { color: var(--brick-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Tlačítka */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--brick); color: var(--brick); background: transparent; }
.btn-outline:hover { background: var(--brick); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; }

/* Hlavička */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; }
.brand strong { font-family: var(--font-head); font-size: 1.5rem; line-height: 1; display: block; }
.brand small { color: var(--muted); font-size: .8rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink-soft); font-weight: 600; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brick); background: #fbeeed; }
.nav .btn { margin-left: 8px; color: #fff; padding: .6em 1.1em; }
.nav .btn:hover { background: var(--brick-dark); color: #fff; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* Hero */
.hero { position: relative; color: #fff; background: radial-gradient(120% 90% at 85% 10%, #e8762b 0%, transparent 55%), linear-gradient(135deg, #7a1712 0%, #b3261e 55%, #3a1310 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: url("../img/brand/brick.svg") repeat; opacity: .07; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 72px 0 88px; }
.eyebrow { display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; background: rgba(255, 255, 255, .15); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero p.lead { font-size: 1.2rem; max-width: 34em; opacity: .95; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-primary { background: #fff; color: var(--brick); }
.hero .btn-primary:hover { background: var(--bg); color: var(--brick-dark); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; padding: 0; list-style: none; font-size: .95rem; }
.hero-badges li::before { content: "✓"; margin-right: 6px; color: #ffd2a8; font-weight: 700; }
.hero-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-photos img { border-radius: var(--radius); box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .5); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.hero-photos img:nth-child(2) { margin-top: 40px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 48px 0 56px; gap: 32px; }
  .hero-photos img:nth-child(2) { margin-top: 24px; }
}

.page-hero { background: linear-gradient(135deg, #7a1712, #b3261e); color: #fff; padding: 56px 0 48px; }
.page-hero p { max-width: 40em; font-size: 1.15rem; opacity: .95; margin: 0; }
.crumbs { font-size: .9rem; margin-bottom: 12px; opacity: .85; }
.crumbs a { color: #fff; }

/* Sekce */
section { padding: 80px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.kicker { color: var(--brick); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; display: block; margin-bottom: 8px; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.dark { background: var(--ink); color: #f3ece6; }
.dark .kicker { color: #ffb37a; }
.dark .section-head p { color: #cfc6c0; }

/* Karty služeb */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon { width: 52px; height: 52px; border-radius: 12px; background: #fbeeed; color: var(--brick); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 28px; height: 28px; }
.card ul { padding-left: 1.1em; margin: 0 0 1.2em; color: var(--ink-soft); }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .more::after { content: " →"; }

/* Výhody */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
.feature strong { display: block; font-family: var(--font-head); font-size: 2.4rem; color: #ffb37a; line-height: 1; margin-bottom: 6px; }
.feature h3 { font-size: 1.25rem; color: #fff; }
.feature p { color: #cfc6c0; margin: 0; font-size: .97rem; }

/* Postup */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; padding: 26px 24px 24px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before { content: counter(s); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brick); color: #fff; margin-bottom: 14px; }
.steps h3 { font-size: 1.25rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; background: rgba(15, 12, 11, .92); display: none; place-items: center; z-index: 200; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 85vh; width: auto; border-radius: 8px; }
.lightbox figcaption { color: #eee; text-align: center; margin-top: 10px; }
.lightbox .close { position: absolute; top: 14px; right: 18px; font-size: 2.2rem; color: #fff; background: none; border: 0; cursor: pointer; }

/* Oblast */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.towns li { background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.map-ph { aspect-ratio: 4 / 3; border-radius: var(--radius); background: #efe6dd; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; border: 2px dashed #d8c9bb; }
@media (max-width: 760px) { .area { grid-template-columns: 1fr; } }

/* Partneři */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.partner { background: var(--surface); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.partner .tag { align-self: flex-start; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: #fdf0e6; color: #a5521a; margin-bottom: 14px; }
.partner ul { color: var(--ink-soft); padding-left: 1.1em; }
.partner .btn { margin-top: auto; align-self: flex-start; }
.partner .soon { margin-top: auto; color: var(--muted); font-style: italic; }

/* Poptávka */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
form.inquiry { background: var(--surface); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); color: var(--ink); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 3px rgba(179, 38, 30, .15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.consent { font-size: .85rem; color: var(--muted); }
.branches { display: grid; gap: 18px; }
.branch { border-left: 4px solid #ffb37a; padding: 4px 0 4px 18px; }
.branch h3 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.branch p { margin: 0; color: #cfc6c0; }
.big-phone { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: #fff; text-decoration: none; display: inline-block; margin: 8px 0 20px; }
.big-phone:hover { color: #ffb37a; }
.dark a:not(.btn) { color: #ffb37a; }

/* Obsah podstránek */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 2.1rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .content-grid { grid-template-columns: 1fr; } }
.aside-box { position: sticky; top: 96px; background: var(--ink); color: #f3ece6; border-radius: var(--radius); padding: 28px; }
.aside-box h3 { color: #fff; }
.aside-box .btn { width: 100%; justify-content: center; margin-top: 10px; }
.aside-box .btn-ghost { color: #fff; }
.callout { background: #fdf0e6; border-left: 4px solid var(--ember); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 1.5em 0; }
.todo { background: #fff7d6; border: 1px dashed #c9a400; color: #6b5800; padding: 2px 8px; border-radius: 6px; font-size: .9em; }
.compare { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; background: var(--surface); border-radius: 10px; overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: #f3ebe3; font-weight: 700; }
.table-scroll { overflow-x: auto; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

/* Patička */
.site-footer { background: #151110; color: #a79e98; padding: 48px 0 28px; font-size: .93rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: 1.2rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #d9cfc8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid #2c2523; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* Plovoucí tlačítko na mobilu */
.call-bar { display: none; }
@media (max-width: 760px) {
  .call-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -10px rgba(0, 0, 0, .3); }
  .call-bar .btn { flex: 1; justify-content: center; padding: .8em; }
  body { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
