/* MovingRater - единый файл стилей (макеты, этап 1, версия 3).
   Стиль: светлый и современный. Небо в шапке страниц, белые карточки с мягкой тенью,
   темно-синий текст, зеленый для действий и подтвержденных статусов.
   Порядок: шрифты, переменные, база, компоненты, страницы, кабинет и админка. Mobile first. */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}

/* ---------- Переменные ---------- */
:root {
  --navy: #0F2742;          /* заголовки, подвал, темные блоки */
  --navy-2: #1D3B5E;
  --text: #22323F;
  --muted: #5A6B7B;
  --bg: #F6F9FC;            /* фон страницы */
  --white: #FFFFFF;
  --line: #E1E8EF;
  --green: #12924F;         /* действие и "подтверждено" */
  --green-deep: #0C7540;
  --green-tint: #E5F6EC;
  --sky: #DDEEFC;           /* небо в шапке страниц */
  --sky-2: #F1F8FE;
  --blue: #1F6FD0;
  --blue-tint: #E6F0FC;
  --amber: #A85B00;
  --amber-tint: #FFF2D6;
  --red: #C22B2B;
  --red-tint: #FDEAEA;
  --star: #F4A62A;

  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 12px;
  --r-lg: 18px;
  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(15, 39, 66, .05), 0 8px 24px rgba(15, 39, 66, .07);
  --shadow-lg: 0 2px 4px rgba(15, 39, 66, .06), 0 18px 44px rgba(15, 39, 66, .12);
}

