/* =========================================================
   Půjč si zahradu — hlavní stylopis
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    padding: 0;
    margin: 0;
}

li {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
}

input, textarea {
    font: inherit;
}

h1, h2, h3, h4, p {
    margin: 0;
}

/* ---------- Proměnné ---------- */
:root {
    --ink: #1b1b1b;
    --text: #3f4438;
    --text-muted: #4a4f42;
    --text-muted-2: #5a6050;
    --text-muted-3: #8a8f80;
    --text-muted-4: #9a9f90;

    --green: #4e8c2b;
    --green-hover: #3f7522;
    --green-dark: #3a6d1f;
    --green-darker: #2c5417;
    --green-deep: #2f5d22;
    --green-pale: #e7f1db;

    --border: #e8eae0;
    --border-2: #e6e8de;
    --border-3: #eef0e8;
    --input-border: #d5d8cb;

    --bg: #ffffff;
    --bg-soft: #f7f9f3;
    --bg-soft-2: #eef2e8;

    --cal-free-bg: #eef6e6;
    --cal-free-border: #dcebc9;
    --cal-booked-bg: #fde3e1;
    --cal-booked-text: #b64b43;
    --cal-range-bg: #cfe6b8;
    --cal-selected-bg: #2f5d22;
    --cal-closed-bg: #f1f2ee;
    --cal-closed-text: #b7bbb0;

    --footer-bg: #1b1e17;
    --footer-text: #cdd3c4;
    --footer-muted: #9aa093;
    --footer-border: #2c3025;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    --shadow-card: 0 18px 40px -22px rgba(30, 50, 15, 0.45);
    --shadow-float: 0 12px 30px -12px rgba(0, 0, 0, 0.18);
    --shadow-hero: 0 24px 60px -24px rgba(30, 50, 15, 0.4);

    --font-head: 'Barlow Condensed', system-ui, sans-serif;
    --font-body: 'Barlow', system-ui, sans-serif;

    --container: 1200px;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Zabránit přetečení dlouhých slov / URL mimo šířku obrazovky */
h1, h2, h3, p, a, span, li {
    overflow-wrap: break-word;
}

a {
    color: var(--green-dark);
    text-decoration: none;
}

a:hover {
    color: var(--green-darker);
}

::selection {
    background: #cfe6b8;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    left: 0;
    top: -80px;
    background: var(--green);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
    font-weight: 700;
    z-index: 200;
    transition: top .15s ease;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* ---------- Tlačítka ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 26px;
    border-radius: 9px;
    border: 1.5px solid transparent;
    transition: background .15s ease, color .15s ease, transform .1s ease, box-shadow .15s ease;
}

.btn-primary {
    background: var(--green);
    color: #fff;
}

.btn-primary:hover {
    background: var(--green-hover);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: var(--ink);
    border-color: var(--input-border);
}

.btn-secondary:hover {
    border-color: #b9bdac;
    color: var(--ink);
}

.btn-block {
    display: flex;
    width: 100%;
    text-align: center;
    justify-content: center;
}

.btn-phone {
    background: var(--green);
    color: #fff;
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-phone:hover {
    background: var(--green-hover);
    color: #fff;
}

/* ---------- Notifikační banner ---------- */
.site-banner {
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    font-size: 14.5px;
}

.site-banner--info {
    background: var(--green-pale);
    color: var(--green-darker);
}

.site-banner--warning {
    background: #fde3e1;
    color: var(--cal-booked-text);
}

.site-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    padding-top: 14px;
    padding-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    height: 46px;
    width: auto;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 0.92;
}

.brand-name .title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.3px;
}

.brand-name .title .accent {
    color: var(--green);
}

.brand-name .sub {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 2.2px;
    color: var(--text-muted-3);
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a:not(.btn-phone) {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 15px;
}

.main-nav a[aria-current="page"] {
    color: var(--green-dark);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(180deg, #f4f6ef 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border);
}

.hero .container {
    padding-top: 64px;
    padding-bottom: 56px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-pale);
    color: var(--green-dark);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.4px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
}

.hero h1 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 60px;
    line-height: 0.98;
    margin: 18px 0 0;
    letter-spacing: -0.5px;
}

.hero h1 .accent {
    color: var(--green);
}

.hero p.lead {
    font-size: 18px;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 520px;
    margin: 20px 0 0;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-media {
    position: relative;
}

.hero-photo {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hero);
    background: var(--bg-soft-2);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-photo-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    background: var(--green);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-float);
}

