/*
 * Společné styly webu divav.cz
 *
 * Barvy jsou v css/palettes.css (aktivní paletu volí js/design.js),
 * tulipány v css/tulips.css a styly jednotlivých stránek v css/index.css,
 * sluzby.css, omne.css, cenik.css a kontakt.css.
 * Barvy zde zapisujte pouze přes proměnné palety, např. var(--color-ink).
 */

:root {
    --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --font-body: "Avenir Next", Avenir, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --measure: 44rem;
    --wide: 72rem;
    --space-section: clamp(3.5rem, 8vw, 6rem);
    --radius-leaf: 2.25rem 0.6rem;
    --radius-leaf-small: 1.5rem 0.45rem;
    --shadow-soft: 0 1.25rem 2.5rem -1.75rem rgb(30 15 10 / 0.55);
    --theme-transition-full:
        --color-page 480ms ease-in-out,
        --color-glow-1 480ms ease-in-out,
        --color-glow-2 480ms ease-in-out,
        --color-surface 480ms ease-in-out,
        --color-surface-soft 480ms ease-in-out,
        --color-ink 480ms ease-in-out,
        --color-muted 480ms ease-in-out,
        --color-heading 480ms ease-in-out,
        --color-primary 480ms ease-in-out,
        --color-primary-hover 480ms ease-in-out,
        --color-on-primary 480ms ease-in-out,
        --color-accent 480ms ease-in-out,
        --color-border 480ms ease-in-out,
        --color-focus 480ms ease-in-out,
        --color-footer 480ms ease-in-out,
        --color-on-footer 480ms ease-in-out,
        --color-footer-link 480ms ease-in-out,
        --color-link 480ms ease-in-out,
        --color-link-hover 480ms ease-in-out,
        --tulip-petal 480ms ease-in-out,
        --tulip-petal-light 480ms ease-in-out,
        --tulip-petal-deep 480ms ease-in-out,
        --tulip-leaf 480ms ease-in-out,
        --tulip-leaf-deep 480ms ease-in-out,
        --tulip-pollen 480ms ease-in-out;
    --theme-transition-bridge:
        --color-page 480ms ease-in-out,
        --color-glow-1 480ms ease-in-out,
        --color-glow-2 480ms ease-in-out,
        --color-surface 480ms ease-in-out,
        --color-surface-soft 480ms ease-in-out,
        --color-accent 480ms ease-in-out,
        --color-border 480ms ease-in-out,
        --color-focus 480ms ease-in-out,
        --color-footer 480ms ease-in-out,
        --color-on-footer 480ms ease-in-out,
        --color-footer-link 480ms ease-in-out,
        --tulip-petal 480ms ease-in-out,
        --tulip-petal-light 480ms ease-in-out,
        --tulip-petal-deep 480ms ease-in-out,
        --tulip-leaf 480ms ease-in-out,
        --tulip-leaf-deep 480ms ease-in-out,
        --tulip-pollen 480ms ease-in-out;
    transition: var(--theme-transition-full);
    /* Obrys tulipánu (nadpisy, citáty, seznam služeb) a vlnitý stonek pod hlavičkou. */
    --tulip-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 30C6 30 2.5 25.5 2.5 19V7.5l5 4.5L12 4l4.5 8 5-4.5V19c0 6.5-3.5 11-9.5 11z'/%3E%3C/svg%3E");
    --vine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M0 6c10-5.5 20-5.5 30 0s20 5.5 30 0 20-5.5 30 0 20 5.5 30 0' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E");
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
    line-height: 1.65;
    color: var(--color-ink);
    background-color: var(--color-page);
    background-image:
        radial-gradient(ellipse 60rem 38rem at 105% -8%, var(--color-glow-1), transparent 70%),
        radial-gradient(ellipse 48rem 34rem at -12% 28rem, var(--color-glow-2), transparent 70%);
    background-repeat: no-repeat;
}

[id] {
    scroll-margin-top: 1.5rem;
}

/* Typografie */

h1,
h2,
h3 {
    margin: 0 0 0.75em;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-heading);
    text-wrap: balance;
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(2rem, 1.45rem + 2.4vw, 3.1rem);
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.55rem, 1.3rem + 1.1vw, 2.15rem);
}

h3 {
    margin: 1.75em 0 0.6em;
    font-size: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
}

h3:first-child {
    margin-top: 0;
}

p,
ul,
ol {
    margin: 0 0 1.1em;
}

