/* ГДЕРЫБА — дизайн-система. Мобильная вёрстка первой, десктоп поверх. */

:root {
  /* Глубина: от мелководья к яме — тема водоёма в самой палитре */
  --abyss:  #04212e;
  --deep:   #06344a;
  --water:  #0a5878;
  --shoal:  #12a2a8;
  --foam:   #7fe3dd;

  /* Акценты */
  --amber:  #f2a63b;
  --amber-hot: #ff8a3d;
  --coral:  #ff6b5b;
  --lime:   #6fd66f;

  --bg:     #f3f7f8;
  --card:   #ffffff;
  --ink:    #0d2430;
  --ink-2:  #3d5b68;
  --muted:  #6b8593;
  --line:   #dbe6ea;

  --up:     #2a8a4a;
  --down:   #c0503c;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;

  --shadow-s: 0 1px 2px rgba(6, 52, 74, .06), 0 2px 8px rgba(6, 52, 74, .06);
  --shadow:   0 2px 6px rgba(6, 52, 74, .07), 0 12px 32px rgba(6, 52, 74, .09);
  --shadow-l: 0 8px 24px rgba(6, 52, 74, .12), 0 32px 64px rgba(6, 52, 74, .14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.1rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--water); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.wrap.narrow { max-width: 720px; }
.block { padding: 48px 18px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--shoal); margin-bottom: 12px;
}

/* ---------------- шапка ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(4, 33, 46, .92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(127, 227, 221, .14);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; display: block; }
.logo-footer .logo-mark { width: 28px; height: 28px; }
.logo-text b { color: var(--amber); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: #b6d6e0; padding: 9px 12px; border-radius: var(--r-sm); font-size: .94rem; font-weight: 500; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.nav-login {
  background: linear-gradient(135deg, var(--amber), var(--amber-hot));
  color: #22160a !important; font-weight: 700;
}
.nav-login:hover { filter: brightness(1.06); }
@media (max-width: 599px) { .nav a:not(.nav-login) { display: none; } }

/* ---------------- герой ---------------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 520px at 78% -12%, rgba(18,162,168,.42), transparent 62%),
    radial-gradient(760px 420px at 6% 104%, rgba(242,166,59,.20), transparent 60%),
    linear-gradient(168deg, var(--abyss) 0%, var(--deep) 46%, #0a4e69 100%);
  color: #fff;
  padding: 48px 0 56px;
}
/* изобаты фоном: тема глубин прямо в декоре */
.hero::before {
  content: ''; position: absolute; inset: -10% -10% auto -10%; height: 130%;
  background-image:
    repeating-radial-gradient(ellipse 58% 44% at 72% 26%,
      transparent 0 26px, rgba(127,227,221,.10) 26px 27px);
  opacity: .8; pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 2; }