.hero-price-badge {
    position: absolute;
    bottom: -18px;
    left: -18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: var(--shadow-float);
}

.hero-price-badge .amount {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 26px;
    color: var(--green);
    line-height: 1;
}

.hero-price-badge .note {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted-3);
    margin-top: 2px;
}

/* ---------- Sekce nadpisy ---------- */
/* Pozor: .section/.catalog-section bývají na stejném elementu jako .container,
   proto NIKDY nepoužívat zkrácený `padding` (vynuloval by vodorovný padding
   kontejneru). Vždy jen padding-top/padding-bottom. */
.section {
    padding-top: 64px;
    padding-bottom: 20px;
}

.section-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 34px;
    text-align: center;
    margin: 0;
}

.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.section-head-row .section-title {
    text-align: left;
}

.section-count {
    color: var(--text-muted-3);
    font-weight: 600;
    font-size: 15px;
}

/* ---------- Filtr katalogu ---------- */
.catalog-filters {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.catalog-search {
    position: relative;
    max-width: 420px;
}

.catalog-search svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted-3);
    pointer-events: none;
}

.catalog-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-family: var(--font-body);
    background: #fff;
    color: var(--ink);
}

.catalog-search input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(78, 140, 43, 0.14);
}

.catalog-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-chip {
    padding: 8px 17px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--input-border);
    background: #fff;
    color: var(--text-muted-2);
    font-weight: 600;
    font-size: 13.5px;
    transition: background .14s ease, color .14s ease, border-color .14s ease;
}

.catalog-chip:hover {
    border-color: var(--green);
    color: var(--green-dark);
}

.catalog-chip.is-active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.catalog-empty {
    display: none;
    text-align: center;
    padding: 46px 20px;
    color: var(--text-muted-3);
    font-weight: 600;
    font-size: 15px;
}

.catalog-empty:not([hidden]) {
    display: block;
}

[data-catalog-item][hidden] {
    display: none;
}

/* ---------- Jak to funguje ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 34px;
}

.step-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
}

.step-num {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 22px;
    margin: 16px 0 6px;
}

.step-card p {
    color: var(--text-muted-2);
    font-size: 15.5px;
    line-height: 1.5;
}

/* ---------- FAQ ---------- */
.faq-section {
    padding-top: 20px;
    padding-bottom: 76px;
    scroll-margin-top: 80px;
}

.faq-list {
    max-width: 820px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-soft);
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 17px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-weight: 700;
    font-family: var(--font-head);
    font-size: 17.5px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary .faq-icon {
    flex-shrink: 0;
    color: var(--green);
    transition: transform .18s ease;
}

.faq-item[open] summary .faq-icon {
    transform: rotate(45deg);
}

.faq-item .faq-answer {
    overflow: hidden;
    transition: height .22s ease;
}

.faq-item .faq-answer-inner {
    padding: 0 22px 20px;
    color: var(--text-muted-2);
    font-size: 15px;
    line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
    .faq-item .faq-answer {
        transition: none;
    }
}

/* ---------- Grass divider ---------- */
.grass-divider {
    display: block;
    width: 100%;
    height: 46px;
    color: #7ec24d;
}

/* ---------- Katalog ---------- */
.catalog-section {
    padding-top: 52px;
    padding-bottom: 72px;
    scroll-margin-top: 80px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 28px;
}

.machine-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    color: inherit;
    transition: box-shadow .18s ease, transform .18s ease;
}

.machine-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
    color: inherit;
}

.machine-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg-soft-2);
}

.machine-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.machine-card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.machine-card-body h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 21px;
    line-height: 1.05;
}

.machine-card-body p {
    margin: 8px 0 0;
    color: var(--text-muted-2);
    font-size: 14.5px;
    line-height: 1.45;
    flex: 1;
}

.machine-card-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-3);
}

.machine-card-price .amount {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 24px;
    color: var(--green);
}

.machine-card-price .unit {
    font-weight: 600;
    color: var(--text-muted-3);
    font-size: 14px;
}

.machine-card-price .detail-link {
    font-weight: 700;
    color: var(--green);
    font-size: 14px;
}

.machine-card-deposit {
    font-size: 12.5px;
    color: var(--text-muted-4);
    font-weight: 500;
    margin-top: 6px;
}

/* ---------- Kategorie — badge u fotky ---------- */
.photo-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 20px);
}

