/* LoService — публичный сайт */
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
main { overflow-x: clip; }
.section { padding: var(--section-gap) 0 0; scroll-margin-top: 90px; }
.small { font-size: 13px; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: .08em; height: .36em; background: var(--orange); opacity: .55; border-radius: 6px; z-index: -1; }

/* NAV */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; }
.nav-inner { width: min(1200px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 10px; border-radius: 20px;
  background: rgba(255, 255, 255, .82); border-color: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: var(--shadow-1); }
.nav.scrolled .nav-inner { background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-2); }
.nav-links { display: flex; gap: 2px; margin-inline: auto; }
.nav-links a { padding: 8px 14px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; transition: .2s; }
.nav-links a:hover { color: var(--indigo); background: var(--ice-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-phone { font-size: 14px; font-weight: 700; color: var(--indigo); white-space: nowrap; }
.nav-phone:hover { color: var(--amber-text); }
.nav-burger { display: none; }
/* Номер ещё не задан в настройках — ссылки для звонка не показываем */
a[data-tel]:not([href]) { display: none !important; }
a[data-tel] { white-space: nowrap; }
.nav-tel, .nav-cab-short { display: none; }

/* HERO */
.hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; min-height: 100vh; padding: 120px 0 60px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 68px); letter-spacing: -.035em; margin: 22px 0 22px; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 20px; }
.hero-note { margin: 0 0 24px; font-size: 13.5px; color: var(--faint); max-width: 520px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 10px 16px 10px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--stroke); box-shadow: var(--shadow-1); }
.hero-points li > .i { grid-row: span 2; width: 38px; height: 38px; padding: 9px; border-radius: 11px; color: #fff; background: var(--indigo); }
.hero-points b { font-size: 15px; line-height: 1.2; }
.hero-points span { font-size: 12.5px; color: var(--muted); }

.hero-visual { position: relative; display: grid; place-items: center; padding: 20px 0 40px; }
.badge-circle { position: relative; width: min(470px, 90%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff 0%, var(--ice) 70%);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .8), 0 0 0 11px var(--stroke), 0 0 80px 10px rgba(124, 196, 250, .45), 0 40px 80px -30px rgba(50, 46, 122, .45); }
.badge-circle::before { content: ""; position: absolute; inset: 0; border-radius: 50%; overflow: hidden; opacity: .5;
  background: url("../img/trees.svg") center / 380px auto; -webkit-mask-image: radial-gradient(circle, transparent 45%, #000 75%); mask-image: radial-gradient(circle, transparent 45%, #000 75%); }
.mascot { position: absolute; left: 50%; bottom: 5%; height: 98%; width: auto; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 18px 24px rgba(50, 46, 122, .28)); }
.console { position: absolute; left: -2%; bottom: 0; width: min(330px, 70%); padding: 16px; z-index: 2; border-radius: 20px; }
.console-device { display: flex; align-items: center; gap: 12px; }
.console-device > div { flex: 1; min-width: 0; display: grid; }
.console-device b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--indigo); color: #fff; flex: none; }
.mini-steps { list-style: none; padding: 0; margin: 16px 0 14px; display: grid; grid-template-columns: repeat(5, 1fr); }
.mini-steps li { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: var(--faint); text-align: center; }
.mini-steps i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ice); background: #fff; z-index: 1; }
.mini-steps li:not(:last-child)::after { content: ""; position: absolute; top: 6px; left: 50%; width: 100%; height: 2px; background: var(--ice); }
.mini-steps li.done { color: var(--text-2); }
.mini-steps li.done i { background: var(--indigo); border-color: var(--indigo); }
.mini-steps li.done::after { background: var(--indigo); }
.mini-steps li.now { color: var(--indigo); }
.mini-steps li.now i { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 5px rgba(245, 160, 0, .22); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(245, 160, 0, 0); } }
.console-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--stroke-2); }

.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 16px; animation: bob 6s ease-in-out infinite; }
.float-card b { display: block; font-size: 16px; line-height: 1.2; }
.float-card small { font-size: 12px; }
.fc-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--indigo-3); background: var(--orange); }
.f1 { top: 12%; right: 0; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* TRUST */
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 16px 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--stroke); box-shadow: var(--shadow-1); }
.trust li > .i { grid-row: span 2; width: 36px; height: 36px; padding: 8px; border-radius: 50%; color: var(--indigo); background: var(--ice); }
.trust b { font-size: 14.5px; line-height: 1.25; }
.trust span { font-size: 12.5px; color: var(--muted); }

