/* ==========================================================================
   Poznej předky – styly
   Zlomy: 1199px (desktopová hlavička), 1024px (tablet), 991px, 767px (mobil)
   ========================================================================== */

@font-face {
    font-family: "Roboto Slab";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/roboto-slab-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Roboto Slab";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/roboto-slab-400-latin.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 {
    --c-text: #111;
    --c-gold: #ad9a6d;
    --c-gold-dark: #aa9463;
    --c-cream: #f9f5ed;
    --c-sand: #f4efe4;
    --c-brown: #865f00;
    --c-border: rgba(17, 17, 17, .1);
    --c-border-light: rgba(255, 255, 255, .1);
    --c-input-border: rgba(17, 17, 17, .15);
    --f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --f-serif: Georgia, Times, "Times New Roman", serif;
    --f-slab: "Roboto Slab", sans-serif;
}

/* ---------- Základ ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    font-size: 16px;
    line-height: 1.4;
    color: var(--c-text);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #fff;
    color: var(--c-text);
    font-family: var(--f-sans);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    overflow-x: hidden;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.is-dark { background-color: var(--c-text); }
/* Mřížky se zápornými okraji (karty, patička) nesmí stránku rozšířit do strany
   (původní šablona je ořezávala v jednotlivých sekcích). */
.site-main,
.site-footer { overflow-x: hidden; overflow-x: clip; }
body.menu-open { overflow: hidden; }

img, svg { vertical-align: middle; }
img { max-width: 100%; height: auto; }
picture { display: contents; }

a { color: inherit; text-decoration: none; transition: .2s; }
a.underline { text-decoration: underline; }

p {
    margin: 0 0 35px;
    font-family: var(--f-serif);
    line-height: 1.9;
}
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 25px;
    font-family: var(--f-serif);
    font-weight: 400;
    color: var(--c-text);
}

ul, ol { margin: 0 0 35px 1rem; padding: 0; }
li { line-height: 1.6; }