.category-badge {
    background: rgba(27, 30, 23, 0.72);
    backdrop-filter: blur(3px);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-float);
}

/* ---------- Photo slot placeholder ---------- */
.photo-slot {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-soft-2);
    border: 1px dashed #cdd6c0;
    color: var(--text-muted-3);
    text-align: center;
    padding: 12px;
}

.photo-slot svg {
    opacity: 0.55;
}

.photo-slot span {
    font-size: 12.5px;
    font-weight: 600;
}

.machine-card-media .photo-slot,
.hero-photo .photo-slot,
.gallery-main .photo-slot {
    border: none;
    border-radius: inherit;
}

/* ---------- Zpět link ---------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-muted-2);
}

/* ---------- Detail stroje ---------- */
.detail-main {
    padding: 26px 0 72px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
    margin-top: 20px;
    align-items: start;
}

.gallery-main {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--bg-soft-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--bg-soft-2);
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.gallery-main img, .gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb {
    cursor: zoom-in;
    padding: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(27, 30, 23, 0);
    transition: background-color .15s ease;
}

.gallery-thumb:hover::after,
.gallery-thumb:focus-visible::after {
    background: rgba(27, 30, 23, 0.18);
}

.gallery-zoom {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
}

.zoom-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(27, 30, 23, 0.55);
    color: #fff;
    opacity: 0.85;
    transition: opacity .15s ease, background-color .15s ease;
    pointer-events: none;
}

.gallery-zoom:hover .zoom-badge,
.gallery-zoom:focus-visible .zoom-badge {
    opacity: 1;
    background: rgba(27, 30, 23, 0.75);
}

.gallery-thumb:focus-visible,
.gallery-zoom:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: -2px;
}

/* ---------- Lightbox fotogalerie ---------- */
.lightbox {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 17, 12, 0.92);
}

.lightbox[hidden] {
    display: none;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox-figure {
    margin: 0;
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
    color: var(--footer-text);
    font-size: 14px;
    font-weight: 600;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: background-color .15s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.lightbox-nav[hidden] {
    display: none;
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.lightbox-close {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
}

.lightbox-nav {
    top: 50%;
    width: 52px;
    height: 52px;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 18px;
}

.lightbox-next {
    right: 18px;
}

.detail-info .eyebrow {
    display: inline-block;
}

.detail-info h1 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 40px;
    line-height: 1.02;
    margin: 14px 0 0;
}

.detail-info .lead {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 14px 0 0;
}

.price-box {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px;
    margin-top: 22px;
}

.price-box .price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-box .price-amount {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 38px;
    color: var(--green);
    line-height: 1;
}

.price-box .price-unit {
    font-weight: 600;
    color: var(--text-muted-3);
    font-size: 16px;
}

.price-box .deposit-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-2);
    color: var(--text-muted-2);
    font-weight: 600;
    font-size: 15px;
}

.price-box .btn {
    margin-top: 16px;
}

.info-box {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 16px;
}

.info-box.plain {
    background: #fff;
}

.info-box h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 6px;
}

.info-box.included h3 {
    color: var(--green-dark);
}

.info-box p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-muted);
}

.detail-columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    margin-top: 44px;
    align-items: start;
}

.detail-columns--full {
    grid-template-columns: 1fr;
}

.detail-columns h2 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 26px;
    margin: 0 0 12px;
}

.detail-desc {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--text);
    white-space: pre-line;
}

.video-slot {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #12140f;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-slot iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Rezervace ---------- */
.booking-section {
    margin-top: 52px;
    scroll-margin-top: 80px;
}

.booking-panel {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.booking-panel h2 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 30px;
    margin: 0;
}

.booking-panel > div > p {
    color: var(--text-muted-2);
    font-size: 15.5px;
    margin: 6px 0 22px;
}

.booking-success {
    background: var(--green-pale);
    border: 1px solid #bcdca0;
    border-radius: 12px;
    padding: 22px 24px;
}

.booking-success .title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 22px;
    color: var(--green-dark);
}

.booking-success p {
    margin: 8px 0 0;
    color: var(--text);
    font-size: 15.5px;
    line-height: 1.5;
}

.booking-success .again {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
    color: var(--green-dark);
}

.booking-success-mail {
    display: inline-block;
    margin-top: 12px;
    margin-right: 16px;
    font-weight: 700;
    color: var(--green-dark);
}

.booking-success-again {
    display: inline-block;
    margin-top: 12px;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 700;
    color: var(--green-dark);
    text-decoration: underline;
}