ul,
ol {
    padding-left: 1.35em;
}

li + li {
    margin-top: 0.45em;
}

li::marker {
    color: var(--color-accent);
}

strong {
    font-weight: 700;
}

.highlight {
    font-weight: 700;
    color: var(--color-heading);
}

img {
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

a {
    color: var(--color-link);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--color-link-hover);
    text-decoration-thickness: 0.14em;
}

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

/* Hlavička a navigace */

.skip-link {
    position: absolute;
    top: 0;
    left: 1rem;
    z-index: 10;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 1rem 1rem;
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-weight: 700;
    transform: translateY(-120%);
}

.skip-link:focus {
    color: var(--color-on-primary);
    transform: none;
}

.site-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    width: min(100% - 2 * var(--gutter), var(--wide));
    margin-inline: auto;
    padding-block: 1rem 1.75rem;
}

.site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 12px;
    background-color: var(--tulip-leaf);
    opacity: 0.6;
    -webkit-mask: var(--vine) left center / 120px 12px repeat-x;
    mask: var(--vine) left center / 120px 12px repeat-x;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 44px;
    border-radius: 1.25rem;
    color: inherit;
    text-decoration: none;
}

.brand:hover {
    color: inherit;
}

.brand-logo {
    flex: none;
    width: clamp(3.9rem, 3.3rem + 2.5vw, 5rem);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-slogan {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
    font-style: italic;
    color: var(--color-heading);
}

.brand-name {
    margin-top: 0.2rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-muted);
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav li + li {
    margin-top: 0;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem clamp(0.6rem, 0.35rem + 1vw, 1rem);
    border-radius: 999px;
    color: var(--color-ink);
    font-size: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-nav a:hover {
    background: var(--color-surface-soft);
    color: var(--color-ink);
}

.site-nav a[aria-current="page"] {
    background: var(--color-primary);
    color: var(--color-on-primary);
}

.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--color-ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle[hidden] {
    display: none;
}

.theme-toggle-scene {
    display: block;
    width: 48px;
    height: 48px;
    overflow: visible;
    transition: transform 220ms ease, filter 220ms ease;
}

.theme-toggle:hover .theme-toggle-scene {
    transform: translateY(-1px);
    filter: drop-shadow(0 2px 3px rgb(48 37 22 / 0.22));
}

.theme-toggle:active .theme-toggle-scene {
    transform: translateY(1px) scale(0.97);
}

.toggle-sun,
.toggle-moon {
    transition: opacity 420ms ease, transform 480ms cubic-bezier(0.2, 0.7, 0.25, 1);
    transform-origin: center;
}

.toggle-sun {
    fill: #f5b735;
    opacity: 1;
}

.toggle-moon {
    fill: #e6d5a3;
    opacity: 0;
    transform: translate(8px, 5px) rotate(-28deg);
}

.toggle-hill {
    fill: var(--color-primary);
    opacity: 0.78;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

.toggle-hill-line {
    fill: none;
    stroke: var(--color-on-primary);
    stroke-linecap: round;
    stroke-width: 1;
    opacity: 0.56;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

.toggle-hill-arch {
    display: none;
    fill: none;
    stroke: var(--color-primary);
    stroke-linecap: round;
    stroke-width: 3.2;
    opacity: 0.72;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

.theme-toggle[data-hill-variant="2"] .toggle-hill,
.theme-toggle[data-hill-variant="2"] .toggle-hill-line,
.theme-toggle[data-hill-variant="3"] .toggle-hill,
.theme-toggle[data-hill-variant="3"] .toggle-hill-line,
.theme-toggle[data-hill-variant="3"] .toggle-hill-arch {
    display: none;
}

/*
 * Keep text and filled navigation controls readable while light/dark surfaces
 * cross their midtones; only the decorative/background tokens interpolate.
 */
:root[data-theme-transition$="to-night"] {
    --color-primary: #6a5114;
    --color-primary-hover: #54400e;
    --color-on-primary: #ffffff;
}

:root[data-theme-transition$="to-day"] {
    --color-primary: #f2a86f;
    --color-primary-hover: #f7bf8f;
    --color-on-primary: #231c26;
}

:root[data-theme-transition^="dark-bridge"] {
    --color-ink: #111111;
    --color-muted: #111111;
    --color-heading: #111111;
    --color-link: #111111;
    --color-link-hover: #111111;
}

:root[data-theme-transition^="light-bridge"] {
    --color-ink: #ffffff;
    --color-muted: #ffffff;
    --color-heading: #ffffff;
    --color-link: #ffffff;
    --color-link-hover: #ffffff;
}

:root[data-theme-transition],
:root[data-theme-transition="settle"] {
    transition: var(--theme-transition-bridge);
}

/* Kopce 1 – současný kopeček se dvěma vlnivými liniemi */
.theme-toggle[data-hill-variant="1"] .toggle-hill,
.theme-toggle[data-hill-variant="1"] .toggle-hill-line {
    display: block;
}

/* Kopce 2 – samostatný oblouk */
.theme-toggle[data-hill-variant="2"] .toggle-hill-arch {
    display: block;
}

/* Kopce 3 – bez kopce */
.theme-toggle[data-hill-variant="3"] .toggle-hill,
.theme-toggle[data-hill-variant="3"] .toggle-hill-line,
.theme-toggle[data-hill-variant="3"] .toggle-hill-arch {
    display: none;
}

.toggle-flower {
    color: var(--tulip-petal);
    transition: transform 320ms ease, filter 320ms ease;
}

.toggle-stem {
    fill: none;
    stroke: var(--tulip-leaf-deep);
    stroke-linecap: round;
    stroke-width: 2.5;
}

.toggle-leaf {
    fill: var(--tulip-leaf);
    stroke: var(--tulip-leaf-deep);
    stroke-linejoin: round;
    stroke-width: 0.8;
}

.toggle-open-flower,
.toggle-closed-flower {
    fill: var(--tulip-petal);
    stroke: var(--tulip-petal-deep);
    stroke-linejoin: round;
    stroke-width: 0.8;
    transition: opacity 240ms ease, transform 320ms ease;
    transform-origin: 32px 25px;
}

.toggle-petal-center {
    fill: var(--tulip-petal-light);
}

.toggle-closed-flower {
    opacity: 0;
    transform: scale(0.72);
}

.toggle-dew {
    fill: #e9f7ff;
    stroke: #8cc6d8;
    stroke-width: 0.5;
    opacity: 0;
}

.theme-toggle[data-toggle-appearance="illustrated"] .toggle-botanical-art {
    display: none;
}

.theme-toggle[data-toggle-appearance="botanical"] .toggle-flower > :not(.toggle-botanical-art) {
    display: none;
}

.toggle-petal-detail,
.toggle-leaf-detail {
    fill: none;
    stroke: var(--tulip-petal-deep);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 0.9;
    opacity: 0.8;
}

.toggle-leaf-detail {
    stroke: var(--tulip-leaf-deep);
    stroke-width: 0.55;
    opacity: 0.9;
}

.toggle-filament {
    fill: none;
    stroke: var(--tulip-petal-deep);
    stroke-linecap: round;
    stroke-width: 0.75;
}

.toggle-stamen {
    fill: var(--tulip-pollen);
    stroke: var(--tulip-petal-deep);
    stroke-width: 0.25;
}

.toggle-closed-detail {
    opacity: 0.65;
}

.toggle-botanical-art .toggle-open-flower,
.toggle-botanical-art .toggle-closed-flower {
    stroke-width: 1.15;
}

.toggle-fireflies {
    fill: #ffdf70;
    opacity: 0;
    filter: drop-shadow(0 0 3px #ffd34f);
}

.theme-toggle[data-theme="night"] .toggle-sun {
    opacity: 0;
    transform: translate(-7px, 5px) scale(0.7);
}

.theme-toggle[data-theme="night"] .toggle-moon {
    opacity: 1;
    transform: translate(0) rotate(0);
}

/* Varianta 1 – Rozkvetlý květ / poupě */
.theme-toggle[data-toggle-variant="1"][data-theme="night"] .toggle-open-flower {
    opacity: 0;
    transform: scale(0.72);
}

.theme-toggle[data-toggle-variant="1"][data-theme="night"] .toggle-closed-flower {
    opacity: 1;
    transform: scale(1) rotate(4deg);
}

/* Varianta 2 – Silueta a statické světlušky */
.theme-toggle[data-toggle-variant="2"][data-theme="night"] .toggle-flower,
.theme-toggle[data-toggle-variant="3"][data-theme="night"] .toggle-flower {
    filter: brightness(0.2) saturate(0.35);
}

.theme-toggle[data-toggle-variant="2"][data-theme="night"] .toggle-fireflies,
.theme-toggle[data-toggle-variant="3"][data-theme="night"] .toggle-fireflies {
    opacity: 1;
}

/* Varianta 3 – Silueta a pulzující světlušky */
.theme-toggle[data-toggle-variant="3"][data-theme="night"] .toggle-fireflies circle {
    animation: firefly-glow 3.8s ease-in-out infinite alternate;
}

.theme-toggle[data-toggle-variant="3"][data-theme="night"] .toggle-fireflies circle:nth-child(2) {
    animation-delay: 1.2s;
}

.theme-toggle[data-toggle-variant="3"][data-theme="night"] .toggle-fireflies circle:nth-child(3) {
    animation-delay: 2.1s;
}

/* Varianta 4 – Rosa a chladnější měsíční světlo */
.theme-toggle[data-toggle-variant="4"] .toggle-dew {
    opacity: 0.9;
}

.theme-toggle[data-toggle-variant="4"][data-theme="night"] .toggle-open-flower,
.theme-toggle[data-toggle-variant="4"][data-theme="night"] .toggle-closed-flower {
    fill: #b8bfd0;
    stroke: #828aa0;
}

.theme-toggle[data-toggle-variant="4"][data-theme="night"] .toggle-petal-center {
    fill: #d5d8e5;
}

.theme-toggle[data-toggle-variant="4"][data-theme="night"] .toggle-leaf {
    fill: #70877b;
}

.theme-toggle[data-toggle-variant="4"][data-theme="night"] .toggle-stem {
    stroke: #607969;
}

/* Varianta 5 – Tmavě vínový noční tulipán */
.theme-toggle[data-toggle-variant="5"][data-theme="night"] .toggle-open-flower,
.theme-toggle[data-toggle-variant="5"][data-theme="night"] .toggle-closed-flower {
    fill: #32151f;
    stroke: #160d14;
}

.theme-toggle[data-toggle-variant="5"][data-theme="night"] .toggle-petal-center {
    fill: #592334;
}

/* Varianta 6 – Slunce/měsíc bez obloukového pohybu */
.theme-toggle[data-toggle-variant="6"] .toggle-sun,
.theme-toggle[data-toggle-variant="6"] .toggle-moon {
    transition: none;
}

/* Varianta 7 – Slunce/měsíc po krátkém oblouku */
.theme-toggle[data-toggle-variant="7"] .toggle-sun,
.theme-toggle[data-toggle-variant="7"] .toggle-moon {
    transition: opacity 420ms ease, transform 580ms cubic-bezier(0.25, 0.75, 0.3, 1);
}

.theme-toggle[data-toggle-variant="7"][data-theme="night"] .toggle-moon {
    transform: translate(0, 0) rotate(0);
}

.theme-toggle[data-toggle-variant="7"][data-theme="day"] .toggle-moon {
    transform: translate(8px, 5px) rotate(-28deg);
}

.theme-toggle[data-toggle-variant="7"][data-theme="night"] .toggle-sun {
    transform: translate(-7px, 5px) scale(0.7);
}

.theme-toggle[data-toggle-variant="7"][data-theme="day"] .toggle-sun {
    transform: translate(0) scale(1);
}

@keyframes firefly-glow {
    from { opacity: 0.58; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        transition-duration: 0.01ms !important;
    }

    .theme-toggle-scene,
    .toggle-sun,
    .toggle-moon,
    .toggle-flower,
    .toggle-open-flower,
    .toggle-closed-flower {
        transition-duration: 0.01ms !important;
    }

    .theme-toggle[data-toggle-variant="3"] .toggle-fireflies circle {
        animation: none !important;
    }
}

:root[data-preview-reduced-motion="true"],
:root[data-preview-reduced-motion="true"] .theme-toggle-scene,
:root[data-preview-reduced-motion="true"] .toggle-sun,
:root[data-preview-reduced-motion="true"] .toggle-moon,
:root[data-preview-reduced-motion="true"] .toggle-flower,
:root[data-preview-reduced-motion="true"] .toggle-open-flower,
:root[data-preview-reduced-motion="true"] .toggle-closed-flower {
    transition-duration: 0.01ms !important;
}

:root[data-preview-reduced-motion="true"] .theme-toggle[data-toggle-variant="3"] .toggle-fireflies circle {
    animation: none !important;
}

@media (min-width: 64rem) {
    .site-header {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Obsah stránky */

main {
    flex: 1 0 auto;
    width: min(100% - 2 * var(--gutter), var(--wide));
    margin-inline: auto;
    padding-block: clamp(2rem, 5vw, 3.5rem) var(--space-section);
}

main > * {
    max-width: var(--measure);
    margin-inline: auto;
}

main > .wide {
    max-width: none;
}

main > * + * {
    margin-top: var(--space-section);
}

main > .page-intro + * {
    margin-top: 2.5rem;
}

.page-intro {
    text-align: center;
}

.page-intro h1 {
    margin-bottom: 0;
}

.eyebrow {
    margin: 0 0 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.lead {
    font-size: clamp(1.12rem, 1.04rem + 0.35vw, 1.3rem);
    line-height: 1.6;
}

/* Nadpisy sekcí s drobným tulipánem */

main h2 {
    display: flex;
    align-items: baseline;
    gap: 0.55em;
}

main h2::before {
    content: "";
    flex: none;
    width: 0.62em;
    height: 0.82em;
    background-color: var(--color-accent);
    -webkit-mask: var(--tulip-glyph) center / contain no-repeat;
    mask: var(--tulip-glyph) center / contain no-repeat;
}

.section-intro {
    max-width: var(--measure);
    margin: 0 auto 2.5rem;
}

.section-intro > :last-child {
    margin-bottom: 0;
}

.section-intro h2,
.cta h2 {
    flex-direction: column;
    align-items: center;
    gap: 0.4em;
    text-align: center;
}

/* Citát */

.quote {
    max-width: 38rem;
    text-align: center;
}

.quote::before {
    content: "";
    display: block;
    width: 1.6rem;
    height: 2.1rem;
    margin: 0 auto 0.9rem;
    background-color: var(--tulip-petal);
    -webkit-mask: var(--tulip-glyph) center / contain no-repeat;
    mask: var(--tulip-glyph) center / contain no-repeat;
}

.quote blockquote {
    margin: 0;
}

.quote blockquote p {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.6rem);
    font-style: italic;
    line-height: 1.5;
    text-wrap: balance;
}

.quote figcaption {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
}

/* Tlačítka */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.7rem 1.6rem;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-leaf-small);
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-radius 350ms ease, background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.button:hover {
    border-color: var(--color-primary-hover);
    border-radius: 0.45rem 1.5rem;
    background: var(--color-primary-hover);
    color: var(--color-on-primary);
}

.button--quiet {
    background: transparent;
    color: var(--color-link);
}

.button--quiet:hover {
    background: var(--color-surface-soft);
    color: var(--color-link-hover);
}

:root[data-theme-transition] .button {
    transition: border-radius 350ms ease;
}

:root[data-theme-transition] .tulip-toggle {
    transition: transform 300ms ease;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.text-center,
.cta {
    text-align: center;
}

.text-center .actions,
.cta .actions {
    justify-content: center;
}

/* Zvýrazněné bloky ve tvaru listu */

.panel,
.cta {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius-leaf);
    background: var(--color-surface-soft);
}

.panel > :last-child,
.cta > :last-child {
    margin-bottom: 0;
}

/* Fotografie */

.photo img {
    display: block;
    width: 100%;
    border-radius: var(--radius-leaf);
    box-shadow: var(--shadow-soft);
}

.photo figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    text-align: center;
    color: var(--color-muted);
}

/* Patička */

.site-footer {
    padding: clamp(3rem, 7vw, 4.5rem) var(--gutter) 1.5rem;
    border-radius: 50% 50% 0 0 / clamp(1.25rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) 0 0;
    background: var(--color-footer);
    color: var(--color-on-footer);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: 2rem 3rem;
    max-width: 60rem;
    margin-inline: auto;
}

.site-footer h2 {
    margin: 0 0 0.75rem;
    font-size: 1.2rem;
    color: var(--color-on-footer);
}

.site-footer p,
.site-footer address,
.site-footer ul {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-style: normal;
}

.site-footer ul {
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 0.3rem;
}

.site-footer a {
    color: var(--color-footer-link);
}

.site-footer a:hover {
    color: var(--color-on-footer);
}

.site-footer :focus-visible {
    outline-color: var(--color-footer-link);
}

.copyright {
    max-width: 60rem;
    margin: 2rem auto 0;
    font-size: 0.85rem;
    text-align: center;
}

/* Omezení pohybu – respektuje systémové nastavení „omezit animace“. */

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-delay: 0s !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }
}
