/* Scoped to the selected block style; other page blocks keep their existing styles. */
.wp-block-details.is-style-krym-service,
.krym-service-plain {
    box-sizing: border-box;
    min-width: 0;
    margin-block: 12px;
    border: 1px solid var(--border, #dce5e8);
    border-radius: 10px;
    background: var(--surface, #fff);
    color: var(--text, #26353c);
    overflow-wrap: anywhere;
}
.wp-block-details.is-style-krym-service > summary,
.krym-service-plain__title {
    position: relative;
    padding: 16px 18px 16px 42px;
    font: 600 1em/1.5 var(--font-main, Arial, sans-serif);
    color: inherit;
}
/* Decorative bullet stays aligned with the first line of a long title. */
.wp-block-details.is-style-krym-service > summary::before,
.krym-service-plain__title::before {
    content: '';
    position: absolute;
    left: 18px;
    top: calc(16px + .75em);
    width: .32em;
    height: .32em;
    border-radius: 50%;
    background: var(--accent, #d4a64a);
    transform: translateY(-50%);
    pointer-events: none;
}
html.ks-a11y-mode .wp-block-details.is-style-krym-service > summary::before,
html.ks-a11y-mode .krym-service-plain__title::before {
    background: currentColor !important;
}
.wp-block-details.is-style-krym-service > summary {
    display: flex;
    align-items: baseline;
    gap: 14px;
    cursor: pointer;
    list-style: none;
}
.wp-block-details.is-style-krym-service > summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-krym-service > summary::marker { content: ''; }
.wp-block-details.is-style-krym-service > summary::after {
    content: '';
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    align-self: center;
}
.wp-block-details.is-style-krym-service[open] > summary::after { transform: rotate(225deg); }
.wp-block-details.is-style-krym-service > summary:focus-visible {
    outline: 3px solid var(--accent, #d4a64a);
    outline-offset: 3px;
    border-radius: 8px;
}
.wp-block-details.is-style-krym-service[open] > summary { border-bottom: 1px solid var(--border, #dce5e8); }
.wp-block-details.is-style-krym-service > :not(summary) { margin: 16px 18px; }
.wp-block-details.is-style-krym-service img { max-width: 100%; height: auto; }
.wp-block-details.is-style-krym-service .wp-block-gallery { min-width: 0; }
/* Match the existing site's accessibility mode. */
html.ks-a11y-mode .wp-block-details.is-style-krym-service,
html.ks-a11y-mode .krym-service-plain {
    background: inherit !important;
    color: inherit !important;
    border-color: currentColor !important;
}
html.ks-a11y-hide-images .wp-block-details.is-style-krym-service img { display: none !important; }
@media (max-width: 480px) {
    .wp-block-details.is-style-krym-service > summary,
    .krym-service-plain__title { padding: 14px 12px 14px 36px; }
    .wp-block-details.is-style-krym-service > summary::before,
    .krym-service-plain__title::before { left: 12px; top: calc(14px + .75em); }
    .wp-block-details.is-style-krym-service > :not(summary) { margin: 12px; }
}
@media print {
    .wp-block-details.is-style-krym-service > :not(summary) { display: block !important; }
}
