/* =========================================================
   Skleníky Hertl – moderní verze
   Barvy: pozink (šedé), modrá Hertl, břidlice. Písmo: Archivo.
   ========================================================= */

@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --blue: #0879b9;
    --blue-bright: #0a8dd3;
    --blue-dark: #06659c;
    --blue-tint: #e3f2fb;
    --slate: #1e2a30;
    --slate-soft: #4a5960;
    --zinc-50: #f2f5f6;
    --zinc-100: #e6ebed;
    --zinc-300: #c7d0d4;
    --zinc-500: #8d999f;
    --leaf: #5e9e2f;
    --white: #fff;

    --zinc-metal: linear-gradient(135deg, #f6f8f9 0%, #b9c3c8 38%, #eef2f3 55%, #a3aeb4 100%);

    --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --wide: 118%;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(56px, 8vw, 104px);
    --header-h: 72px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--slate);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--blue); }

h1, h2, h3 {
    margin: 0;
    font-stretch: var(--wide);
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -0.012em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem); }
h3 { font-size: 1.2rem; font-stretch: 108%; font-weight: 700; }

p { margin: 0 0 1em; }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 2px;
}

.wrap {
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--slate);
    color: #fff;
    border-radius: 6px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Tlačítka ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 6px;
    font: 650 1rem/1.2 var(--font);
    font-stretch: 106%;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-primary[aria-current="page"] { background: var(--blue-dark); }

.btn-quiet { background: rgba(255, 255, 255, .7); color: var(--slate); border-color: rgba(30, 42, 48, .18); }
.btn-quiet:hover { background: #fff; color: var(--slate); border-color: var(--slate); }

.btn-white { background: #fff; color: var(--blue-dark); }
.btn-white:hover { background: var(--blue-tint); color: var(--blue-dark); }
.btn-outline-white { color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-white:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .12); }

.btn-small { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn-block { width: 100%; }

.btn-text {
    padding: 12px 8px;
    border: 0;
    background: none;
    color: var(--slate-soft);
    font: 500 .95rem var(--font);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.btn-text:hover { color: var(--slate); }

.text-link { font-weight: 650; }

/* ---------- Hlavička ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--zinc-100);
    backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    color: var(--slate);
    text-decoration: none;
}
.brand:hover { color: var(--slate); }
.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: linear-gradient(#1ea4e6, var(--blue-bright));
    color: #fff;
    font-weight: 800;
    font-stretch: 112%;
    font-size: 1.35rem;
    line-height: 1;
}
.brand-name {
    font-weight: 780;
    font-stretch: 122%;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.site-nav ul a {
    position: relative;
    padding: 8px 0;
    color: var(--slate);
    font-weight: 560;
    text-decoration: none;
}
.site-nav ul a:hover { color: var(--blue-dark); }
.site-nav ul a[aria-current="page"] { color: var(--blue-dark); }
.site-nav ul a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--blue);
}
.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--slate);
    font-weight: 700;
    font-stretch: 108%;
    text-decoration: none;
    white-space: nowrap;
}
.nav-phone svg { width: 18px; height: 18px; fill: var(--blue); }

.icon-button {
    display: none;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--zinc-300);
    border-radius: 6px;
    background: #fff;
    color: var(--slate);
    cursor: pointer;
}
.icon-button svg { width: 24px; height: 24px; fill: currentColor; }
.call-button svg { fill: var(--blue); }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: inline; }

/* ---------- Úvod: fotka a skleněný panel ---------- */

.hero { padding: 20px var(--gutter) 0; }
.hero-frame {
    position: relative;
    max-width: 1320px;
    margin-inline: auto;
    min-height: clamp(460px, 72vh, 640px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 4px;
    background: var(--zinc-100);
}
.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 60%;
}

/* Tabule rozptylového skla v pozinkovaném rámu */
.glass-pane {
    position: relative;
    width: min(600px, calc(100% - 2 * clamp(16px, 4vw, 48px)));
    margin: clamp(16px, 4vw, 48px);
    border: 10px solid transparent;
    background:
        linear-gradient(rgba(243, 248, 251, .58), rgba(243, 248, 251, .58)) padding-box,
        var(--zinc-metal) border-box;
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    backdrop-filter: blur(14px) saturate(1.15);
    box-shadow: 0 18px 50px rgba(20, 34, 40, .28);
    animation: pane-in .9s cubic-bezier(.2, .7, .2, 1) both .15s;
}
.glass-top { padding: clamp(24px, 3.4vw, 40px) clamp(22px, 3.4vw, 40px) 26px; }
.glass-top h1 { margin-bottom: 16px; }
.glass-top p { margin: 0; font-size: 1.125rem; color: var(--slate); max-width: 46ch; }
.glass-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 22px clamp(22px, 3.4vw, 40px) clamp(22px, 3vw, 32px);
    border-top: 8px solid transparent;
    border-image: var(--zinc-metal) 1;
}

@keyframes pane-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

/* Tři sliby pod fotkou */
.promises { border-bottom: 1px solid var(--zinc-100); }
.promise-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-block: 0;
    padding-top: 28px;
    padding-bottom: 28px;
    list-style: none;
}
.promise-list li {
    display: flex;
    gap: 14px;
    padding: 4px 28px;
}
.promise-list li + li { border-left: 1px solid var(--zinc-100); }
.promise-list li:first-child { padding-left: 0; }
.promise-list svg {
    flex: none;
    width: 28px;
    height: 28px;
    padding: 4px;
    border-radius: 50%;
    background: #ebf4e3;
    fill: var(--leaf);
}
.promise-list strong { display: block; font-stretch: 108%; font-size: 1.08rem; }
.promise-list span { display: block; color: var(--slate-soft); font-size: .95rem; line-height: 1.45; }

/* ---------- Sekce ---------- */

.section { padding-block: var(--section); }
.section-zinc { background: var(--zinc-50); }

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
}
.split-wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }

.prose { max-width: 62ch; }
.prose h2 { margin-bottom: 22px; }
.prose h3 { margin: 32px 0 14px; }
.prose p { color: var(--slate-soft); }

.glass-sample { margin: 0 0 18px; border: 6px solid transparent; background: var(--zinc-metal) border-box; }
.glass-sample img { width: 100%; height: 120px; object-fit: cover; }

/* Technické parametry jako výrobní štítek */
.spec-plate {
    padding: 30px 30px 28px;
    border: 1px solid var(--zinc-300);
    border-radius: 4px;
    background: linear-gradient(180deg, #fbfcfc, var(--zinc-50));
}
.spec-plate h2 { font-size: 1.35rem; margin-bottom: 18px; }
.spec-plate dl { margin: 0 0 26px; }
.spec-plate dl div {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid var(--zinc-100);
}
.spec-plate dt { color: var(--slate-soft); font-size: .95rem; }
.spec-plate dd { margin: 0; font-weight: 600; line-height: 1.4; }

/* Nákres základu */
.diagram-figure {
    margin: 0;
    padding: clamp(16px, 3vw, 32px);
    border-radius: 4px;
    background: #fff;
    border: 1px solid var(--zinc-100);
}
.foundation-diagram { width: 100%; height: auto; font-family: var(--font); }
.d-soil { fill: #eceff0; }
.d-ground { stroke: var(--zinc-500); stroke-width: 2; }
.d-glass { fill: var(--blue-tint); }
.d-door { fill: #d7ebf7; stroke: var(--zinc-500); stroke-width: 2; }
.d-frame { stroke: var(--zinc-500); stroke-width: 3; fill: none; }
.d-outline { stroke: var(--slate-soft); stroke-width: 5; stroke-linejoin: round; }
.d-concrete { fill: #c3cbcf; stroke: var(--slate-soft); stroke-width: 2; }
.d-axis { stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 8 5 2 5; }
.d-dim { stroke: var(--blue); stroke-width: 2; }
.d-help { stroke: var(--blue); stroke-width: 1; stroke-dasharray: 3 3; }
.d-tick { stroke: var(--blue); stroke-width: 2; fill: none; }
.d-label { fill: var(--blue-dark); font-size: 16px; font-weight: 650; }
.d-muted { fill: var(--zinc-500); font-weight: 500; }

.check-list { margin: 0 0 1.2em; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 12px; padding: 7px 0; line-height: 1.45; }
.check-list svg { flex: none; width: 22px; height: 22px; fill: var(--leaf); margin-top: 1px; }

/* Fotky */
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 28px;
}
.photo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.photo-tile {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: var(--zinc-100);
}
.photo-tile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .35s ease;
}
.photo-tile:hover img { transform: scale(1.04); }

/* Výzva */
.cta-band { background: var(--blue); color: #fff; }
.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
    padding-block: clamp(44px, 6vw, 72px);
}
.cta-inner h2 { margin-bottom: 10px; }
.cta-inner p { margin: 0; max-width: 56ch; opacity: .92; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Záhlaví podstránek ---------- */

.page-head {
    padding-block: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 56px);
    background: var(--zinc-50);
    border-bottom: 1px solid var(--zinc-100);
}
.page-head h1 { margin-bottom: 14px; }
.lead { max-width: 64ch; margin: 0; font-size: 1.15rem; color: var(--slate-soft); }

.offer-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}
.offer-list li { display: flex; align-items: center; gap: 8px; font-weight: 560; font-size: .98rem; }
.offer-list svg { width: 20px; height: 20px; fill: var(--leaf); }

/* ---------- Ceník ---------- */

.width-tabs { display: none; }
.js .width-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 32px;
    padding: 6px;
    border-radius: 8px;
    background: var(--zinc-50);
    border: 1px solid var(--zinc-100);
}
.width-tabs button {
    min-width: 84px;
    min-height: 46px;
    padding: 8px 18px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--slate);
    font: 700 1.05rem var(--font);
    font-stretch: 112%;
    cursor: pointer;
}
.width-tabs button:hover { background: #fff; }
.width-tabs button[aria-selected="true"] {
    background: var(--slate);
    color: #fff;
}

.price-panel {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: start;
}
.price-panel[hidden] { display: none; }
html:not(.js) .price-panel[hidden] { display: grid; }
html:not(.js) .price-panel + .price-panel { margin-top: 64px; }

.price-summary { position: sticky; top: calc(var(--header-h) + 24px); }
.price-summary h2 { margin-bottom: 18px; }
.summary-list { margin: 0 0 16px; }
.summary-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--zinc-100);
}
.summary-list dt { color: var(--slate-soft); }
.summary-list dd { margin: 0; font-weight: 700; text-align: right; }
.note { color: var(--slate-soft); font-size: .95rem; }

