/* Арендо — стили сайта */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/static/fonts/Inter-Regular.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/static/fonts/Inter-SemiBold.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/static/fonts/Inter-Bold.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-display: swap; src: url('/static/fonts/Inter-ExtraBold.woff') format('woff'); }
@font-face { font-family: 'Inter Display'; font-weight: 700; font-display: swap; src: url('/static/fonts/InterDisplay-Bold.woff') format('woff'); }

:root {
  --bg: #F5F6F2; --surface: #FFFFFF; --ink: #15171A; --ink-2: #2E3338; --muted: #5B6168; --line: #E3E5DF; --line-2: #D5D9D2;
  --accent: #1E7A5A; --accent-dark: #145C43; --accent-soft: #E3F2EB; --accent-soft-2: #CFE9DC;
  --yellow: #FFD25E; --yellow-soft: #FFF9E8; --yellow-line: #F1D58A;
  --red: #A3241B; --red-soft: #FDE8E7; --red-line: #F3C4C0;
  --blue-ink: #1F4B87; --blue-soft: #E8F0FB;
  --r: 18px; --r-sm: 12px;
  --display: 'Inter Display', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 16px/1.5 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; overflow-x: hidden; }
body > main { flex: 1 0 auto; }
body > .admin-shell, body > main > .admin-shell { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.02em; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.015em; }
h3 { font-size: 18px; font-weight: 800; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }
.i { flex: 0 0 auto; }
:focus-visible { outline: 3px solid #7FB8A2; outline-offset: 2px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; background: none; color: var(--ink); white-space: nowrap; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: #EEF0EB; color: var(--ink); }
.btn-outline { border-color: var(--line-2); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: #B9BFB6; color: var(--ink); }
.btn-danger { border-color: var(--red-line); background: #fff; color: var(--red); }
.btn-danger:hover { background: var(--red-soft); color: var(--red); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #F5C640; color: var(--ink); }
.btn-lg { min-height: 54px; font-size: 17px; font-weight: 800; border-radius: 14px; padding: 0 24px; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 14px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); color: var(--ink); }
.icon-btn:hover { background: #EEF0EB; color: var(--ink); }
.dot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #E5484D; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* Шапка */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; }
.logo-word { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -0.03em; }
.logo-word.light { color: #fff; }
.city-btn { border: 1px solid var(--line); padding: 0 12px; max-width: 220px; }
.city-btn span { overflow: hidden; text-overflow: ellipsis; }
.city-picker { position: relative; z-index: 40; }
.city-picker > summary { list-style: none; cursor: pointer; }
.city-picker > summary::-webkit-details-marker { display: none; }
.city-picker:not([open]) .city-menu { display: none; }
.city-menu { position: absolute; z-index: 80; top: calc(100% + 8px); left: 0; width: min(360px, calc(100vw - 28px)); padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 18px 42px rgba(21,23,26,.16); display: grid; gap: 12px; }
.city-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px; }
.city-menu-option, .city-menu-all { width: 100%; border: 0; background: transparent; border-radius: 8px; padding: 9px 10px; color: var(--ink); text-align: left; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.city-menu-option:hover, .city-menu-all:hover { background: var(--bg); }
.city-menu-all { color: var(--accent-dark); font-weight: 700; }
.header-search { order: 10; flex: 1 1 100%; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.header-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; outline: none; color: var(--ink); }
.header-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: auto; }
.me-btn { padding: 0 10px; }
@media (max-width: 719px) {
  .me-btn span, .header-nav .btn-primary { font-size: 14px; }
  .header-nav .btn-primary { padding: 0 12px; }
  .city-btn { order: 9; flex: 1 1 auto; max-width: none; justify-content: flex-start; }
  .me-btn span { display: none; }
}
@media (min-width: 1000px) { .header-search { order: 0; flex: 1 1 260px; } }

/* Подвал */
.site-footer { background: var(--ink); color: #C9CDD2; margin-top: 48px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding-top: 36px; padding-bottom: 20px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; max-width: 320px; font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; font-weight: 600; }
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; color: #fff; }
.footer-legal { padding-bottom: 28px; font-size: 13px; color: #9AA0A6; }

/* Общие блоки */
.page { padding-top: 24px; padding-bottom: 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
@media (min-width: 720px) { .panel { padding: 24px; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
@media (max-width: 519px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.col-main { flex: 999 1 560px; min-width: 0; }
.col-side { flex: 1 1 320px; min-width: 0; max-width: 100%; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.section { padding-top: 32px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.flash { margin-top: 16px; padding: 14px 16px; border-radius: 14px; font-weight: 600; }
.flash-ok { background: var(--accent-soft); color: var(--accent-dark); }
.flash-error { background: var(--red-soft); color: var(--red); }
.flash-info { background: var(--yellow-soft); color: #5C4400; border: 1px solid var(--yellow-line); }
.note { padding: 14px 16px; border-radius: 14px; background: var(--bg); font-size: 15px; }
.note-green { background: var(--accent-soft); color: var(--accent-dark); }
.note-yellow { background: var(--yellow-soft); border: 1px solid var(--yellow-line); color: #4A3A00; }
.note-red { background: var(--red-soft); color: var(--red); }
.note-row { display: flex; gap: 10px; align-items: flex-start; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 8px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 4px 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.kv span:first-child { color: #4A5057; }
.kv > b:last-child, .kv > span:last-child:not(:first-child) { white-space: nowrap; text-align: right; }
.big-num { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }

/* Чипы и метки */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip-wait { background: #FFF4D6; color: #7A5A00; }
.chip-active { background: var(--blue-soft); color: var(--blue-ink); }
.chip-done { background: var(--accent-soft); color: var(--accent-dark); }
.chip-bad { background: var(--red-soft); color: var(--red); }
.chip-off { background: #ECEEF1; color: #3A4350; }
.chip-green { background: var(--accent-soft); color: var(--accent-dark); }
.chip-gray { background: #ECEEF1; color: #3A4350; }
.rating { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.rating b { color: var(--ink); }
.avatar { flex: 0 0 auto; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }

/* Карточки объявлений */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.listing-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.listing-card:hover { color: var(--ink); box-shadow: 0 8px 22px rgba(21,23,26,.08); }
.listing-card.promoted { border: 2px solid var(--yellow); }
.thumb { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.tint-blue { background: #E8F0FB; color: #2B5797; } .tint-green { background: #E3F2EB; color: #145C43; } .tint-violet { background: #EFE9FB; color: #5B3FA8; }
.tint-teal { background: #E2F3F6; color: #1B6577; } .tint-orange { background: #FDEEE3; color: #A44A16; } .tint-pink { background: #FCEAF0; color: #9C3560; }
.tint-gray { background: #ECEEF1; color: #3A4350; } .tint-yellow { background: #FFF4D6; color: #7A5A00; }
.tag { position: absolute; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fff; color: var(--ink); }
.tag-instant { left: 8px; top: 8px; }
.tag-pro { background: #FFD25E; color: #15171A; font-weight: 800; }
.chip-pro { background: #FFD25E; color: #15171A; font-weight: 800; }
.tag-top { right: 8px; top: 8px; background: var(--yellow); font-weight: 800; }
.tag-status { left: 8px; bottom: 8px; background: var(--ink); color: #fff; }
.card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.card-body .price { font-size: 20px; font-weight: 800; }
.card-body .price span { font-size: 14px; font-weight: 600; color: var(--muted); }
.card-body .title { font-size: 15px; font-weight: 600; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 519px) { .tag-instant { font-size: 0; padding: 5px; } .tag-instant svg { width: 14px; height: 14px; } .card-body { padding: 10px 10px 12px; } .card-body .price { font-size: 17px; } .card-body .title { font-size: 14px; } }

/* Категории */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
@media (max-width: 519px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
.cat-tile { display: flex; flex-direction: column; gap: 12px; padding: 16px; min-height: 112px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.cat-tile:hover { color: var(--ink); border-color: #C8CDC5; }
.cat-tile .ic { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.cat-tile b { font-size: 15px; line-height: 1.3; }
@media (max-width: 519px) { .cat-tile { padding: 10px; min-height: 96px; gap: 8px; } .cat-tile b { font-size: 13px; } .cat-tile .ic { width: 38px; height: 38px; } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 9px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.pill:hover { color: var(--ink); border-color: #C8CDC5; }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }

/* Главная */
.hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding-top: 40px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(32px, 5.5vw, 54px); line-height: 1.06; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 18px; color: #4A5057; max-width: 560px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 14px; font-weight: 700; }
.hero-search { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 24px rgba(21,23,26,.06); }
.hero-field { flex: 2 1 220px; display: flex; flex-direction: column; gap: 2px; padding: 6px 12px; min-width: 0; }
.hero-field label, .hero-field .lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.hero-field input { border: 0; padding: 0; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); outline: none; background: transparent; min-width: 0; width: 100%; }
.hero-dates { flex: 1 1 260px; }
.hero-dates .row { flex-wrap: nowrap; gap: 6px; }
.hero-search .btn { flex: 1 0 auto; min-height: 52px; }
@media (min-width: 720px) { .hero-search .btn { flex: 0 0 auto; } }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 600; color: #4A5057; }
.checks span { display: inline-flex; align-items: center; gap: 6px; }
.hero-art { flex: 1 1 380px; min-width: 0; position: relative; }
.hero-art-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-art-grid > div { aspect-ratio: 1 / 1; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; }
.hero-art-grid > div:nth-child(2) { margin-top: 32px; } .hero-art-grid > div:nth-child(3) { margin-top: -32px; }
.hero-float { position: absolute; left: -18px; bottom: -26px; width: 270px; max-width: 86%; padding: 16px; background: #fff; border-radius: 18px; box-shadow: 0 16px 40px rgba(21,23,26,.14); display: flex; flex-direction: column; gap: 10px; }
.bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); }
@media (max-width: 719px) { .hero { padding-top: 24px; gap: 24px; } .hero-art { display: none; } }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.step { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; gap: 10px; }
.step .n { font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 1; color: var(--accent); }
.step p { color: #4A5057; font-size: 15px; }
.cta { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; padding: 32px 24px; border-radius: 28px; background: var(--accent); color: #fff; }
@media (min-width: 720px) { .cta { padding: 44px; } }
.cta h2 { color: #fff; }
.cta p { color: #E3F2EB; font-size: 17px; }
.cta-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta-calc { flex: 1 1 300px; min-width: 0; padding: 22px; border-radius: 20px; background: #fff; color: var(--ink); display: flex; flex-direction: column; gap: 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.feature { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; gap: 8px; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.feature p { font-size: 14px; color: #4A5057; }
.empty-city { padding: 32px 20px; border: 2px dashed #9BC7B4; border-radius: 22px; background: #F2F9F5; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* Формы */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; min-width: 0; }
.field .hint { font-weight: 500; color: var(--muted); font-size: 13px; }
.input, .field input[type=text], .field input[type=email], .field input[type=number], .field input[type=date], .field input[type=search], .field input[type=tel], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); background: #fff; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 110px; }
.field select { padding: 0 10px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft-2); outline-offset: 0; }
.fields-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fields-row > .field { flex: 1 1 200px; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 34px; font-size: 15px; font-weight: 500; cursor: pointer; }
.check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.choice { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 16px; cursor: pointer; }
.choice:has(input:checked) { border: 2px solid var(--accent); background: #F2F9F5; padding: 13px 15px; }
.choice input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }
.choice b { display: block; font-size: 15px; }
.choice span { font-size: 14px; color: #4A5057; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 600; }
.seg input:checked + span { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; padding: 0 13px; }
.seg input:focus-visible + span { outline: 3px solid #7FB8A2; outline-offset: 2px; }
.form-section { display: flex; flex-direction: column; gap: 16px; }
.form-section-head { display: flex; align-items: center; gap: 12px; }
.num-badge { width: 32px; height: 32px; border-radius: 999px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: 0 0 auto; }
.errors { padding: 14px 16px; border-radius: 14px; background: var(--red-soft); color: var(--red); font-weight: 600; }
.errors ul { margin: 6px 0 0; padding-left: 20px; }
.price-pair { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.price-box { flex: 1 1 200px; padding: 14px 16px; border-radius: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.price-box.main { border: 2px solid var(--accent); color: var(--accent-dark); }
.price-box.net { border: 1px solid var(--line-2); background: var(--bg); color: #4A5057; }
.price-box .amount { display: flex; align-items: baseline; gap: 6px; }
.price-box input { width: 100%; min-width: 0; border: 0; padding: 0; font: inherit; font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--ink); background: transparent; outline: none; }
.price-box.net input { color: var(--accent); }
.price-box .rub { font-size: 20px; font-weight: 800; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-cell { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #E8F0FB; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; }
.photo-cell .del { position: absolute; left: 6px; bottom: 6px; right: 6px; display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 10px; background: rgba(255,255,255,.92); font-size: 12px; font-weight: 700; }
.photo-cell .main-mark { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; background: #fff; font-size: 11px; font-weight: 800; }
.photo-add { aspect-ratio: 1 / 1; border: 2px dashed #9BC7B4; border-radius: 14px; background: #F2F9F5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent-dark); cursor: pointer; text-align: center; padding: 6px; }
.photo-add input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* Каталог */
.filters { display: flex; flex-direction: column; gap: 18px; }
.filters h2 { font-size: 18px; font-family: inherit; font-weight: 800; }
.filters-toggle { display: none; }
@media (max-width: 899px) {
  .filters-toggle { display: inline-flex; }
  .filters.collapsed .filters-body { display: none; }
}
.filters-body { display: flex; flex-direction: column; gap: 18px; }

/* Карточка вещи */
.gallery-main { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #F0F1ED; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 8px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; background: #eee; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.price-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.price-tile { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 2px; }
.price-tile.on { background: var(--accent-soft); border: 2px solid var(--accent); }
.price-tile b { font-size: 22px; font-weight: 800; }
.booking-box { position: sticky; top: 16px; }
.booking-box .price-head { font-family: var(--display); font-size: 30px; font-weight: 700; }
.date-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.date-pair button { padding: 10px 14px; border: 0; background: #fff; font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.date-pair button + button { border-left: 1px solid var(--line-2); }
.date-pair .lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.date-pair .val { font-size: 16px; font-weight: 700; }
.owner-card { display: flex; flex-direction: column; gap: 14px; }

/* Календарь */
.cal { display: flex; flex-direction: column; gap: 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-head b { font-size: 15px; text-transform: capitalize; }
.cal-nav { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 18px; font-weight: 700; color: var(--ink); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-day { height: 40px; width: 100%; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cal-day:hover:not(:disabled) { border-color: var(--accent); }
.cal-day.busy { background: #ECEEF1; border-color: #ECEEF1; color: #8A9097; text-decoration: line-through; cursor: not-allowed; }
.cal-day.past { background: transparent; border-color: transparent; color: #B4B9BF; cursor: default; }
.cal-day.edge { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 800; }
.cal-day.mid { background: var(--accent-soft-2); border-color: var(--accent-soft-2); color: var(--accent-dark); font-weight: 700; }
.cal-day.blocked { background: #3A4350; border-color: #3A4350; color: #fff; text-decoration: line-through; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: #4A5057; }
.cal-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }

/* Сделка и чат */
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.progress li { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.progress li::before { content: ''; height: 6px; border-radius: 999px; background: var(--line); }
.progress li.done { color: var(--accent-dark); }
.progress li.done::before { background: var(--accent); }
.progress li.now { color: var(--ink); font-weight: 800; }
.progress li.now::before { background: var(--accent); }
.photos-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.photos-row a { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #E8F0FB; display: block; }
.photos-row img { width: 100%; height: 100%; object-fit: cover; }
.photos-empty { aspect-ratio: 1 / 1; border-radius: 12px; border: 2px dashed var(--line-2); }
.chat { display: flex; flex-direction: column; min-height: 420px; max-height: 70vh; padding: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 16px; background: #FAFAF8; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { display: block; margin-top: 3px; font-size: 11px; }
.msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.me time { color: #CDEBDD; text-align: right; }
.msg.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.them time { color: var(--muted); }
.msg.sys { align-self: center; max-width: 92%; background: #ECEEF1; color: #3A4350; font-size: 12.5px; font-weight: 600; text-align: center; border-radius: 12px; }
.msg-warn { align-self: flex-start; max-width: 82%; font-size: 12.5px; font-weight: 600; color: var(--red); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 140px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 12px; font: inherit; font-size: 15px; resize: none; }
.chat-form .btn { width: 46px; padding: 0; }
.thread-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid #EEF0EB; text-decoration: none; color: var(--ink); }
.thread-item:hover { color: var(--ink); }
.thread-item .grow { flex: 1; min-width: 0; }
.thread-item .last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 14px; }

/* Кабинет */
.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 4px; scrollbar-width: none; }
.tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--ink); font-weight: 800; border-bottom-color: var(--accent); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.stat { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: 14px; color: var(--muted); }
.list-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 0; border-bottom: 1px solid #EEF0EB; text-decoration: none; color: var(--ink); }
.list-row:hover { color: var(--ink); }
.list-row:last-child { border-bottom: 0; }
.list-thumb { width: 60px; height: 60px; border-radius: 14px; overflow: hidden; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.list-main b { font-size: 16px; }
.list-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* Таблицы (админка) */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 700; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 8px; border-bottom: 1px solid #EEF0EB; vertical-align: top; }
.admin-shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.admin-nav { flex: 1 1 230px; max-width: 100%; background: var(--ink); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { min-height: 42px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border-radius: 10px; color: #C9CDD2; font-weight: 600; font-size: 15px; text-decoration: none; }
.admin-nav a:hover { color: #fff; background: #2A2D33; }
.admin-nav a.on { color: #fff; background: #2A2D33; font-weight: 800; }
.admin-nav .cnt { padding: 1px 8px; border-radius: 999px; background: #3A3E45; font-size: 12px; }
.admin-nav .cnt.hot { background: #E5484D; }
.admin-main { flex: 999 1 640px; min-width: 0; padding: 24px 16px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 720px) { .admin-main { padding: 28px; } }
@media (max-width: 899px) { .admin-nav { flex-direction: row; flex-wrap: wrap; } }

/* Документы */
.doc { max-width: 820px; }
.doc h1 { margin-bottom: 8px; }
.doc h2 { font-size: 21px; margin: 28px 0 10px; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 22px; margin: 8px 0; }

/* Вход */
.auth-box { max-width: 460px; margin: 32px auto; }
.oauth-btn { width: 100%; justify-content: flex-start; gap: 12px; border: 1px solid var(--line-2); background: #fff; min-height: 52px; font-size: 16px; }
.oauth-btn:hover { border-color: #B9BFB6; color: var(--ink); }
.oauth-btn .mark { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.code-input { letter-spacing: .4em; font-size: 26px !important; font-weight: 800 !important; text-align: center; }
.city-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 6px; }
.city-list form { min-width: 0; }
.city-list button { width: 100%; text-align: left; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid transparent; background: none; font: inherit; font-size: 15px; cursor: pointer; color: var(--ink); }
.city-list button:hover { background: #fff; border-color: var(--line); }
.city-list [hidden] { display: none !important; }
.stars-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; }
.stars-input label { font-size: 30px; line-height: 1; color: #D5D9D2; cursor: pointer; padding: 2px; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: #E8A400; }
.stars-input input:focus-visible + label { outline: 3px solid #7FB8A2; border-radius: 6px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 24px; }
.pager a, .pager-gap { min-width: 44px; height: 44px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.pager a.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager-gap { border: 0; background: none; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--accent); }

.js .js-hide { display: none; }

/* Подсказки городов */
.suggest { position: relative; width: 100%; }
.suggest-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(21,23,26,.12); max-height: 320px; overflow-y: auto; animation: pop .14s ease-out; }
.suggest-list li { padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; }
.suggest-list li:hover, .suggest-list li.on { background: var(--accent-soft); color: var(--accent-dark); }

/* Анимации — мягкие и короткие */
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.btn, .icon-btn, .pill, .cat-tile, .cal-day, .seg span, .choice, .city-list button, .oauth-btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s ease, box-shadow .15s ease; }
.btn:active, .icon-btn:active, .cal-day:active:not(:disabled) { transform: scale(.97); }
.listing-card { transition: box-shadow .2s ease, transform .2s ease; }
.listing-card:hover { transform: translateY(-3px); }
.listing-card .thumb img { transition: transform .35s ease; }
.listing-card:hover .thumb img { transform: scale(1.04); }
.cat-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(21,23,26,.06); }
.cat-tile .ic { transition: transform .2s ease; }
.cat-tile:hover .ic { transform: scale(1.08); }
.flash { animation: slideDown .25s ease-out; }
.hero-text { animation: fadeUp .45s ease-out both; }
.hero-art { animation: fadeUp .55s ease-out .1s both; }
.hero-float { animation: float 5s ease-in-out infinite; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.msg { animation: fadeUp .2s ease-out; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
body > .wrap { width: 100%; }

/* Без стрелочек в полях для чисел */
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.thread-item.pinned { background: #F2F9F5; margin: 0 -12px; padding: 14px 12px; border-radius: 14px; border-bottom: 0; }