/* STATS */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 10px; margin-top: 16px; }
.stats > div { display: grid; gap: 6px; padding: 0 26px; border-left: 1px solid rgba(255, 255, 255, .16); }
.stats > div:first-child { border-left: 0; }
.stats b { font: 800 clamp(30px, 3.4vw, 44px)/1 var(--font); letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.stats span { color: var(--ice); font-size: 14px; }

/* SECTION HEAD */
.section-head { display: grid; gap: 14px; max-width: 680px; margin-bottom: 36px; }
.section-head.center { justify-items: center; text-align: center; margin-inline: auto; }
.section-head h2, .track h2, .calc h2, .request h2, .contact-card h2 { font-size: clamp(28px, 3.5vw, 44px); letter-spacing: -.03em; }

/* SERVICES */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc { padding: 24px; display: grid; gap: 16px; align-content: start; transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out; }
.svc:hover { transform: translateY(-2px); border-color: var(--stroke-2); box-shadow: var(--shadow-2); }
.svc-top { display: flex; justify-content: space-between; align-items: center; }
.svc-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: var(--indigo); background: var(--ice); }
.svc .tag { background: #FFF3DB; color: #9A6200; border-color: rgba(245, 160, 0, .3); }
.svc h3 { font-size: 20px; }
.svc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.svc li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); padding-bottom: 8px; border-bottom: 1px solid var(--stroke); }
.svc li:last-child { border-bottom: 0; padding-bottom: 0; }
.svc li b { color: var(--indigo); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* HOW — нумерованная дорожка */
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.how-step { position: relative; padding: 26px 22px; display: grid; gap: 10px; align-content: start; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--stroke); box-shadow: var(--shadow-1); }
.how-step:not(:last-child)::after { content: ""; position: absolute; top: 49px; right: -17px; width: 18px; height: 2px; background: var(--ice); }
.how-step .num { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 8px; border-radius: 14px; font-family: var(--slab); font-size: 20px; font-weight: 800;
  color: #fff; background: var(--indigo); }
.how-step:last-child .num { color: var(--indigo-3); background: var(--orange); }
.how-step h3 { font-size: 19px; }
.how-step p { font-size: 14px; }

/* TRACK / CALC */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.track, .calc { padding: 32px; display: grid; gap: 16px; align-content: start; }
.calc { background: var(--surface-2); }
.track-form { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 10px; align-items: end; margin-top: 6px; }
.track-result:empty { display: none; }
.track-result { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--stroke); box-shadow: var(--shadow-1); animation: pop .35s; }
.track-empty { display: grid; gap: 14px; padding: 22px 18px; border-radius: 16px; border: 1px dashed var(--stroke-2); text-align: center; }
.track-empty .stepper { opacity: .45; filter: saturate(0); }
.track-empty[hidden] { display: none; }
.tr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tr-head b { font-size: 17px; }
.hint { font-size: 13px; }
.link { background: none; border: 0; padding: 0; color: var(--indigo-2); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }

.calc-types { display: flex; gap: 8px; flex-wrap: wrap; }
.calc-types button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 11px; cursor: pointer;
  background: #fff; border: 1px solid var(--stroke-2); color: var(--text-2); font-weight: 600; font-size: 13px; transition: .2s; }
