.service-grid,
.hall-grid,
.flower-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 16px;
}

.public-body .service-grid { margin-block: 22px; gap: 16px; align-items: stretch; }
.public-body .service-grid .service-entry { color: var(--s-text); }
.service-page #service-request,
.service-page #my-service-requests,
.hall-details { scroll-margin-top: 16px; }

.service-entry,
.hall-choice,
.flower-model {
    color: var(--s-text);
    background: var(--s-panel);
    border: 1px solid var(--s-border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 6px 20px #2012280e;
}

.service-entry:hover,
.hall-choice:hover,
.flower-model:has(input):hover {
    border-color: var(--s-accent);
    color: var(--s-text);
    text-decoration: none;
}

.service-entry:focus-visible,
.hall-choice:focus-visible,
.flower-model:focus-within,
.service-mode-links a:focus-visible {
    outline: 2px solid var(--s-accent);
    outline-offset: 3px;
}

.service-entry {
    display: grid;
    grid-template-rows: 145px 1fr;
}

.service-entry > img {
    display: block;
    width: 100%;
    height: 145px;
    object-fit: cover;
    object-position: center;
    background: var(--s-soft);
}

.service-entry-box > img {
    object-position: center 57%;
    background: linear-gradient(115deg,#f8d9e6,#f8eeeb 57%,#efd5e8);
}

.service-entry > div:last-child {
    display: flex;
    flex-direction: column;
    padding: 18px;
}

.service-entry h2 { margin: 0; font-size: 1.13rem; }
.service-entry p { color: var(--s-muted); margin: .5rem 0 1.1rem; }
.service-entry > div:last-child > span { margin-block-start: auto; font-weight: 700; }

.service-entry[aria-current],
.hall-choice[aria-current],
.flower-model:has(input:checked) {
    border-color: var(--s-accent);
    background: var(--s-soft);
    box-shadow: inset 0 0 0 1px var(--s-accent);
}

.service-request-heading p { color: var(--s-muted); margin-block-end: 0; }
.with-box-photo {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(90px,22%);
    gap: 16px;
    align-items: center;
}
.service-box-photo {
    display: block;
    width: 100%;
    height: auto;
    border: 4px solid var(--s-panel);
    border-radius: 16px;
    box-shadow: 0 5px 20px #251a2926;
}
.service-mode-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block: 18px;
}
.service-mode-links a {
    padding: .45rem .85rem;
    border: 1px solid var(--s-border);
    border-radius: 12px;
    background: var(--s-panel);
    color: var(--s-text);
}
.service-mode-links a[aria-current] { background: var(--s-soft); border-color: var(--s-accent); font-weight: 700; }
.service-request-panel > a.button { margin-block-start: 14px; }
.service-form { margin-block-start: 18px; }
.service-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; }
.flower-models,
.service-date { border: 0; padding: 0; min-inline-size: 0; margin: 12px 0 18px; }
.flower-models legend,
.service-date legend { padding: 0 0 8px; font-weight: 700; }
.flower-model {
    display: grid;
    align-content: start;
    position: relative;
    margin: 0;
    font-weight: 400;
}
.service-entry,
.hall-choice,
.flower-model { transition: border-color .18s ease, box-shadow .18s ease; }
.flower-preview {
    display: block;
    color: var(--s-text);
    text-decoration: none;
    cursor: zoom-in;
}
.flower-preview:hover { color: var(--s-text); text-decoration: none; }
.flower-preview img { display: block; }
.flower-select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    margin: 0;
    padding: 10px 12px;
    border-top: 1px solid var(--s-border);
    cursor: pointer;
}
.flower-select input[type=radio] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    accent-color: var(--s-accent);
}
.flower-model-name {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.flower-dialog {
    box-sizing: border-box;
    width: min(820px, calc(100% - 24px));
    max-height: calc(100% - 24px);
    padding: 16px;
    border: 1px solid var(--s-border);
    border-radius: 20px;
    color: var(--s-text);
    background: var(--s-panel);
}
.flower-dialog::backdrop { background: #181323c9; }
.flower-dialog img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 68vh;
    object-fit: contain;
    border-radius: 12px;
}
.public-body main .flower-dialog-header,
.flower-dialog-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.public-body main .flower-dialog-header {
    position: static;
    min-height: 0;
    padding: 0 0 12px;
    border: 0;
    background: none;
}
.flower-dialog-header h2, .flower-dialog-header form { margin: 0; }
.flower-dialog-footer { padding-top: 12px; }
.flower-model img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--s-soft); }
.flower-model-text { display: grid; gap: 3px; padding: 12px; }
.flower-price { color: var(--s-muted); font-size: .88em; font-weight: 700; }

.hall-selector { margin-block: 18px; }
.hall-panorama {
    margin: 18px 0 24px;
    border: 1px solid var(--s-border);
    border-radius: 22px;
    overflow: hidden;
    scroll-margin-top: 16px;
}
.hall-panorama img { display: block; width: 100%; height: auto; }
.hall-choice {
    display: grid;
    gap: 5px;
    padding: 16px;
    min-width: 0;
}
.hall-choice-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--s-soft);
    color: var(--s-accent);
    font-size: 1.35rem;
    margin-block-end: 3px;
}
.hall-choice strong { font-size: 1.05rem; }
.hall-choice small,
.hall-choice span:not(.hall-choice-icon) { color: var(--s-muted); }
.hall-choice small { margin-block-start: 5px; }
.hall-details { align-items: start; }
.hall-facts {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    margin-block: 14px 18px;
}
.hall-facts > div { min-width: 0; padding: 10px; border-radius: 13px; background: var(--s-soft); }
.hall-facts dt { color: var(--s-muted); font-size: .85rem; }
.hall-facts dd { margin: 4px 0 0; font-weight: 700; font-size: .9rem; }

@media (max-width: 600px) {
    .hall-details,
    .service-fields { grid-template-columns: 1fr; }
    .hall-grid,
    .public-body .service-grid { gap: 10px; }
    .flower-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .flower-model-text { padding: 9px; font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
    .service-entry, .hall-choice, .flower-model { transition: none; }
}