.table-card {
    border: 1px solid var(--zinc-300);
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table caption { padding: 22px 22px 6px; text-align: left; }
.price-table caption h2 { font-size: 1.35rem; }
.price-table th {
    padding: 12px 22px;
    background: var(--zinc-50);
    border-bottom: 1px solid var(--zinc-300);
    color: var(--slate-soft);
    font-size: .9rem;
    font-weight: 600;
    text-align: left;
}
.price-table td { padding: 11px 22px; border-bottom: 1px solid var(--zinc-100); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover td { background: #f7fbfd; }
.price-table .price { font-weight: 700; white-space: nowrap; }
.price-table .on-request .price { color: var(--slate-soft); font-weight: 500; font-style: italic; }
.row-action { text-align: right; width: 1%; white-space: nowrap; }
.row-action a { font-weight: 650; font-size: .95rem; }
.on-request .row-action a { color: var(--slate-soft); }
.extras-table td:last-child, .extras-table th:last-child { text-align: right; }

/* ---------- Formuláře ---------- */

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}
.form-step {
    margin: 0 0 28px;
    padding: 28px 28px 8px;
    border: 1px solid var(--zinc-300);
    border-radius: 4px;
    min-width: 0;
}
.form-step legend {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    margin-left: -10px;
    font-weight: 750;
    font-stretch: 115%;
    font-size: 1.25rem;
}
.step-number {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--slate);
    color: #fff;
    font-size: 1rem;
    font-stretch: 100%;
}
.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}
.field { margin-bottom: 20px; }
.field-wide { grid-column: 1 / -1; }
.field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: .95rem;
}
.req { color: var(--blue); }
.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1.5px solid var(--zinc-300);
    border-radius: 6px;
    background: #fff;
    color: var(--slate);
    font: 400 1rem var(--font);
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select {
    appearance: none;
    padding-right: 40px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5960' stroke-width='2' fill='none'/%3E%3C/svg%3E") right 16px center no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--zinc-500); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(10, 141, 211, .22);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #c4472f; }
.field input[readonly] { background: var(--zinc-50); color: var(--slate-soft); }

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-weight: 560;
    cursor: pointer;
}
.checkbox input { width: 20px; height: 20px; accent-color: var(--blue); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.spam-fields, .spamCheck, .none { display: none !important; }

.order-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card {
    padding: 22px 24px;
    border-radius: 4px;
    background: var(--zinc-50);
    border: 1px solid var(--zinc-100);
}
.aside-card h2 { font-size: 1.1rem; margin-bottom: 8px; }
.aside-card p { margin: 0; color: var(--slate-soft); }
.aside-blue { background: var(--blue-tint); border-color: #c5e3f4; }
.aside-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-weight: 750;
    font-stretch: 110%;
    font-size: 1.15rem;
    color: var(--slate);
    text-decoration: none;
}
.aside-phone svg { width: 20px; height: 20px; fill: var(--blue); }

/* Kontakt */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: clamp(28px, 6vw, 80px);
    align-items: start;
}
.contact-card h2 { font-size: 1.35rem; margin-bottom: 18px; }
.contact-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--slate);
    font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2rem);
    font-weight: 780;
    font-stretch: 115%;
    text-decoration: none;
}
.contact-phone svg { width: 30px; height: 30px; fill: var(--blue); flex: none; }
.contact-line {
    display: flex;
    gap: 12px;
    margin: 0 0 12px;
    color: var(--slate);
    line-height: 1.45;
}
.contact-line svg { width: 22px; height: 22px; fill: var(--zinc-500); flex: none; margin-top: 1px; }
.map-link {
    display: block;
    position: relative;
    margin-top: 24px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--zinc-300);
}
.map-link img { width: 100%; height: 240px; object-fit: cover; }
.map-link span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 8px 14px;
    border-radius: 6px;
    background: #fff;
    color: var(--slate);
    font-weight: 650;
    font-size: .92rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.contact-layout .form h2 { margin-bottom: 22px; }