.calc-types button:hover { border-color: var(--indigo); }
@media (pointer: coarse) { .calc-types button { height: 44px; } }
.calc-types button[aria-pressed="true"] { color: #fff; background: var(--indigo); border-color: var(--indigo); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-out > div { padding: 16px; border-radius: 14px; background: var(--ice-2); display: grid; gap: 4px; }
.calc-out b { font: 800 clamp(20px, 5.6vw, 26px)/1.1 var(--font); letter-spacing: -.02em; white-space: nowrap; }
.calc-out > div:first-child { background: var(--indigo); color: #fff; }
.calc-out > div:first-child small { color: var(--ice); }
.calc-out > div:first-child b { color: var(--orange-2); }

/* CLIENT CABINET */
.lk { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: 44px; overflow: hidden; }
.lk-copy { display: grid; gap: 16px; align-content: center; }
.lk-copy h2 { font-size: clamp(28px, 3.5vw, 44px); letter-spacing: -.03em; }
.lk-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.lk-list li { display: flex; gap: 12px; align-items: flex-start; }
.lk-list li > .i { width: 38px; height: 38px; padding: 9px; border-radius: 11px; color: var(--indigo); background: var(--ice); }
.lk-list span { display: grid; }
.lk-list small { font-size: 13px; }
.lk-actions { margin: 6px 0 0; }
.lk-phone { position: relative; display: grid; place-items: center; }
.lk-phone::before { content: ""; position: absolute; width: 360px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff, var(--ice) 70%); box-shadow: 0 0 80px 10px rgba(124, 196, 250, .4); }
.lk-screen { position: relative; width: 270px; padding: 16px 14px 20px; border-radius: 36px; background: var(--ice-3); border: 8px solid var(--indigo);
  box-shadow: 0 40px 70px -30px rgba(50, 46, 122, .7); display: grid; gap: 10px; transform: rotate(-3deg); }
.lk-head { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 2px 4px 4px; }
.lk-card { display: grid; gap: 4px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px -10px rgba(50, 46, 122, .4); box-shadow: 0 0 0 2px var(--orange), 0 6px 16px -10px rgba(50, 46, 122, .4); }
.lk-card .mini-steps { margin: 10px 0 8px; }
.lk-card .mini-steps li { font-size: 9px; }
.lk-alert { font-size: 12px; padding: 7px 9px; border-radius: 9px; background: #FFF4DC; margin-bottom: 6px; }
.lk-card-sm { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; box-shadow: 0 6px 16px -10px rgba(50, 46, 122, .4); }
.lk-card-sm b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-card-sm .faint { grid-column: 1 / -1; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.faq details { border-radius: 18px; padding: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: var(--indigo); background: var(--ice); transition: transform .2s, background .2s, color .2s; }
.faq summary:hover::after { background: var(--ice-2); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--orange); color: var(--indigo-3); }
.faq details[open] { border-color: var(--stroke-2); box-shadow: var(--shadow-2); }
.faq details p { padding: 0 20px 18px; font-size: 15px; }

/* REQUEST */
.request { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; padding: 44px; overflow: hidden; }
.request-copy { position: relative; display: grid; gap: 16px; align-content: start; }
.request h2 { color: #fff; }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.checks li .i { width: 26px; height: 26px; padding: 5px; border-radius: 50%; color: var(--indigo-3); background: var(--orange); }
.request-moose { width: 190px; margin-top: 12px; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .3)); }
.request-form { display: grid; gap: 14px; padding: 26px; color: var(--text); align-self: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* CONTACTS */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
.contact-card { padding: 32px; display: grid; gap: 16px; align-content: start; }
.contact-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list li > .i { width: 44px; height: 44px; padding: 11px; border-radius: 12px; color: var(--indigo); background: var(--ice); }
.contact-list span { display: grid; }
.contact-list small { font-size: 13px; }
.contact-list a[data-tel] { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
@media (pointer: coarse) { .contact-list a { display: inline-flex; align-items: center; min-height: 44px; } }
.map { min-height: 380px; overflow: hidden; background: linear-gradient(180deg, #F6F9FE, var(--ice-2)); }
.map::before { content: ""; position: absolute; inset: 0; opacity: .5; background: url("../img/trees.svg") 0 0 / 420px auto; }
.map-road { position: absolute; background: #fff; border-radius: 9px; box-shadow: 0 0 0 1px var(--stroke); }
.r1 { height: 18px; left: -10%; right: -10%; top: 50%; transform: rotate(-8deg); }
.r2 { width: 16px; top: -10%; bottom: -10%; left: 40%; transform: rotate(12deg); }
.r3 { height: 12px; left: 30%; right: -10%; top: 76%; transform: rotate(18deg); }
.map-pin { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -100%); }
.map-pin .mark { box-shadow: 0 0 0 4px var(--indigo), 0 16px 26px -10px rgba(50, 46, 122, .7); }
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--indigo); }
.map-label { position: absolute; left: 50%; top: calc(44% + 20px); transform: translateX(-50%); padding: 8px 14px; border-radius: 12px; font-weight: 700; font-size: 13px; white-space: nowrap;
  color: #fff; background: var(--indigo); box-shadow: 0 10px 20px -10px rgba(50, 46, 122, .7); }

/* FOOTER */
.footer { margin-top: var(--section-gap); padding: 40px 0; color: var(--ice); background: var(--indigo) url("../img/trees-indigo.svg") 0 0 / 532px auto; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .wordmark { color: #fff; }
.footer .brand small { color: var(--ice); }
.foot-links { display: flex; gap: 20px; font-size: 14px; flex-wrap: wrap; }
@media (pointer: coarse) {
  .foot-links { row-gap: 0; }
  .foot-links a, .footer .brand { min-height: 44px; display: inline-flex; align-items: center; }
  .nav .icon-btn, .nav-burger { width: 44px; height: 44px; }
}
.foot-links a:hover { color: #fff; }

/* LEGAL */
.legal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0; }
.legal-page { padding: 8px 0 0; }
.legal-doc { max-width: 820px; margin-inline: auto; padding: clamp(22px, 4vw, 48px); display: grid; gap: 14px; }
.legal-doc h1 { font-size: clamp(28px, 4vw, 40px); }
.legal-doc h2 { font-family: var(--font); font-size: 19px; letter-spacing: -.01em; margin-top: 12px; }
.legal-doc p, .legal-doc li { line-height: 1.65; color: var(--text-2); }
.legal-doc ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-doc a { color: var(--indigo-2); text-decoration: underline; text-underline-offset: 3px; }
.footer-req { max-width: 620px; }

/* RESPONSIVE */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; gap: 10px; }
  .nav-burger { display: grid; }
  .nav.open .nav-links { display: grid; position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; padding: 10px; border-radius: 18px;
    background: rgba(255, 255, 255, .97); box-shadow: var(--shadow), 0 0 0 1px var(--stroke); }
  .nav.open .nav-links a { padding: 12px 14px; font-size: 15px; }
}
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 130px; }
  .svc-grid, .how, .trust { grid-template-columns: repeat(2, 1fr); }
  .how-step:not(:last-child)::after { display: none; }
  .split, .request, .contacts, .lk, .faq { grid-template-columns: 1fr; }
  .request-moose { display: none; }
}
@media (max-width: 640px) {
  .section { padding-top: 72px; }
  .nav-phone { display: none; }
  /* Телефон из шапки переезжает в меню — там он сразу набирает номер */
  .nav.open .nav-tel { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--stroke); border-radius: 0 0 10px 10px; color: var(--indigo); font-weight: 700; }
  .nav .brand small { display: none; }
  .nav .brand .wordmark { font-size: 19px; }
  .nav .icon-btn { width: 44px; height: 44px; }
  .nav .brand { min-height: 44px; }
  .hero { padding-top: 110px; gap: 24px; }
  .hero h1 { font-size: 38px; }
  .hero-actions .btn { flex: 1; }
  .hero-points li { flex: 1 1 100%; }
  .hero-visual { padding: 0 0 150px; }
  .badge-circle { width: 86%; }
  .console { left: 0; right: 0; width: auto; }
  .f1 { top: 2%; }
  .stats { grid-template-columns: 1fr 1fr; gap: 22px 0; padding: 24px 0; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div { padding: 0 18px; }
  .svc-grid, .how, .lk-list { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust li { padding: 14px 16px; }
  .section-head { margin-bottom: 24px; }
  .lk { padding: 26px 18px; }
  .lk-phone { display: none; }
  .track, .calc, .contact-card { padding: 24px 20px; }
  .track-form, .row2 { grid-template-columns: 1fr; }
  .request { padding: 26px 16px; gap: 22px; }
  .request-form { padding: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-note { margin-bottom: 18px; }
}
.contact-list a[data-vk-link][href] { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) {
  .nav-cab-long { display: none; }
  .nav-cab-short { display: inline; }
  .nav .brand { gap: 8px; }
  .nav-cta { gap: 6px; }
}
@media (max-width: 400px) {
  .hero .eyebrow { letter-spacing: .1em; }
}
@media (max-width: 350px) {
  .nav-inner { width: calc(100% - 20px); padding-left: 8px; padding-right: 6px; }
  .nav-cab .i { display: none; }
  .nav .brand .wordmark { font-size: 17px; }
}
