/* Vnitřní stránky sdílejí navigaci, paletu a animace s úvodní stránkou. */
.beseda-inner .beseda-page-heading {
    padding-block: clamp(2.75rem, 7vw, 6rem);
    border-bottom: 1px solid var(--line);
}

.beseda-inner .beseda-page-heading h1 {
    max-width: none;
    font-size: clamp(2.85rem, 7vw, 7rem);
    line-height: .98;
    overflow-wrap: anywhere;
}

.beseda-inner .beseda-page-heading p {
    max-width: 65ch;
    margin-top: 1rem;
}

.beseda-page-heading .beseda-button {
    margin-top: 1.5rem;
}

.beseda-page-cover {
    display: block;
    width: 100%;
    height: clamp(9rem, 20vw, 20rem);
    object-fit: cover;
}

.beseda-inner-content {
    padding-block: clamp(2.75rem, 6vw, 6rem);
}

.beseda-services-section {
    background: var(--anthracite);
}

.beseda-inner :is(.beseda-section-light, .beseda-services-section) .beseda-button:hover {
    background: var(--light-section-button-hover, var(--anthracite));
    border-color: var(--light-section-button-hover, var(--anthracite));
    color: var(--light-section-button-hover-text, var(--white));
}

.beseda-inner :is(.beseda-section-light, .beseda-services-section) :is(a, summary):focus-visible {
    outline: 2px solid var(--light-section-focus, var(--anthracite));
    outline-offset: 4px;
}

.beseda-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
}

.beseda-service-card {
    --light-section-button-hover: #B5DF4A;
    --light-section-button-hover-text: var(--anthracite);
    --light-section-focus: var(--lime);
    display: flex;
    flex-direction: column;
    background: var(--gray);
    color: var(--white);
    scroll-margin-top: 1.5rem;
}

.beseda-service-card:is(:hover, :focus-within) {
    box-shadow: inset 0 -2px var(--lime);
}

.beseda-service-card:target {
    outline: 3px solid var(--lime);
}

.beseda-service-card > :is(img, video) {
    display: block;
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: var(--service-media-fit, cover);
    background: var(--gray);
}

#kosmetika.beseda-service-card {
    --service-media-fit: contain;
}

.beseda-service-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(1.15rem, 3vw, 2rem);
}

.beseda-service-copy h2 {
    color: #FFF;
    font-size: clamp(1.55rem, 3vw, 2.5rem);
    margin-bottom: .65rem;
}

.beseda-service-details {
    margin-top: auto;
    padding-top: 1.2rem;
}

.beseda-service-details summary {
    width: fit-content;
    cursor: pointer;
}

.beseda-service-details summary::after {
    content: "+";
    font-size: 1rem;
    line-height: 1;
}

.beseda-service-details[open] summary::after {
    content: "−";
}

.beseda-service-details .beseda-detail-text {
    margin-top: 1.1rem;
}

.beseda-detail-text > * + * {
    margin-top: .85rem;
}

.beseda-inner .beseda-detail-text ul strong {
    color: inherit;
}

.beseda-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(1.5rem, 5vw, 5rem);
}

.beseda-split-image,
.beseda-contact-map img {
    display: block;
    width: 100%;
    height: auto;
}

.beseda-split-image {
    max-height: 26rem;
    object-fit: cover;
}

.beseda-split-image.beseda-split-image-contain {
    object-fit: contain;
}

