/* SolidWerk – Šikovné ruce. Férové ceny.
   Světlý, přátelský styl. Bezpatkové systémové písmo (bez Google Fonts), velké a čitelné. */

:root {
  --green: #2F4A3A;
  --green-dark: #23382C;
  --green-soft: #E8EFE9;
  --wood: #B7793F;
  --mustard: #E8B04A;
  --mustard-dark: #D29A35;
  --white: #FFFFFF;
  --gray-50: #F6F7F5;
  --gray-100: #ECEEEA;
  --line: #DDE1DB;
  --ink: #1F2421;
  --ink-2: #4A524C;          /* 7.9:1 na bílé */
  --danger: #A8321E;
  --ok: #2F6B3F;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 10px;
  --wrap: 1180px;
  --sec: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--wood); }
h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--wood); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--mustard); color: var(--ink); padding: .7rem 1rem; border-radius: 8px; }
.skip:focus { left: 8px; }
.eyebrow { font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: .8rem; }
.small { font-size: .9rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- tlačítka (min. 44 px) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: var(--r); border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--mustard); color: var(--ink); }
.btn-primary:hover { background: var(--mustard-dark); color: var(--ink); }
.btn-outline { border-color: var(--green); color: var(--green); background: var(--white); }
.btn-outline:hover { background: var(--green-soft); color: var(--green); }
.btn-lg { min-height: 56px; padding: .9rem 1.7rem; font-size: 1.08rem; }
.btn-sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- akční pruh */
.promo { background: var(--mustard); color: var(--ink); font-size: .98rem; }
.promo-inner { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; align-items: center; justify-content: center; padding: .6rem 0; text-align: center; }
.promo p { margin: 0; }
.promo-date { margin-left: .4rem; }
.promo a { color: var(--ink); font-weight: 700; }

/* ---------------------------------------------------------------- hlavička */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--green); color: var(--white); }
.header-inner { display: flex; align-items: center; gap: 1.2rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand:hover { color: inherit; }
.brand strong { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1.1; color: var(--white); }
.brand small { display: block; font-size: .8rem; opacity: .9; }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.05rem; white-space: nowrap; min-height: 44px; }
.header-phone:hover { color: var(--mustard); }

.nav { display: flex; align-items: center; gap: 1.3rem; }
.nav a:not(.btn) { color: var(--white); text-decoration: none; font-size: 1rem; padding: .5rem 0; }
.nav a:not(.btn):hover { color: var(--mustard); }
.nav-cta { white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 0; width: 48px; height: 48px; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 26px; height: 3px; margin: 0 auto; background: var(--white); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -8px; } .nav-toggle-bar::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--green); padding: .4rem 1.25rem 1.4rem; border-top: 1px solid rgba(255,255,255,.15); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1.1rem; }
  .nav-cta { margin-top: 1rem; }
}
@media (max-width: 560px) {
  .header-phone span { display: none; }
  .header-phone { width: 44px; justify-content: center; }
  .brand small { display: none; }
}

/* ---------------------------------------------------------------- úvod */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.6rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: .6rem 1.8rem; }
.hero-points li { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.hero-points li::before { content: ""; width: 24px; height: 24px; flex: none; background: url("../img/ikona-fajfka-zelena.svg") center / contain no-repeat; }
.hero-image { position: relative; margin: 0; }
.hero-image img { width: 100%; border-radius: 16px; aspect-ratio: 6 / 5; object-fit: cover; background: var(--gray-50); }
.hero-sub .hero-image img { aspect-ratio: 16 / 10; }
.tag-illustr { position: absolute; right: 10px; bottom: 10px; background: rgba(31,36,33,.72); color: #fff; font-size: .75rem; padding: .2rem .55rem; border-radius: 999px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { max-width: 560px; }
  .hero-actions .btn { flex: 1 1 220px; }
}
@media (max-width: 420px) { .hero-points { grid-template-columns: 1fr; } }

.breadcrumb { font-size: .9rem; padding-top: 1.2rem; color: var(--ink-2); }
.breadcrumb a { color: var(--ink-2); }

/* ---------------------------------------------------------------- sekce */
.section { padding: var(--sec) 0; }
.section-alt { background: var(--gray-50); }
.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }

/* služby – karty */
.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.2rem; }
.service { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.service-media { display: block; aspect-ratio: 16 / 10; background: var(--green-soft); }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-icon { display: grid; place-items: center; width: 100%; height: 100%; background: var(--green-soft); }
.service-icon img { width: 72px; height: 72px; }
.service-icon-lg { aspect-ratio: 16 / 10; border-radius: 16px; }
.service-icon-lg img { width: 120px; height: 120px; }
.service-body { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.service h3 { margin: 0; font-size: 1.15rem; }
.service h3 a { color: var(--ink); text-decoration: none; }
.service h3 a:hover { color: var(--green); text-decoration: underline; }
.service p { color: var(--ink-2); font-size: .98rem; margin: 0 0 .9rem; }
.service .btn { margin-top: auto; align-self: flex-start; }

/* ceník */
.pricing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: start; }
.pricing:has(> :only-child) { grid-template-columns: minmax(0, 46rem); }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.3rem, 3vw, 2rem); }
.price-list { margin: 0 0 1.4rem; }
.price-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.price-row dt { font-weight: 700; }
.price-row dd { margin: 0; text-align: right; }
.price-new { font-size: 1.35rem; font-weight: 800; color: var(--green); }
.price-unit { color: var(--ink-2); }
.price-old { display: block; font-size: .9rem; color: var(--ink-2); }
.price-empty { font-size: 1.1rem; }
.price-empty strong { display: block; font-size: 1.3rem; margin-bottom: .3rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.check-list li { position: relative; padding-left: 2rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; background: url("../img/ikona-fajfka-zelena.svg") center / contain no-repeat; }
.check-list-lg { gap: .8rem; font-size: 1.05rem; }
.price-side h3 { margin-top: 1.5rem; }
.examples { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.examples th, .examples td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.examples td { text-align: right; font-weight: 700; white-space: nowrap; }
.promo-box { background: #FBF1DC; border: 1px solid #EBCB8B; border-radius: 12px; padding: 1.1rem 1.2rem; color: var(--ink-2); font-size: .95rem; }
.promo-box strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: .3rem; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

/* postup */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem 1.5rem; }
.step-num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--white); font-weight: 800; font-size: 1.4rem; margin-bottom: 1rem; }
.steps p { color: var(--ink-2); margin: 0; }
.steps-compact { grid-template-columns: 1fr; gap: .8rem; }
.steps-compact li { display: grid; grid-template-columns: 44px 1fr; gap: .2rem 1rem; padding: 1rem 1.2rem; }
.steps-compact .step-num { width: 44px; height: 44px; font-size: 1.1rem; margin: 0; grid-row: span 2; }
.steps-compact h3 { margin: 0; font-size: 1.05rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.notice { display: flex; gap: .8rem; align-items: flex-start; margin: 2rem 0 0; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 0; padding: 1rem 1.2rem; font-size: .98rem; color: var(--ink-2); }
.notice img { flex: none; margin-top: .1rem; }

/* důvěra */
.trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.2rem; }
.trust li { border-top: 3px solid var(--green); padding-top: 1.1rem; }
.trust img { margin-bottom: .7rem; }
.trust h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.trust p { color: var(--ink-2); margin: 0; font-size: .98rem; }

/* galerie */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.gallery-item { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.8rem 1rem .8rem; text-align: left; background: linear-gradient(transparent, rgba(20,28,23,.85)); color: #fff; font-weight: 700; font-size: 1rem; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); width: 100%; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 26, 22, .88); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 10px; background: var(--gray-50); }
.lightbox figcaption { color: #fff; text-align: center; padding: .8rem; font-weight: 700; }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; cursor: pointer; background: var(--mustard); color: var(--ink); width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; }
.lightbox-close { top: -14px; right: -14px; z-index: 2; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: -16px; } .lightbox-next { right: -16px; }

/* kontakt + formulář */
.section-contact { background: var(--green-soft); }
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: .7rem; font-size: 1.1rem; }
.contact-list a { font-weight: 700; color: var(--green); }
.areas-text { color: var(--ink-2); }
.related { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.related a { display: inline-block; padding: .3rem 0; font-weight: 600; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

.form-card { background: var(--white); border-radius: 14px; padding: clamp(1.4rem, 3.5vw, 2.4rem); border: 1px solid var(--line); }
.form-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.form-lead { color: var(--ink-2); margin-bottom: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; }
.req { font-weight: 400; font-size: .85rem; color: var(--ink-2); margin-left: .3rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--white); border: 2px solid #C5CCC6; border-radius: var(--r); padding: .7rem .9rem; }
.field textarea { resize: vertical; min-height: 8rem; }
.field input[type="file"] { padding: .7rem; background: var(--gray-50); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,74,58,.2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.error { color: var(--danger); font-size: .95rem; margin: .35rem 0 0; font-weight: 600; }
.hint { color: var(--ink-2); font-size: .9rem; margin: .35rem 0 0; }
.hint-ok { color: var(--ok); font-weight: 700; }
.hint-err { color: var(--danger); font-weight: 600; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.optional { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 1rem; background: var(--gray-50); }
.optional summary { cursor: pointer; padding: .9rem 1rem; font-weight: 700; color: var(--green); min-height: 48px; list-style-position: inside; }
.optional summary span { font-weight: 400; color: var(--ink-2); }
.optional-body { padding: .3rem 1rem .2rem; }
.optional-code summary { font-weight: 600; }
.field-code input { text-transform: uppercase; letter-spacing: .05em; max-width: 18rem; }
.btn-block.btn-lg { margin-top: .6rem; }
.form-note { text-align: center; font-weight: 600; margin: .8rem 0 1.2rem; }

.alert { border-radius: var(--r); padding: 1rem 1.1rem; margin-bottom: 1.4rem; }
.alert strong { display: block; }
.alert-ok { background: #E3F0E5; color: var(--ok); border: 1px solid #B9D8BF; }
.alert-err { background: #F8E6E1; color: var(--danger); border: 1px solid #EBC2B8; }

/* podstránky */
.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .sub-grid { grid-template-columns: 1fr; } }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }

/* ---------------------------------------------------------------- patička */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.88); padding: 3.5rem 0 1.4rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--mustard); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2.4rem; }
.site-footer .brand { margin: 0; }
.footer-note { margin-top: 1.1rem; font-size: .88rem; max-width: 30rem; }
.footer-h { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mustard); margin-bottom: .8rem; }
.footer-h2 { margin-top: 1.6rem; }
.footer-list { list-style: none; padding: 0; margin: 0; font-style: normal; line-height: 1.9; }
.footer-small { font-size: .85rem; opacity: .85; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.4rem; padding-top: 1.1rem; font-size: .88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- mobilní spodní lišta */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--white); border-top: 1px solid var(--line); padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom)); gap: .5rem; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; border-radius: var(--r); font-weight: 800; font-size: 1.05rem; text-decoration: none; }
  .mobile-bar-call { background: var(--mustard); color: var(--ink); }
  .mobile-bar-write { background: var(--green); color: #fff; }
  .mobile-bar-write:hover { color: #fff; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