.booking-body {
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 28px;
    align-items: start;
}

.calendar {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border: 1px solid #e2e6da;
    border-radius: 14px;
    padding: 18px 20px;
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.calendar-head button {
    border: none;
    background: transparent;
    padding: 6px;
    display: flex;
    border-radius: 8px;
}

.calendar-head button:hover {
    background: var(--bg-soft-2);
}

.calendar-head button svg {
    fill: var(--green-deep);
}

.calendar-month {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 22px;
    color: #1b3d10;
    letter-spacing: 0.2px;
}

.calendar-dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 6px;
}

.calendar-dow span {
    text-align: center;
    font-weight: 700;
    font-size: 12.5px;
    color: var(--text-muted-3);
    display: block;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-grid button, .calendar-grid .cell-blank {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-weight: 600;
    font-size: 14px;
    user-select: none;
    border: none;
    background: transparent;
    font-family: inherit;
}

/* Stavové třídy zanořené pod .calendar-grid, aby přebily reset
   `.calendar-grid button { background:transparent; border:none }` (vyšší specificita). */
.calendar-grid .cal-free {
    background: var(--cal-free-bg);
    color: #2f4d1c;
    cursor: pointer;
    border: 1px solid var(--cal-free-border);
}

.calendar-grid .cal-booked {
    background: var(--cal-booked-bg);
    color: var(--cal-booked-text);
    cursor: not-allowed;
}

.calendar-grid .cal-closed {
    background: var(--cal-closed-bg);
    color: var(--cal-closed-text);
    cursor: default;
}

.calendar-grid .cal-range {
    background: var(--cal-selected-bg);
    color: #fff;
    cursor: pointer;
}

.calendar-grid .cal-selected {
    background: var(--cal-selected-bg);
    color: #fff;
    cursor: pointer;
    border: 1px solid var(--cal-selected-bg);
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-3);
    font-size: 13px;
    color: var(--text-muted-2);
    font-weight: 600;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
}

.legend-swatch.free {
    background: var(--cal-free-bg);
    border: 1px solid var(--cal-free-border);
}

.legend-swatch.booked {
    background: var(--cal-booked-bg);
}

.legend-swatch.selected {
    background: var(--cal-selected-bg);
}

.legend-swatch.closed {
    background: var(--cal-closed-bg);
}

.calendar-hint {
    margin-top: 12px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--green-dark);
    min-height: 20px;
}

.booking-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-content: start;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.field.full {
    grid-column: 1 / -1;
}

.field[hidden] {
    display: none;
}

.field input,
.field textarea {
    padding: 11px 12px;
    border: 1px solid var(--input-border);
    border-radius: 9px;
    font-size: 15px;
    background: #fff;
}

.field input:focus,
.field textarea:focus,
.calendar-grid button:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 1px;
}

.field textarea {
    resize: vertical;
}

.delivery-toggle {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.delivery-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1.5px solid var(--input-border);
    border-radius: 9px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted-2);
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease, color .14s ease;
}

.delivery-option input {
    accent-color: var(--green);
}

.delivery-option.is-active {
    border-color: var(--green);
    background: var(--green-pale);
    color: var(--green-dark);
}

.summary-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
}

.summary-box h3 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 20px;
    margin: 0 0 2px;
}

.summary-machine {
    font-size: 14px;
    color: var(--text-muted-3);
    font-weight: 600;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 24px;
    margin-top: 6px;
}

.summary-grid .summary-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 0;
    border-top: 1px dashed var(--border-2);
}

.summary-grid .summary-item .label {
    color: var(--text-muted-2);
    font-size: 14px;
}

.summary-grid .summary-item .value {
    font-weight: 700;
    font-size: 16px;
}

.summary-total {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-2);
}

.summary-total-label {
    font-weight: 700;
    font-size: 15px;
}

.summary-total-note {
    font-size: 12.5px;
    color: var(--text-muted-4);
    line-height: 1.4;
    max-width: 420px;
}

.summary-submit {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.summary-grand {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 34px;
    color: var(--green);
    white-space: nowrap;
}

.summary-submit button {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
}

.summary-submit button:hover {
    background: var(--green-hover);
}

.summary-submit button:disabled {
    background: #b9bdac;
    cursor: not-allowed;
}

.summary-submit button.is-loading {
    background: var(--green);
    opacity: 0.9;
    cursor: progress;
}

.summary-submit button.is-loading::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 9px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: booking-spin 0.7s linear infinite;
}