strong, b { font-weight: 600; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.skip-link {
    position: absolute;
    left: 10px;
    top: -100px;
    z-index: 1000;
    padding: 10px 20px;
    background: #fff;
    color: var(--c-text);
    font-size: 14px;
}
.skip-link:focus { top: 10px; }

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

/* ---------- Rozvržení ---------- */
.container {
    width: 1360px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Text posunutý doprava (sloupce 35 % / 65 %) */
.offset-text { padding-left: 35%; }

/* Užší blok na střed (citáty) */
.narrow { max-width: 950px; margin-left: auto; margin-right: auto; }

@media (max-width: 1024px) {
    .offset-text { padding-left: 0; }
}

@media (max-width: 767px) {
    .hide-mobile { display: none !important; }
}

/* ---------- Typografické prvky ---------- */
.quote {
    margin: 0;
    font-family: var(--f-serif);
    font-size: 2.25rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.3;
    color: var(--c-gold);
}
.quote--center { text-align: center; }

@media (max-width: 991px) {
    .quote { font-size: 1.375rem; }
}

/* Malý nadpis velkými písmeny (např. „Jak na to“) */
.label {
    margin: 0;
    font-family: var(--f-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 22.4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.label--gold { color: var(--c-gold-dark); }

/* Nadpis sekce s krátkou linkou */
.section-title { margin-bottom: 36px; }
.section-title__sub {
    display: flex;
    align-items: center;
    margin: 0;
    font-family: var(--f-sans);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.section-title__sub::before {
    content: "";
    flex: none;
    width: 30px;
    height: 1px;
    margin-right: 20px;
    background: currentColor;
}
.section-title__sub span { opacity: .5; }
.section-title__title {
    margin: 25px 0 0;
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: 1px;
}
.section-title--small .section-title__title { font-size: 36px; line-height: 1.3; }

@media (max-width: 1199px) {
    .section-title__title { font-size: 3rem; }
}
@media (max-width: 991px) {
    .section-title__title { font-size: 2.25rem; }
}
@media (max-width: 767px) {
    .section-title__title { font-size: 1.75rem; }
    .section-title--small .section-title__title { font-size: 24px; }
}

/* Tlačítko */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 10px 30px;
    border: 0;
    font-family: var(--f-sans);
    font-size: .625rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: .4s;
}
.btn--light { background: #fff; color: var(--c-text); }
.btn--dark { background: var(--c-text); color: #fff; }

/* ==========================================================================
   Hlavička
   ========================================================================== */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    color: #fff;
}
.site-header--light {
    position: relative;
    z-index: 30;
    background: #fff;
    color: var(--c-text);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 120px;
    position: relative;
}
.site-header__inner::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 1px;
    background: var(--c-border-light);
}
.site-header--light .site-header__inner::after { background: var(--c-border); }

.site-header__logo { display: flex; }
.site-header__logo img { width: 100px; height: 100px; }

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    text-transform: uppercase;
}
.site-nav li { position: relative; line-height: 1.6; }
.site-nav a {
    display: flex;
    align-items: center;
    padding: 50px 20px;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 1px;
}
.site-nav a:hover,
.site-nav a:focus-visible { opacity: .6; }
/* Německé položky menu jsou delší – menší mezery, aby se menu nezalamovalo dřív než české. */
.site-nav a:lang(de) { padding-left: 14px; padding-right: 14px; }

/* Přepínač jazyků – v pravém horním rohu hlavičky, mimo řádek menu. */
.site-langs {
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: .6875rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 1px;
}
.site-langs ul { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.site-langs a { opacity: .6; }
.site-langs a[aria-current],
.site-langs a:hover,
.site-langs a:focus-visible { opacity: 1; }

.menu-toggle {
    display: none;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
}
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1199px) {
    .site-header__inner {
        min-height: 0;
        padding-top: 30px;
        padding-bottom: 30px;
        flex-wrap: nowrap;
    }
    .site-header__inner::after { display: none; }
    .site-nav,
    .site-langs { display: none; }
    .menu-toggle { display: flex; }
}

/* Mobilní (vysouvací) menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    overflow-y: auto;
    background: #fff;
    color: var(--c-text);
    transform: translateX(100%);
    transition: transform .5s cubic-bezier(.7, 0, .3, 1), visibility 0s .5s;
    visibility: hidden;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open {
    transform: none;
    visibility: visible;
    transition: transform .5s cubic-bezier(.7, 0, .3, 1);
}
.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--c-border);
}
.mobile-menu__close {
    display: flex;
    padding: 0;
    border: 0;
    background: none;
}
.mobile-menu__close svg { width: 26px; height: 26px; }
.mobile-menu__nav { padding: 50px 40px; }
.mobile-menu__nav ul { margin: 0; padding: 0; list-style: none; }
.mobile-menu__nav li { overflow: hidden; }
.mobile-menu__nav a {
    display: inline-block;
    font-family: var(--f-serif);
    font-size: 2.25rem;
    line-height: 1.6;
    transform: translateY(80%);
    opacity: 0;
    transition: transform .6s cubic-bezier(.2, .7, .3, 1), opacity .6s, color .3s;
    transition-delay: calc(.25s + var(--i, 0) * .05s);
}
.mobile-menu.is-open .mobile-menu__nav a { transform: none; opacity: 1; }
.mobile-menu__nav a:hover { opacity: .6; }
.mobile-menu__langs { display: flex; gap: 20px; margin-top: 30px !important; }
.mobile-menu__langs a { font-family: var(--f-sans); font-size: 14px; font-weight: 600; letter-spacing: 1px; transform: none; opacity: 1; }
.mobile-menu__langs a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 991px) {
    .mobile-menu__nav { padding: 50px 0; }
    .mobile-menu__nav a { padding: 5px; font-size: 1.313rem; }
}

/* ==========================================================================
   Úvodní slider
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: var(--c-text);
    color: #fff;
}
.hero__slides,
.hero__slide { position: absolute; inset: 0; }
.hero__slide {
    --p: -1;
    overflow: hidden;
    visibility: hidden;
    transform: translate3d(calc(var(--p) * -100%), 0, 0);
}
.hero__slide.is-active,
.hero__slide.is-visible { visibility: visible; }
.hero__slide.is-active { --p: 0; }
.hero__slide.is-animating,
.hero__slide.is-animating .hero__image,
.hero__slide.is-animating .hero__subtitle,
.hero__slide.is-animating .hero__title,
.hero__slide.is-animating .hero__action { transition: transform 1.5s ease; }

.hero__image {
    position: absolute;
    inset: 0;
    background: var(--c-text);
    transform: translate3d(calc(var(--p) * -50%), 0, 0);
}
.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--overlay, .36));
}

.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100%;
    padding-top: 10vh;
    padding-bottom: 10vh;
}
.hero__inner { max-width: 65%; }
.hero__subtitle {
    margin: 0;
    font-family: var(--f-sans);
    font-size: .813rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1px;
    text-transform: uppercase;
    transform: translate3d(calc(var(--p) * -100px), 0, 0);
}
.hero__title {
    margin: 35px 0 0;
    font-family: var(--f-serif);
    font-size: 5rem;
    line-height: 1.25;
    transform: translate3d(calc(var(--p) * -200px), 0, 0);
}
.hero__action {
    margin: 35px 0 0;
    font-family: var(--f-sans);
    line-height: 1;
    transform: translate3d(calc(var(--p) * -400px), 0, 0);
}

.hero__bar {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 10;
    width: 100%;
}
.hero__bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1360px;
    max-width: 100%;
    margin: 0 auto;
    padding: 35px 0;
    border-top: 1px solid var(--c-border-light);
}
.hero__pagination { display: flex; margin: 0 -15px; }
.hero__pagination button {
    margin: 15px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-family: var(--f-sans);
    font-size: .938rem;
    font-weight: 600;
    line-height: 1.4;
    opacity: .4;
    transition: .3s;
}
.hero__pagination button.is-active { opacity: 1; }
.hero__nav { display: flex; align-items: center; gap: 20px; }
.hero__nav button {
    display: flex;
    padding: 0;
    border: 0;
    background: none;
}
.hero__nav svg { width: 40px; height: 40px; fill: #fff; }

@media (max-width: 1400px) {
    .hero__bar-inner { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 1199px) {
    .hero__inner { max-width: 100%; }
    .hero__title { font-size: 2.5rem; }
    .hero__action { margin-top: 15px; }
    .hero__bar-inner { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 991px) {
    .hero__title { margin-top: 20px; font-size: 2.25rem; }
    .hero__action { margin-top: 35px; }
}
@media (max-width: 767px) {
    .hero__title { font-size: 2rem; }
}

/* ==========================================================================
   Úvodní stránka – sekce
   ========================================================================== */

/* Náš příběh */
.story {
    padding-top: 122px;
    background: var(--c-cream);
}
.story__head { padding-bottom: 90px; }
.story__title {
    width: 50%;
    margin: 0;
    font-size: 4.375rem;
    line-height: 1;
}
.story__intro,
.story__quote { padding-bottom: 75px; }
.story__outro { padding-bottom: 90px; }

.has-dropcap .dropcap {
    float: left;
    margin-right: 10px;
    font-size: 50px;
    line-height: 1;
    text-align: center;
}
.dropcap span {
    display: inline-block;
    font-size: 7.5rem;
    line-height: .7;
}

@media (max-width: 1199px) {
    .story__title { font-size: 3.5rem; }
}
@media (max-width: 1024px) {
    .story { padding-top: 90px; }
    /* +1 px = prázdný sloupec, který měl původní web pod sebou */
    .story__head { padding-bottom: 61px; }
    .story__intro,
    .story__outro { padding-top: 1px; }
    .story__title { width: auto; }
    .story__outro { padding-bottom: 60px; }
}
@media (max-width: 991px) {
    .story__title { font-size: 2.25rem; }
}
@media (max-width: 767px) {
    .story__intro,
    .story__quote { padding-bottom: 60px; }
}

/* Naše služby */
.services { padding: 130px 0 115px; }
.services__grid {
    display: flex;
    align-items: flex-start;
}
.services__text,
.services__media { width: 50%; }
.services__text { align-self: center; }
.services__media { min-height: 1px; }

@media (max-width: 1024px) {
    .services { padding: 100px 0 0; }
    .services__grid { display: block; }
    .services__text,
    .services__media { width: auto; }
    .services__text { margin-bottom: 90px; }
}
@media (max-width: 767px) {
    .services { padding-top: 90px; }
}

/* Bloky Rodokmeny / Rodinné kroniky */
.boxes { padding: 0 100px; }
.box {
    padding: 90px 20px 75px;
    background: var(--c-cream);
}
.box--chronicles { padding-top: 90px; }
.box__inner {
    display: flex;
    width: 1320px;
    max-width: 100%;
    margin: 0 auto;
}
.box--family-tree .box__media {
    display: flex;
    justify-content: flex-end;
    width: 43%;
    padding-top: 100px;
}
.box--family-tree .box__media .compare { width: 70%; align-self: flex-start; }
.box--family-tree .box__text { width: 57%; padding: 76px 0 0 109px; }
.box--chronicles .box__text { width: 57%; padding: 76px 0 0 109px; }
.box--chronicles .box__media { width: 43%; }
.box__quote { margin-top: 20px; }
.box__quote-wrap { margin-top: 20px; padding-bottom: 75px; }

@media (max-width: 1024px) {
    .boxes { padding: 0 50px; }
    .box--family-tree { padding-bottom: 0; }
    .box--chronicles { padding: 0 20px; }
    .box__inner { flex-direction: column; }
    .box--family-tree .box__inner { flex-direction: column-reverse; }
    .box .box__text,
    .box .box__media { width: auto; padding: 0; }
    .box .box__media { min-height: 1px; margin-bottom: 90px; }
    .box--family-tree .box__media { padding-top: 100px; }
}
@media (max-width: 767px) {
    .boxes { padding: 0; }
    .box__quote-wrap { padding-bottom: 60px; }
}

/* Prameny */
.sources {
    padding: 150px 0;
    overflow: hidden;
}
.sources__grid { display: flex; }
.sources__text { width: 50%; padding-right: 80px; }
.sources__cards { width: 50%; padding-left: 20px; }

.cards {
    display: flex;
    flex-wrap: wrap;
    margin: -40px;
    padding: 0;
    list-style: none;
}
.card {
    position: relative;
    padding: 40px;
    line-height: 1.4;
}
.cards--2 .card { width: 50%; }
.cards--3 .card { width: 33.3333%; }
.card__title {
    margin: 40.39px 0 0;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
}
.card__text {
    margin-top: 12px;
    font-size: .875rem;
    opacity: .6;
}

@media (max-width: 1199px) {
    .cards--3 .card { width: 50%; }
}
@media (max-width: 1024px) {
    .sources { padding: 100px 0; }
    .sources__grid { display: block; }
    .sources__text,
    .sources__cards { width: auto; padding: 0; }
    .sources__text { margin-bottom: 60px; }
}
@media (max-width: 991px) {
    .cards { margin: -30px; }
    .card { padding: 30px; }
    .cards--2 .card,
    .cards--3 .card { width: 100%; }
}
@media (max-width: 767px) {
    .sources { padding: 90px 0; }
}

/* Postup realizace (číslované kroky) */
.cards--steps { text-align: center; }
.card__number {
    position: absolute;
    top: 30px;
    left: -10px;
    right: 40px;
    font-family: var(--f-sans);
    font-size: 3.75rem;
    font-weight: 600;
    line-height: 1.4;
    opacity: .1;
}

/* Startovací čára + rozvržení s úzkým levým sloupcem (i Projekt Vetešník) */
.startline {
    padding: 155px 0 145px;
    background: var(--c-sand);
}
.aside-layout { display: flex; margin-bottom: 65px; }
.aside-layout__aside { width: 20%; padding-right: 20px; }
.aside-layout__main { width: 80%; padding-left: 115px; }
.aside-layout__note {
    margin: 20px 0 0;
    font-style: italic;
    line-height: 1.7;
}
.aside-layout__title {
    margin: 0 0 50px;
    font-size: 3rem;
    line-height: 1.3;
}

@media (max-width: 1199px) {
    .aside-layout__title { font-size: 2.625rem; }
}
@media (max-width: 1024px) {
    .startline { padding: 80px 0 0; }
    .aside-layout { display: block; }
    .aside-layout__aside,
    .aside-layout__main { width: auto; padding: 0; }
    .aside-layout__aside { margin-bottom: 60px; }
}
@media (max-width: 991px) {
    .aside-layout__title { font-size: 1.5rem; }
}
@media (max-width: 767px) {
    .startline { padding-top: 90px; }
    .startline__quote { padding-bottom: 60px; }
}

/* Postup + FAQ */
.process { padding: 100px 0 125px; }
.process__title { width: 50%; margin-bottom: 81px; }
@media (max-width: 1024px) {
    .process__title { width: auto; }
}

.faq-box {
    margin-top: 85px;
    padding: 90px 20px 75px;
    background: var(--c-cream);
}
.faq-box__inner { padding: 0 109px; }
.faq-box__quote { padding-bottom: 75px; }
.faq-box__quote .quote { margin: 0; }

@media (max-width: 1024px) {
    .faq-box { padding: 0 20px; }
    .faq-box__inner { padding: 0; }
}
@media (max-width: 767px) {
    .process { padding: 90px 0; }
    .faq-box { padding: 90px 20px 0; }
    .faq-box__quote { padding-bottom: 60px; }
}

/* Záložky s otázkami */
.faq {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 65px;
    padding-top: 9px;
}
.faq__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
.faq__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    border: 0;
    background: transparent;
    color: #acacac;
    font-family: var(--f-slab);
    font-size: 16px;
    line-height: 1;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    transition: color .3s;
}
.faq__tab:hover,
.faq__tab[aria-selected="true"] { color: #000; }
.faq__panel {
    width: 100%;
    margin-top: 30px;
    padding: 10px;
}
.faq__panel[hidden] { display: none; }
.no-js .faq__panel[hidden] { display: block; } /* bez JavaScriptu zobrazit všechny odpovědi */

.faq__item { margin-bottom: 14px; }
.faq__item:last-child { margin-bottom: 0; }
.faq__item summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #1f2124;
    cursor: pointer;
    list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
    content: "";
    flex: none;
    width: 13px;
    height: 15px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.faq__item[open] summary::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z'/%3E%3C/svg%3E");
}
.faq__question {
    margin: 0;
    font-family: var(--f-slab);
    font-size: 16px;
    line-height: 1.4;
    color: inherit;
}
.faq__content { overflow: hidden; }
.faq__answer {
    padding: 20px;
    border: 1px solid #d5d8dc;
}

@media (max-width: 767px) {
    .faq { flex-direction: column; flex-wrap: nowrap; margin: 0 10px 75px; }
    .faq__tabs { display: contents; }
    .faq__tab { order: calc(var(--i) * 2); width: 100%; margin-top: 10px; }
    .faq__tab:first-child { margin-top: 0; }
    .faq__panel { order: calc(var(--i) * 2 + 1); margin-top: 39px; padding: 0; }
    /* ikona se na úzkém displeji zmenšuje stejně jako na původním webu */
    .faq__item summary::before { width: 10px; }
    .faq__item[open] summary::before { width: 7px; }
}

/* Zažij historii */
.history {
    padding: 80px 100px 10px;
    background: var(--c-brown);
    color: #fff;
}
.history__inner {
    display: flex;
    max-width: 1320px;
    margin: 0 auto 65px;
}
.history__main { width: 70%; padding-right: 20px; }
.history__steps { width: 30%; padding-left: 30px; }
.history__title {
    margin: 20px 0;
    font-size: 2.25rem;
    line-height: 1.3;
    color: #fff;
}
.history__text {
    font-style: italic;
    line-height: 1.7;
}
.history a { text-decoration: underline; }
.history ol { margin: 20px 0 0 1rem; }
.history__steps { padding-bottom: 35px; }
.history li { font-family: var(--f-sans); }

@media (max-width: 1024px) {
    .history__inner { display: block; }
    .history__main,
    .history__steps { width: auto; padding-left: 0; padding-right: 0; }
    .history__main { margin-bottom: 60px; }
}
@media (max-width: 991px) {
    .history__title { font-size: 1.375rem; }
}
@media (max-width: 767px) {
    .history { padding: 90px 20px; }
}

/* Kontakt */
.contact {
    padding: 110px 20px 120px;
    background: var(--c-cream);
}
.contact__wrap {
    display: flex;
    max-width: 870px;
    margin: 0 auto;
    padding: 90px 20px 75px;
}
.contact__text { flex: 0 0 50%; }
.contact__form { flex: 0 0 calc(50% - 100px); }
.contact__text { text-align: center; }
.contact__title {
    margin: 0 0 20px;
    font-size: 2.25rem;
    line-height: 1.3;
}
.contact__form { margin: 40px 40px 40px 60px; }

@media (max-width: 1024px) {
    .contact { padding: 0 20px; }
}
@media (max-width: 991px) {
    .contact__title { font-size: 1.375rem; }
}
@media (max-width: 767px) {
    .contact__wrap { display: block; }
    .contact__text,
    .contact__form { width: auto; }
}

/* Kontaktní formulář */
.contact-form p { margin-bottom: 35px; line-height: 1.9; }
.contact-form label {
    display: block;
    margin-bottom: 15px;
    font-family: var(--f-sans);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.6;
    cursor: pointer;
}
.contact-form input,
.contact-form select {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 20px;
    border: 1px solid var(--c-input-border);
    border-radius: 0;
    background-color: #fff;
    font-family: var(--f-serif);
    font-size: .875rem;
    line-height: 1.6;
    color: var(--c-text);
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .25s ease-in-out;
}
.contact-form select {
    min-height: 50px;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='24' viewBox='0 0 32 24'%3E%3Cpolygon points='0,0 32,0 16,24' fill='rgb(138,138,138)'/%3E%3C/svg%3E");
    background-position: right 20px center;
    background-repeat: no-repeat;
    background-size: 9px 6px;
    cursor: pointer;
}
.contact-form input:hover,
.contact-form select:hover { border-color: rgba(17, 17, 17, .2); }
.contact-form input:focus,
.contact-form select:focus { border-color: rgba(17, 17, 17, .25); outline: none; }
.contact-form .contact-form__hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.contact-form__submit {
    margin-bottom: 29px;
    padding: 0 25px;
    font-size: 11px;
}
.contact-form__submit[disabled] { opacity: .6; cursor: wait; }
.contact-form__message {
    margin-top: -9px;
    padding: .5em 1em;
    border: 2px solid #ffb900;
    font-family: var(--f-sans);
    font-size: .875rem;
    line-height: 1.6;
}
.contact-form__message.is-success { border-color: #46b450; }
.contact-form__message.is-error { border-color: #dc3232; }
.contact-form .field-error {
    display: block;
    margin-top: 5px;
    color: #dc3232;
    font-family: var(--f-sans);
    font-size: .875rem;
    line-height: 1.4;
}
.contact-form [aria-invalid="true"],
.contact-form [aria-invalid="true"]:hover,
.contact-form [aria-invalid="true"]:focus { border-color: #dc3232; }

/* Souhlas se zásadami ochrany osobních údajů */
.contact-form .contact-form__consent {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 12px;
    margin-bottom: 30px;
}
.contact-form .contact-form__consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
    background: #fff center / 11px 9px no-repeat;
    cursor: pointer;
}
.contact-form .contact-form__consent input:checked {
    border-color: var(--c-text);
    background-color: var(--c-text);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 9'%3E%3Cpath d='M1 4.5l3 3L10 1' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}
.contact-form .contact-form__consent input:focus-visible { outline: 2px solid var(--c-text); outline-offset: 2px; }
.contact-form .contact-form__consent label { flex: 1; margin: 0; font-weight: 400; }
.contact-form .contact-form__consent a { text-decoration: underline; }
.contact-form .contact-form__consent .field-error { flex-basis: 100%; }

/* Text o reCAPTCHA (ikona reCAPTCHA je skrytá) */
.grecaptcha-badge { visibility: hidden; }
.contact-form .contact-form__recaptcha {
    margin: -14px 0 29px;
    font-family: var(--f-sans);
    font-size: .75rem;
    line-height: 1.6;
    opacity: .7;
}
.contact-form__recaptcha a { text-decoration: underline; }

/* ==========================================================================
   Porovnání fotografií (před / po)
   ========================================================================== */
.compare {
    position: relative;
    z-index: 0;
    margin: 0;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}
/* Kurzor „posun“ jen nad kruhovým tlačítkem a během tažení (i když myš z tlačítka sjede). */
.compare.is-dragging { cursor: all-scroll; }
.compare img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}
.compare__before img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    height: 100%;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(0, 0, 0, 0);
    transition: background .5s;
}
.compare__label {
    position: absolute;
    top: 50%;
    margin-top: -19px;
    padding: 0 20px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-family: var(--f-sans);
    font-size: 13px;
    line-height: 38px;
    letter-spacing: .1em;
    opacity: 0;
    transition: opacity .5s;
}
.compare__label--before { left: 10px; }
.compare__label--after { right: 10px; }
.compare:hover .compare__overlay { background: rgba(0, 0, 0, .5); }
.compare:hover .compare__label { opacity: 1; }
.compare.is-dragging .compare__overlay { background: rgba(0, 0, 0, 0); }
.compare.is-dragging .compare__label { opacity: 0; }

.compare__handle {
    position: absolute;
    top: 50%;
    left: var(--pos);
    z-index: 4;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 38 38'%3E%3Cpath d='M8 19l6-6v12zM30 19l-6-6v12z' fill='%23fff'/%3E%3C/svg%3E") center / 38px 38px no-repeat;
    box-shadow: 0 0 12px rgba(51, 51, 51, .5);
    cursor: all-scroll;
    touch-action: none;
}
.compare__handle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.compare__handle::before,
.compare__handle::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 3px;
    height: 9999px;
    margin-left: -1.5px;
    background: #fff;
    pointer-events: none; /* čára je jen ozdoba – kurzor a tažení platí jen pro kruhové tlačítko */
}
.compare__handle::before {
    bottom: 50%;
    margin-bottom: 22px;
    box-shadow: 0 3px 0 #fff, 0 0 12px rgba(51, 51, 51, .5);
}
.compare__handle::after {
    top: 50%;
    margin-top: 22px;
    box-shadow: 0 -3px 0 #fff, 0 0 12px rgba(51, 51, 51, .5);
}
/* ==========================================================================
   Projekt Vetešník
   ========================================================================== */
.project-hero {
    position: relative;
    display: flex;
    align-items: center;
    height: 100vh;
    padding: 250px 0 100px;
    overflow: hidden;
    background: #212121;
    color: #fff;
}
.project-hero__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: right bottom;
}
.project-hero__content { position: relative; z-index: 1; }
.project-hero__title {
    margin: 0 0 55px;
    color: #fff;
}
.project-hero__eyebrow {
    display: block;
    margin-bottom: 20px;
    font-size: 1.5rem;
    line-height: 1;
}
.project-hero__name {
    display: block;
    max-width: 640px;
    font-size: 80px;
    line-height: 1.3;
}
.project-hero p.project-hero__text {
    max-width: 914px;
    margin: 0 0 50px;
    font-style: italic;
}

@media (max-width: 1024px) {
    .project-hero { padding: 120px 0; }
    .project-hero__title { padding-top: 50px; }
    .project-hero__name { max-width: 50%; font-size: 56px; }
    .project-hero__text { max-width: 100%; }
}
@media (max-width: 991px) {
    .project-hero__eyebrow { font-size: 1.125rem; }
}
@media (max-width: 767px) {
    .project-hero { height: auto; padding: 90px 0; }
    .project-hero__title { padding-top: 70px; }
    .project-hero__name { max-width: 100%; padding-top: 20px; font-size: 32px; }
}

.article {
    padding: 155px 0 50px;
    background: var(--c-sand);
}
.article .aside-layout__title { margin-bottom: 50px; }

@media (max-width: 767px) {
    .article { padding: 90px 0; }
}

/* ==========================================================================
   Textové stránky (zásady ochrany osobních údajů, 404)
   ========================================================================== */
.legal { padding-top: 130px; padding-bottom: 130px; }
.legal h1 { font-size: 3.5rem; line-height: 1.2; }
.legal h2 { font-size: 2.25rem; line-height: 1.3; }
.legal h3 { font-size: 1.875rem; line-height: 1.3; }
.legal a { text-decoration: underline; }
.legal .btn { text-decoration: none; }

@media (max-width: 1199px) {
    .legal h1 { font-size: 3rem; }
}
@media (max-width: 991px) {
    .legal { padding-top: 90px; padding-bottom: 90px; }
    .legal h1 { font-size: 1.875rem; }
    .legal h2 { font-size: 1.375rem; }
    .legal h3 { font-size: 1.25rem; }
}

/* ==========================================================================
   Patička
   ========================================================================== */
.site-footer { background: #fff; color: var(--c-text); }
.footer-widgets { overflow: hidden; }
.footer-widgets .container { padding-top: 100px; padding-bottom: 100px; }
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -30px;
}
.footer-col { width: 25%; padding: 30px; }
.footer-logo { display: flex; width: max-content; }
.footer-logo img { width: 150px; height: 150px; }

.footer-menu {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .875rem;
    opacity: .7;
}
.footer-menu li { line-height: 1.6; }
.footer-menu li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 12.5px;
    border-top: 1px solid currentColor;
    border-left: 1px solid currentColor;
    transform: rotate(135deg);
}
.footer-menu a { display: inline-block; padding: 6px 0; }
.footer-menu a:hover { opacity: .6; }

