/* В Киришах — основной стиль. Без сборки, правится напрямую. */
:root {
    --c-bg: #f6f7f9;
    --c-surface: #ffffff;
    --c-text: #17212b;
    --c-muted: #637080;
    --c-line: #e3e7ec;
    --c-brand: #0b4f7c;
    --c-brand-2: #1272b3;
    --c-brand-soft: #e7f1f8;
    --c-sun: #ffc94d;
    --c-ok: #1e8a4c;
    --c-ok-soft: #e6f5ec;
    --c-danger: #c8332b;
    --c-danger-soft: #fdecea;
    --c-warn: #b86e00;
    --c-warn-soft: #fff4dd;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --shadow-hover: 0 6px 18px rgba(16, 24, 40, .10);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--c-text);
    background: var(--c-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--c-muted); }
.small { font-size: .875rem; }
.h-sm { font-size: 1.25rem; margin-top: 1.5rem; }
.h-xs { font-size: 1rem; margin-bottom: .75rem; }
.lead { font-size: 1.15rem; }
.sep { border: 0; border-top: 1px solid var(--c-line); margin: 2rem 0; }
.empty { color: var(--c-muted); padding: 1.5rem 0; }
.dimmed { opacity: .65; }

/* ---------- Header ---------- */
.site-header {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
    position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--c-text); }