@keyframes booking-spin {
    to {
        transform: rotate(360deg);
    }
}

.form-error {
    color: var(--cal-booked-text);
    font-size: 13.5px;
    font-weight: 600;
    margin-top: -4px;
}

.form-error.full {
    grid-column: 1 / -1;
    margin-top: 0;
}

/* ---------- Kontakt ---------- */
.page-narrow {
    max-width: 1000px;
    margin: 0 auto;
    padding: 44px 24px 80px;
}

.page-narrower {
    max-width: 860px;
    margin: 0 auto;
    padding: 44px 24px 80px;
}

.page-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 44px;
    margin: 0;
}

/* Nadpis navazující na odkaz „← Zpět" nad ním */
.back-link + .page-title {
    margin-top: 14px;
}

.page-lead {
    color: var(--text-muted-2);
    font-size: 17px;
    margin: 8px 0 0;
}

/* ---------- Chybové stránky (404 / 403 / 500) ---------- */
.error-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 72px 24px 96px;
    text-align: center;
}

.error-emoji {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 8px;
}

.error-code {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(96px, 22vw, 180px);
    line-height: .9;
    letter-spacing: -2px;
    color: var(--green);
    margin: 0;
}

.error-page .page-title {
    margin-top: 12px;
    font-size: clamp(28px, 6vw, 40px);
}

.error-page .page-lead {
    margin: 12px auto 0;
    max-width: 470px;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.contact-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.contact-card h2 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 22px;
    margin: 0 0 16px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 16px;
    color: var(--text);
}

.contact-list .company-name {
    font-weight: 700;
}

.contact-list .company-ico {
    color: var(--text-muted-3);
    font-size: 14px;
}

.contact-list .row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.contact-list .row.addr {
    align-items: flex-start;
}

.contact-list .row a {
    font-weight: 600;
}

.contact-list .icon {
    color: var(--green);
}

.contact-card .btn {
    margin-top: 22px;
}

.contact-map {
    position: relative;
    background: var(--bg-soft-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    min-height: 280px;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
}

.terms-summary {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 30px;
    margin-top: 24px;
}

.terms-summary h2 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 22px;
    margin: 0 0 14px;
}

.terms-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 32px;
}

.terms-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--text);
}

.terms-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.terms-fineprint {
    font-size: 13.5px;
    color: var(--text-muted-4);
    margin: 18px 0 0;
    line-height: 1.5;
}

.terms-link {
    display: inline-block;
    margin-top: 14px;
    font-weight: 700;
    color: var(--green-dark);
}

/* ---------- Obchodní podmínky ---------- */
.legal-sections {
    display: flex;
    flex-direction: column;
    gap: 34px;
    margin-top: 36px;
}

.legal-sections section h2 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 24px;
    margin: 0 0 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--green-pale);
}

.legal-sections section p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 10px;
}

.legal-sections section p:last-child {
    margin-bottom: 0;
}

.legal-sections section ul {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-sections section ul li {
    list-style: disc;
}

.legal-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    align-items: center;
}

.legal-footer-actions .contact-note {
    color: var(--text-muted-4);
    font-size: 14px;
    margin-left: auto;
}

.legal-footer-actions .contact-note a {
    font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: auto;
}

.footer-grass {
    position: absolute;
    left: 0;
    bottom: calc(100% - 2px);
    display: block;
    pointer-events: none;
    width: 100%;
    height: 60px;
}

.footer-grid {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    padding: 56px 24px 30px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 24px;
}

.footer-brand .accent {
    color: #7db94e;
}