.footer-title {
    margin: 0 0 40px;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}
.footer-contact p:not(.footer-title) {
    font-family: var(--f-sans);
    font-size: .875rem;
    font-weight: 500;
    opacity: .6;
}
.footer-contact p.footer-contact__name { margin-bottom: 0; opacity: 1; }
.footer-col .footer-motto { margin-bottom: 25px; }

.copyright { border-top: 1px solid var(--c-border); }
.copyright__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 -15px;
    padding: 25px 0;
    border-top: 1px solid var(--c-border);
}
/* Na počítači: autor vlevo, „Nastavení cookies“ a copyright společně vpravo. */
@media (min-width: 992px) {
    .copyright__inner .copyright__credit { margin-right: auto; }
}
.copyright__inner p {
    margin: 0;
    padding: 15px;
    font-family: var(--f-sans);
    font-size: .875rem;
    font-weight: 500;
    opacity: .6;
}

@media (max-width: 1199px) {
    .footer-col { width: 50%; }
}
@media (max-width: 991px) {
    .footer-col { width: 100%; }
    .copyright__inner { flex-direction: column; }
    .copyright__inner p { margin-bottom: 20px; }
}

/* ==========================================================================
   Cookie lišta
   ========================================================================== */
.cookie-banner {
    position: fixed;
    left: 40px;
    bottom: 40px;
    z-index: 9999;
    width: 440px;
    max-width: calc(100% - 80px);
    padding: 20px 26px;
    border: 1px solid #f4f4f4;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 -1px 10px rgba(172, 171, 171, .3);
    color: #212121;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
}
.cookie-banner__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
}
.cookie-banner__text a { color: var(--c-text); text-decoration: underline; }
.cookie-banner__buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.cookie-banner__btn {
    flex: auto;
    min-height: 40px;
    padding: 8px;
    border: 2px solid var(--c-text);
    border-radius: 2px;
    background: transparent;
    color: var(--c-text);
    font-family: var(--f-sans);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.cookie-banner__btn--accept { background: var(--c-text); color: #fff; }
.cookie-banner__btn:hover { opacity: .8; }

@media (max-width: 576px) {
    .cookie-banner {
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        padding: 20px 24px;
        border-radius: 6px 6px 0 0;
    }
    .cookie-banner__buttons { flex-direction: column-reverse; gap: 10px; }
}

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