.nav-inner { overflow: visible; }

.nav-category-groups {
    min-width: 0;
    display: flex;
    align-self: stretch;
}

.nav-category-group {
    position: relative;
    display: flex;
    align-items: stretch;
}

.nav-category-group summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
}

.nav-category-group summary::-webkit-details-marker { display: none; }
.nav-category-group summary span { color: var(--brand-accent); transition: transform .2s ease; }
.nav-category-group[open] summary span { transform: rotate(180deg); }

.nav-category-children {
    min-width: 235px;
    max-width: 320px;
    position: absolute;
    z-index: 70;
    top: calc(100% - 1px);
    left: 0;
    display: grid;
    padding: 10px;
    border: 1px solid var(--soft-line);
    border-radius: 0 0 14px 14px;
    background: var(--brand-card);
    box-shadow: var(--shadow-lg);
}

.nav-category-children a {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 8px 11px;
    border-radius: 9px;
    white-space: normal;
    line-height: 1.35;
}

.nav-category-children a:hover {
    background: var(--brand-secondary);
    color: var(--brand-accent);
}

.floating-actions {
    position: fixed;
    z-index: 55;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    display: grid;
    gap: 9px;
}

.floating-action {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(20, 18, 19, .2);
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.floating-action:hover { transform: translateY(-2px); box-shadow: 0 11px 28px rgba(20, 18, 19, .26); }
.floating-action svg { width: 28px; height: 28px; }
.floating-line { background: #06c755; }
.floating-line svg { width: 34px; height: 34px; fill: #fff; }
.floating-line .line-mark { fill: #06c755; }

.back-to-top {
    background: var(--brand-primary);
    color: var(--brand-primary-text);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1050px) and (min-width: 801px) {
    .nav-category-group:nth-child(n+7) { display: none; }
}

@media (max-width: 800px) {
    .nav-category-groups { display: grid; }
    .nav-category-group { display: block; border-bottom: 1px solid var(--soft-line); }
    .nav-category-group summary { min-height: 48px; justify-content: space-between; padding: 0 10px; }
    .nav-category-children { min-width: 0; max-width: none; position: static; padding: 0 8px 10px 18px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
    .nav-category-children a { min-height: 42px; padding-left: 12px; border-left: 2px solid var(--soft-line); border-bottom: 0; }
    .floating-actions { right: 13px; bottom: calc(76px + env(safe-area-inset-bottom)); gap: 7px; }
    .floating-action { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    .floating-action, .nav-category-group summary span { transition: none; }
}
.guestbook-image{width:54px;height:54px;margin-top:10px;display:block;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--brand-card)}.guestbook-image img{width:100%;height:100%;object-fit:cover}.service-form input[type=file]{padding:10px}.service-form label small{color:var(--brand-muted);font-size:12px}

/* Editable homepage editorial block: the new default occupies less desktop space. */
.home-text-section.home-text-compact{min-height:270px;margin-block:38px}
.home-text-section.home-text-regular{min-height:370px;margin-block:48px}
.home-text-section.home-text-large{min-height:470px}
.home-text-section.home-text-compact .editorial-copy{padding:clamp(24px,4vw,42px)}
.home-text-section.home-text-plain{grid-template-columns:1fr}
.home-text-section.home-text-plain .editorial-copy{max-width:900px}
.home-text-section.home-text-image .editorial-art img,.home-text-section.home-text-split .editorial-art img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.home-text-section .editorial-art span{font-size:clamp(30px,6vw,80px);overflow-wrap:anywhere;text-align:center;padding:12px}
@media(max-width:800px){.home-text-section.home-text-compact .editorial-art{min-height:170px}.home-text-section.home-text-plain{display:block}}
.home-section-anchor{display:block;height:0;scroll-margin-top:110px}