.contact-layout .form {
    padding: clamp(22px, 3vw, 36px);
    border: 1px solid var(--zinc-300);
    border-radius: 4px;
}

/* ---------- Patička ---------- */

.site-footer { background: var(--slate); color: #c9d3d7; font-size: .98rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 32px;
    padding-block: 56px 40px;
}
.brand-light, .brand-light:hover { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; margin: 0; }
.footer-title { margin-bottom: 14px; color: #fff; font-size: 1rem; font-stretch: 110%; }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { padding: 4px 0; }
.site-footer a { color: #e8eef0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
    padding-block: 18px 26px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #95a3a9;
    font-size: .9rem;
}

/* ---------- Prohlížeč fotek ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 56px 72px;
    background: rgba(18, 26, 30, .92);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 4px; }
.lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font: 32px/1 Arial, sans-serif;
    cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; color: #c9d3d7; text-align: center; font-size: .95rem; }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1080px) {
    .site-nav ul { gap: 20px; }
    .site-nav { gap: 20px; }
    .nav-phone { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    :root { --header-h: 64px; }
    body { font-size: 1rem; }

    /* Menu do rozbalovacího panelu */
    .icon-button { display: grid; }
    .header-inner { gap: 10px; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 12px var(--gutter) 24px;
        background: #fff;
        border-bottom: 1px solid var(--zinc-100);
        box-shadow: 0 16px 30px rgba(20, 34, 40, .12);
    }
    .nav-open .site-nav { display: flex; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav ul a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--zinc-100);
        font-size: 1.1rem;
    }
    .site-nav ul a[aria-current="page"]::after { display: none; }
    .site-nav .nav-phone { display: inline-flex; font-size: 1.1rem; }
    .site-nav .btn { min-height: 50px; }

    .split, .split-wide { grid-template-columns: 1fr; }
    .split .diagram-figure { order: 2; }
    .prose { max-width: none; }

    .promise-list { grid-template-columns: 1fr; gap: 16px; }
    .promise-list li, .promise-list li:first-child { padding: 0; }
    .promise-list li + li { border-left: 0; }

    .photo-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .price-panel { grid-template-columns: 1fr; }
    .price-summary { position: static; }

    .form-layout, .contact-layout { grid-template-columns: 1fr; }
    .order-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

/* =========================================================
   Mobil
   ========================================================= */
@media (max-width: 600px) {
    .brand-name { font-size: 1.05rem; font-stretch: 112%; }
    .brand-mark { width: 36px; height: 36px; font-size: 1.2rem; }

    /* Fotka nahoře, skleněný panel přes její spodní okraj */
    .hero { padding: 0; }
    .hero-frame {
        display: block;
        min-height: 0;
        overflow: visible;
        border-radius: 0;
        background: none;
    }
    .hero-photo { position: static; aspect-ratio: 4 / 3; height: auto; }
    .glass-pane {
        width: auto;
        margin: -64px 12px 0;
        border-width: 8px;
        background:
            linear-gradient(rgba(246, 249, 251, .9), rgba(246, 249, 251, .9)) padding-box,
            var(--zinc-metal) border-box;
        box-shadow: 0 12px 32px rgba(20, 34, 40, .2);
    }
    .glass-top p { font-size: 1.02rem; }
    .glass-bottom { flex-direction: column; border-top-width: 6px; }
    .glass-bottom .btn { width: 100%; }

    .promise-list { padding-top: 32px; }

    .spec-plate { padding: 22px 18px; }
    .spec-plate dl div { grid-template-columns: 6.2rem 1fr; }

    .js .width-tabs { display: flex; width: 100%; }
    .width-tabs button { flex: 1 1 0; min-width: 0; padding: 8px 4px; font-size: .98rem; }

    .price-table th, .price-table td { padding: 11px 14px; }
    .price-table caption { padding: 18px 14px 4px; }

    .form-step { padding: 22px 16px 4px; }
    .field-grid { grid-template-columns: 1fr; }
    .form-actions .btn { width: 100%; }
    .form-actions { justify-content: center; }
    .field input, .field select, .field textarea { font-size: 16px; }

    .cta-actions, .cta-actions .btn { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-block: 44px 28px; }

    .lightbox { padding: 60px 8px 76px; }
    .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