/* Админка на русском: в наших шрифтах нет кириллицы, поэтому там системный шрифт */
html:lang(ru) {
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font-body); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--navy); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
a { color: var(--green-deep); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 28px; } }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: var(--r); }
.skip:focus { top: 8px; color: var(--white); }
.label-caps { font: 600 .78rem/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dot { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; color: var(--navy); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
  border: 2px solid transparent; border-radius: var(--r);
  font: 600 1rem/1.1 var(--font-display); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: linear-gradient(180deg, #17A65B, var(--green)); color: var(--white); box-shadow: 0 6px 16px rgba(18, 146, 79, .28); }
.btn-primary:hover { background: var(--green-deep); color: var(--white); }
.btn-line { background: var(--white); border-color: var(--green); color: var(--green-deep); }
.btn-line:hover { background: var(--green-tint); color: var(--green-deep); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); color: var(--white); }
.btn-quiet { background: var(--white); border-color: var(--line); color: var(--navy); }
.btn-quiet:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .92rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Поля форм ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 600; color: var(--navy); font-size: .95rem; }
.hint { font-size: .85rem; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 10px 14px; background: var(--white); border: 1.5px solid #CBD6E1; border-radius: var(--r); color: var(--text); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green); outline: 3px solid var(--green-tint); outline-offset: 0; }
.textarea { min-height: 100px; resize: vertical; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--green); flex: none; }

.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 620px) { .choices { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: block; padding: 14px 10px; text-align: center; font: 600 1rem/1.2 var(--font-display); color: var(--navy); background: var(--white); border: 1.5px solid #CBD6E1; border-radius: var(--r); cursor: pointer; }
.choice input:checked + span { border-color: var(--green); background: var(--green-tint); color: var(--green-deep); box-shadow: inset 0 0 0 1px var(--green); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Панели (класс sign остался от прошлой версии разметки) ---------- */
.sign { position: relative; display: block; background: var(--white); color: var(--text); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.sign-blue { background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #D8E4F0; }
.sign-blue h1, .sign-blue h2, .sign-blue h3 { color: var(--white); }
.sign-blue .field label { color: var(--white); }
.sign-yellow { background: var(--green-tint); box-shadow: none; }
@media (min-width: 900px) { .sign { padding: 32px; } }

/* Значки статусов: круг с иконкой */
.shape { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--line); color: var(--navy); }
.shape .icon { width: 16px; height: 16px; vertical-align: 0; }
.shape-go { background: var(--green); color: var(--white); }
.shape-stop { background: var(--red); color: var(--white); }
.shape-warn { background: var(--amber-tint); color: var(--amber); }
.shape-info { background: var(--blue-tint); color: var(--blue); }
.shape-none { background: var(--line); color: var(--muted); }

/* Плашки-статусы */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; background: #EDF1F5; color: var(--navy); }
.chip .icon { width: 1em; height: 1em; vertical-align: 0; }
.chip-ok { background: var(--green-tint); color: var(--green-deep); }
.chip-bad { background: var(--red-tint); color: var(--red); }
.chip-warn { background: var(--amber-tint); color: var(--amber); }
.chip-plain { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Рейтинг ---------- */
.rating { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.rating b { font: 700 1.2rem/1 var(--font-display); color: var(--navy); }
.stars { display: inline-flex; color: #D7DEE6; }
.stars .icon { width: 16px; height: 16px; }
.stars .on { color: var(--star); }

/* ---------- Шапка ---------- */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; font: 700 1.4rem/1 var(--font-display); letter-spacing: -.02em; color: var(--navy); text-decoration: none; }
.logo:hover { color: var(--navy); }
.logo svg { width: 34px; height: 34px; color: var(--green); }
.logo em { font-style: normal; color: var(--green); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 18px; }
.nav.is-open { display: block; }
.nav a { display: block; padding: 12px 4px; font: 500 1rem/1.2 var(--font-display); color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
.nav a[aria-current] { color: var(--green-deep); }
.nav .lang { color: var(--muted); }
.nav .btn { margin-top: 14px; border-bottom-color: transparent; color: var(--white); justify-content: center; display: flex; }
@media (min-width: 940px) {
  .nav-toggle { display: none; }
  .nav { display: flex; align-items: center; gap: 2px; position: static; border: 0; box-shadow: none; padding: 0; }
  .nav a { padding: 10px 14px; border: 0; border-radius: 10px; }
  .nav a:hover { background: var(--bg); }
  .nav .btn { margin: 0 0 0 10px; min-height: 42px; padding: 8px 18px; display: inline-flex; }
  .nav .btn:hover { background: var(--green-deep); }
}

/* ---------- Полоса неба под шапкой внутренних страниц ---------- */
.band { background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 70%, var(--bg) 100%); padding: 0 0 28px; }
.lane { display: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #A9B8C7; }
.crumbs a { color: var(--navy-2); }

/* ---------- Подвал ---------- */
.site-foot { background: var(--navy); color: #B9C8D8; margin-top: 72px; padding: 44px 0 28px; font-size: .95rem; }
.site-foot a { color: var(--white); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: var(--white); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.foot-grid h4 { color: var(--white); font-size: .95rem; margin-bottom: 12px; }
.foot-grid li { margin-bottom: 8px; }
.foot-about { grid-column: 1 / -1; max-width: 44ch; }
.foot-about .logo { color: var(--white); margin-bottom: 14px; }
.foot-about .logo em, .foot-about .logo svg { color: #4CD08A; }
.foot-note { border-top: 1px solid #25405F; margin: 28px 0 0; padding-top: 20px; font-size: .85rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot-about { grid-column: auto; } }

/* ---------- Карточка и секции ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.section { padding: 56px 0 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.more { font: 600 .95rem/1.2 var(--font-display); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.two-col { display: grid; gap: 36px; }
@media (min-width: 980px) { .two-col { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ---------- Главная ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #CFE6FB 0%, #E4F2FD 55%, #F3F9FE 100%); }
.hero .wrap { position: relative; padding-top: 36px; padding-bottom: 290px; }
.hero h1 { max-width: 11ch; margin-bottom: .3em; }
.hero-lead { font-size: 1.12rem; max-width: 38ch; color: var(--navy-2); }
.hero-photo { position: absolute; left: 0; right: 0; bottom: 0; height: 280px; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-art svg { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: none; }
.hero-truck { animation: drive 1.5s cubic-bezier(.16, .8, .3, 1) both; }
@keyframes drive { from { transform: translateX(-340px); opacity: 0; } }

.search { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 10px; display: grid; gap: 8px; margin-top: 22px; max-width: 620px; }
.search-field { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 12px; border-radius: 10px; background: var(--bg); }
.search-field .icon { color: var(--green); width: 20px; height: 20px; }
.search-field input { flex: 1; min-width: 0; min-height: 50px; border: 0; background: transparent; outline: none; }
.search-field:focus-within { box-shadow: inset 0 0 0 2px var(--green); }
.search .btn { min-height: 50px; }
.alt-check { margin: 14px 0 0; font-size: .95rem; color: var(--navy-2); }
.trust { display: grid; gap: 12px; margin-top: 24px; max-width: 620px; }
.trust li { display: flex; align-items: center; gap: 10px; font: 600 .95rem/1.2 var(--font-display); color: var(--navy); }
.trust small { display: block; font: 400 .82rem/1.3 var(--font-body); color: var(--muted); }
.trust .icon { width: 26px; height: 26px; color: var(--green); }
@media (min-width: 620px) {
  .search { grid-template-columns: 1fr 1fr auto; }
  .trust { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 28px; }
}
@media (min-width: 1000px) {
  .hero .wrap { padding-top: 64px; padding-bottom: 76px; min-height: 520px; }
  .hero-photo { inset: 0; height: auto; -webkit-mask-image: none; mask-image: none; }
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(238, 247, 254, .97) 0%, rgba(238, 247, 254, .94) 46%, rgba(238, 247, 254, .4) 66%, rgba(238, 247, 254, 0) 84%); pointer-events: none; }
  .hero .wrap { z-index: 1; }
  .hero-copy { position: relative; z-index: 1; max-width: 600px; }
  .trust { grid-template-columns: repeat(3, 1fr); gap: 12px 18px; }
}

/* Города */
.city-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.city-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; padding: 14px; border-radius: var(--r-lg); overflow: hidden; color: var(--white); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; background: linear-gradient(180deg, #5FB0F2 0%, #BFE2FB 52%, #2F97D6 53%, #135E98 100%); }
.city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--white); }
.city-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.city-card:hover .city-photo { transform: scale(1.05); }
.city-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(180deg, transparent, rgba(9, 32, 58, .72)); }
.city-card:nth-child(even) svg.sky { transform: scaleX(-1); }
.city-card:nth-child(3n) svg.sky { height: 58%; }
.city-card b, .city-card span { position: relative; z-index: 1; }
.city-card b { font: 700 1.25rem/1.2 var(--font-display); }
.city-card span { font-size: .85rem; opacity: .95; }
.city-card .go { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); }
.city-card:nth-child(2) { background: linear-gradient(180deg, #7FA8F5 0%, #D5E3FC 52%, #3E7FD8 53%, #1B4C96 100%); }
.city-card:nth-child(3) { background: linear-gradient(180deg, #58C0E8 0%, #C6EEF8 52%, #2AA3C9 53%, #0F6787 100%); }
.city-card:nth-child(4) { background: linear-gradient(180deg, #6DA9EE 0%, #CFE4FA 52%, #2C86D0 53%, #104F8E 100%); }
.city-card:nth-child(5) { background: linear-gradient(180deg, #62B8EE 0%, #FCE9C9 52%, #33A3CF 53%, #136489 100%); }
@media (min-width: 720px) { .city-cards { grid-template-columns: repeat(5, 1fr); } .city-card { min-height: 170px; } }
@media (max-width: 719px) { .city-card:nth-child(5) { grid-column: 1 / -1; } }

/* Инструменты */
.tools { display: grid; gap: 14px; }
.tool { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 18px; align-items: center; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #BFE5CF; color: var(--text); }
.tool-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-tint); color: var(--green); }
.tool-icon .icon { width: 26px; height: 26px; }
.tool b { display: block; font: 600 1.08rem/1.2 var(--font-display); color: var(--navy); }
.tool small { font-size: .85rem; color: var(--muted); }
.tool .go { display: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green-tint); color: var(--green-deep); }
@media (min-width: 620px) { .tools { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tools { grid-template-columns: repeat(4, 1fr); } }

/* Карточки компаний на главной */
.mcards { display: grid; gap: 14px; }
.mcard { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.mcard-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.mcard-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 0 18px 18px; }
.mcard .avatar { margin-top: -22px; border: 3px solid var(--white); box-shadow: var(--shadow); }
.mcard-top h3 { padding-top: 10px; }
.mcard-top { display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--navy); color: var(--white); font: 700 1.1rem/1 var(--font-display); }
.avatar-b { background: var(--blue); } .avatar-c { background: var(--green); } .avatar-d { background: #6B4FC8; }
.mcard h3 { margin: 0; font-size: 1.08rem; }
.mcard h3 a { color: var(--navy); text-decoration: none; }
.mcard h3 a:hover { text-decoration: underline; }
.mcard .btn { margin-top: auto; }
@media (min-width: 620px) { .mcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .mcards { grid-template-columns: repeat(4, 1fr); } }

/* Нижние блоки: гайды и призыв */
.promo { display: grid; gap: 18px; }
.promo-guides { position: relative; overflow: hidden; padding: 28px; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--white) 55%, #DDEEFC); box-shadow: var(--shadow); border: 1px solid var(--line); }
.promo-photo { display: none; }
@media (min-width: 620px) { .promo-photo { display: block; position: absolute; top: 0; right: 0; width: 42%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%); } .promo-guides > :not(picture) { position: relative; max-width: 58%; } }
.promo-guides li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.promo-guides li .icon { color: var(--green); width: 20px; height: 20px; }
.promo-guides li a { color: var(--navy); font-weight: 500; text-decoration: none; }
.promo-guides li a:hover { text-decoration: underline; }
.promo-guides .btn { margin-top: 16px; }
.promo-cta { padding: 32px 28px; border-radius: var(--r-lg); background: linear-gradient(140deg, #DFF5E8, #C9EDD9); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.promo-cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
@media (min-width: 900px) { .promo { grid-template-columns: 1.5fr 1fr; } }

/* Таблицы данных */
.data-table th, .data-table td { text-align: left; padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table th { font: 600 .78rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.data-table td:first-child { font-weight: 600; color: var(--navy); }
.data-table tr:last-child td { border-bottom: 0; }
.with-shape { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); }

/* Лента изменений */
.changes li { display: grid; grid-template-columns: 30px 1fr auto; gap: 4px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.changes li:last-child { border-bottom: 0; }
.changes a { font: 600 1.02rem/1.2 var(--font-display); color: var(--navy); text-decoration: none; }
.changes a:hover { text-decoration: underline; }
.changes p { margin: 0; font-size: .9rem; color: var(--muted); }
.changes time { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.money-note { display: grid; gap: 14px; }
.money-note h3 { margin-bottom: 6px; }
@media (min-width: 760px) { .money-note { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Каталог города ---------- */
.band .page-sign { background: none; box-shadow: none; padding: 4px 0 0; }
.page-sign h1 { font-size: clamp(2rem, 5.4vw, 3rem); margin: 0 0 8px; }
.page-sign p { margin: 0; max-width: 62ch; color: var(--navy-2); }
.page-sign-row { display: grid; gap: 16px; }
.exit-tab { display: inline-flex; align-items: center; gap: 10px; background: var(--white); color: var(--navy); border-radius: var(--r); padding: 10px 16px; font: 700 1.6rem/1 var(--font-display); white-space: nowrap; justify-self: start; box-shadow: var(--shadow); }
.exit-tab > span { color: var(--green); }
.exit-tab small { font: 500 .8rem/1.2 var(--font-body); color: var(--muted); }
@media (min-width: 900px) { .page-sign-row { grid-template-columns: 1fr auto; align-items: end; } }

.layout { display: grid; gap: 24px; padding-top: 8px; }
@media (min-width: 1000px) { .layout { grid-template-columns: 1fr 340px; align-items: start; } .layout aside { position: sticky; top: 16px; } }
.layout-flush { padding-top: 0; }
aside .card + .card, aside .sign + .card, aside .card + .sign { margin-top: 16px; }
aside .sign { padding: 24px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filter { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; font: 500 .92rem/1.2 var(--font-display); color: var(--navy); cursor: pointer; }
.filter:hover { border-color: var(--green); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filters .select { width: auto; min-height: 40px; padding: 6px 10px; margin-left: auto; }

.mover { display: grid; gap: 0; margin-bottom: 14px; padding: 0; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.mover:hover { box-shadow: var(--shadow-lg); border-color: #C9D8E6; }
.mover-body { padding: 20px 22px; }
.mover h3 { margin: 0 0 4px; font-size: 1.3rem; }
.mover h3 a { color: var(--navy); text-decoration: none; }
.mover h3 a:hover { color: var(--green-deep); text-decoration: underline; }
.mover-ids { display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: baseline; margin: 0; font-size: .92rem; color: var(--muted); }
.mover-ids .dot { color: var(--navy-2); font-weight: 500; }
.mover-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.mover-side { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 22px; background: #FAFCFE; border-top: 1px solid var(--line); }
.mover-side .rating { margin-right: auto; }
@media (min-width: 760px) {
  .mover { grid-template-columns: 1fr 250px; }
  .mover-side { flex-direction: column; align-items: stretch; justify-content: center; border-top: 0; border-left: 1px solid var(--line); }
  .mover-side .rating { margin: 0; }
  .mover-side .rating .small { white-space: nowrap; }
}
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy); text-decoration: none; font: 600 1rem/1 var(--font-display); }
.pager a:hover { border-color: var(--green); }
.pager [aria-current] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--navy); color: var(--white); padding: 12px 0; box-shadow: 0 -8px 24px rgba(15, 39, 66, .2); transform: translateY(110%); visibility: hidden; transition: transform .2s, visibility .2s; }
.compare-bar.is-on { transform: none; visibility: visible; }
.compare-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Профиль компании ---------- */
.profile-head { display: grid; gap: 20px; }
.profile-head h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin-bottom: 6px; }
.profile-ids { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 14px 0 0; }
.profile-ids .dot { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font-size: 1.05rem; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .profile-head { grid-template-columns: 1fr auto; align-items: end; } }

.verdict { display: grid; gap: 12px; margin-top: 14px; }
.verdict li { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); font: 600 1.05rem/1.2 var(--font-display); color: var(--navy); }
.verdict small { display: block; font: 400 .84rem/1.3 var(--font-body); color: var(--muted); }
.verdict .shape { width: 38px; height: 38px; }
.verdict .shape .icon { width: 20px; height: 20px; }
@media (min-width: 760px) { .verdict { grid-template-columns: repeat(3, 1fr); } }

.tabs { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; margin: 8px 0 28px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 14px 16px; font: 500 1rem/1.2 var(--font-display); color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--navy); }
.tabs a[aria-current] { color: var(--navy); border-color: var(--green); font-weight: 600; }

.block { margin-bottom: 44px; scroll-margin-top: 16px; }
.block > h2 { font-size: 1.6rem; }
.source { color: var(--muted); font-size: .88rem; }

.timeline li { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; padding-bottom: 12px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 41px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline time { position: relative; background: var(--green-tint); color: var(--green-deep); border-radius: 10px; padding: 8px 4px; text-align: center; font: 700 1.05rem/1.1 var(--font-display); }
.timeline time small { display: block; font: 500 .72rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .08em; }
.timeline .is-bad time { background: var(--red-tint); color: var(--red); }
.timeline p { margin: 0; }

.score { display: grid; gap: 20px; }
.score-main { font: 700 4rem/1 var(--font-display); color: var(--navy); }
.bars li { display: grid; grid-template-columns: 150px 1fr 32px; gap: 12px; align-items: center; padding: 5px 0; font-size: .94rem; }
.bars li b { font: 600 1rem/1 var(--font-display); color: var(--navy); text-align: right; }
.bar { height: 8px; background: #EAF0F5; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
@media (min-width: 620px) { .score { grid-template-columns: 180px 1fr; align-items: center; } }

.review { padding: 22px 0; border-top: 1px solid var(--line); }
.review-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-bottom: 8px; }
.review-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.reply { margin-top: 14px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 0 var(--r) var(--r) 0; font-size: .95rem; }
.reply p:last-child { margin: 0; }

.side-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.side-list li:last-child { border: 0; padding-bottom: 0; }
.side-list a { font-weight: 600; color: var(--navy); text-decoration: none; }
.side-list a:hover { text-decoration: underline; }

/* ---------- Форма заявки ---------- */
.form-wrap { max-width: 740px; margin: 0 auto; }
.form-head h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); max-width: 18ch; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; position: relative; margin: 22px 0 18px; }
.steps::before { content: ""; position: absolute; left: 18px; right: 12%; top: 18px; height: 2px; background: #BCD3E8; }
.steps li { counter-increment: step; position: relative; font: 500 .85rem/1.2 var(--font-display); color: var(--muted); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 8px; border-radius: 50%; background: var(--white); border: 2px solid #BCD3E8; font-weight: 700; font-size: 1rem; color: var(--muted); }
.steps li.is-done::before { background: var(--green); border-color: var(--green); color: var(--white); }
.steps li.is-now { color: var(--navy); font-weight: 600; }
.steps li.is-now::before { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: 0 0 0 5px rgba(15, 39, 66, .12); }
.steps span { display: none; }
@media (min-width: 620px) { .steps span { display: inline; } }
.form-card { padding: 28px; box-shadow: var(--shadow-lg); }
.form-card h2 { font-size: 1.6rem; }
.step-pane[hidden] { display: none; }
.step-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.pick { display: grid; grid-template-columns: 24px 1fr; gap: 6px 12px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r); margin-bottom: 10px; background: var(--white); cursor: pointer; }
.pick:has(input:checked) { border-color: var(--green); background: #F4FBF7; box-shadow: inset 0 0 0 1px var(--green); }
.pick input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green); }
.pick-name { font: 600 1.15rem/1.2 var(--font-display); color: var(--navy); }
.pick-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .9rem; color: var(--muted); }
.consent { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 18px 0; font-size: .92rem; }

/* ---------- Кабинет и админка ---------- */
.app { display: grid; min-height: 100vh; }
.app-nav { background: var(--navy); color: #B9C8D8; padding: 14px 16px; }
.app-nav .logo { color: var(--white); margin: 0 0 8px; }
.app-nav .logo em, .app-nav .logo svg { color: #4CD08A; }
.app-nav ul { display: flex; gap: 4px; overflow-x: auto; }
.app-nav li a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: #D5E0EC; text-decoration: none; font: 500 .98rem/1.2 var(--font-display); white-space: nowrap; }
.app-nav li a:hover { background: var(--navy-2); color: var(--white); }
.app-nav li a[aria-current] { background: var(--green); color: var(--white); }
.app-nav .who { display: none; }
.app-nav .who a { color: var(--white); }
.app-nav .who .dot { color: var(--white); }
.app-main { padding: 22px 16px 56px; min-width: 0; }
.app-main h1 { font-size: clamp(1.7rem, 4vw, 2.1rem); }
.app-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.app-top h1 { margin: 0; }
@media (min-width: 1000px) {
  .app { grid-template-columns: 250px 1fr; }
  .app-nav { padding: 22px 14px; display: flex; flex-direction: column; }
  .app-nav .logo { margin: 0 0 26px 8px; }
  .app-nav ul { flex-direction: column; overflow: visible; }
  .app-nav .who { display: block; margin-top: auto; padding: 16px 10px 0; border-top: 1px solid #25405F; font-size: .88rem; }
  .app-main { padding: 32px 36px 64px; }
}

.notice { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; padding: 16px 18px; background: var(--green-tint); border: 1px solid #BFE5CF; border-radius: var(--r); margin-bottom: 20px; }
.notice p { margin: 0; grid-column: 2; }
.notice .shape { grid-row: span 2; }
.notice strong { font: 600 1.05rem/1.3 var(--font-display); color: var(--navy); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 20px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow); }
.stat dt { font-size: .86rem; color: var(--muted); }
.stat dd { margin: 6px 0 0; font: 700 2rem/1.1 var(--font-display); color: var(--navy); }
.stat dd small { font: 500 .9rem/1 var(--font-body); color: var(--muted); }
.meter { height: 8px; background: #EAF0F5; border-radius: 4px; margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.lead { margin-bottom: 14px; display: grid; gap: 0; padding: 0; overflow: hidden; }
.lead-body { padding: 20px 22px; }
.lead-route { font: 600 1.25rem/1.2 var(--font-display); color: var(--navy); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 0; }
.lead-route .icon { color: var(--green); }
.lead-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .92rem; color: var(--muted); margin: 8px 0 0; }
.lead-contact { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; font-weight: 600; color: var(--navy); }
.lead-contact a { color: var(--navy); }
.lead-out { display: grid; gap: 10px; align-content: center; padding: 18px 22px; background: #FAFCFE; border-top: 1px solid var(--line); }
.lead.is-new { box-shadow: inset 5px 0 0 var(--green), var(--shadow); }
@media (min-width: 820px) { .lead { grid-template-columns: 1fr 260px; } .lead-out { border-top: 0; border-left: 1px solid var(--line); } }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.toolbar .input { max-width: 320px; min-height: 42px; padding: 6px 12px; }
.toolbar .select { width: auto; min-height: 42px; padding: 6px 10px; }
.toolbar .btn-sm { min-height: 42px; }
.table-scroll { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.grid-table { min-width: 900px; font-size: .93rem; }
.grid-table th, .grid-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid-table th { background: #F1F5F9; font: 600 .8rem/1.2 var(--font-display); color: var(--muted); }
.grid-table tbody tr:hover { background: #F7FBFF; }
.grid-table tbody tr:last-child td { border-bottom: 0; }
.grid-table td:first-child a { font-weight: 600; color: var(--navy); text-decoration: none; }
.grid-table td:first-child a:hover { text-decoration: underline; }
.table-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; font-size: .92rem; color: var(--muted); }
.table-foot .pager { margin: 0; }

/* ---------- Список макетов (design/index.html) ---------- */
.mock-list { display: grid; gap: 12px; max-width: 820px; }
.mock-list a { display: block; text-decoration: none; color: var(--text); }
.mock-list a:hover { border-color: var(--green); }
.mock-list b { font: 600 1.15rem/1.3 var(--font-display); color: var(--navy); display: block; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 28px; }
.swatch { width: 110px; font-size: .82rem; }
.swatch i { display: block; height: 60px; border-radius: var(--r); border: 1px solid var(--line); margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Админка: длинное меню с группами, карточка компании, журнал, обновления ---------- */
.app-nav .nav-label { display: none; }
@media (min-width: 1000px) {
  .app-nav-admin { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .app-nav-admin li a { padding: 8px 12px; font-size: .93rem; }
  .app-nav .nav-label { display: block; padding: 14px 12px 4px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #7F95AC; }
}
.lock { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 400; color: var(--muted); }
.lock input { accent-color: var(--green); }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.kv div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; }
.danger { border-color: #F1C4C4; background: #FFFBFB; }
.danger .btn-quiet { border-color: #E5A9A9; color: var(--red); }
.danger .btn-quiet:hover { border-color: var(--red); color: var(--red); }
.notice-warn { background: var(--amber-tint); border-color: #F0D49A; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist small { display: block; color: var(--muted); font-size: .84rem; }
.logbox { margin: 0; padding: 14px; background: var(--navy); color: #D5E0EC; border-radius: var(--r); font: 400 .82rem/1.6 ui-monospace, Consolas, monospace; overflow-x: auto; }
.diff del { color: var(--red); text-decoration: line-through; }
.diff ins { color: var(--green-deep); text-decoration: none; font-weight: 600; }
.diff del + ins::before { content: "\2192\00a0"; color: var(--muted); font-weight: 400; }
.app-main .crumbs { padding-bottom: 10px; }

/* ---------- Рабочая админка: вход, сообщения, формы (добавлено на этапе 2) ---------- */
body.guest { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(180deg, var(--sky), var(--bg)); }
.guest-box { width: 100%; max-width: 440px; }
.guest-box .logo { margin: 0 0 20px; justify-content: center; display: flex; }
.guest-box h1 { font-size: 1.6rem; }
.guest-box .card { padding: 28px; box-shadow: var(--shadow-lg); }
.form-error { background: var(--red-tint); color: var(--red); border-radius: var(--r); padding: 10px 14px; font-weight: 600; }
.form-error-inline { color: var(--red); font-size: .85rem; white-space: normal; }
.form-narrow { max-width: 720px; }
.notice-bad { background: var(--red-tint); border-color: #F1C4C4; }
.h-sub { font-size: 1.25rem; margin: 26px 0 12px; }
.h-card { font-size: 1.15rem; }
.stat dd.stat-text { font-size: 1.15rem; line-height: 1.3; padding-top: 6px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--white); text-decoration: underline; cursor: pointer; font: inherit; }
.app-nav .who form { margin: 4px 0 0; }
.muted-light { color: #8FA5BC; }
.task-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.task-head .chip { margin-left: 6px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); font-size: .93rem; }
.inline-form .input { width: 110px; min-height: 40px; padding: 6px 10px; }
.input-date { max-width: 170px; }
.cell-wrap { white-space: normal !important; min-width: 180px; max-width: 420px; overflow-wrap: anywhere; }
.logbox-tall { max-height: 70vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
code { font: 400 .88em/1.4 ui-monospace, Consolas, monospace; background: #EDF1F5; padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.checklist li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
