/* Husky IT — стиль интерфейса 1С «Такси». Логотип 1С и фирменный стиль 1С не используются. */
:root {
  --ink: #1d272f;
  --text: #2b333b;
  --muted: #6b7580;
  --line: #d4d8dc;
  --line-soft: #e6e9ec;
  --panel: #f2f3f4;
  --desk: #e9ebee;
  --yellow: #ffc20e;
  --yellow-dark: #e5a800;
  --yellow-soft: #fff4c7;
  --row-hl: #fff8dc;
  --link: #1a5aa6;
  --eye: #20b8f4;
  --sidebar: 132px;
  --topbar: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--desk); color: var(--text);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; border-bottom: 1px dashed currentColor; }
a:hover { color: #0d3f7a; }
h1, h2, h3 { margin: 0; line-height: 1.2; color: var(--ink); }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
button { font: inherit; }

/* ---------- Кнопки как в 1С ---------- */
.b1c {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border: 1px solid #b9bfc5; border-radius: 3px; background: linear-gradient(#fff, #eceef0);
  color: var(--text); font-size: 14px; font-weight: 400; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.b1c:hover { border-color: #8f979e; color: var(--text); background: linear-gradient(#fff, #e3e6e9); }
.b1c svg { width: 16px; height: 16px; }
.b1c-default { background: linear-gradient(#ffd54a, var(--yellow)); border-color: var(--yellow-dark); color: var(--ink); font-weight: 600; }
.b1c-default:hover { background: linear-gradient(#ffcd2a, #f5b800); border-color: #c99400; }
.b1c[disabled] { opacity: .6; cursor: wait; }
.b1c svg use[href="#i-wa"] { color: #1fa855; }

/* ---------- Верхняя панель ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar);
  display: flex; align-items: center; gap: 18px; padding: 0 18px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.brand { border: 0; }
.brand img { height: 48px; width: auto; }
.topbar-title { display: grid; line-height: 1.25; padding-left: 18px; border-left: 3px solid var(--yellow); margin-right: auto; }
.topbar-title b { color: var(--ink); font-size: 16px; font-weight: 700; }
.topbar-title small { color: var(--muted); font-size: 12.5px; }
.topbar-phone { color: var(--ink); font-weight: 600; border: 0; white-space: nowrap; }
.topbar-btn { height: 32px; }

/* ---------- Каркас: панель разделов + рабочий стол ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: calc(100vh - var(--topbar)); }
.sections {
  position: sticky; top: var(--topbar); align-self: start; height: calc(100vh - var(--topbar));
  display: flex; flex-direction: column; gap: 2px; padding: 10px 8px;
  background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto;
}
.sec {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px;
  border: 1px solid transparent; border-radius: 4px; color: var(--text); font-size: 13px; text-align: center;
}
.sec svg { width: 28px; height: 28px; color: var(--ink); }
.sec:hover { background: #fff; border-color: var(--line); color: var(--text); }
.sec.is-active { background: var(--yellow-soft); border-color: #f0d36a; font-weight: 600; }
.sec.is-active svg { color: var(--ink); }

.desk { padding: 16px 18px 40px; min-width: 0; display: grid; gap: 16px; align-content: start; }
.desk section[id] { scroll-margin-top: calc(var(--topbar) + 12px); }

/* ---------- Информационное сообщение ---------- */
.msg1c {
  display: block; padding: 8px 12px 8px 36px; position: relative;
  background: #fffbe6; border: 1px solid #f0dd8c; border-radius: 3px; font-size: 14px; color: #5b4a00;
}
.msg1c svg { width: 18px; height: 18px; color: var(--yellow-dark); position: absolute; left: 11px; top: 10px; }

/* ---------- Форма ---------- */
.form1c { background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.form-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px 8px; }
.form-head h2 { font-size: 21px; font-weight: 400; }
.star { width: 18px; height: 18px; color: #b0b6bc; flex: none; }
.win-btns { margin-left: auto; display: flex; gap: 12px; color: #a3a9af; font-style: normal; font-size: 14px; }
.win-btns i { font-style: normal; }
.cmdbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 14px 10px; }
.cmd-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.form-body { padding: 4px 14px 16px; }
.hint { color: var(--muted); font-size: 14px; margin-top: 10px; }

.group { border: 0; border-top: 1px solid var(--line-soft); margin: 18px 0 0; padding: 12px 0 0; min-width: 0; }
.group legend { padding: 0 8px 0 0; color: var(--muted); font-size: 14px; }

/* Начальная страница */
.home { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.home h1 { font-size: 34px; font-weight: 700; }
.home h1::after { content: ""; display: block; width: 56px; height: 5px; background: var(--yellow); border-radius: 3px; margin-top: 12px; }
.home .lead { font-size: 18px; color: var(--muted); margin: 10px 0 16px; }
.infopanel { margin: 0; border: 1px solid var(--line); border-radius: 3px; }
.infopanel > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
.infopanel > div:last-child { border-bottom: 0; }
.infopanel dt { color: var(--muted); }
.infopanel dd { margin: 0; font-weight: 600; color: var(--ink); }
.marquee-group a { border: 0; opacity: .85; }
.marquee-group a:hover { opacity: 1; }
.marquee-group img { height: 24px; width: auto; }
.marquee-group img[alt="Apero"] { height: 30px; }
.marquee-group img[alt="Хмель"] { height: 34px; }
.marquee-group img[alt="Home Solution"] { height: 32px; }
.marquee-group img[alt="Space Office"] { height: 16px; }
.marquee-group img[alt="FBSM"] { height: 20px; }
.marquee-group img[alt="Jana Technologies"] { height: 28px; }
.marquee-group .logo-dark { filter: brightness(0); }

/* Поиск в командной панели */
.search1c {
  margin-left: auto; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px;
  border: 1px solid #b9bfc5; border-radius: 3px; background: #fff; width: 240px;
}
.search1c svg { width: 16px; height: 16px; color: var(--muted); }
.search1c input { border: 0; outline: 0; font: inherit; font-size: 14px; width: 100%; background: transparent; }
.search1c:focus-within { border-color: var(--yellow-dark); box-shadow: 0 0 0 2px var(--yellow-soft); }

/* ---------- Табличный список ---------- */
.grid1c-wrap { border: 1px solid var(--line); border-radius: 3px; overflow-x: auto; }
.grid1c { width: 100%; border-collapse: collapse; font-size: 14px; }
.grid1c th {
  text-align: left; font-weight: 400; color: var(--muted); background: var(--panel);
  padding: 7px 10px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line-soft); white-space: nowrap;
}
.grid1c td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); vertical-align: top; }
.grid1c th:last-child, .grid1c td:last-child { border-right: 0; }
.grid1c tbody tr:last-child td { border-bottom: 0; }
.grid1c tbody tr:hover td { background: #f7f8f9; }
.grid1c tr.row-hl td { background: var(--row-hl); }
.col-n { width: 38px; color: var(--muted); text-align: right; }
.col-name { font-weight: 600; color: var(--ink); white-space: nowrap; }
.col-name svg { width: 16px; height: 16px; color: #e8b84a; vertical-align: -3px; margin-right: 6px; }
.col-act { width: 90px; text-align: right; }
.col-r { text-align: right; white-space: nowrap; }
.grid1c tr[hidden] { display: none; }

/* ---------- Модули ---------- */
.widget { display: grid; grid-template-columns: 270px 1fr; border: 1px solid var(--line); border-radius: 3px; margin-top: 12px; }
.wtabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--panel); padding: 4px 0; }
.wtab {
  display: flex; align-items: center; gap: 9px; text-align: left; padding: 8px 12px;
  border: 0; border-left: 3px solid transparent; background: none; color: var(--text); font-size: 14px; cursor: pointer;
}
.wtab svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.wtab:hover { background: #fff; }
.wtab[aria-selected="true"] { background: var(--yellow-soft); border-left-color: var(--yellow); font-weight: 600; }
.wtab[aria-selected="true"] svg { color: var(--ink); }
.wtab:focus-visible { outline: 2px solid var(--yellow-dark); outline-offset: -2px; }
.wpanels { padding: 18px 22px 22px; }
.wpanel[hidden] { display: none; }
.wpanel:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; min-height: 100%; }
.wpanel-pic .ill { width: 100%; }
.wpanel h3 { font-size: 20px; margin-bottom: 6px; }
.wpanel > div > p { color: var(--muted); }
.wpanel ul { margin: 12px 0 18px; padding-left: 20px; }
.wpanel li { margin-bottom: 6px; }
.wpanel li::marker { color: var(--yellow-dark); }

/* ---------- Карточки работ ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card1c { border: 1px solid var(--line); border-radius: 3px; padding: 12px; }
.card-pic { margin: -2px -2px 12px; }
.card1c h3 { font-size: 16px; margin-bottom: 6px; }
.card1c p { color: var(--muted); font-size: 14px; }
.card1c { display: flex; flex-direction: column; }
.card1c > a { margin-top: auto; padding-top: 10px; align-self: flex-start; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.case-tags span { padding: 2px 8px; border-radius: 3px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.steps3 { list-style: none; margin: 4px 0 0; padding: 0; position: relative; flex: 1; display: flex; flex-direction: column; }
.steps3 .s-did { flex: 1; }
.steps3 li:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.steps3 li.s-did::before { background: linear-gradient(var(--ink), var(--yellow)); }
.steps3 li { position: relative; padding: 0 0 14px 36px; }
.steps3 li:last-child { padding-bottom: 0; }
.s-dot {
  position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--line);
}
.s-did .s-dot { border-color: var(--ink); }
.s-did .s-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.s-was .s-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c3c9cf; }
.s-res .s-dot { background: var(--yellow); border-color: var(--yellow-dark); }
.s-res .s-dot svg { width: 13px; height: 13px; color: var(--ink); }
.s-lbl { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 24px; }
.steps3 p { margin: 0; font-size: 14px; color: var(--text); }
.s-was p { color: var(--muted); }
.s-res { margin-top: 2px; }
.s-res .s-lbl { color: var(--ink); }
.s-res p {
  margin-top: 4px; padding: 10px 12px; border-radius: 6px; background: var(--yellow-soft);
  font-weight: 600; color: var(--ink); font-size: 14.5px; line-height: 1.45;
}

.review { margin: 0 0 16px; padding: 18px 22px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 4px; }
.review blockquote { margin: 0 0 12px; font-size: 17px; line-height: 1.55; color: var(--ink); }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.review figcaption b { display: block; color: var(--ink); font-size: 14px; }
.review figcaption img { height: 26px; width: auto; }

/* ---------- Поля карточки ---------- */
.about { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: start; }
.about-pic { border: 1px solid var(--line); border-radius: 4px; }
.fields { display: grid; gap: 8px; }
.f { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; }
.f-top { align-items: start; }
.f-top .f-l { padding-top: 6px; }
.f-l { color: var(--muted); }
.f-v { color: var(--ink); }
.about .f { align-items: start; }

/* ---------- Вопросы — дерево ---------- */
.tree { border: 1px solid var(--line); border-radius: 3px; }
.tree-row { border-bottom: 1px solid var(--line-soft); }
.tree-row:last-child { border-bottom: 0; }
.tree-row summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-weight: 600; color: var(--ink); }
.tree-row summary::-webkit-details-marker { display: none; }
.tree-row summary:hover { background: #f7f8f9; }
.tree-row[open] summary { background: var(--row-hl); }
.tw { width: 0; height: 0; border-left: 6px solid var(--muted); border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .15s; flex: none; }
.tree-row[open] .tw { transform: rotate(90deg); }
.tree-row summary svg { width: 16px; height: 16px; color: var(--eye); flex: none; }
.tree-row p { padding: 4px 12px 12px 48px; color: var(--muted); }

/* ---------- Заявка ---------- */
.contact { display: grid; grid-template-columns: 1fr 260px; gap: 24px; padding-top: 8px; align-items: start; }
.contact input, .contact select, .contact textarea {
  width: 100%; height: 30px; padding: 0 8px; font: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid #b9bfc5; border-radius: 2px; background: #fff;
}
.contact textarea { height: 96px; padding: 6px 8px; resize: vertical; }
.contact input:disabled { background: var(--panel); color: var(--muted); }
.contact input:focus, .contact select:focus, .contact textarea:focus { outline: 0; border-color: var(--yellow-dark); box-shadow: 0 0 0 2px var(--yellow-soft); }
.contact-side { display: grid; gap: 10px; align-content: start; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.cs-title { margin: 0 0 2px; font-size: 13px; color: var(--muted); }
.cs-card {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.cs-card:hover { color: var(--ink); border-color: var(--yellow-dark); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.cs-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow-soft); flex: none; }
.cs-ic svg { width: 19px; height: 19px; color: var(--ink); }
.cs-card small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.cs-card b { display: block; font-size: 16px; line-height: 1.3; white-space: nowrap; }
.cs-wa .cs-ic { background: #25d366; }
.cs-wa .cs-ic svg { color: #fff; }
.cs-wa:hover { border-color: #25d366; }
.cs-note { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.cs-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--yellow-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 8px 10px; border-radius: 3px; font-size: 14px; }
.form-status a { color: inherit; }
.form-status.ok { display: block; background: #e9f7ee; color: #146c36; border: 1px solid #bfe5cc; }
.form-status.err { display: block; background: #fdeeee; color: #a42318; border: 1px solid #f3c3c0; }


/* ---------- Всплывающее окно заявки (как форма 1С) ---------- */
.dlg1c {
  width: min(640px, calc(100vw - 40px)); max-height: calc(100vh - 40px); padding: 0;
  border: 1px solid #b9bfc5; border-radius: 4px; background: #fff; color: var(--text);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.dlg1c[open] { animation: dlg-in .16s ease-out; }
.dlg1c::backdrop { background: rgba(29,39,47,.45); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.dlg-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 8px 14px; }
.dlg-head h2 { font-size: 20px; font-weight: 400; margin-right: auto; }
.dlg-x {
  width: 30px; height: 30px; border: 0; border-radius: 3px; background: none; color: #8a939b;
  font-size: 16px; cursor: pointer;
}
.dlg-x:hover { background: #e5484d; color: #fff; }
.dlg1c .cmdbar { padding: 0 14px 10px; }
button.b1c { font-family: inherit; }
.contact-dlg { grid-template-columns: 1fr; padding-top: 4px; }
.contact-dlg .f { grid-template-columns: 120px 1fr; }
@media (prefers-reduced-motion: reduce) { .dlg1c[open] { animation: none; } }

/* ---------- Строка состояния ---------- */
.statusbar {
  display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 6px 18px; font-size: 13px;
  background: var(--ink); color: #b7c0c8;
}
.statusbar a { color: #fff; border: 0; }
.statusbar span:last-child { margin-left: auto; }

/* ---------- WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 38px; z-index: 40; border: 0;
  width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.wa-float:hover { color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* Иллюстрации */
.ill { width: 100%; height: auto; display: block; }
.ill * { transform-box: fill-box; }
.a-float { animation: a-float 3.2s ease-in-out infinite; }
.a-flow { stroke-dasharray: 6 6; animation: a-flow 1s linear infinite; }
.a-pop { transform-origin: center; animation: a-pop 4s ease-in-out infinite; }
.a-spin { transform-origin: center; animation: a-spin 6s linear infinite; }
.a-spin-r { transform-origin: center; animation: a-spin 4s linear infinite reverse; }
.a-grow { transform-origin: bottom; animation: a-grow 3s ease-in-out infinite; }
.a-line { animation: a-line 3.6s ease-in-out infinite; }
.a-pulse { animation: a-pulse 1.6s ease-in-out infinite; }
.a-scan { animation: a-scan 2.2s ease-in-out infinite; }
.a-belt { animation: a-belt 3s linear infinite; }
.a-swap1 { animation: a-swap1 4s ease-in-out infinite; }
.a-swap2 { animation: a-swap2 4s ease-in-out infinite; }
.a-draw { stroke-dasharray: 70; animation: a-draw 3s ease-in-out infinite; }
.a-shrink { transform-origin: left; animation: a-shrink 4s ease-in-out infinite; }
.a-coin { animation: a-coin 3s linear infinite; opacity: 0; }
.a-cell { animation: a-cell 4.5s ease-in-out infinite; }
.a-plane { animation: a-plane 3.5s ease-in-out infinite; }
.a-press { transform-origin: center; animation: a-press 3.6s ease-in-out infinite; }
.a-scan2 { animation: a-scan2 2s ease-in-out infinite; }

@keyframes a-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes a-flow { to { stroke-dashoffset: -24; } }
@keyframes a-pop { 0%, 20% { transform: scale(0); opacity: 0; } 32%, 85% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes a-spin { to { transform: rotate(360deg); } }
@keyframes a-grow { 0% { transform: scaleY(.25); } 45%, 100% { transform: scaleY(1); } }
@keyframes a-line { 0%, 10% { opacity: 0; transform: translateX(-8px); } 25%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes a-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes a-scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(46px); } }
@keyframes a-belt { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(52px); opacity: 0; } }
@keyframes a-swap1 { 0%, 40% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes a-swap2 { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes a-draw { 0% { stroke-dashoffset: 70; } 50%, 100% { stroke-dashoffset: 0; } }
@keyframes a-shrink { 0% { transform: scaleX(1); fill: #25b35a; } 60% { transform: scaleX(.35); fill: #f0a020; } 80%, 100% { transform: scaleX(.12); fill: #e5484d; } }
@keyframes a-coin { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(-64px); opacity: 0; } }
@keyframes a-press { 0%, 70%, 100% { transform: scale(1); filter: none; } 76% { transform: scale(.92); filter: brightness(.9); } 82% { transform: scale(1); } }
@keyframes a-scan2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(28px); } }
@keyframes a-cell { 0%, 10% { fill: #eef1f4; } 25%, 85% { fill: #ffc20e; } 100% { fill: #eef1f4; } }
@keyframes a-plane { 0% { transform: translate(-60px, 40px); opacity: 0; } 20% { opacity: 1; } 70% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(14px, -8px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ill * { animation: none !important; opacity: 1 !important; }
  .ill .a-swap2 { opacity: 0 !important; }
}


/* ---------- Первый экран ---------- */
.hero1c { border-radius: 6px; overflow: hidden; background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.hero-main {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; padding: 44px 40px 34px;
  background:
    radial-gradient(520px 320px at 92% 0%, rgba(255,194,14,.16), transparent 70%),
    linear-gradient(135deg, #1d272f, #243039);
}
.hero-kicker { display: inline-block; margin: 0 0 16px; padding: 5px 12px; border: 1px solid rgba(255,194,14,.45); border-radius: 999px; color: var(--yellow); font-size: 14px; font-weight: 600; }
.hero1c h1 { color: #fff; font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; line-height: 1.08; text-transform: uppercase; letter-spacing: -.01em; }
.hero1c h1 span { color: var(--yellow); }
.hero1c h1.h1-split { display: flex; align-items: center; gap: 22px; text-transform: none; letter-spacing: -.02em; }
.h1-big {
  color: var(--yellow); font-size: clamp(76px, 8vw, 118px); font-weight: 800; line-height: .85; letter-spacing: -.04em;
}
.hero1c h1 .h1-rest { color: #fff; font-size: clamp(28px, 3vw, 42px); font-weight: 700; line-height: 1.12; padding-left: 22px; border-left: 3px solid rgba(255,194,14,.55); }
.hero-lead { color: #c4ccd3; font-size: 16px; max-width: 560px; margin: 18px 0 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-cta .pill { font-size: 14px; padding-left: 20px; gap: 10px; }
.hero-cta .pill-ghost { padding: 0 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 8px 0 24px;
  border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .02em;
}
.pill:hover { color: var(--ink); background: #ffcd33; }
.t-short { display: none; }
@media (max-width: 600px) { .t-short { display: inline; } }
.pill-arrow { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.pill-arrow svg { width: 18px; height: 18px; transition: transform .15s; }
.pill:hover .pill-arrow svg { transform: translateX(3px); }
.pill-ghost { padding: 0 22px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); text-transform: none; }
.pill-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.pill-ghost svg { width: 18px; height: 18px; color: #25d366; }

/* Окно «Наши клиенты» */
.clients-win { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); color: var(--ink); }
.code-head { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px; background: #eceef0; border-bottom: 1px solid #d4d8dc; font-size: 13px; color: #4a535b; }
.dots { display: flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #c9ced3; }
.dots i:first-child { background: var(--yellow); }
.ctypes { list-style: none; margin: 0; padding: 6px 0; }
.ctypes li {
  position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
  padding: 9px 16px; border-bottom: 1px solid var(--line-soft);
}
.ctypes li:last-child { border-bottom: 0; }
.ctypes li::before {
  content: ""; position: absolute; inset: 0; background: var(--row-hl); border-left: 3px solid var(--yellow);
  opacity: 0; animation: ct-hl 12s infinite; animation-delay: calc(var(--i) * 2s);
}
.ctypes li > * { position: relative; }
.ct-ic { width: 40px; height: 40px; border-radius: 8px; background: var(--yellow-soft); display: grid; place-items: center; }
.ct-ic svg { width: 22px; height: 22px; color: var(--ink); }
.ct-txt b { display: block; font-size: 15px; line-height: 1.25; }
.ct-txt small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.ctypes-more { margin: 0; padding: 10px 16px 14px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line-soft); }
@keyframes ct-hl { 0% { opacity: 0; } 1.5%, 14% { opacity: 1; } 16%, 100% { opacity: 0; } }

.hero-stats { list-style: none; margin: 0; padding: 0 40px 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #243039; }
.hero-stats li { padding: 16px 18px 0 0; border-top: 1px solid rgba(255,255,255,.14); }
.hero-stats b { display: block; color: var(--yellow); font-size: 28px; font-weight: 800; line-height: 1.1; }
.hero-stats span { color: #aeb7bf; font-size: 13px; }
.hero-clients { display: flex; align-items: center; gap: 20px; padding: 16px 40px; background: #fff; color: var(--muted); font-size: 13px; }
.hero-clients > span { white-space: nowrap; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }


@media (prefers-reduced-motion: reduce) {
  .ctypes li::before { animation: none; }
  .ctypes li:first-child::before { opacity: 1; }
}


/* Бегущая строка логотипов */
.marquee {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 48px; padding-right: 48px; flex: none; }
.marquee-group a { flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee-group { flex-wrap: wrap; gap: 14px 28px; }
  .marquee-group[aria-hidden="true"] { display: none; }
}

/* ---------- Мобильное меню разделов ---------- */
.menu-btn { display: none; }
.sections-title { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .home { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .wpanel:not([hidden]) { grid-template-columns: 1fr; }
  .wpanel-pic { order: -1; max-width: 560px; }
}
@media (max-width: 860px) {
  :root { --topbar: 56px; }
  .topbar-title { display: none; }
  .brand { margin-right: auto; }
  .brand img { height: 42px; }
  .shell { grid-template-columns: 1fr; }
  .widget { grid-template-columns: 1fr; }
  .wtabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0; }
  .wtab { flex: none; white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .wtab[aria-selected="true"] { border-bottom-color: var(--yellow); }
  .contact { grid-template-columns: 1fr; }

  .search1c { width: 100%; margin-left: 0; }
}
@media (max-width: 600px) {
  .topbar { padding: 0 12px; gap: 10px; }
  .topbar-phone { display: none; }
  .desk { padding: 10px 8px 30px; gap: 10px; }
  .form-head { padding: 8px 10px 6px; }
  .form-head h2 { font-size: 18px; }
  .win-btns { display: none; }
  .cmd-sep { display: none; }
  .cmdbar { padding: 0 10px 8px; }
  .form-body { padding: 4px 10px 12px; }
  .home h1 { font-size: 27px; }
  .infopanel > div { grid-template-columns: 1fr; gap: 0; }
  .cards { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-pic { width: 90px; }
  .f { grid-template-columns: 1fr; gap: 3px; }
  .f-top .f-l { padding-top: 0; }
  .grid1c th:nth-child(3), .grid1c td:nth-child(3) { display: none; }
  .grid1c .col-name { white-space: normal; }
  .wpanels { padding: 14px; }
  .wpanel .b1c { width: 100%; justify-content: center; }
  .statusbar span:nth-child(2) { display: none; }
}

@media (max-width: 1100px) {
  .hero-main { grid-template-columns: 1fr; padding: 34px 28px 26px; }
  .hero-stats { padding: 0 28px 24px; }
  .hero-clients { padding: 14px 28px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 860px) {
  .topbar .topbar-btn { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
    border: 1px solid #f0d36a; border-radius: 6px; background: var(--yellow-soft); color: var(--ink);
    font-weight: 600; font-size: 14px; cursor: pointer;
  }
  .menu-btn svg { width: 18px; height: 18px; }
  .menu-btn .chev { width: 16px; height: 16px; transition: transform .2s; }
  .menu-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .sections {
    position: fixed; top: var(--topbar); left: 0; right: 0; bottom: auto; z-index: 35; height: auto; max-height: calc(100vh - var(--topbar));
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px; overflow-y: auto;
    background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0,0,0,.18);
    transform: translateY(-110%); visibility: hidden; transition: transform .22s ease, visibility .22s;
  }
  body.menu-open .sections { transform: none; visibility: visible; }
  body.menu-open::after { content: ""; position: fixed; inset: var(--topbar) 0 0 0; background: rgba(29,39,47,.35); z-index: 34; }
  .sections-title { display: block; grid-column: 1 / -1; margin: 0 2px 2px; color: var(--muted); font-size: 13px; }
  .sec { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 14px 12px; background: #fff; border-color: var(--line); font-size: 15px; text-align: left; }
  .sec svg { width: 22px; height: 22px; }
  .desk section[id] { scroll-margin-top: calc(var(--topbar) + 10px); }
}
@media (max-width: 600px) {
  .hero-main { padding: 26px 18px 20px; gap: 24px; }
  .hero1c h1 { font-size: 28px; }
  .hero-lead { font-size: 15px; }
  .pill { height: 48px; font-size: 14px; }
  .hero-cta .pill { width: 100%; justify-content: space-between; }
  .hero-cta .pill-ghost { justify-content: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; padding: 0 18px 18px; gap: 0 14px; }
  .hero-stats b { font-size: 22px; }
  .hero-clients { padding: 12px 18px; }
  .menu-btn .menu-cur { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 600px) {
  .ctypes li { padding: 8px 12px; grid-template-columns: 34px 1fr; gap: 10px; }
  .ct-ic { width: 34px; height: 34px; }
  .ct-ic svg { width: 19px; height: 19px; }
  .ct-txt b { font-size: 14px; }
}
@media (max-width: 1100px) {
  .hero-clients .marquee { width: 100%; }
}
@media (max-width: 600px) {
  .marquee-track { animation-duration: 24s; }
  .marquee-group { gap: 34px; padding-right: 34px; }
}

/* ---------- Широкие мониторы: интерфейс по центру, как окно программы ---------- */
@media (min-width: 1700px) {
  :root { --shell: 1640px; }
  .topbar { padding-inline: max(18px, calc((100% - var(--shell)) / 2 + 18px)); }
  .shell { max-width: var(--shell); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--desk); }
  .statusbar { padding-inline: max(18px, calc((100% - var(--shell)) / 2 + 18px)); }
  body { background: #dfe2e6; }
  .desk { padding: 20px 24px 48px; }
}
/* 27" и больше (2560 px): увеличиваем весь интерфейс, чтобы он не выглядел мелким */
@media (min-width: 2200px) { html { zoom: 1.25; } }
@media (min-width: 3000px) { html { zoom: 1.5; } }
@media (max-width: 600px) {
  .hero1c h1.h1-split { gap: 14px; }
  .h1-big { font-size: 64px; }
  .hero1c h1 .h1-rest { font-size: 24px; padding-left: 14px; }
}
@media (max-width: 600px) {
  .hero-cta .pill { font-size: 14px; }
  .t-long { display: none; }
}

/* ---------- Карусели на телефоне (модули, примеры работ) ---------- */
.car { position: relative; min-width: 0; }
.desk > *, .form1c, .form-body, .widget { min-width: 0; }
.car-btn, .car-count, .ctabs { display: none; }
@media (max-width: 860px) {
  .widget { border: 0; display: block; }
  .widget .wtabs {
    display: flex; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -10px 12px; padding: 0 10px;
    border: 1px solid var(--line); border-width: 1px 0; background: var(--panel);
  }
  .widget .wtabs::-webkit-scrollbar { display: none; }
  .widget .wtab { flex: none; white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; padding: 11px 12px; }
  .widget .wtab[aria-selected="true"] { border-bottom-color: var(--yellow); }
  .wpanels { padding: 0; }
  .ctabs {
    display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -10px 12px; padding: 0 10px;
    border: 1px solid var(--line); border-width: 1px 0; background: var(--panel);
  }
  .ctabs::-webkit-scrollbar { display: none; }
  .ctab {
    flex: none; white-space: nowrap; padding: 11px 12px; border: 0; border-bottom: 3px solid transparent;
    background: none; color: var(--text); font-size: 14px; cursor: pointer;
  }
  .ctab[aria-selected="true"] { background: var(--yellow-soft); border-bottom-color: var(--yellow); font-weight: 600; }
  [data-carousel] {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 2px 6% 4px; margin: 0 -10px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  [data-carousel]::-webkit-scrollbar { display: none; }
  [data-carousel] > * { flex: 0 0 88%; scroll-snap-align: center; min-width: 0; }
  .wpanel[hidden], .wpanel:not([hidden]) {
    display: flex; flex-direction: column; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
  }
  .wpanel-pic { order: -1; max-width: none; }
  .wpanel .wpanel-text { display: flex; flex-direction: column; flex: 1; }
  .wpanel .wpanel-text .b1c { margin-top: auto; }
  .wpanel ul { margin-bottom: 14px; }
  .cards { display: flex; }
  .car-btn {
    display: grid; place-items: center; position: absolute; top: 120px; z-index: 2;
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
    box-shadow: 0 4px 12px rgba(0,0,0,.15); cursor: pointer;
  }
  .car-btn svg { width: 20px; height: 20px; }
  .car-btn:disabled { opacity: 0; pointer-events: none; }
  .car-prev { left: -4px; }
  .car-next { right: -4px; }
  .car-count {
    display: block; width: max-content; margin: 10px auto 0; padding: 3px 12px; border-radius: 999px;
    background: var(--yellow-soft); border: 1px solid #f0d36a; font-size: 13px; font-weight: 600; color: var(--ink);
  }
}

/* ---------- Отбор по типу бизнеса (плашка как в 1С) ---------- */
.is-out { display: none !important; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0 12px; }
.filter-bar[hidden] { display: none; }
.fchip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px 0 10px;
  background: #fbe9a8; border: 1px solid #e8c95a; border-radius: 3px; color: var(--ink); font-size: 14px;
  animation: fchip-in .2s ease-out;
}
.fchip-k { color: #6b5a1c; }
.fchip b { font-weight: 600; }
.fchip-x {
  width: 20px; height: 20px; margin-left: 2px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: #8a7a3e; color: #fff;
}
.fchip-x:hover { background: var(--ink); }
.fchip-x svg { width: 14px; height: 14px; }
.fnote { color: var(--muted); font-size: 13px; }
@keyframes fchip-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* строки «Наших клиентов» — кликабельные */
.ctypes li[data-biz] { cursor: pointer; transition: background .15s; }
.ctypes li[data-biz]:hover { background: #fafbfc; }
.ctypes li[data-biz]:focus-visible { outline: 2px solid var(--yellow-dark); outline-offset: -2px; }
.ct-go { width: 16px; height: 16px; color: #b5bcc3; opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; position: relative; }
.ctypes li { grid-template-columns: 40px 1fr 16px; }
.ctypes li[data-biz]:hover .ct-go, .ctypes li.is-picked .ct-go { opacity: 1; transform: none; color: var(--ink); }
.ctypes li.is-picked { background: #fbe9a8; }
.ctypes li.is-picked::before { opacity: 0 !important; }
.code-hint { margin-left: auto; color: #8a939b; font-size: 12px; }
@media (max-width: 600px) {
  .ctypes li { grid-template-columns: 34px 1fr 16px; }
  .ct-go { opacity: 1; transform: none; }
  .code-hint { display: none; }
}

/* Отбор подсвечивает подходящее и приглушает остальное */
.wtab.is-dim, .ctab.is-dim { opacity: .5; }
.wtab.is-dim:hover, .ctab.is-dim:hover, .wtab.is-dim[aria-selected="true"] { opacity: 1; }
.wtab.is-match, .ctab.is-match { position: relative; }
.wtab.is-match::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft);
}
.ctab.is-match::before { content: "●"; color: var(--yellow-dark); font-size: 9px; margin-right: 5px; vertical-align: 2px; }
.wpanel.is-match h3::after, .card1c.is-match::after {
  content: "подходит"; display: inline-block; margin-left: 8px; padding: 1px 8px; vertical-align: 3px;
  border-radius: 3px; background: #fbe9a8; border: 1px solid #e8c95a; color: #6b5a1c; font-size: 12px; font-weight: 600;
}
.card1c.is-match { border-color: #e8c95a; box-shadow: 0 0 0 3px var(--yellow-soft); }
.card1c { position: relative; }
.card1c.is-match::after { position: absolute; top: 18px; right: 18px; margin: 0; }
.card1c.is-dim { opacity: .55; transition: opacity .2s; }
.card1c.is-dim:hover { opacity: 1; }
@media (max-width: 860px) {
  .wpanel.is-dim { opacity: .6; }
  .wtab.is-match::after { position: static; display: inline-block; margin: 0 0 0 6px; vertical-align: 1px; }
}

/* Шапка на телефоне закреплена жёстко: sticky в мобильных браузерах дёргается при прокрутке */
@media (max-width: 860px) {
  .topbar { position: fixed; top: 0; left: 0; right: 0; transform: translateZ(0); }
  body { padding-top: var(--topbar); }
}

/* ---------- Иконки звонка и WhatsApp в шапке (телефон) ---------- */
.tb-ic { display: none; }
@media (max-width: 860px) {
  .tb-ic {
    display: grid; place-items: center; width: 38px; height: 38px; flex: none;
    border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink);
  }
  .tb-ic svg { width: 18px; height: 18px; }
  .tb-wa { background: #25d366; border-color: #25d366; color: #fff; }
  .tb-wa:hover { color: #fff; }
  .wa-float { display: none; }
}
@media (max-width: 480px) {
  .menu-btn .menu-cur { display: none; }
  .menu-btn { padding: 0 10px; gap: 6px; }
}

/* ---------- Цифры первого экрана на телефоне — плитками ---------- */
@media (max-width: 600px) {
  .hero-stats { gap: 8px; padding: 0 18px 18px; }
  .hero-stats li { padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: rgba(255,255,255,.05); }
}

/* ---------- Кнопки в карточке модуля ---------- */
.wpanel-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; border: 0; }
.more-link svg { width: 14px; height: 14px; transition: transform .15s; }
.more-link:hover svg { transform: translateX(3px); }
@media (max-width: 860px) {
  .wpanel .wpanel-act { margin-top: auto; }
  .wpanel .wpanel-text .b1c { margin-top: 0; }
}
@media (max-width: 600px) {
  .wpanel-act { flex-direction: column; align-items: stretch; text-align: center; }
  .more-link { justify-content: center; }
}

/* ---------- Страница модуля ---------- */
.form-head h1 { font-size: 22px; font-weight: 400; }
.nav-back {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1px solid #b9bfc5; border-radius: 3px;
  background: linear-gradient(#fff, #eceef0); color: var(--ink);
}
.nav-back:hover { border-color: #8f979e; color: var(--ink); }
.nav-back svg { width: 15px; height: 15px; }
.mod-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
.mod-lead { font-size: 17px; color: var(--ink); }
.mod-facts, .incl { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.mod-facts li, .incl li { display: flex; gap: 10px; align-items: flex-start; }
.mod-facts svg, .incl svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--yellow-dark); }
.incl { margin-top: 2px; }
.nsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.nsteps li { padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.sn {
  display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 14px;
}
.nsteps b { display: block; color: var(--ink); margin-bottom: 2px; }
.nsteps p { margin: 0; color: var(--muted); font-size: 14px; }
.mod-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.mod-pair-1 { grid-template-columns: 1fr; }
.mod-pair > .form1c { min-width: 0; }
.case-title { font-size: 16px; margin-bottom: 6px; }
.mod-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 3px; background: var(--panel); color: var(--text); font-size: 14px;
}
.mod-chip:hover { background: var(--yellow-soft); border-color: #f0d36a; color: var(--ink); }
.mod-chip svg { width: 16px; height: 16px; color: var(--muted); }
@media (max-width: 1100px) {
  .mod-top { grid-template-columns: 1fr; }
  .mod-pic { order: -1; max-width: 560px; }
}
@media (max-width: 860px) {
  .mod-pair { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .form-head h1 { font-size: 19px; }
  .nsteps { grid-template-columns: 1fr; }
  .nsteps li { display: grid; grid-template-columns: 28px 1fr; gap: 0 12px; }
  .sn { margin: 0; }
  .mod-chip { height: auto; min-height: 34px; padding: 6px 10px; }
}

/* ---------- Услуги: иерархический список, группы раскрываются как в 1С ---------- */
.svc-tree { border: 1px solid var(--line); border-radius: 3px; font-size: 14px; }
.svc-head, .svc-grp > summary, .svc-item { display: grid; align-items: center; gap: 0 12px; }
.svc-head {
  grid-template-columns: 1fr 150px 90px; padding: 7px 12px; background: var(--panel);
  border-bottom: 1px solid var(--line); color: var(--muted);
}
.svc-head span:nth-child(2) { text-align: right; }
.svc-grp { border-bottom: 1px solid var(--line-soft); }
.svc-grp:last-of-type { border-bottom: 0; }
.svc-grp > summary {
  grid-template-columns: 12px 18px auto 1fr 150px 90px; padding: 9px 12px; cursor: pointer; list-style: none;
  color: var(--ink); font-weight: 600;
}
.svc-grp > summary::-webkit-details-marker { display: none; }
.svc-grp > summary:hover { background: #f7f8f9; }
.svc-grp[open] > summary { background: var(--row-hl); border-bottom: 1px solid var(--line-soft); }
.svc-grp[open] > summary .tw { transform: rotate(90deg); }
.svc-grp > summary:focus-visible { outline: 2px solid var(--yellow-dark); outline-offset: -2px; }
.sg-ic { width: 17px; height: 17px; color: #e8b84a; }
.sg-cnt { color: var(--muted); font-weight: 400; font-size: 13px; }
.sg-price { grid-column: 5; text-align: right; white-space: nowrap; }
.svc-items { list-style: none; margin: 0; padding: 0; }
.svc-item {
  grid-template-columns: 16px 200px 1fr 150px 90px; padding: 8px 12px 8px 42px;
  border-bottom: 1px solid var(--line-soft); position: relative;
}
.svc-item:last-child { border-bottom: 0; }
.svc-item:hover { background: #f7f8f9; }
/* линии дерева */
.svc-item::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; border-left: 1px dotted #b9bfc5; }
.svc-item:last-child::before { bottom: 50%; }
.svc-item::after { content: ""; position: absolute; left: 18px; width: 16px; top: 50%; border-top: 1px dotted #b9bfc5; }
.si-ic { width: 16px; height: 16px; color: var(--eye); }
.si-name { color: var(--ink); font-weight: 600; }
.si-dsc { color: var(--muted); }
.si-price { text-align: right; white-space: nowrap; font-weight: 600; color: var(--ink); }
.si-act { justify-self: end; }
.svc-item[hidden], .svc-grp[hidden] { display: none; }
.svc-empty { margin: 0; padding: 12px; color: var(--muted); }
.svc-grp[open] .svc-items { animation: svc-open .18s ease-out; }
@keyframes svc-open { from { transform: translateY(-4px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .svc-grp[open] .svc-items { animation: none; } }
@media (max-width: 1100px) {
  .svc-item { grid-template-columns: 16px 170px 1fr 130px 80px; }
  .svc-head { grid-template-columns: 1fr 130px 80px; }
  .svc-grp > summary { grid-template-columns: 12px 18px auto 1fr 130px 80px; }
}
@media (max-width: 760px) {
  .svc-head { display: none; }
  .svc-grp > summary { grid-template-columns: 12px 18px 1fr auto; gap: 2px 10px; }
  .sg-cnt { grid-column: 3; grid-row: 2; }
  .sg-price { grid-column: 4; grid-row: 1 / span 2; }
  .svc-item { grid-template-columns: 16px 1fr auto; gap: 2px 10px; padding: 10px 12px 10px 38px; }
  .svc-item::before, .svc-item::after { left: 17px; }
  .svc-item::after { top: 20px; }
  .svc-item:last-child::before { bottom: auto; height: 20px; }
  .si-ic { grid-row: 1; }
  .si-name { grid-column: 2; }
  .si-price { grid-column: 3; grid-row: 1; }
  .si-dsc { grid-column: 2 / -1; grid-row: 2; font-size: 13.5px; }
  .si-act { grid-column: 2 / -1; grid-row: 3; justify-self: end; font-size: 13.5px; }
}

/* ---------- Панель разделов — светло-жёлтая, как в классическом «Такси» ---------- */
.sections { background: #fbf1cc; border-right-color: #ead9a0; }
.sec:hover { background: rgba(255,255,255,.65); border-color: #ead9a0; }
.sec.is-active { background: #fff; border-color: #e5c45a; box-shadow: inset 0 -3px 0 var(--yellow); }
@media (max-width: 860px) {
  .sections { border-bottom-color: #ead9a0; }
  .sec { border-color: #ead9a0; }
  .sec.is-active { box-shadow: inset 3px 0 0 var(--yellow); }
}

/* Полоса выполнения плана на картинках */
.a-growx { transform-origin: left; animation: a-growx 3.6s ease-in-out infinite; }
@keyframes a-growx { 0% { transform: scaleX(0); } 55%, 100% { transform: scaleX(1); } }

/* ---------- Каталог модулей ---------- */
.dir-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.dir-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 3px; background: var(--panel); color: var(--text); font-size: 14px;
}
.dir-chip:hover { background: var(--yellow-soft); border-color: #f0d36a; color: var(--ink); }
.dir-chip span, .mg-title span {
  min-width: 20px; padding: 0 6px; border-radius: 10px; background: #fff; border: 1px solid var(--line);
  font-size: 12px; line-height: 18px; text-align: center; color: var(--muted); font-weight: 400;
}
.mgroup { margin-top: 18px; scroll-margin-top: calc(var(--topbar) + 12px); }
.mg-title {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; margin-bottom: 10px;
  background: var(--row-hl); border: 1px solid #f0e2a6; border-radius: 3px; font-size: 16px;
}
.mg-title svg { width: 17px; height: 17px; color: #e8b84a; }
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mcard { display: flex; flex-direction: column; padding: 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.mcard:hover { border-color: #e5c45a; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.mc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mc-ic { width: 36px; height: 36px; flex: none; border-radius: 8px; background: var(--yellow-soft); display: grid; place-items: center; }
.mc-ic svg { width: 20px; height: 20px; color: var(--ink); }
.mcard h3 { font-size: 16px; }
.mcard h3 a { color: var(--ink); border: 0; }
.mcard h3 a:hover { color: var(--link); }
.mc-lead { color: var(--muted); font-size: 14px; }
.mcard ul { margin: 4px 0 14px; padding-left: 18px; font-size: 14px; }
.mcard li { margin-bottom: 4px; }
.mcard li::marker { color: var(--yellow-dark); }
.mc-act { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
@media (max-width: 600px) {
  .mcards { grid-template-columns: 1fr; }
  .dir-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -10px; padding: 0 10px 2px; }
  .dir-chips::-webkit-scrollbar { display: none; }
  .dir-chip { flex: none; }
}

/* ---------- Контакты в шапке: телефон, WhatsApp, заявка ---------- */
.tb-contact { display: flex; align-items: center; gap: 12px; padding-left: 18px; border-left: 1px solid var(--line); }
.tbc-phone { display: flex; align-items: center; gap: 10px; border: 0; color: var(--ink); }
.tbc-phone:hover { color: var(--ink); }
.tbc-ic { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--yellow-soft); border: 1px solid #f0d36a; display: grid; place-items: center; }
.tbc-ic svg { width: 16px; height: 16px; }
.tbc-txt b { display: block; font-size: 15px; line-height: 1.2; white-space: nowrap; }
.tbc-txt small { display: block; font-size: 12px; line-height: 1.2; color: var(--muted); }
.tbc-phone:hover b { color: var(--link); }
.tbc-wa { width: 34px; height: 34px; flex: none; border-radius: 50%; background: #25d366; color: #fff; border: 0; display: grid; place-items: center; }
.tbc-wa:hover { background: #1ebe5d; color: #fff; }
.tbc-wa svg { width: 18px; height: 18px; }
.tb-contact .topbar-btn { height: 34px; padding: 0 14px; }
.wa-float { display: none; }
@media (max-width: 1080px) { .tbc-txt { display: none; } }
@media (max-width: 860px) { .tb-contact { display: none; } }

/* Таблица моделей на странице модуля: на телефоне показываем все колонки */
@media (max-width: 600px) {
  #specs .grid1c th:nth-child(3), #specs .grid1c td:nth-child(3) { display: table-cell; }
  #specs .grid1c td, #specs .grid1c th { white-space: normal; padding: 7px 8px; }
}

/* ---------- Казахстан: флажок, блок «Как мы работаем» ---------- */
.kz-flag { width: 21px; height: 14px; flex: none; border-radius: 2px; vertical-align: -2px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; }
.sb-kz { display: inline-flex; align-items: center; gap: 7px; color: #fff; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.why-item {
  position: relative; overflow: hidden; padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: 6px;
  background: linear-gradient(180deg, #fff 0%, #fbfaf6 100%); border-top: 4px solid var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.why-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(29,39,47,.08); }
.why-kz { border-top-color: #00afca; }
.why-grow { border-top-color: var(--yellow); }
.why-vis { height: 44px; display: flex; align-items: center; margin-bottom: 12px; }
.why-flag { width: 60px; height: 40px; border-radius: 4px; box-shadow: 0 3px 10px rgba(0,175,202,.3); }
.why-badge {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font-weight: 800; font-size: 17px; letter-spacing: -.02em;
}
.why-badge-y { background: var(--yellow); color: var(--ink); box-shadow: 0 3px 10px rgba(229,168,0,.35); }
.why-badge-d { background: var(--ink); color: var(--yellow); font-size: 22px; box-shadow: 0 3px 10px rgba(29,39,47,.25); }
.why-item h3 { position: relative; font-size: 18px; margin-bottom: 6px; }
.why-item p { position: relative; margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.why-orn { position: absolute; right: -14px; bottom: -10px; width: 130px; height: 65px; color: var(--ink); opacity: .05; pointer-events: none; }
.why-kz .why-orn { color: #00afca; opacity: .12; }
.why-grow .why-orn { color: var(--yellow-dark); opacity: .14; }
@media (max-width: 1100px) { .why { grid-template-columns: 1fr; } .why-item { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; } .why-vis { grid-row: 1 / span 2; margin: 0; height: auto; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .why-item, .why-item:hover { transition: none; transform: none; } }

/* «Как мы работаем»: тёплый жёлтый фон, белые карточки (жёлтый совпадает с золотом флага) */
#why .form-body {
  margin: 0 1px 1px; padding: 16px; border-radius: 0 0 4px 4px;
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(255,255,255,.55), transparent 70%),
    linear-gradient(120deg, #fff6d2 0%, #ffe48a 100%);
  border-top: 1px solid #f0d36a;
}
#why .why-item { background: #fff; border-color: #f0dc8c; box-shadow: 0 2px 6px rgba(160,120,0,.08); }
#why .why-item:hover { box-shadow: 0 10px 24px rgba(160,120,0,.16); }
@media (max-width: 600px) { #why .form-body { padding: 10px; } }

/* Орёл с солнцем — золотом в полосе с цифрами, справа за «Астаной» */
.hero-stats { position: relative; overflow: hidden; }
.hero-stats li.hs-eagle { position: absolute; right: 18px; bottom: -18px; width: 230px; height: 126px; padding: 0; border: 0; background: none; pointer-events: none; }
.hs-eagle svg { width: 100%; height: 100%; color: var(--yellow); opacity: .1; }
@media (max-width: 600px) { .hero-stats li.hs-eagle { right: -22px; bottom: -16px; width: 170px; height: 94px; } }