.footer-grid p {
    color: var(--footer-muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 12px 0 0;
    max-width: 340px;
}

.footer-col-title {
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 14.5px;
}

.footer-links a {
    color: var(--footer-text);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding: 18px 24px;
    text-align: center;
    font-size: 13px;
    color: #7c8274;
}

.footer-bottom a {
    color: #7c8274;
}

.footer-bottom a:hover {
    color: #fff;
}

/* =========================================================
   Responzivita
   ========================================================= */
@media (max-width: 980px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 46px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-columns {
        grid-template-columns: 1fr;
    }

    .booking-body {
        grid-template-columns: 1fr;
    }

    .calendar {
        max-width: 100%;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 4px;
        border-top: 1px solid var(--border);
        box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.18);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        z-index: 60;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a:not(.btn-phone) {
        padding: 14px 12px;
        font-size: 17px;
        border-radius: 8px;
        border-bottom: 1px solid var(--border);
    }

    .main-nav a:not(.btn-phone):last-of-type {
        border-bottom: none;
    }

    .main-nav .btn-phone {
        justify-content: center;
        margin-top: 12px;
        padding: 14px 16px;
        font-size: 16px;
    }

    .nav-toggle {
        display: flex;
    }

    /* Odsazení sekcí na mobilu */
    .hero .container {
        padding-top: 40px;
        padding-bottom: 44px;
        gap: 32px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p.lead {
        font-size: 16.5px;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
    }

    .section {
        padding-top: 44px;
        padding-bottom: 8px;
    }

    .section-title {
        font-size: 28px;
    }

    .catalog-section {
        padding-top: 40px;
        padding-bottom: 52px;
    }

    .section-head-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .steps {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-search {
        max-width: 100%;
    }

    .faq-section {
        padding-top: 12px;
        padding-bottom: 52px;
    }

    .faq-item summary {
        padding: 14px 18px;
        font-size: 16px;
    }

    .faq-item .faq-answer-inner {
        padding: 0 18px 16px;
    }

    .detail-main {
        padding: 20px 0 52px;
    }

    .detail-grid {
        gap: 28px;
        margin-top: 16px;
    }

    .detail-info h1 {
        font-size: 32px;
    }

    .detail-columns {
        gap: 28px;
        margin-top: 32px;
    }

    .booking-section {
        margin-top: 36px;
    }

    .booking-panel {
        padding: 18px;
        border-radius: 14px;
        gap: 20px;
    }

    .booking-panel h2 {
        font-size: 26px;
    }

    .booking-body {
        gap: 20px;
    }

    .calendar {
        padding: 14px;
    }

    .summary-box {
        padding: 18px;
    }

    .booking-fields {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid .summary-item:first-child {
        border-top: none;
        padding-top: 4px;
    }

    .summary-submit {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        padding-top: 46px;
        gap: 26px;
    }

    .terms-summary-grid {
        grid-template-columns: 1fr;
    }

    .page-narrow, .page-narrower {
        padding: 32px 20px 56px;
    }

    .page-title {
        font-size: 34px;
    }

    .page-lead {
        font-size: 16px;
    }

    .contact-grid {
        margin-top: 24px;
    }

    .contact-card {
        padding: 22px;
    }

    .terms-summary {
        padding: 22px;
    }

    .legal-sections {
        gap: 28px;
        margin-top: 28px;
    }

    .legal-sections section h2 {
        font-size: 21px;
    }

    .legal-footer-actions .contact-note {
        margin-left: 0;
        flex-basis: 100%;
    }

    .hero-price-badge {
        left: 12px;
        bottom: -14px;
    }

    .lightbox {
        padding: 12px;
    }

    .lightbox-close {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
    }

    .lightbox-nav {
        width: 42px;
        height: 42px;
    }

    .lightbox-prev {
        left: 6px;
    }

    .lightbox-next {
        right: 6px;
    }
}

@media (max-width: 400px) {
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .footer-grid {
        padding-left: 18px;
        padding-right: 18px;
    }

    .footer-bottom {
        padding-left: 18px;
        padding-right: 18px;
    }

    .brand-name .title {
        font-size: 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .calendar-grid button, .calendar-grid .cell-blank {
        height: 34px;
        font-size: 13px;
    }

    .summary-grand {
        font-size: 28px;
    }

    .summary-submit button {
        padding: 13px 18px;
    }
}

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

/* =========================================================
   Cookie lišta (cookieconsent v3) — sladění s brandem
   Proměnné jsou v knihovně na :root; #cc-main je blíž tlačítkům,
   takže tyto hodnoty vždy přebijí výchozí (nezávisle na pořadí CSS).
   ========================================================= */
#cc-main {
    --cc-btn-primary-bg: var(--green);
    --cc-btn-primary-border-color: var(--green);
    --cc-btn-primary-hover-bg: var(--green-hover);
    --cc-btn-primary-hover-border-color: var(--green-hover);
    --cc-btn-primary-color: #fff;
    --cc-btn-primary-hover-color: #fff;
    --cc-toggle-on-bg: var(--green);
    --cc-link-color: var(--green-dark);
    --cc-primary-color: var(--ink);
    --cc-font-family: var(--font-body);
}

#cc-main .cm__title,
#cc-main .pm__title {
    font-family: var(--font-head);
    font-weight: 800;
}
