/* ===== TAVIQ — стили ===== */
@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(/static/fonts/manrope-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Manrope; font-weight: 500; font-display: swap; src: url(/static/fonts/manrope-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(/static/fonts/manrope-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(/static/fonts/manrope-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(/static/fonts/manrope-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(/static/fonts/manrope-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20BD; }
@font-face { font-family: Manrope; font-weight: 500; font-display: swap; src: url(/static/fonts/manrope-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20BD; }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(/static/fonts/manrope-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20BD; }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(/static/fonts/manrope-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20BD; }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(/static/fonts/manrope-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+20BD; }

:root {
  --ink: #0f1e3d;          /* основной тёмный (текст, логотип) */
  --ink-2: #14284b;        /* тёмные плашки, подвал */
  --blue: #0a5cff;         /* фирменный синий */
  --blue-2: #2b8cff;       /* светлый край градиента */
  --blue-dark: #0047d1;
  --blue-soft: #eaf2ff;
  --blue-line: #cfe0ff;
  --bg: #f5f8fd;
  --bg-2: #edf3fb;
  --card: #ffffff;
  --line: #e3eaf4;
  --text: #0f1e3d;
  --muted: #5b6b85;
  --green: #12a150;
  --green-soft: #e6f6ed;
  --red: #d93b3b;
  --red-soft: #fdecec;
  --gold: #f5a524;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 30, 61, .04), 0 4px 16px rgba(15, 30, 61, .05);
  --shadow-lg: 0 12px 40px rgba(15, 30, 61, .12);
  --grad: linear-gradient(135deg, var(--blue-2) 0%, var(--blue) 55%, var(--blue-dark) 100%);
  --font: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: 28px; }
h2 { font-size: 21px; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; }
.i { flex: none; vertical-align: middle; }
.i.filled { fill: currentColor; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.page { padding-top: 28px; padding-bottom: 56px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.hide { display: none !important; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }

/* ===== Шапка ===== */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: background .35s ease, border-color .35s ease; }
.header-bar { display: flex; align-items: center; gap: 36px; height: 72px; transition: height .35s ease, margin .35s ease, padding .35s ease, border-radius .35s ease, background .35s ease, box-shadow .35s ease, border-color .35s ease, max-width .35s ease; border: 1px solid transparent; }
/* при прокрутке шапка превращается в «парящую» панель */
.header.scrolled { background: transparent; border-bottom-color: transparent; }
.header.scrolled .header-bar { height: 62px; margin-top: 10px; padding: 0 14px 0 22px; border-radius: 20px; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-color: rgba(15,30,61,.08); box-shadow: 0 10px 34px rgba(15,30,61,.12); max-width: 1140px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 38px; width: auto; display: block; transition: height .35s ease; }
.header.scrolled .logo img { height: 34px; }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 2px; }
.nav > a, .nav .nav-dd > button { color: var(--ink); padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: 15px; background: none; border: 0; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nav > a:hover, .nav .nav-dd > button:hover { background: var(--bg); text-decoration: none; }
.nav > a.active { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn { position: relative; color: var(--ink); padding: 9px; border-radius: 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; background: none; border: 0; font-family: inherit; font-size: 15px; cursor: pointer; }
.icon-btn:hover { background: var(--bg); text-decoration: none; }
.badge { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 6px; min-width: 18px; text-align: center; line-height: 16px; display: inline-block; }
.icon-btn .badge { position: absolute; top: 2px; right: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); min-width: 240px; padding: 6px; display: none; z-index: 70; }
.nav-dd .dropdown-menu { left: 0; right: auto; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; color: var(--ink); border-radius: 10px; background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.dropdown-menu a .i, .dropdown-menu button .i { color: var(--blue); }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg); text-decoration: none; }
.dropdown-menu .sub { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.dropdown-menu .sep { height: 1px; background: var(--line); margin: 6px 0; }

/* ===== Кнопки и формы ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; border: 1.5px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; line-height: 1.3; }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-accent { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(10, 92, 255, .25); }
.btn-primary:hover, .btn-accent:hover { box-shadow: 0 8px 24px rgba(10, 92, 255, .35); }
.btn-ghost { background: #fff; color: var(--ink); border-color: #cfdaea; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-soft { background: var(--blue-soft); color: var(--blue); }
.btn-soft:hover { background: #dce9ff; }
.btn-danger { background: #fff; color: var(--red); border-color: #f2c4c4; }
.btn-danger:hover { background: var(--red-soft); }
.btn-success { background: var(--green); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--blue); cursor: pointer; font: inherit; padding: 0; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.inline { display: inline; }

label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--ink); }
.field { margin-bottom: 16px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid #d6e0ee; border-radius: 12px; font: inherit; font-weight: 500; background: #fff; color: var(--text); min-height: 46px; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #93a1b8; }
input:hover, select:hover, textarea:hover { border-color: #b9c8de; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 92, 255, .12); }
textarea { min-height: 96px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }

.card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 24px; }
.card + .card { margin-top: 16px; }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-title h2, .card-title h3 { margin: 0; }
.form-section { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.form-section .num { width: 28px; height: 28px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.form-section h3 { margin: 0; }

.alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--green-soft); color: #0b6b36; }
.alert-error { background: var(--red-soft); color: #a12626; }
.alert-info { background: var(--blue-soft); color: #0a3fa8; }
.alert ul { margin: 0; padding-left: 18px; }

.ico-box { width: 46px; height: 46px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.ico-box.lg { width: 56px; height: 56px; border-radius: 16px; }

/* ===== Плашка «подтвердите почту» ===== */
.verify-bar { background: var(--blue-soft); color: #0a3fa8; font-weight: 600; font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--blue-line); }
.verify-bar .row { flex-wrap: nowrap; }
.verify-bar span { flex: 1; }
.verify-bar .btn-white { border-color: var(--blue-line); color: var(--blue); }
@media (min-width: 901px) and (max-width: 1080px) {
  .hero-text { max-width: 430px; }
  .hero h1 { font-size: 34px; }
  .hero-btns .btn-lg { min-width: 0; padding: 14px 20px; }
  .trust div { padding-right: 10px; margin-right: 10px; }
}
@media (max-width: 900px) {
  .hero-inner { min-height: 0; display: block; }
  .hero-text { max-width: 640px; padding: 36px 0 24px; }
  .hero-visual { position: relative; top: 0; width: 100%; max-width: none; }
}
@media (max-width: 760px) { .verify-bar .row { flex-wrap: wrap; } .verify-bar .i { display: none; } }

/* ===== Главная ===== */
.hero { position: relative; background: #fff; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; min-height: calc(min(59.5vw, 880px) * 0.6955 + 46px); display: flex; align-items: center; }
.hero-text { max-width: 560px; padding: 48px 0 44px; }
.pill { display: inline-block; background: var(--blue-soft); color: var(--blue); font-weight: 600; font-size: 14px; padding: 6px 18px; border-radius: 20px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(34px, 3.85vw, 48px); line-height: 1.14; letter-spacing: -.03em; margin-bottom: 20px; }
.hero .lead { color: var(--muted); font-size: 17px; max-width: 470px; margin-bottom: 30px; font-weight: 500; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-btns .btn-lg { min-width: 196px; }
.trust { display: flex; gap: 0; flex-wrap: wrap; }
.trust div { display: flex; gap: 10px; align-items: center; padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--line); font-size: 13px; font-weight: 600; line-height: 1.35; }
.trust div:last-child { border-right: 0; margin-right: 0; }
.trust .i { color: var(--blue); }
/* блок с грузовиком: прижат к правому краю экрана, форма со скруглёнными углами */
.hero-visual { position: absolute; z-index: 1; top: 20px; right: 0; width: min(59.5vw, 880px); aspect-ratio: 729 / 507; }
.hero-shape { display: block; width: 100%; height: 100%; filter: drop-shadow(0 18px 40px rgba(15,30,61,.10)); }
.float-card { position: absolute; z-index: 2; background: rgba(255,255,255,.97); border-radius: 16px; box-shadow: 0 10px 30px rgba(15,30,61,.14); padding: 0 18px; display: flex; gap: 14px; align-items: center; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; height: 13.8%; min-height: 58px; }
.float-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(15,30,61,.18); }
.float-card b { display: block; font-size: clamp(17px, 1.5vw, 21px); font-weight: 800; line-height: 1.15; }
.float-card span { font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.float-card .i { color: var(--blue); }
.float-card.c1 { left: 65.8%; top: 11%; min-width: 28.5%; }
.float-card.c2 { left: 17.1%; top: 58.8%; min-width: 25.4%; }

.search-panel { position: relative; z-index: 3; margin-top: 28px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 18px 20px 20px; }
.tabs { display: inline-flex; background: var(--bg-2); border-radius: 12px; padding: 4px; margin-bottom: 14px; gap: 2px; }
.tabs button, .tabs a { border: 0; background: none; padding: 9px 18px; border-radius: 9px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.tabs button:hover, .tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs .active { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(15,30,61,.08); }
.search-grid { display: grid; grid-template-columns: 1.3fr auto 1.3fr .8fr .9fr auto; gap: 10px; align-items: end; }
.search-grid label, .filters label { font-size: 12px; color: var(--muted); font-weight: 700; }
.swap { border: 1.5px solid #d6e0ee; background: #fff; border-radius: 12px; width: 46px; height: 46px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.swap:hover { color: var(--blue); border-color: var(--blue); }

.stats-band { background: #f1f5fb; }
.stats-band .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { display: flex; gap: 18px; align-items: center; justify-content: center; padding: 26px 20px; border-right: 1px solid #d9e3f1; }
.stat-item:last-child { border-right: 0; }
.stat-item .i { color: var(--blue); }
.stat-item b { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.stat-item span { color: var(--muted); font-size: 14px; font-weight: 500; }

.section { padding: 48px 0 0; }
.section-center { text-align: center; margin-bottom: 28px; }
.section-center h2 { font-size: 34px; margin-bottom: 6px; }
.section-center p { color: var(--muted); font-size: 17px; margin: 0; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 24px; }
.section-head a { font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(15,30,61,.04); padding: 22px 28px 24px; color: var(--ink); position: relative; transition: box-shadow .2s, border-color .2s, transform .2s; display: block; }
.feature:hover { text-decoration: none; box-shadow: var(--shadow-lg); border-color: var(--blue-line); transform: translateY(-2px); }
.feature > .i { color: var(--blue); margin-bottom: 14px; display: block; }
.feature h3 { font-size: 18px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; padding-right: 40px; font-weight: 500; }
.feature .go { position: absolute; right: 20px; bottom: 22px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--ink); display: grid; place-items: center; }
.feature:hover .go { background: var(--blue); color: #fff; }

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.role-card { background: #fff; border-radius: 20px; padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.role-card .head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.role-card .head h2 { margin: 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 22px; flex: 1; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-weight: 500; }
.steps li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 13px; display: grid; place-items: center; }

.cta { margin-top: 44px; background: linear-gradient(100deg, #1f74ff 0%, #0a5cff 45%, #0b56e8 100%); border-radius: 24px; color: #fff; padding: 36px 44px; display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 72%; background: url(/static/img/cta-road.jpg) right center / cover no-repeat; mix-blend-mode: luminosity; opacity: .38; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: 30px; margin: 0; }
.cta ul { list-style: none; padding: 0; margin: 0; }
.cta li { display: flex; gap: 10px; align-items: center; margin: 4px 0; font-weight: 600; }
.cta .btn { position: relative; z-index: 1; }

/* ===== Поиск на главной ===== */
.search-wrap { position: relative; z-index: 4; margin-top: -34px; margin-bottom: 30px; }
.search-panel { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 18px 20px 20px; }

/* ===== Подсказки городов ===== */
.ac-box { position: absolute; z-index: 200; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 340px; overflow-y: auto; }
.ac-item { padding: 9px 12px; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; line-height: 1.3; }
.ac-item b { font-weight: 700; }
.ac-item span { font-size: 12px; color: var(--muted); }
.ac-item:hover, .ac-item.on { background: var(--blue-soft); }

/* ===== Графики ===== */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: 280px; display: block; overflow: visible; }
.ch-grid { stroke: #e8eef6; stroke-width: 1; }
.ch-yl, .ch-xl { font-size: 12px; fill: #8593a8; font-family: var(--font); }
.ch-cursor { stroke: #0a5cff; stroke-width: 1; stroke-dasharray: 4 4; }
.ch-tip { position: absolute; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 10px; padding: 6px 10px; font-size: 12px; pointer-events: none; white-space: nowrap; text-align: center; }
.ch-tip span { display: block; opacity: .7; }
.chart-empty { padding: 40px; text-align: center; color: var(--muted); background: var(--bg); border-radius: 12px; }
.chg { display: inline-block; font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 7px; }
.chg.up { color: #0a5cff; background: var(--blue-soft); }
.chg.down { color: #a4541b; background: #fbefe5; }

/* ===== Индекс ===== */
.idx-top { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.idx-top .card + .card { margin-top: 0; }
.idx-value { display: flex; flex-direction: column; gap: 6px; }
.idx-num { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.idx-num small { font-size: 16px; font-weight: 600; color: var(--muted); }
.dir-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.market { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.market .card + .card { margin-top: 0; }
.market-card { color: var(--ink); display: flex; flex-direction: column; gap: 8px; transition: box-shadow .2s, border-color .2s; }
.market-card:hover { text-decoration: none; box-shadow: var(--shadow-lg); border-color: var(--blue-line); }
.market-card h3 { margin: 4px 0 0; font-size: 18px; }
.market-card p { margin: 0; flex: 1; }
.market-card .idx-num { font-size: 34px; }
.spark svg { width: 100%; height: 56px; }

/* ===== Калькулятор ===== */
.calc { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 20px; align-items: start; }
.calc-form { position: sticky; top: 92px; }
.calc-points { position: relative; }
.calc-point { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 10px; position: relative; }
.calc-point .pt-field { flex: 1; }
.calc-point .pt-field label { font-size: 12px; color: var(--muted); }
.pt-dot { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; margin-bottom: 9px; }
.pt-dot:not(.a):not(.b) { background: #fff; border: 3px solid var(--blue); width: 18px; height: 18px; margin: 0 5px 14px; }
.pt-del { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 8px; margin-bottom: 4px; border-radius: 10px; }
.pt-del:hover { background: var(--bg); color: var(--red); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg label { margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 9px; border-radius: 9px; font-weight: 700; color: var(--muted); font-size: 14px; }
.seg input:checked + span { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(15,30,61,.08); }
.calc-more { border-top: 1px solid var(--line); padding: 12px 0 2px; }
.calc-more summary { cursor: pointer; font-weight: 700; margin-bottom: 12px; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.calc-more summary::-webkit-details-marker { display: none; }
.calc-more summary::after { content: "+"; color: var(--blue); font-size: 20px; line-height: 1; }
.calc-more[open] summary::after { content: "−"; }
.calc-map { height: 420px; padding: 0; overflow: hidden; position: relative; z-index: 1; }
.map-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); background: linear-gradient(180deg, #f7faff, #eef3fb); }
.map-empty .i { color: var(--blue); }
.map-pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; box-shadow: 0 4px 10px rgba(10,92,255,.4); border: 2px solid #fff; }
.map-pin.via { background: #fff; color: var(--blue); border-color: var(--blue); }
.map-pin span { transform: rotate(45deg); line-height: 1; }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.res { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; }
.res span { font-size: 12px; color: var(--muted); font-weight: 600; }
.res b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.res em { font-style: normal; font-size: 12px; color: var(--muted); }
.res.main { background: var(--grad); border: 0; color: #fff; }
.res.main span, .res.main em { color: rgba(255,255,255,.85); }
.res-total { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.res-total > div { display: flex; flex-direction: column; }
.res-total b { font-size: 26px; font-weight: 800; }

/* ===== Поиск и список ===== */
.page-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.filters { background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.filters .grid { display: grid; grid-template-columns: 1fr auto 1fr 120px 160px; gap: 10px; align-items: end; }
.filters .grid2 { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 10px; }
.filters-toggle { display: none; }
.list-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.list-head .sort { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip:hover { text-decoration: none; border-color: var(--blue-line); }
.chip.active:hover { border-color: var(--blue); }

.listing { display: grid; grid-template-columns: 1.6fr 1fr .9fr .95fr 40px; gap: 18px; align-items: center; background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 16px 18px; margin-bottom: 10px; position: relative; color: var(--text); transition: box-shadow .15s, border-color .15s; }
.listing:hover { box-shadow: var(--shadow-lg); border-color: var(--blue-line); text-decoration: none; }
.listing .route { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; letter-spacing: -.01em; }
.listing .route .arrow, .detail-route .arrow { color: var(--blue); display: inline-flex; }
.listing .sub { color: var(--muted); font-size: 13px; font-weight: 500; }
.listing .params b { display: block; font-weight: 700; }
.listing .price { font-weight: 800; font-size: 17px; }
.listing .price.request { color: var(--blue); font-weight: 700; font-size: 14px; }
.listing .company { font-size: 13px; color: var(--muted); }
.listing .company b { color: var(--text); font-weight: 700; }
.stars { color: var(--gold); letter-spacing: 1px; }
.fav-btn { background: none; border: 0; cursor: pointer; color: #c3cedd; line-height: 1; padding: 6px; border-radius: 10px; display: grid; place-items: center; }
.fav-btn:hover { background: var(--bg); color: var(--gold); }
.fav-btn.on { color: var(--gold); }
.fav-btn.on .i { fill: currentColor; }
.fav-btn-lg.on { color: var(--ink); }
.fav-btn-lg.on .i { color: var(--gold); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 9px; border-radius: 7px; background: var(--bg-2); color: var(--ink); font-weight: 700; }
.tag-blue { background: var(--blue-soft); color: var(--blue); }
.tag-green { background: var(--green-soft); color: #0b6b36; }
.tag-amber { background: #e9f8fb; color: #0b7285; }
.tag-red { background: var(--red-soft); color: #a12626; }
.empty { text-align: center; padding: 48px 24px; background: #fff; border-radius: 18px; border: 1px solid var(--line); }
.empty .ico-box { margin: 0 auto 14px; }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; text-align: center; padding: 9px 14px; border-radius: 11px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; }
.pager a:hover { border-color: var(--blue); text-decoration: none; }
.pager .cur { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ===== Реклама ===== */
.ad { position: relative; }
.ad-label { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 4px; font-weight: 600; }
.ad-placeholder { border: 2px dashed #cbd5e1; border-radius: 16px; color: #94a3b8; display: grid; place-items: center; text-align: center; font-size: 13px; padding: 16px; background: #fafbfd; }
.ad-sidebar .ad-placeholder { min-height: 250px; }
.ad-feed { margin: 6px 0 16px; }
.ad-feed .ad-placeholder { min-height: 90px; }
.ad-bottom { margin-top: 40px; }
.ad-bottom .ad-placeholder { min-height: 90px; }

/* ===== Карточка объявления ===== */
.detail-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.detail-route { font-size: 30px; font-weight: 800; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; letter-spacing: -.02em; line-height: 1.2; }
.props { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 18px 0; }
.props div { background: #fff; padding: 13px 16px; box-shadow: 0 0 0 .5px var(--line); }
.props span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.props b { font-size: 15px; }
.price-box { background: var(--grad); color: #fff; border-radius: 16px; padding: 18px 20px; }
.price-box .small { color: rgba(255,255,255,.8); }
.price-box .big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.contacts-box { border: 1.5px solid var(--blue-line); background: #f9fbff; border-radius: 14px; padding: 16px; }
.contacts-box .phone { font-size: 21px; font-weight: 800; letter-spacing: .2px; display: inline-flex; align-items: center; gap: 8px; }
.blur { filter: blur(5px); user-select: none; }
.offer-item { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.offer-item.accepted { border-color: #a7dfbf; background: #f6fcf8; }
.offer-item.rejected { opacity: .6; }
.owner-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }

/* ===== Кабинет ===== */
.cab { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.cab-nav { background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px; position: sticky; top: 88px; }
.cab-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px; color: var(--ink); font-weight: 600; }
.cab-nav a .i { color: var(--muted); }
.cab-nav a:hover { background: var(--bg); text-decoration: none; }
.cab-nav a.active { background: var(--blue-soft); color: var(--blue); }
.cab-nav a.active .i { color: var(--blue); }
.cab-nav .badge { margin-left: auto; }
.cab-user { padding: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.cab-user b { display: block; line-height: 1.25; }
.cab-tabs { display: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 16px 18px; color: var(--text); display: block; }
.stat:hover { text-decoration: none; border-color: var(--blue-line); box-shadow: var(--shadow); }
.stat b { font-size: 28px; display: block; font-weight: 800; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 500; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.quick a { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 800; font-size: 17px; }
.quick a:hover { text-decoration: none; border-color: var(--blue-line); box-shadow: var(--shadow-lg); }
.quick a.primary { background: var(--grad); color: #fff; border: 0; }
.quick a.primary .ico-box { background: rgba(255,255,255,.18); color: #fff; }
.quick a.primary .small { color: rgba(255,255,255,.85) !important; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.role-pick label { border: 2px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; font-weight: 500; margin: 0; display: flex; gap: 12px; align-items: center; transition: border-color .15s, background .15s; }
.role-pick label:hover { border-color: var(--blue-line); }
.role-pick input { position: absolute; opacity: 0; pointer-events: none; }
.role-pick .ico-box { transition: background .15s, color .15s; }
.role-pick label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.role-pick label:has(input:checked) .ico-box { background: var(--blue); color: #fff; }
.role-pick label:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(10, 92, 255, .15); }
.role-pick b { display: block; font-size: 15px; color: var(--text); }
.role-pick span { font-size: 13px; color: var(--muted); }
.auth { max-width: 580px; margin: 0 auto; }
.auth-head { text-align: center; margin-bottom: 20px; }
.auth-icon { display: inline-block; margin-bottom: 12px; border-radius: 16px; box-shadow: 0 8px 22px rgba(10,92,255,.28); }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { font-size: 30px; color: #d3dae3; cursor: pointer; margin: 0; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--gold); }

/* ===== Тарифы ===== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { background: #fff; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; }
.plan.current { border: 2px solid var(--blue); }
.plan .price { font-size: 34px; font-weight: 800; margin: 8px 0; letter-spacing: -.02em; }
.plan ul { list-style: none; padding: 0; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; font-weight: 500; }
.plan li .i { color: var(--green); margin-top: 2px; }

/* ===== Подвал ===== */
.footer { background: var(--ink-2); color: #a9b8d0; padding: 44px 0 110px; margin-top: 56px; font-size: 14px; }
.footer a { color: #dbe5f5; }
.footer .logo img { height: 60px; width: auto; }
.footer .logo { margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer .tagline { text-transform: uppercase; letter-spacing: .3em; font-size: 10px; font-weight: 700; color: #7f93b3; margin: -4px 0 12px 54px; }

/* ===== Нижнее меню на телефоне ===== */
.tabbar { display: none; }
.mobile-only { display: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .header-bar { gap: 16px; }
  .search-grid { grid-template-columns: 1fr auto 1fr; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .cab { grid-template-columns: 1fr; }
  .cab-nav { display: none; }
  .cab-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; scrollbar-width: none; }
  .listing { grid-template-columns: 1.4fr 1fr 1fr 40px; }
  .listing .col-company { display: none; }
  .cta { grid-template-columns: 1fr; padding: 28px; }
  [data-similar] { max-width: none !important; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  h1 { font-size: 24px; }
  .container { padding: 0 16px; }
  .page { padding-top: 18px; padding-bottom: 32px; }
  .logo { font-size: 22px; }
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }
  .header-bar { height: 60px; }
  .header.scrolled .header-bar { height: 56px; margin: 8px 10px 0; padding: 0 8px 0 14px; border-radius: 18px; }
  .logo img { height: 30px; }
  .header.scrolled .logo img { height: 28px; }
  .hero-text { padding: 24px 0 18px; }
  .hero h1 { font-size: 31px; }
  .hero .lead { font-size: 16px; margin-bottom: 20px; }
  .hero-btns { margin-bottom: 4px; gap: 10px; flex-wrap: nowrap; }
  .search-wrap { margin-top: -14px; margin-bottom: 20px; }
  .search-panel { padding: 14px; border-radius: 18px; }
  .idx-top, .res-total { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr 1fr; }
  .res b { font-size: 18px; }
  .calc-map { height: 300px; }
  .chart svg { height: 220px; }
  .idx-num { font-size: 32px; }
  .hero-btns .btn, .hero-btns .btn-lg { flex: 1; padding: 14px 10px; min-width: 0; font-size: 15px; }
  .trust { display: none; }
  .float-card { padding: 0 10px; gap: 8px; border-radius: 11px; min-height: 0; height: 15%; }
  .float-card.c1 { left: 56%; width: 40%; top: 8%; }
  .float-card.c2 { left: 12%; width: 40%; top: 66%; }
  .float-card b { font-size: 15px; }
  .float-card span { font-size: 10.5px; }
  .float-card .i { width: 20px; height: 20px; }
  .search-grid { grid-template-columns: 1fr; }
  .search-grid .swap, .search-grid .sg-opt { display: none; }
  .hero-visual { margin-top: 0; }
  .stats-band .container { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 16px 4px; border-right: 0; gap: 10px; }
  .stat-item b { font-size: 19px; }
  .stat-item span { font-size: 12px; }
  .stat-item .i { width: 26px; height: 26px; }
  .section { padding-top: 36px; }
  .section-center h2 { font-size: 26px; }
  .section-center p { font-size: 15px; }
  .roles, .grid-2, .grid-3, .quick, .role-pick, .plans, .features { grid-template-columns: 1fr; }
  .features { gap: 10px; }
  .feature { padding: 18px 20px; display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-items: center; }
  .feature > .i { grid-row: span 2; margin: 0; width: 30px; height: 30px; }
  .feature h3 { font-size: 16px; margin: 0; }
  .feature .go { display: none; }
  .feature p { padding: 0; font-size: 13px; }
  .grid-4, .stats { grid-template-columns: 1fr 1fr; }
  .filters { padding: 14px; }
  .filters .grid, .filters .grid2 { grid-template-columns: 1fr 1fr; }
  .filters .grid .swap { display: none; }
  .filters .f-from, .filters .f-to { grid-column: span 2; }
  .filters .grid2 .f-btns { grid-column: span 2; }
  .filters-toggle { display: flex; }
  .filters.collapsed .grid2, .filters.collapsed .f-date, .filters.collapsed .f-radius { display: none; }
  .listing { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 16px; }
  .listing .col-params { grid-column: 1; }
  .listing .col-price { grid-column: 2; grid-row: 1; text-align: right; align-self: start; }
  .listing .col-fav { position: absolute; right: 8px; bottom: 8px; }
  .props { grid-template-columns: 1fr 1fr; }
  .detail-route { font-size: 23px; }
  .card { padding: 18px; border-radius: 16px; }
  .cta { padding: 24px; border-radius: 20px; }
  .cta h2 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: span 2; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 60; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; font-size: 11px; font-weight: 600; color: var(--muted); position: relative; }
  .tabbar a.active { color: var(--blue); }
  .tabbar a:hover { text-decoration: none; }
  .tabbar .plus .ti { background: var(--grad); color: #fff; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; margin-top: -20px; box-shadow: 0 6px 16px rgba(10,92,255,.4); }
  .tabbar .badge { position: absolute; top: 3px; left: 54%; }
  .footer { padding-bottom: 100px; }
}

@media (max-width: 980px) {
  .calc { grid-template-columns: 1fr; }
  .calc-form { position: static; }
  .market { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .idx-top, .res-total { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr 1fr; }
  .res b { font-size: 18px; }
  .calc-map { height: 300px; }
  .chart svg { height: 220px; }
  .idx-num { font-size: 32px; }
  .search-wrap { margin-top: -14px; margin-bottom: 20px; }
  .search-panel { padding: 14px; border-radius: 18px; }
  .search-grid { grid-template-columns: 1fr; }
  .search-grid .swap, .search-grid .sg-opt { display: none; }
  .filters .grid { grid-template-columns: 1fr 1fr !important; }
}