.beseda-page-heading .beseda-split-image {
    mask-image:
        radial-gradient(ellipse closest-side, #000 36%, rgb(0 0 0 / 35%) 90%, rgb(0 0 0 / 30%) 100%),
        linear-gradient(to right, transparent, #000 6%, #000 94%, transparent),
        linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
    mask-composite: intersect;
}

.beseda-contact-section {
    background: var(--gray);
    color: var(--white);
}

.beseda-contact-portraits {
    --portrait-width: clamp(9.375rem, calc(6.25rem + 7vw), 11.25rem);
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.beseda-contact-portraits img {
    display: block;
    width: var(--portrait-width);
    min-width: 0;
    height: auto;
    mask-image: radial-gradient(ellipse 43% 48% at 50% 47%, #000 44%, rgb(0 0 0 / 85%) 65%, transparent 100%);
}

.beseda-contact-portraits img + img {
    width: calc(var(--portrait-width) * .91);
}

.beseda-contact-details dl > div {
    padding-block: 1rem;
    border-top: 1px solid var(--line);
}

.beseda-contact-details dt {
    color: var(--lime);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.beseda-contact-details dd {
    font-size: clamp(1.1rem, 2.2vw, 1.65rem);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.beseda-contact-details a {
    text-decoration: underline;
    text-underline-offset: .18em;
}

.beseda-contact-map figcaption {
    margin-top: .35rem;
    font-size: .75rem;
    text-align: right;
}

.beseda-contact-map figcaption a {
    text-decoration: underline;
}

.beseda-contact-map .beseda-button {
    margin-top: .85rem;
}

.beseda-contact-operator {
    margin-top: clamp(1.5rem, 4vw, 3rem);
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.beseda-contact-section .beseda-contact-operator h2 {
    margin-bottom: .65rem;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    letter-spacing: -.035em;
}

@media (max-width: 43rem) {
    .beseda-service-grid,
    .beseda-split {
        grid-template-columns: 1fr;
    }
}

.beseda-inner .beseda-page-heading h1 + h2 {
    margin-top: 1.4rem;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    letter-spacing: -.035em;
    line-height: 1.15;
}

.beseda-solarium-section {
    background: #414649;
    color: #FFF;
}

.beseda-solarium-layout {
    align-items: start;
}

.beseda-solarium-layout .beseda-split-image {
    filter: saturate(.75) brightness(.95);
}

.beseda-solarium-info {
    margin-top: 1.5rem;
}

.beseda-price {
    padding: clamp(1rem, 4vw, 3rem);
    background: var(--anthracite);
    color: inherit;
}

.beseda-price table {
    width: 100%;
    margin-top: 1.4rem;
    border-collapse: collapse;
}

.beseda-price :is(th, td) {
    padding: .85rem .25rem;
    border-top: 1px solid var(--line);
    text-align: left;
}

.beseda-price :is(th, td):last-child {
    text-align: right;
}

.beseda-price td:last-child {
    color: var(--lime);
}

.beseda-gallery-section {
    --line: rgb(33 36 38 / 72%);
    --gallery-card-border: rgb(245 246 244 / 35%);
    --gallery-caption-background: #212426;
    --gallery-title-color: #FFF;
    --gallery-interactive-color: var(--lime);
    background: #414649;
    color: var(--gallery-title-color);
}

.beseda-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.9rem, 2vw, 1.75rem);
}

.beseda-home .beseda-gallery-card {
    display: grid;
    align-content: start;
    border: 1px solid var(--gallery-card-border, var(--line));
}

.beseda-home .beseda-gallery-card:hover {
    background: var(--anthracite);
    color: var(--gallery-title-color, var(--white));
}

@media (hover: hover) {
    .beseda-gallery-section .beseda-gallery-card:hover {
        --gallery-card-border: rgb(245 246 244 / 80%);
    }
}

.beseda-gallery-section :is(.beseda-gallery-card, .beseda-pagination a):focus-visible {
    outline-color: var(--lime);
}

.beseda-gallery-section .beseda-gallery-media {
    overflow: hidden;
}

.beseda-gallery-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--gray);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .beseda-gallery-section .beseda-gallery-card img {
        transition: transform 300ms ease;
    }

    .beseda-gallery-section .beseda-gallery-card:hover img {
        transform: scale(1.03);
    }
}

.beseda-gallery-caption {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: var(--gallery-caption-background, transparent);
}

.beseda-gallery-caption > span {
    color: var(--gallery-interactive-color, inherit);
}

.beseda-gallery-caption h2 {
    font-size: clamp(1.15rem, 2.3vw, 1.8rem);
    line-height: 1.12;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.beseda-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 2rem;
}

.beseda-pagination .page-numbers {
    display: inline-grid;
    min-width: 2.75rem;
    min-height: 2.75rem;
    place-items: center;
    padding: .25rem .7rem;
    border: 1px solid var(--line);
    font-weight: 700;
}

.beseda-pagination .current,
.beseda-pagination a:hover {
    background: var(--anthracite);
    color: var(--gallery-interactive-color, var(--white));
}

@media (max-width: 55rem) {
    .beseda-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 35rem) {
    .beseda-gallery-grid {
        grid-template-columns: 1fr;
    }
}

.beseda-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    margin-top: 1rem;
    font-size: .85rem;
}

.beseda-post-meta a,
.beseda-post-content a {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.beseda-post-content {
    width: min(100%, 62rem);
    margin-inline: auto;
    overflow-wrap: anywhere;
}

.beseda-post-content > * + * {
    margin-top: 1.25rem;
}

.beseda-post-content :is(img, video, iframe) {
    max-width: 100%;
}

.beseda-post-content img {
    height: auto;
}

.beseda-post-content > p:has(img) {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: .75rem;
}

.beseda-post-content > p:has(img) > a {
    max-width: 100%;
}

.beseda-post-content .wp-block-gallery {
    max-width: 100%;
}

.beseda-post-content .wp-block-table {
    overflow-x: auto;
}

.beseda-post-content :is(ul, ol) {
    padding-inline-start: 1.25em;
}

.beseda-post-back {
    margin-top: 2rem;
}