.logo:hover { text-decoration: none; }
.logo-mark { width: 34px; height: 34px; color: var(--c-brand); flex: none; }
.main-nav { display: flex; gap: 4px; overflow-x: auto; }
.main-nav a {
    padding: 8px 14px; border-radius: 999px; color: var(--c-text); font-weight: 500; white-space: nowrap;
}
.main-nav a:hover { background: var(--c-bg); text-decoration: none; }
.main-nav a.active { background: var(--c-brand-soft); color: var(--c-brand); }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1200px 300px at 85% -40%, rgba(255, 201, 77, .35), transparent 60%),
        linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-2) 100%);
    color: #fff;
    padding: 56px 0 64px;
}
.hero h1 { color: #fff; max-width: 720px; }
.hero-sub { font-size: 1.1rem; opacity: .9; max-width: 640px; margin-bottom: 24px; }

/* ---------- Search ---------- */
.search { display: flex; gap: 8px; max-width: 640px; margin-top: 12px; }
.search input {
    flex: 1; min-width: 0; font: inherit; padding: 12px 16px;
    border: 1px solid var(--c-line); border-radius: 12px; background: #fff; color: var(--c-text);
}
.search input:focus { outline: 2px solid var(--c-brand-2); outline-offset: 1px; border-color: transparent; }
.search button, .btn {
    font: inherit; font-weight: 600; padding: 12px 20px; border: 0; border-radius: 12px;
    background: var(--c-brand); color: #fff; cursor: pointer; display: inline-block; text-align: center;
}
.search button:hover, .btn:hover { background: var(--c-brand-2); text-decoration: none; }
.search-big input { padding: 16px 20px; font-size: 1.05rem; border: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }
.search-big button { background: var(--c-sun); color: #3a2a00; padding: 0 24px; }
.search-big button:hover { background: #ffd56f; }

/* ---------- Weather ---------- */
.weather-now {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 16px 8px 12px;
    border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff;
}
.weather-now:hover { background: rgba(255, 255, 255, .22); text-decoration: none; }
.weather-now-icon { font-size: 1.6rem; line-height: 1; }
.weather-now-temp { font-size: 1.5rem; font-weight: 700; }
.weather-now-text { display: flex; flex-direction: column; line-height: 1.25; }
.weather-now-text small { opacity: .8; }
.card.weather-current { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.weather-current-icon { font-size: 4rem; line-height: 1; }
.weather-current-temp { font-size: 3rem; font-weight: 700; line-height: 1; }
.weather-current-text { font-size: 1.15rem; }
.weather-current-meta { list-style: none; margin: 0 0 0 auto; padding: 0; color: var(--c-muted); }
.weather-hours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.weather-hour {
    display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px;
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px;
}
.weather-icon { font-size: 1.6rem; line-height: 1.2; }
.weather-precip { color: var(--c-brand-2); font-size: .85rem; }
.card.weather-days { padding: 4px 18px; margin-bottom: 1rem; }
.weather-day {
    display: grid; grid-template-columns: minmax(130px, 1.2fr) 40px minmax(0, 2fr) 70px 90px; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--c-line);
}
.weather-day:last-child { border-bottom: 0; }
.weather-day-date { display: flex; flex-direction: column; line-height: 1.3; }
.weather-day-temp { text-align: right; white-space: nowrap; }
@media (max-width: 560px) {
    .weather-day { grid-template-columns: 1fr 34px 60px 76px; }
    .weather-day-text { display: none; }
    .weather-current-meta { margin-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 32px 0; }
.section-alt { background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.link-more { font-weight: 500; white-space: nowrap; }
.page-head { background: var(--c-surface); border-bottom: 1px solid var(--c-line); padding: 28px 0 24px; }
.page-head h1 { margin-bottom: .3em; }
.crumbs { font-size: .9rem; color: var(--c-muted); margin-bottom: 8px; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
    padding: 18px; box-shadow: var(--shadow); color: inherit; display: block;
}
a.card { transition: box-shadow .15s, transform .15s; }
a.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); text-decoration: none; }
.card + .card { margin-top: 0; }
.org-side .card + .card { margin-top: 16px; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.cat-tile {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; color: var(--c-text);
}
.cat-tile:hover { border-color: var(--c-brand-2); text-decoration: none; }
.cat-icon { font-size: 1.4rem; line-height: 1; }
.cat-name { flex: 1; min-width: 0; font-weight: 500; hyphens: manual; overflow-wrap: break-word; }
.cat-count { color: var(--c-muted); font-size: .85rem; flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--c-brand-soft); color: var(--c-brand); font-size: .9rem; }

/* Organization card */
.org-card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.org-card-title h3 { margin: 0 0 2px; }
.org-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; background: var(--c-bg); }
.org-logo-empty { display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; color: var(--c-brand); background: var(--c-brand-soft); }
.org-logo-lg { width: 88px; height: 88px; border-radius: 18px; }
.org-card-desc { color: var(--c-muted); font-size: .95rem; margin-bottom: 10px; }
.org-card-meta { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.org-head { display: flex; gap: 18px; align-items: center; }
.org-head h1 { margin-bottom: .2em; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.badge-open { background: var(--c-ok-soft); color: var(--c-ok); }
.badge-closed { background: var(--c-danger-soft); color: var(--c-danger); }

/* Organization page */
.org-layout { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .org-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
.contacts { margin: 0; }
.contacts dt { font-size: .8rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; }
.contacts dd { margin: 0 0 12px; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th { text-align: left; font-weight: 400; padding: 4px 0; }
.hours td { text-align: right; padding: 4px 0; }
.hours tr.today { font-weight: 700; color: var(--c-brand); }
.prose { max-width: 70ch; }
.prose h2, .prose h3 { margin-top: 1.4em; }

/* Outages */
.outage-card { border-left: 4px solid var(--c-muted); }
.outage-water_cold { border-left-color: #2b8ad8; }
.outage-water_hot, .outage-heating { border-left-color: var(--c-danger); }
.outage-electricity { border-left-color: #e0a100; }
.outage-gas { border-left-color: #6e56cf; }
.outage-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.outage-type { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.outage-addresses summary { cursor: pointer; color: var(--c-brand-2); margin-bottom: 4px; }
.outage-addresses p { margin: 0 0 .5em; font-size: .95rem; }
.label { display: inline-block; font-weight: 700; font-size: .85rem; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.label-danger { background: var(--c-danger-soft); color: var(--c-danger); }
.notice-ok {
    display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--radius);
    background: var(--c-ok-soft); color: #14532d;
}

/* Events */
.event-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.event-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.event-image-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--c-brand-soft), #fff6dc); color: var(--c-brand);
}
.event-day { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.event-month { text-transform: uppercase; font-weight: 600; letter-spacing: .08em; }
.event-body { padding: 14px 18px 18px; }
.event-body h3 { margin: 4px 0 6px; }
.event-date { color: var(--c-warn); font-weight: 600; font-size: .9rem; }
.event-poster { border-radius: var(--radius); margin-bottom: 20px; }
.org-side .btn { width: 100%; margin-top: 8px; }

/* Pagination (resources/views/vendor/pagination/default.blade.php) */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 24px 0 0; }
.pagination li > * {
    display: block; min-width: 40px; padding: 8px 12px; text-align: center; border-radius: 10px;
    background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-text);
}
.pagination li.active > * { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.pagination li.disabled > * { color: var(--c-muted); opacity: .6; }

/* Footer */
.site-footer { background: #0e1a24; color: #c8d1da; padding: 32px 0; margin-top: 40px; }
.site-footer a { color: #fff; }
.site-footer .muted { color: #8b98a5; }
.footer-inner { display: grid; gap: 16px; }
.footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 600px) {
    .hero { padding: 36px 0 40px; }
    .search { flex-direction: column; }
    .search-big button { padding: 14px; }
    .header-inner { padding: 10px 16px; min-height: 0; }
    .main-nav { width: 100%; }
    .org-head { flex-direction: column; align-items: flex-start; }
}

/* Карта Киришей в изометрии (/karta, public/js/map.js) */
.city-map {
    position: relative; height: min(78vh, 760px); min-height: 380px;
    background: #2c5a7a; border-radius: var(--radius); box-shadow: var(--shadow-hover); touch-action: none; overflow: hidden;
}
.city-map canvas { display: block; width: 100%; height: 100%; cursor: grab; outline: none; }
.city-map-controls { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; }
.city-map-controls button {
    width: 42px; height: 42px; font: inherit; font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer;
    background: #fff; color: var(--c-text); border: 0; border-radius: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.city-map-controls button:hover { background: var(--c-brand-soft); }
.city-map-popup {
    position: absolute; left: 12px; bottom: 36px; max-width: min(340px, calc(100% - 80px));
    display: flex; flex-direction: column; gap: 4px; padding: 14px 16px;
    background: #fff; color: var(--c-text); border-radius: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); font-size: 14px; line-height: 1.4;
}
.city-map-popup[hidden] { display: none; }
.city-map-popup-head { display: flex; gap: 10px; align-items: center; padding-right: 22px; }
.city-map-popup-head > div { display: flex; flex-direction: column; gap: 2px; }
.city-map-popup p { margin: 2px 0 0; }
.city-map-popup p.joke { font-style: italic; color: var(--c-text); }
.city-map-popup p.joke.auto::before { content: "😄 "; font-style: normal; }
.city-map-logo {
    width: 44px; height: 44px; flex: none; border-radius: 12px; object-fit: cover;
    display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--c-bg);
}
.city-map-popup strong { font-size: 16px; }
.city-map-popup span { color: var(--c-muted); }
.city-map-popup a { font-weight: 600; margin-top: 4px; }
.city-map-popup .close {
    position: absolute; top: 6px; right: 8px; background: none; border: 0; color: var(--c-muted);
    font: inherit; font-size: 22px; line-height: 1; cursor: pointer;
}
.city-map-pad {
    position: absolute; right: 12px; bottom: 28px; display: none;
    grid-template: repeat(3, 46px) / repeat(3, 46px); grid-template-areas: ". up ." "left . right" ". down .";
}
.city-map-pad button {
    font: inherit; font-size: 18px; line-height: 1; color: var(--c-text); background: rgba(255, 255, 255, .85);
    border: 0; border-radius: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.city-map-pad button:active { background: var(--c-sun); }
.city-map-pad [data-walk="up"] { grid-area: up; }
.city-map-pad [data-walk="left"] { grid-area: left; }
.city-map-pad [data-walk="right"] { grid-area: right; }
.city-map-pad [data-walk="down"] { grid-area: down; }
@media (pointer: coarse) {
    .city-map-pad { display: grid; }
    .city-map-popup { top: 12px; bottom: auto; }
}
.city-map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 600; }
.city-map-credit { position: absolute; right: 0; bottom: 0; padding: 2px 8px; background: rgba(255, 255, 255, .8); color: var(--c-text); font-size: 11px; border-top-left-radius: 8px; }
.city-map-credit a { color: inherit; }
.city-map-seasons { margin: 12px 0 0; font-size: 14px; color: var(--c-muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.city-map-seasons a.active { color: var(--c-text); font-weight: 700; }
.city-map-legend-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.city-map-legend-head .h-xs { margin: 0; }
.city-map-legend-all { border: 1px solid var(--c-line); background: var(--c-surface); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.city-map-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; font-size: 14px; }
.city-map-legend li { display: flex; }
.city-map-legend button { flex: 1; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface); font: inherit; color: inherit; cursor: pointer; text-align: left; transition: opacity .15s, border-color .15s; }
.city-map-legend button:hover { border-color: var(--c-brand-2); }
.city-map-legend .name { flex: 1; line-height: 1.2; }
.city-map-legend .count { color: var(--c-muted); font-size: 12px; }
.city-map-legend.filtered button { opacity: .45; }
.city-map-legend.filtered button[aria-pressed="true"] { opacity: 1; border-color: var(--c-brand); box-shadow: 0 0 0 1px var(--c-brand) inset; font-weight: 600; }
.city-map-legend .pin { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; line-height: 1; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55); }
.city-map-popup .sub { display: block; color: var(--c-muted); font-size: 12px; }
@media (max-width: 640px) { .city-map-legend { grid-template-columns: 1fr 1fr; } }

/* ---------- Новости ---------- */
.news-day { margin: 24px 0 8px; }
.news-day:first-child { margin-top: 0; }
.news-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.news-item:last-child { border-bottom: 0; }
.news-item h3 { margin: 0 0 4px; font-size: 1.05rem; line-height: 1.35; }
.news-item p { margin: 0 0 4px; }
.news-image { flex: none; width: 120px; height: 80px; object-fit: cover; border-radius: 8px; background: var(--c-line); }
.news-meta { margin: 0; }
@media (max-width: 560px) {
    .news-image { width: 84px; height: 60px; }
}

/* ---------- Карточка места: как добраться, отзывы ---------- */
.org-where { margin-bottom: 1.5rem; }
.org-where-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; }
.org-where-links .btn { margin: 0; }
.stars { color: #f2a33a; letter-spacing: 1px; }
.stars-off { color: var(--c-line); }
.rating-link { color: var(--c-text); }
.review { padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.review p { margin: 0 0 4px; }
.review-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.review-form { display: grid; gap: 12px; margin-top: 1rem; }
.review-form label { display: grid; gap: 4px; font-weight: 500; }
.review-form input[type="text"], .review-form input[type="email"], .review-form textarea {
    font: inherit; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-surface); color: var(--c-text);
}
.review-form .hp { position: absolute; left: -9999px; }
.form-error { color: #c62828; margin: 0; }
.rating-input { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.rating-input legend { font-weight: 500; margin-bottom: 4px; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { font-size: 1.8rem; color: var(--c-line); cursor: pointer; padding: 0 2px; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f2a33a; }
.rating-input input:focus-visible + label { outline: 2px solid var(--c-brand-2); border-radius: 4px; }
.review-form .btn { justify-self: start; padding-left: 28px; padding-right: 28px; }

/* ---------- Кино ---------- */
.cinema-days { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 4px; }
.cinema-days a {
    display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: 8px 12px;
    border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface); color: var(--c-text);
}
.cinema-days a:hover { text-decoration: none; border-color: var(--c-brand-2); }
.cinema-days a.active { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.cinema-days a.dimmed:not(.active) { opacity: .5; }
.cinema-days span { font-size: .85rem; }
.cinema-film { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.cinema-film h3 { margin: 0 0 2px; font-size: 1.1rem; }
.cinema-film h3 a { color: var(--c-text); }
.cinema-poster { flex: none; width: 96px; height: 140px; object-fit: cover; border-radius: 10px; background: var(--c-line); }
.cinema-poster-empty { display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.cinema-times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cinema-time {
    display: flex; flex-direction: column; align-items: center; padding: 6px 12px; border-radius: 10px;
    border: 1px solid var(--c-brand-2); color: var(--c-brand); line-height: 1.25;
}
.cinema-time:hover { background: var(--c-brand); color: #fff; text-decoration: none; }
.cinema-time span { font-size: .78rem; opacity: .8; }
.cinema-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.cinema-strip a { color: var(--c-text); }
.cinema-strip img, .cinema-strip .cinema-poster { width: 100%; height: auto; aspect-ratio: 2 / 3; }
.cinema-strip strong { display: block; font-size: .92rem; line-height: 1.3; margin-top: 6px; }
.cinema-strip span { font-size: .82rem; color: var(--c-muted); }
@media (max-width: 560px) { .cinema-poster { width: 72px; height: 106px; } }

/* «Напишите нам»: форма в окне и на странице /svyaz */
.feedback-form { display: grid; gap: 12px; }
.feedback-form h2 { margin: 0; }
.feedback-form p { margin: 0; }
.feedback-form label { display: grid; gap: 4px; font-weight: 500; }
.feedback-form input[type="text"], .feedback-form textarea, .feedback-form select {
    font: inherit; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-surface); width: 100%; box-sizing: border-box;
}
.feedback-form textarea { resize: vertical; }
.feedback-form input:focus, .feedback-form textarea:focus, .feedback-form select:focus { outline: 2px solid var(--c-brand-2); outline-offset: 1px; border-color: transparent; }
.feedback-form .captcha-input { max-width: 120px; }
.feedback-form .hp { position: absolute; left: -9999px; }
.feedback-form .btn { justify-self: start; padding-left: 28px; padding-right: 28px; }
.feedback-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feedback-page { max-width: 640px; }
.dialog { border: 0; border-radius: var(--radius); padding: 24px; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; box-sizing: border-box; box-shadow: 0 20px 60px rgba(16, 24, 40, .3); color: var(--c-text); }
.dialog::backdrop { background: rgba(16, 24, 40, .55); }
.dialog-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.8rem; line-height: 1; color: var(--c-muted); cursor: pointer; padding: 4px 8px; }
.dialog-close:hover { color: var(--c-text); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--c-ok); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-hover); z-index: 50; animation: toast-out 6s forwards; max-width: calc(100vw - 32px); }
@keyframes toast-out { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (max-width: 560px) { .feedback-row { grid-template-columns: 1fr; } .dialog { padding: 20px 16px; } }

/* Полезные телефоны: /telefony и «Куда звонить» на странице отключений */
.phones-page { display: grid; gap: 16px; max-width: 860px; }
.phone-group h2 { margin-top: 0; }
.phone-list { list-style: none; margin: 0; padding: 0; }
.phone-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.phone-list li:last-child { border-bottom: 0; }
.phone-name { flex: 1 1 280px; }
.phone-numbers { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 600; white-space: nowrap; }
.phone-numbers a { color: var(--c-brand); }
.outage-phones { margin-top: 28px; }
.page-head-links { margin: 10px 0 0; }

/* Доска объявлений /obyavleniya */
.listing-search { margin-top: 14px; max-width: 640px; }
.chip.active { background: var(--c-brand); color: #fff; }
.chip.active .muted { color: rgba(255, 255, 255, .75); }
.listing-cats { margin: 0 0 20px; }
.listing-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; }
.listing-card:hover { text-decoration: none; }
.listing-thumb { aspect-ratio: 4 / 3; background: var(--c-bg); display: grid; place-items: center; font-size: 2.4rem; overflow: hidden; }
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-info { padding: 12px 14px 14px; }
.listing-info h3 { margin: 0 0 4px; }
.listing-info p { margin: 0; }
.listing-price { font-weight: 700; color: var(--c-text); }
.listing-price.big { font-size: 1.4rem; margin: 6px 0 0; }
.listing-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.listing-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; }
.listing-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.listing-body { line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.listing-contact .btn { width: 100%; text-align: center; box-sizing: border-box; }
.listing-contact p { margin: 0 0 10px; }
.feedback-form .checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.feedback-form .checkbox input { margin-top: 4px; }
.manage-url { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--c-line); border-radius: 8px; box-sizing: border-box; }
.manage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.manage-actions form { margin: 0; }
.btn-ghost { background: transparent; color: var(--c-danger); border: 1px solid var(--c-line); }
.btn-ghost:hover { background: var(--c-danger-soft); color: var(--c-danger); }
@media (max-width: 760px) { .listing-page { grid-template-columns: 1fr; } }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

/* Услуги на странице места */
.org-services { margin-bottom: 16px; }
.org-services h2 { margin-top: 0; }
.service-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service-list a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--c-brand-soft); color: var(--c-brand); font-size: .92rem; }
.service-list a:hover { background: var(--c-brand); color: #fff; text-decoration: none; }

/* Плашка о cookies (когда включена Яндекс Метрика) */
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 560px; margin: 0 auto; display: flex; gap: 12px; align-items: center; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-hover); font-size: .92rem; }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; flex: 1; }
.cookie-note .btn { flex-shrink: 0; padding: 8px 16px; }
.privacy { max-width: 760px; line-height: 1.6; }
.privacy h2 { margin-top: 1.6em; }

/* Расписание транспорта */
.table-wrap { overflow-x: auto; margin-bottom: 24px; }
table.transport { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.transport th { text-align: left; font-weight: 600; color: var(--c-muted, #667); padding: 8px 10px; border-bottom: 2px solid var(--c-line, #e3e7ec); white-space: nowrap; }
table.transport td { padding: 8px 10px; border-bottom: 1px solid var(--c-line, #e3e7ec); vertical-align: top; }
table.transport tr.past td { opacity: .45; }
.transport-jump { margin-bottom: 8px; }
@media (max-width: 640px) { table.transport .hide-sm { display: none; } table.transport td, table.transport th { padding: 6px; } }

/* Правка карточки владельцем */
.hours-edit td { padding: 4px 6px; }
.hours-edit input[type="time"] { width: auto; }
label.check { display: flex; align-items: center; gap: 8px; }
label.check input[type="checkbox"] { width: auto; }
.owner-card p { margin: 0 0 4px; }
.btn.btn-small { padding: 8px 14px; font-size: .9rem; }