.hero h1 { font-size: 2.15rem; margin-bottom: .3em; text-wrap: balance; }
.hero h1 .accent {
  background: linear-gradient(105deg, var(--amber) 10%, var(--foam) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.08rem; color: #c9e6ee; max-width: 620px; margin-bottom: 26px; }

.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 26px 0 0; padding: 0; list-style: none; }
.stats li { display: flex; flex-direction: column; }
.stats b { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.1; }
.stats span { font-size: .84rem; color: #9fc6d4; }

/* ---------------- поиск ---------------- */

.search { max-width: 780px; }
.search-main { position: relative; display: flex; gap: 10px; }
.search-input {
  flex: 1 1 auto; min-width: 0;
  padding: 17px 20px; font-size: 1.02rem;
  border: 2px solid transparent; border-radius: var(--r);
  background: #fff; color: var(--ink);
  box-shadow: var(--shadow-l);
}
.search-input:focus { outline: none; border-color: var(--amber); }
.search-btn {
  flex: 0 0 auto; padding: 17px 26px;
  font-size: 1.02rem; font-weight: 700; color: #22160a;
  background: linear-gradient(135deg, var(--amber), var(--amber-hot));
  border: 0; border-radius: var(--r); cursor: pointer;
  box-shadow: 0 6px 20px rgba(242,166,59,.35);
}
.search-btn:hover { filter: brightness(1.06); }

.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70;
  margin: 0; padding: 7px; list-style: none;
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow-l);
  max-height: 340px; overflow-y: auto;
}
.suggest a { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; border-radius: var(--r-sm); color: var(--ink); }
.suggest a:hover, .suggest li.active a { background: #eef6f8; text-decoration: none; }
.suggest .s-name { font-weight: 600; }
.suggest .s-meta { color: var(--muted); font-size: .85rem; }

.search-filters { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; color: #a7d3dd; font-weight: 600; }
.field select {
  padding: 11px 14px; font-size: .96rem; color: var(--ink);
  border: 0; border-radius: var(--r-sm); background: #fff; min-width: 158px;
  font-family: inherit;
}
.wb-hero .field { color: var(--muted); }
.wb-hero .field select { border: 1px solid var(--line); }

/* ---------------- доверие ---------------- */

.trust { display: grid; gap: 14px; }
.trust-card {
  background: var(--card); border-radius: var(--r); padding: 22px;
  box-shadow: var(--shadow-s); border-top: 3px solid var(--shoal);
}
.trust-card .ico { font-size: 1.7rem; line-height: 1; margin-bottom: 10px; display: block; }
.trust-card h3 { margin-bottom: .35em; }
.trust-card p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.trust-card:nth-child(2) { border-top-color: var(--amber); }
.trust-card:nth-child(3) { border-top-color: var(--lime); }

/* ---------------- карта ---------------- */

.map-section { padding: 8px 0 0; }
.map-holder { position: relative; }
.map { height: 64vh; min-height: 360px; width: 100%; background: #dce9ee; }
.map-wb { height: 58vh; }
.map-legend {
  position: absolute; left: 14px; bottom: 14px; z-index: 30;
  background: rgba(255,255,255,.95); color: var(--ink-2);
  padding: 9px 14px; border-radius: var(--r-sm); font-size: .84rem; font-weight: 500;
  box-shadow: var(--shadow); pointer-events: none; max-width: calc(100% - 28px);
}
.map-pin {
  display: flex; align-items: center; justify-content: center;
  background: var(--water); color: #fff; font-weight: 700; font-size: .78rem;
  width: 100%; height: 100%; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.map-pin.has-spots { background: var(--up); }
.map-pin.region { background: var(--abyss); }
.map-pin.candidate { font-size: .62rem; letter-spacing: -.02em; }
.map-pin.rule-l { background: var(--shoal); }
.map-pin.rule-w { background: #b3401f; }
.map-pin.rule-r { background: var(--water); }
.map-popup { font-size: .95rem; min-width: 180px; }
.map-popup b { display: block; margin-bottom: 3px; }
.map-popup .muted { font-size: .86rem; }

/* ---------------- карточки ---------------- */

.cards { display: grid; gap: 16px; }
.card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-s); }
.card h3 { margin-bottom: .3em; }
.card-meta { color: var(--muted); font-size: .88rem; margin-bottom: .5em; }
.card-text { margin-bottom: .6em; color: var(--ink-2); }

.empty-card, .warn-card {
  background: var(--card); border-radius: var(--r); padding: 22px;
  box-shadow: var(--shadow-s); border-left: 4px solid var(--shoal);
}
.empty-card p:last-child, .warn-card p:last-child { margin-bottom: 0; }
.warn-card { border-left-color: var(--amber); }

.votes { display: flex; gap: 16px; font-size: .95rem; margin: 0; font-weight: 600; }
.votes .up { color: var(--up); }
.votes .down { color: var(--down); }

/* ---------------- рыбаки ---------------- */

.anglers { display: grid; gap: 14px; }
.angler {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-s);
}
.angler .ava {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%;
  background: linear-gradient(140deg, var(--shoal), var(--water));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}
.angler .who { flex: 1 1 auto; min-width: 0; }
.angler .nick { font-weight: 700; display: block; }
.angler .where { color: var(--muted); font-size: .86rem; }
.btn-follow {
  flex: 0 0 auto; border: 1.5px solid var(--shoal); background: transparent;
  color: var(--water); font-weight: 700; font-size: .88rem;
  padding: 8px 15px; border-radius: 999px; cursor: pointer; font-family: inherit;
}
.btn-follow:hover { background: var(--shoal); color: #fff; }

/* ---------------- продажа точек ---------------- */

.earn {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(760px 420px at 88% 0%, rgba(242,166,59,.30), transparent 60%),
    linear-gradient(150deg, var(--deep), var(--abyss));
}
.earn::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(118deg, transparent 0 34px, rgba(127,227,221,.07) 34px 35px);
  pointer-events: none;
}
.earn > .wrap { position: relative; z-index: 2; }
.earn h2 { font-size: 1.85rem; }
.earn .section-head p { color: #b8dbe6; }
.earn-grid { display: grid; gap: 16px; margin-bottom: 30px; }
.earn-item {
  background: rgba(255,255,255,.07); border: 1px solid rgba(127,227,221,.20);
  border-radius: var(--r); padding: 20px;
}
.earn-item .num {
  font-size: .78rem; font-weight: 800; letter-spacing: .08em;
  color: var(--amber); display: block; margin-bottom: 8px;
}
.earn-item h3 { color: #fff; margin-bottom: .3em; }
.earn-item p { color: #b8dbe6; margin: 0; font-size: .95rem; }

.btn {
  display: inline-block; padding: 15px 30px; border-radius: var(--r);
  font-weight: 700; font-size: 1rem; cursor: pointer; border: 0; font-family: inherit;
  background: linear-gradient(135deg, var(--amber), var(--amber-hot)); color: #22160a;
  box-shadow: 0 6px 20px rgba(242,166,59,.32);
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn-ghost {
  background: transparent; color: #fff; border: 1.5px solid rgba(127,227,221,.5); box-shadow: none;
}
.btn-ghost:hover { background: rgba(127,227,221,.14); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-note { color: #9fc6d4; font-size: .88rem; }

/* ---------------- чипы, регионы, списки ---------------- */

.chips { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--line);
  padding: 9px 15px; border-radius: 999px; color: var(--ink); font-size: .93rem; font-weight: 500;
}
.chip:hover { border-color: var(--shoal); text-decoration: none; }
.chip b { color: var(--up); }

.regions { display: grid; gap: 12px; margin-bottom: 16px; }
.region-card {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--card); border-radius: var(--r); padding: 16px 18px;
  box-shadow: var(--shadow-s); color: var(--ink); transition: transform .15s, box-shadow .15s;
}
.region-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.region-name { font-weight: 700; }
.region-num { color: var(--muted); font-size: .87rem; white-space: nowrap; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--card); border-radius: var(--r); padding: 20px 20px 20px 64px;
  box-shadow: var(--shadow-s);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 20px; top: 20px;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(140deg, var(--shoal), var(--water)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .92rem;
}
.steps b { display: block; margin-bottom: 2px; }
.steps span { display: block; color: var(--muted); font-size: .95rem; }

.water-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.water-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 12px 15px; background: var(--card); border-radius: var(--r-sm);
}
.water-list li:nth-child(odd) { background: #fbfdfd; }
.water-list .muted { font-size: .86rem; white-space: nowrap; }

/* ---------------- страница водоёма ---------------- */

.wb-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 20px 0 24px; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 12px; display: flex; gap: 7px; flex-wrap: wrap; }
.wb-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.tag { background: #e9f4f6; color: #23596b; border-radius: 999px; padding: 5px 13px; font-size: .86rem; font-weight: 600; }
.spots { display: grid; gap: 16px; }
.spot { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-s); }
.spot-access { font-size: .93rem; color: var(--muted); }

/* ---------------- ошибки ---------------- */

.error-page { padding: 70px 18px; text-align: center; }
.error-code { font-size: 4.5rem; font-weight: 800; color: var(--line); margin: 0; line-height: 1; }

/* ---------------- подвал ---------------- */

.site-footer { background: var(--abyss); color: #9fc6d4; margin-top: 0; padding: 40px 0 26px; font-size: .93rem; }
.footer-cols { display: grid; gap: 26px; margin-bottom: 26px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .7em; }
.site-footer a { color: #9fc6d4; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.logo-footer { font-size: 1.1rem; margin-bottom: 10px; }
.attribution { border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; font-size: .82rem; color: #79a3b2; margin: 0; }
.attribution a { display: inline; text-decoration: underline; }

/* ---------------- планшет и десктоп ---------------- */

@media (min-width: 640px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.95rem; }
  .hero { padding: 72px 0 80px; }
  .hero h1 { font-size: 3.2rem; }
  .hero-sub { font-size: 1.18rem; }
  .suggest a { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 14px; }
  .suggest .s-meta { white-space: nowrap; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .regions { grid-template-columns: repeat(2, 1fr); }
  .anglers { grid-template-columns: repeat(2, 1fr); }
  .earn-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: 2fr 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .block { padding: 68px 18px; }
  .stats { gap: 10px 44px; }
  .stats b { font-size: 1.9rem; }
}

@media (min-width: 980px) {
  .hero h1 { font-size: 3.7rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .regions { grid-template-columns: repeat(3, 1fr); }
  .map { height: 68vh; }
}

/* запрос региона */
.region-ask { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-s); margin-top: 20px; }
.region-ask h3 { margin-bottom: .2em; }
.region-ask p { margin-bottom: 14px; }
.region-ask-row { display: flex; flex-wrap: wrap; gap: 10px; }
.region-ask select, .region-ask input {
  flex: 1 1 220px; min-width: 0; padding: 13px 14px; font: inherit; font-size: .97rem;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink);
}
.region-ask select:focus, .region-ask input:focus { outline: none; border-color: var(--shoal); }
.region-ask button { flex: 0 0 auto; }
.region-ask-result { margin: 14px 0 0; padding: 11px 14px; border-radius: var(--r-sm); background: #e9f6f0; color: #1d6b39; font-weight: 500; }
.region-ask-result.bad { background: #fbe9e6; color: #9c3a29; }

/* ---------------- мобильная нижняя панель ---------------- */
/* Телефон — основной сценарий: человек стоит на берегу и смотрит карту.
   Панель повторяет привычную логику приложения, поэтому с домашнего
   экрана сайт ощущается как приложение, а не как страница. */

.tabbar { display: none; }

@media (max-width: 767px) {
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: rgba(255,255,255,.97);
    backdrop-filter: saturate(160%) blur(12px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 9px 4px 7px; font-size: .68rem; font-weight: 600;
    color: var(--muted); text-decoration: none;
  }
  .tabbar a span { font-size: 1.15rem; line-height: 1; }
  .tabbar a:active { color: var(--water); }

  /* чтобы панель не перекрывала подвал */
  .site-footer { padding-bottom: calc(26px + 62px + env(safe-area-inset-bottom)); }

  /* на телефоне карта занимает почти весь экран: так ей и место */
  .map { height: calc(100svh - 190px); min-height: 380px; }
  .map-wb { height: calc(100svh - 240px); }

  .block { padding: 36px 16px; }
  .hero { padding: 30px 0 36px; }
  .search-main { flex-direction: column; }
  .search-btn { width: 100%; }
  .region-ask-row { flex-direction: column; }
  .region-ask button { width: 100%; }
}

/* в режиме приложения убираем отступ, который iOS оставляет под статус-бар */
@media (display-mode: standalone) {
  .site-header { padding-top: env(safe-area-inset-top); }
}

/* приглашение установить приложение */
.install-bar {
  position: fixed; left: 12px; right: 12px; z-index: 90;
  bottom: calc(70px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  background: var(--abyss); color: #fff;
  padding: 12px 14px; border-radius: var(--r); box-shadow: var(--shadow-l);
  font-size: .9rem;
}
.install-bar span { flex: 1 1 auto; }
.install-bar button { border: 0; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; padding: 9px 14px; }
.install-bar .install-yes { background: var(--amber); color: #22160a; }
.install-bar .install-no { background: transparent; color: #9fc6d4; padding: 9px; }
@media (min-width: 768px) { .install-bar { display: none; } }

/* Осветление подложки: цветная карта OSM приглушается, чтобы метки точек
   читались поверх неё, а названия при этом оставались русскими. */
.map-tiles-light {
  filter: saturate(.3) brightness(1.12) contrast(.85);
}

/* Карта Leaflet рисует свои слои в собственном контексте наложения,
   поэтому липкая шапка над ней иногда «проваливается». Поднимаем её явно. */
.site-header { isolation: isolate; }
.leaflet-container { z-index: 1; }
.leaflet-pane { z-index: auto; }

/* ожидание разметки */
.wait-title::after { content: ''; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.wait-bar { height: 4px; border-radius: 4px; background: #e3edf0; overflow: hidden; margin: 0; }
.wait-bar span { display: block; height: 100%; width: 35%; border-radius: 4px;
  background: linear-gradient(90deg, var(--shoal), var(--amber)); animation: crawl 1.8s ease-in-out infinite; }
@keyframes crawl { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }

/* ---------------- PRO-точки ---------------- */

.pro-card { border: 1px solid var(--amber); position: relative; }
.pro-head { display: flex; gap: 8px; margin-bottom: 10px; }
.pro-badge {
  background: linear-gradient(135deg, var(--amber), var(--amber-hot));
  color: #22160a; font-weight: 800; font-size: .72rem; letter-spacing: .06em;
  padding: 3px 10px; border-radius: 6px;
}
.pro-author-badge {
  background: var(--abyss); color: var(--foam); font-weight: 700; font-size: .7rem;
  padding: 3px 10px; border-radius: 6px;
}
.pro-facts { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 5px; font-size: .88rem; }
.pro-facts li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.pro-facts b { color: var(--muted); font-weight: 500; }
.pro-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pro-price { font-size: 1.45rem; font-weight: 800; }
.pro-buy .btn { padding: 12px 22px; font-size: .95rem; }
.pro-note { font-size: .8rem; margin: 10px 0 0; }
.pro-zone-label {
  background: var(--amber); color: #22160a; font-weight: 800; font-size: .7rem;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.3); border: 2px solid #fff;
}

.login-methods { display: grid; gap: 12px; max-width: 420px; }
.login-btn { text-align: center; }
.login-note { margin-top: 20px; }
.bundle-offer { margin-top: 18px; border-left-color: var(--amber); }
.pro-buy .btn { white-space: nowrap; }

.dev-login { border: 1px dashed var(--line); border-radius: var(--r); padding: 16px; margin-top: 8px; }
.dev-login .region-ask-row { margin: 0; }

/* правовые страницы */
.legal h2 { font-size: 1.15rem; margin: 1.8em 0 .6em; }
.legal p { color: var(--ink-2); }
.legal-table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-s); }
.legal-table th { text-align: left; padding: 11px 14px; color: var(--muted); font-weight: 500; width: 40%; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .92rem; }
.legal-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 0; }
.requisites { color: #9fc6d4; font-size: .86rem; margin: 0 0 12px; }
.requisites a { display: inline; text-decoration: underline; }

/* кабинет и форма точки */
.cab-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.cab-tile { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-s); }
.cab-tile b { display: block; font-size: 1.5rem; font-weight: 800; }
.cab-tile span { color: var(--muted); font-size: .84rem; }
.cab-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cab-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-s); margin-top: 14px; }
.cab-table th { text-align: left; padding: 11px 14px; font-size: .8rem; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.cab-table td { padding: 12px 14px; border-bottom: 1px solid #eef3f5; vertical-align: top; }
.cab-table tr:last-child td { border-bottom: 0; }
.cab-pill { display: inline-block; font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: #eef3f5; color: var(--muted); font-weight: 600; }
.cab-pill.ok { background: #e6f5ec; color: #1d6b39; }
.cab-pill.bad { background: #fbe9e6; color: #9c3a29; }
.cab-pill.warn { background: #fdf3df; color: #8a5c07; }

.spot-form { display: grid; gap: 16px; background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-s); }
.spot-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.spot-form input[type=text], .spot-form input[type=number], .spot-form input[type=date],
.spot-form select, .spot-form textarea, .spot-form input[type=file] {
  padding: 12px 14px; font: inherit; font-size: .97rem; font-weight: 400;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink);
}
.spot-form textarea { resize: vertical; }
.spot-form input:focus, .spot-form select:focus, .spot-form textarea:focus { outline: none; border-color: var(--shoal); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-checks { display: flex; gap: 18px; flex-wrap: wrap; }
.check-label { display: flex !important; flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.spot-form p { margin: -8px 0 0; }
@media (max-width: 559px) { .form-row { grid-template-columns: 1fr; } }

.tg-login { display: flex; justify-content: center; padding: 4px 0; }

/* выбор водоёма поиском */
.water-pick { position: relative; display: block; }
.water-pick input[type=text] { width: 100%; }
.water-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; }
#water-chosen { color: var(--water); font-weight: 600; }

/* ================= карта во весь экран с панелью ================= */

body.app-shell { height: 100vh; height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
body.app-shell .site-header { flex: 0 0 auto; }

.mapshell { flex: 1 1 auto; display: flex; min-height: 0; position: relative; }

.sidebar {
  flex: 0 0 340px; background: var(--card); border-right: 1px solid var(--line);
  overflow-y: auto; overscroll-behavior: contain; position: relative; z-index: 20;
}
.sidebar-inner { padding: 20px 18px 28px; }
.sidebar-toggle { display: none; }

.sidebar-title { font-size: 1.25rem; margin-bottom: .35em; }
.sidebar-lead { color: var(--muted); font-size: .93rem; margin-bottom: 16px; }

.side-search { margin-bottom: 20px; }
.side-search .search-input { width: 100%; box-shadow: none; border: 1px solid var(--line); padding: 13px 15px; }
.side-search .search-input:focus { border-color: var(--shoal); }

.side-block { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.side-block h2 {
  font-size: .95rem; letter-spacing: -.01em; color: var(--ink);
  margin: 0 0 10px; font-weight: 700; text-transform: none;
}
.side-block h2:not(:first-child) { margin-top: 16px; }

.layer { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; cursor: pointer; }
.layer:hover { background: #f2f7f8; }
.layer input { width: 17px; height: 17px; accent-color: var(--teal, #0e7c86); flex: 0 0 auto; }
.layer-dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.layer-dot.l-spots { background: var(--up); }
.layer-dot.l-media { background: #b3401f; }
.layer-dot.l-pro   { background: var(--amber); }
.layer-dot.l-raw   { background: var(--shoal); }
.layer-text { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.layer-text b { display: block; font-size: .92rem; font-weight: 600; }
.layer-text span { font-size: .78rem; color: var(--muted); }
.layer-count { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; flex: 0 0 auto; }

.side-select {
  width: 100%; padding: 11px 13px; font: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink);
  margin-bottom: 10px;
}
.side-select:focus { outline: none; border-color: var(--shoal); }

.side-stats { display: flex; gap: 14px; }
.side-stats div { flex: 1 1 0; }
.side-stats b { display: block; font-size: 1.15rem; font-weight: 800; }
.side-stats span { font-size: .75rem; color: var(--muted); }

.side-links { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; display: grid; gap: 7px; }
.side-links a { font-size: .9rem; }

.mapwrap { flex: 1 1 auto; position: relative; min-width: 0; }
.map-full { height: 100%; width: 100%; }

@media (max-width: 900px) {
  .mapshell { flex-direction: column; }
  .sidebar {
    flex: 0 0 auto; max-height: 46vh; border-right: 0; border-bottom: 1px solid var(--line);
    transition: max-height .25s ease;
  }
  .sidebar.collapsed { max-height: 52px; overflow: hidden; }
  .sidebar-toggle {
    display: block; position: sticky; top: 0; z-index: 5; width: 100%;
    background: var(--card); border: 0; border-bottom: 1px solid var(--line);
    padding: 14px; font: inherit; font-weight: 700; text-align: left; cursor: pointer; color: var(--ink);
  }
  .sidebar-inner { padding: 14px 16px 20px; }
  .sidebar-title { font-size: 1.1rem; }
  body.app-shell .tabbar { display: none; }
}

.map-pin.layer-spots { background: var(--up); }
.map-pin.layer-media { background: #b3401f; }
.map-pin.layer-pro   { background: var(--amber); color: #22160a; }

/* ================= поля ввода: единый вид вместо системных ================= */

select, .side-select, .field select, .spot-form select, .region-ask select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%235d7480' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px !important;
  cursor: pointer;
  font: inherit;
  line-height: 1.3;
}
select:focus-visible { outline: 2px solid var(--shoal); outline-offset: 1px; }

/* поля на тёмном фоне героя */
.hero .field select,
.hero .search-input {
  border: 1px solid rgba(255,255,255,.18);
  background-color: rgba(255,255,255,.97);
  box-shadow: 0 2px 10px rgba(4,33,46,.25);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: .97rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.hero .field select:hover { box-shadow: 0 4px 16px rgba(4,33,46,.3); }
.hero .field select:focus { outline: none; border-color: var(--amber); }

.field { gap: 7px; }
.field > span {
  font-size: .82rem; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: #a7d3dd;
}

/* поля в панели и на светлом фоне */
.side-select, .spot-form select, .spot-form input, .spot-form textarea,
.region-ask select, .region-ask input, .wb-hero .field select {
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.side-select:hover, .region-ask select:hover { border-color: #c2d6dc; }
.side-select:focus, .spot-form select:focus, .spot-form input:focus,
.spot-form textarea:focus, .region-ask select:focus, .region-ask input:focus {
  outline: none; border-color: var(--shoal); box-shadow: 0 0 0 3px rgba(18,162,168,.13);
}

/* чекбоксы слоёв */
.layer input[type=checkbox] {
  -webkit-appearance: none; appearance: none;
  width: 19px; height: 19px; border-radius: 6px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  position: relative; transition: background .15s, border-color .15s;
}
.layer input[type=checkbox]:checked { background: var(--teal, #0e7c86); border-color: var(--teal, #0e7c86); }
.layer input[type=checkbox]:checked::after {
  content: ''; position: absolute; left: 5.5px; top: 2px;
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.layer input[type=checkbox]:focus-visible { outline: 2px solid var(--shoal); outline-offset: 2px; }

/* поисковая строка */
.search-input, .side-search .search-input { border-radius: 12px; }

.pro-new {
  background: var(--lime); color: #0f2d16; font-weight: 800; font-size: .7rem;
  padding: 3px 10px; border-radius: 6px; letter-spacing: .03em;
}

/* ================= пилюли и переключатели вместо списков ================= */

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.pills.months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pills.months .pill-btn:first-child { grid-column: 1 / -1; }

.pill-btn {
  font: inherit; font-size: .85rem; font-weight: 600;
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  transition: all .14s ease;
}
.pill-btn:hover { border-color: var(--shoal); color: var(--water); }
.pill-btn.is-on {
  background: var(--deep); border-color: var(--deep); color: #fff;
  box-shadow: 0 2px 8px rgba(6,52,74,.2);
}
.pills.months .pill-btn { padding: 8px 4px; text-align: center; }

.segmented {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: #eef4f6; border-radius: 12px; padding: 4px; gap: 2px;
}
.seg-btn {
  font: inherit; font-size: .82rem; font-weight: 600;
  padding: 8px 6px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--muted); transition: all .14s ease;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(6,52,74,.15); }

.side-block h2 { margin-bottom: 9px; }
.side-block h2:not(:first-child) { margin-top: 20px; }

/* документы и реквизиты в панели */
.side-legal { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.side-legal-links { display: grid; gap: 6px; margin-bottom: 12px; }
.side-legal-links a { font-size: .86rem; }
.side-req { font-size: .8rem; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.side-req a { color: var(--muted); text-decoration: underline; }
.side-attr { font-size: .74rem; color: var(--muted); margin: 0; line-height: 1.5; }
.side-attr a { color: var(--muted); text-decoration: underline; }
.layer-dot.l-waters { background: var(--water); }


/* хвост .инфо в логотипе */
.logo-text i { font-style: normal; font-weight: 500; color: #7fb8c9; font-size: .82em; }

.side-note {
  background: #eef6f8; border-radius: var(--r-sm); padding: 11px 13px;
  font-size: .84rem; color: var(--ink-2); margin: 16px 0 0; line-height: 1.45;
}

/* карточка места */
.spot-lead { font-weight: 600; color: var(--ink); margin-bottom: .6em; }
.spot-text { color: var(--ink-2); margin-bottom: 1em; }
.spot-meta { display: grid; gap: 9px; margin: 14px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.spot-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spot-label { font-size: .78rem; color: var(--muted); font-weight: 600; min-width: 62px; }
.spot-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-link:hover { background: var(--shoal); color: #fff; text-decoration: none; }
.spot-months { display: flex; gap: 3px; flex-wrap: wrap; }
.month {
  font-size: .72rem; padding: 3px 7px; border-radius: 6px;
  background: #f1f5f6; color: #9fb3bb; font-weight: 600;
}
.month.on { background: var(--up); color: #fff; }

/* свежесть точки — подблок внутри слоёв */
.layer-extra { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.layer-extra-label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.layer-extra-hint { display: block; font-size: .75rem; color: var(--muted); margin-top: 7px; line-height: 1.4; }

/* блок свежести выезжает вместе со слоем PRO */
.layer-extra { animation: slideDown .2s ease; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================= голосование за точку ================= */

.vote { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.vote-btn {
  font: inherit; font-size: .95rem; font-weight: 700;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  margin-right: 8px; transition: all .14s ease;
}
.vote-btn b { font-variant-numeric: tabular-nums; }
.vote-btn:hover { border-color: var(--shoal); }
.vote-btn.up.is-on { background: var(--up); border-color: var(--up); color: #fff; }
.vote-btn.down.is-on { background: var(--down); border-color: var(--down); color: #fff; }
.vote-btn.is-pending { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242,166,59,.18); }
.vote-hint { font-size: .82rem; color: var(--muted); }

.vote-form { margin-top: 14px; padding: 14px; background: #f4f9fa; border-radius: var(--r); }
.vote-q { font-size: .86rem; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; }
.vote-months, .vote-fish { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.vote-month, .vote-fish-btn {
  font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  transition: all .14s ease;
}
.vote-month.is-on, .vote-fish-btn.is-on { background: var(--deep); border-color: var(--deep); color: #fff; }
.vote-actions { display: flex; align-items: center; gap: 12px; }
.vote-actions .btn { padding: 11px 22px; font-size: .92rem; }
.vote-cancel { font: inherit; font-size: .88rem; background: none; border: 0; color: var(--muted); cursor: pointer; }
.vote-note { font-size: .78rem; margin: 10px 0 0; }
.vote-result { margin: 10px 0 0; font-size: .88rem; font-weight: 600; color: var(--up); }
.vote-result.bad { color: var(--down); }
