.nearby-profile {
    --nearby-ink: #172b3a;
    --nearby-muted: #596b78;
    --nearby-blue: #007bb8;
    --nearby-blue-hover: #00689c;
    --nearby-soft: #edf7fc;
    --nearby-line: #dce5eb;
    color: var(--nearby-ink);
    background: #fff;
    font: 400 18px/1.6 Inter, Arial, sans-serif;
    min-width: 0;
    overflow-wrap: anywhere;
}
.nearby-profile, .nearby-profile * { box-sizing: border-box; }
.nearby-profile [hidden] { display: none !important; }
.nearby-profile img { display: block; max-width: 100%; }
.nearby-profile a { color: inherit; text-decoration: none; }
.nearby-profile :where(button, input, textarea) { font: inherit; }
.nearby-profile button, .nearby-profile summary { cursor: pointer; }
.nearby-profile button:disabled { cursor: wait; opacity: .6; }
.nearby-profile h1, .nearby-profile h2, .nearby-profile h3 { margin: 0; font-family: Inter, Arial, sans-serif; font-weight: 700; line-height: 1.18; letter-spacing: -.025em; }
.nearby-profile h2 { font-size: clamp(28px, 3vw, 36px); }
.nearby-profile h3 { font-size: 23px; line-height: 1.3; }
.nearby-profile p { margin: 0; }
.nearby-profile strong { font-weight: 600; }
.nearby-wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.nearby-muted { color: var(--nearby-muted); }
.nearby-preview { border-bottom: 1px solid var(--nearby-line); background: #f7fafc; color: var(--nearby-muted); font-size: 14px; }
.nearby-preview .nearby-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-block: 8px; }
.nearby-preview a { text-decoration: underline; text-underline-offset: 3px; }
.nearby-header { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: center; gap: 48px; padding-block: 40px 36px; }
.nearby-heading { min-width: 0; }
.nearby-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 18px; color: var(--nearby-muted); font-size: 16px; }
.nearby-eyebrow a { color: var(--nearby-blue); }
.nearby-eyebrow span::before { content: "·"; margin-right: 12px; }
.nearby-brand { display: flex; align-items: center; gap: 18px; }
.nearby-logo { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 16px; object-fit: contain; border: 1px solid var(--nearby-line); background: #fff; }
.nearby-header h1 { font-size: clamp(36px, 4.1vw, 56px); line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.nearby-intro { margin-top: 20px !important; max-width: 680px; font-size: 20px; line-height: 1.55; }
.nearby-header-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; font-size: 16px; }
.nearby-header-links:empty { display: none; }
.nearby-rating { font-weight: 600; }
.nearby-rating > span:first-child { color: #a66c04; }
.nearby-text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--nearby-blue) !important; font-weight: 600; }
.nearby-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.nearby-visit { display: grid; gap: 14px; align-content: start; padding: 24px; border: 1px solid #d2e9f5; border-radius: 20px; background: var(--nearby-soft); }
.nearby-status { display: flex; gap: 8px; align-items: baseline; color: var(--nearby-muted); font-size: 16px; font-weight: 500; }
.nearby-status > span { flex: 0 0 8px; height: 8px; border-radius: 50%; background: #75818a; }
.nearby-status.is-open { color: #267540; }
.nearby-status.is-open > span { background: #32964f; }
.nearby-visit-address { font-size: 20px; font-weight: 600; line-height: 1.45; }
.nearby-visit-actions { display: grid; gap: 10px; }
.nearby-visit-schedule { font-size: 16px; justify-self: start; min-height: 30px; }
.nearby-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 12px; padding: 12px 20px; border: 1px solid var(--nearby-line); border-radius: 12px; color: var(--nearby-ink); background: #fff; font-size: 17px; font-weight: 600; line-height: 1.4; text-align: center; transition: background .16s, border-color .16s; }
.nearby-button:hover { background: var(--nearby-soft); border-color: #9acbe6; }
.nearby-button--primary { color: #fff !important; background: var(--nearby-blue); border-color: var(--nearby-blue); }
.nearby-button--primary:hover { background: var(--nearby-blue-hover); border-color: var(--nearby-blue-hover); }
.nearby-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nearby-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.nearby-section-heading p, .nearby-section-heading time { color: var(--nearby-muted); font-size: 16px; }
.nearby-section-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--nearby-blue) !important; font-size: 16px; font-weight: 600; text-decoration: underline !important; text-underline-offset: 4px; }
.nearby-count { padding: 5px 12px; border-radius: 20px; background: var(--nearby-soft); font-size: 16px; font-weight: 500; white-space: nowrap; }
.nearby-gallery-section { padding-bottom: 36px; scroll-margin-top: calc(var(--nearby-header-height, 0px) + var(--nearby-nav-height, 66px) + 16px); }
.nearby-gallery { columns: 3; column-gap: 4px; }
.nearby-gallery--1 { columns: 1; max-width: 640px; }
.nearby-gallery--2 { columns: 2; max-width: 900px; }
.nearby-photo { break-inside: avoid; margin-bottom: 4px; }
.nearby-photo button { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: #eef2f5; }
.nearby-photo img { width: 100%; height: auto; min-height: 44px; transition: transform .3s ease; }
.nearby-photo button:focus-visible { outline: 2px solid var(--nearby-blue); outline-offset: -2px; }
.nearby-photo button:focus-visible img, .nearby-photo.is-centered img { transform: scale(1.06); }
@media (hover: hover) and (pointer: fine) {
    .nearby-photo button:hover img { transform: scale(1.06); }
}
.nearby-section-nav { position: sticky; top: var(--nearby-header-height, 0px); z-index: 30; display: flex; gap: 30px; overflow-x: auto; border-block: 1px solid var(--nearby-line); background: #fff; scrollbar-width: none; }
.nearby-section-nav::-webkit-scrollbar { display: none; }
.nearby-section-nav a { flex: 0 0 auto; padding-block: 18px; font-size: 17px; font-weight: 600; color: var(--nearby-muted); }
.nearby-section-nav a:hover { color: var(--nearby-blue); }
.nearby-content { padding-bottom: 24px; }
.nearby-section { padding-block: 44px; scroll-margin-top: calc(var(--nearby-header-height, 0px) + var(--nearby-nav-height, 66px) + 16px); }
.nearby-section + .nearby-section { border-top: 1px solid var(--nearby-line); }
.nearby-about-section { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
.nearby-about-section .nearby-section-heading { align-items: start; }
.nearby-about { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.nearby-about.is-expanded { display: block; -webkit-line-clamp: unset; }
.nearby-about p + p { margin-top: 14px; }
.nearby-about h2, .nearby-about h3 { margin-block: 16px 10px; font-size: 24px; }
.nearby-about ul, .nearby-about ol { padding-left: 24px; }
.nearby-about ul { list-style: disc; }
.nearby-about ol { list-style: decimal; }
.nearby-about a { text-decoration: underline; text-underline-offset: 3px; }
.nearby-about table { display: block; max-width: 100%; overflow-x: auto; }
.nearby-about iframe, .nearby-about video { max-width: 100%; }
.nearby-about iframe { height: auto; aspect-ratio: 16/9; }
.nearby-about-toggle { display: none !important; margin-top: 8px; }
.nearby-about-toggle.is-visible { display: inline-flex !important; }
.nearby-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.nearby-categories a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--nearby-line); border-radius: 24px; font-size: 16px; }
.nearby-categories a:hover { background: var(--nearby-soft); }
.nearby-products, .nearby-promos, .nearby-news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nearby-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nearby-card, .nearby-news-card { min-width: 0; }
.nearby-card-media { aspect-ratio: 4/3; overflow: hidden; border-radius: 16px; background: #f3f6f8; }
.nearby-card-media img { width: 100%; height: 100%; object-fit: cover; }
.nearby-products .nearby-card-media img { object-fit: contain; }
.nearby-news-card > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; }
.nearby-card-copy, .nearby-news-copy { padding-top: 16px; }
.nearby-products h3 { font-size: 20px; }
.nearby-card-copy small, .nearby-news-copy time { display: block; margin-bottom: 8px; color: var(--nearby-muted); font-size: 16px; }
.nearby-news-copy p { margin-top: 12px; color: var(--nearby-muted); font-size: 18px; }
.nearby-card-price { margin-top: 12px; font-size: 22px; font-weight: 700; }
.nearby-product-placeholder { display: grid; height: 100%; place-items: center; font-size: 42px; font-weight: 700; color: #9aabb6; }
.nearby-promos .nearby-card { border: 1px solid var(--nearby-line); border-radius: 16px; overflow: hidden; }
.nearby-promos .nearby-card-media { border-radius: 0; }
.nearby-promos .nearby-card-copy { padding: 20px; }
.nearby-service-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.nearby-service-group { padding: 24px; border: 1px solid var(--nearby-line); border-radius: 16px; }
.nearby-service-list h3 { margin-bottom: 16px; }
.nearby-service { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding-block: 14px; }
.nearby-service + .nearby-service { border-top: 1px solid var(--nearby-line); }
.nearby-service-price { font-weight: 600; }
.nearby-service-check { grid-column: 1/-1; position: relative; justify-self: start; cursor: pointer; }
.nearby-service-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.nearby-service-check > span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid #a6d5ee; border-radius: 10px; color: var(--nearby-blue); font-size: 16px; font-weight: 600; }
.nearby-service-check input:checked + span { color: #fff; background: var(--nearby-blue); }
.nearby-service-check input:checked + span::before { content: "✓"; margin-right: 7px; }
.nearby-service-check input:focus-visible + span { outline: 3px solid var(--nearby-blue); outline-offset: 3px; }
.nearby-review-summary { display: flex; align-items: center; gap: 28px; margin-bottom: 28px; }
.nearby-review-number { font-size: 48px; font-weight: 700; line-height: 1.1; }
.nearby-review-stars { color: #a66c04; white-space: nowrap; }
.nearby-review-summary p { max-width: 360px; color: var(--nearby-muted); font-size: 17px; }
.nearby-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nearby-review { min-width: 0; padding: 24px; border: 1px solid var(--nearby-line); border-radius: 16px; }
.nearby-review-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.nearby-review-avatar { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--nearby-soft); color: var(--nearby-blue); font-size: 16px; font-weight: 600; }
.nearby-review-meta strong, .nearby-review-meta span { display: block; font-size: 16px; }
.nearby-review-meta span { margin-top: 4px; color: var(--nearby-muted); font-size: 14px; }
.nearby-review-score { color: #986000; white-space: nowrap; font-size: 16px; font-weight: 600; }
.nearby-review-text { margin-top: 18px !important; }
.nearby-review-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.nearby-review-images button { width: 64px; height: 64px; padding: 0; overflow: hidden; border: 0; border-radius: 8px; }
.nearby-review-images img { width: 100%; height: 100%; object-fit: cover; }
.nearby-company-response { margin-top: 16px; padding: 16px; border-radius: 10px; background: var(--nearby-soft); font-size: 17px; }
.nearby-empty { padding-block: 24px; color: var(--nearby-muted); }
.nearby-reviews-more { margin-top: 24px; }
.nearby-contact-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0 48px; margin-block: 12px 36px; padding: 32px; border: 1px solid #d2e9f5 !important; border-radius: 20px; background: var(--nearby-soft); }
.nearby-contact-head { grid-column: 1; grid-row: 1; }
.nearby-contact-status { margin-top: 14px; color: var(--nearby-muted); font-size: 17px; }
.nearby-contact-section > .nearby-actions { grid-column: 1; grid-row: 2; align-self: start; margin-top: 24px; }
.nearby-contact-grid { grid-column: 2; grid-row: 1/span 3; }
.nearby-contact-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: baseline; padding-block: 16px; border-bottom: 1px solid #d2e5ee; font-size: 20px; }
.nearby-contact-row:first-child { padding-top: 0; }
.nearby-contact-row span { color: var(--nearby-muted); font-size: 16px; }
.nearby-contact-row strong { font-weight: 600; }
.nearby-schedule { grid-column: 2; margin-top: 16px; }
.nearby-schedule summary { min-height: 44px; padding-block: 8px; font-weight: 600; }
.nearby-schedule-row { display: flex; gap: 20px; padding-block: 6px; font-size: 17px; }
.nearby-schedule-row span { min-width: 40px; color: var(--nearby-muted); }
.nearby-socials { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.nearby-socials a { display: inline-flex; align-items: center; min-height: 44px; color: var(--nearby-blue); font-size: 17px; font-weight: 600; }
.nearby-management { padding-block: 24px; border-top: 1px solid var(--nearby-line); font-size: 16px; color: var(--nearby-muted); }
.nearby-management p { margin-block: 8px; }
.nearby-management a, .nearby-management button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--nearby-blue); text-decoration: underline; text-underline-offset: 4px; }
.nearby-signature { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px; border-top: 1px solid var(--nearby-line); color: var(--nearby-muted); font-size: 16px; }
.nearby-mobile-actions { display: none; }
.nearby-selection-bar { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: none; align-items: center; justify-content: space-between; gap: 24px; max-width: calc(100% - 48px); padding: 16px 20px; color: #fff; background: #173c53; border-radius: 14px; box-shadow: 0 8px 30px #173c5330; }
.nearby-selection-bar.is-visible { display: flex; }
.nearby-selection-bar strong, .nearby-selection-bar span { display: block; }
.nearby-selection-bar span { font-size: 16px; }
.nearby-selection-bar button { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 10px; color: var(--nearby-ink); background: #fff; font-size: 16px; font-weight: 600; }
.nearby-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 20px; color: var(--nearby-ink); background: #fff; box-shadow: 0 20px 80px #142c3c44; }
.nearby-dialog::backdrop { background: #142c3c99; }
.nearby-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-bottom: 1px solid var(--nearby-line); }
.nearby-dialog-head h2 { font-size: 26px; }
.nearby-dialog-close { flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #f0f4f7; font-size: 28px !important; }
.nearby-dialog-body { padding: 24px; }
.nearby-dialog-body p + .nearby-button { margin-top: 20px; }
.nearby-form { display: grid; gap: 16px; }
.nearby-form label { display: grid; gap: 6px; font-size: 17px; }
.nearby-form input, .nearby-form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #bdcbd5; border-radius: 10px; color: var(--nearby-ink); background: #fff; font-size: 18px; }
.nearby-form textarea { min-height: 120px; resize: vertical; }
.nearby-form-status { min-height: 20px; color: #ac283d; font-size: 16px; }
.nearby-form-status.is-success { color: #267540; }
.nearby-owner-phones { display: grid; gap: 8px; margin-top: 9px; }
.nearby-owner-phone { display: flex !important; align-items: center; }
.nearby-owner-phone input { width: 18px; min-height: 18px; }
.nearby-review-rating { display: flex; gap: 3px; margin-top: 8px; }
.nearby-review-rating button { width: 44px; height: 44px; padding: 0; border: 0; color: #7b8b96; background: transparent; font-size: 28px; }
.nearby-review-rating button.is-selected { color: #a66c04; }
.nearby-review-upload input { display: none; }
.nearby-review-upload, .nearby-review-previews { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 16px; }
.nearby-review-preview { position: relative; width: 74px; height: 74px; }
.nearby-review-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.nearby-review-preview button { position: absolute; top: 0; right: 0; width: 32px; height: 32px; border: 0; color: #fff; background: #172b3ae6; }
.nearby-gallery-dialog { width: min(1200px, calc(100% - 24px)); max-width: none; height: min(900px, calc(100dvh - 24px)); margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: #111c24; }
.nearby-gallery-dialog::backdrop { background: #111c24ed; }
.nearby-gallery-dialog img { width: 100%; height: 100%; object-fit: contain; }
.nearby-gallery-close, .nearby-gallery-prev, .nearby-gallery-next { position: absolute; z-index: 2; width: 48px; height: 48px; padding: 0; border: 1px solid #ffffff66; border-radius: 50%; color: #fff; background: #172b3acc; font-size: 28px !important; }
.nearby-gallery-close { top: 16px; right: 16px; }
.nearby-gallery-prev { top: 50%; left: 16px; }
.nearby-gallery-next { top: 50%; right: 16px; }
:where(.nearby-profile a, .nearby-profile button, .nearby-profile input, .nearby-profile textarea, .nearby-profile summary):focus-visible { outline: 3px solid var(--nearby-blue); outline-offset: 4px; }
@media (max-width: 960px) {
    .nearby-header { grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; }
    .nearby-visit { padding: 20px; }
    .nearby-brand { align-items: start; }
    .nearby-logo { flex-basis: 48px; width: 48px; height: 48px; border-radius: 12px; }
    .nearby-products, .nearby-promos, .nearby-news, .nearby-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nearby-about-section { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
    .nearby-contact-section { gap: 0 28px; padding: 24px; }
}
@media (max-width: 700px) {
    .nearby-profile { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
    .nearby-header { grid-template-columns: 1fr; gap: 24px; padding-block: 24px; }
    .nearby-header h1 { font-size: 34px; }
    .nearby-eyebrow { margin-bottom: 14px; }
    .nearby-brand { gap: 12px; }
    .nearby-intro { margin-top: 16px !important; font-size: 18px; }
    .nearby-header-links { gap: 8px 20px; margin-top: 14px; }
    .nearby-header-links a[href="#gallery"] { display: none; }
    .nearby-visit { gap: 12px; padding: 18px; border-radius: 16px; }
    .nearby-visit-address { font-size: 20px; }
    .nearby-visit-schedule { display: none; }
    .nearby-visit-actions { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .nearby-visit-actions a[href^="tel:"]:not(.nearby-button--primary) { display: none; }
    .nearby-gallery-section { padding-bottom: 28px; }
    .nearby-gallery { columns: 2; }
    .nearby-gallery--1 { columns: 1; }
    .nearby-photo button { border-radius: 12px; }
    .nearby-section-nav { gap: 24px; }
    .nearby-section-nav a { padding-block: 14px; font-size: 16px; }
    .nearby-section { padding-block: 32px; }
    .nearby-section-heading { flex-wrap: wrap; gap: 8px 16px; margin-bottom: 20px; }
    .nearby-about-section { display: block; }
    .nearby-products, .nearby-promos { gap: 24px 16px; }
    .nearby-products h3 { font-size: 18px; }
    .nearby-card-price { font-size: 20px; }
    .nearby-promos, .nearby-news, .nearby-reviews, .nearby-service-groups { grid-template-columns: 1fr; }
    .nearby-service-group, .nearby-review { padding: 20px; }
    .nearby-service { grid-template-columns: 1fr; }
    .nearby-contact-section { display: block; padding: 20px; border-radius: 16px; }
    .nearby-contact-grid { margin-top: 24px; }
    .nearby-contact-row { grid-template-columns: 1fr; gap: 4px; }
    .nearby-signature { flex-direction: column; gap: 8px; }
    .nearby-mobile-actions { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--nearby-line); background: #fff; }
    .nearby-mobile-actions a, .nearby-mobile-actions button { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--nearby-blue); color: #fff; font-size: 16px; font-weight: 600; line-height: 1.4; text-align: center; }
    .nearby-mobile-actions > :nth-child(2) { background: var(--nearby-soft); color: var(--nearby-blue); }
    .nearby-selection-bar { right: 12px; left: 12px; bottom: calc(108px + env(safe-area-inset-bottom)); max-width: none; padding: 12px 16px; gap: 12px; font-size: 16px; }
    .nearby-dialog-head, .nearby-dialog-body { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .nearby-profile * { transition: none !important; scroll-behavior: auto !important; }
    /* Для галереи сохраняем явно запрошенное плавное увеличение. */
    .nearby-photo img { transition: transform .3s ease !important; }
}
