/*
 * Бортум 0.13.0 — этап 1
 * Утверждённый гостевой экран и базовый кабинет/гараж.
 */

:root{
  --bt-step-lime:#b7ff00;
  --bt-step-purple:#7547ff;
  --bt-step-dark:#070c12;
  --bt-step-muted:#778193;
  --bt-step-line:#e5e8ed;
  --bt-step-shadow:0 18px 48px rgba(22,30,42,.075);
}

body:not(.bt-in-app){overflow:hidden;background:#fff}

/* =========================================================
   Гостевой экран: строго один экран, без прокрутки
   ========================================================= */
.bt-welcome:not([hidden]){
  width:100%;
  height:100dvh;
  min-height:0;
  display:grid;
  grid-template-columns:110px minmax(0,1fr);
  overflow:hidden;
  background:#fff;
}
.bt-welcome .bt-rail--landing{
  width:110px;
  min-height:0;
  height:100dvh;
  padding:32px 18px 24px;
  background:linear-gradient(180deg,#060a0f 0%,#0a1118 100%);
  box-shadow:12px 0 38px rgba(7,12,18,.08);
}
.bt-welcome .bt-wordmark{
  width:100%;
  justify-content:flex-start;
  font-size:15px;
  font-style:italic;
  letter-spacing:-.02em;
}
.bt-welcome .bt-wordmark i{width:15px;height:3px;transform:translateY(-10px)}
.bt-guest-nav{
  flex:1;
  width:100%;
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:22px!important;
  margin:0!important;
}
.bt-welcome .bt-guest-nav button{
  width:56px;
  height:56px;
  padding:0;
  border-radius:18px;
  color:#dce2e9;
  opacity:.86;
  cursor:default;
  pointer-events:none;
}
.bt-welcome .bt-guest-nav button:not(.is-active){opacity:.72}
.bt-welcome .bt-guest-nav button.is-active{
  color:var(--bt-step-lime);
  border-color:rgba(183,255,0,.3);
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  box-shadow:0 0 0 1px rgba(183,255,0,.05),0 0 30px rgba(183,255,0,.14);
}
.bt-welcome .bt-rail-login{
  width:56px;
  height:56px;
  margin:0;
  border-radius:18px;
  color:var(--bt-step-lime);
  border-color:rgba(255,255,255,.1);
  background:rgba(255,255,255,.018);
}
.bt-welcome .bt-rail-login:hover{
  border-color:rgba(183,255,0,.28);
  box-shadow:0 0 26px rgba(183,255,0,.12);
}

.bt-welcome .bt-landing{
  width:100%;
  height:100dvh;
  min-height:0;
  overflow:hidden;
  display:grid;
  grid-template-rows:minmax(0,1fr) auto auto;
  gap:22px;
  padding:clamp(38px,4.3vh,64px) clamp(42px,5.5vw,96px) clamp(30px,4vh,54px);
  background:
    radial-gradient(circle at 78% 18%,rgba(117,71,255,.045),transparent 26%),
    radial-gradient(circle at 78% 74%,rgba(183,255,0,.04),transparent 30%),
    linear-gradient(145deg,#fff 0%,#fbfcfd 72%,#f7f8fa 100%);
}
.bt-landing-stage{
  width:min(1380px,100%);
  min-height:0;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(430px,.92fr) minmax(480px,1.08fr);
  align-items:center;
  gap:clamp(22px,3vw,54px);
}
.bt-landing-stage .bt-hero__copy{align-self:center;z-index:2}
.bt-landing-stage h1{
  margin:0;
  max-width:650px;
  font-size:clamp(58px,5.5vw,88px);
  line-height:.91;
  letter-spacing:-.065em;
  font-weight:850;
}
.bt-landing-stage p{
  max-width:600px;
  margin:26px 0 32px;
  color:#768093;
  font-size:clamp(16px,1.3vw,20px);
  line-height:1.35;
}
.bt-landing-stage .bt-hero__actions{display:flex;gap:14px;flex-wrap:wrap}
.bt-landing-stage .bt-button--large{
  min-width:215px;
  min-height:62px;
  padding:16px 27px;
  border-radius:15px;
  justify-content:space-between;
  font-size:16px;
}
.bt-approved-car{
  position:relative;
  min-width:0;
  align-self:stretch;
  display:flex;
  align-items:center;
  justify-content:center;
}
.bt-approved-car::before{
  content:"";
  position:absolute;
  width:min(39vw,560px);
  aspect-ratio:1;
  border-radius:50%;
  border:1px solid rgba(117,71,255,.12);
  background-image:radial-gradient(rgba(117,71,255,.17) 1px,transparent 1.15px);
  background-size:17px 17px;
  -webkit-mask-image:linear-gradient(to bottom,#000 5%,transparent 78%);
  mask-image:linear-gradient(to bottom,#000 5%,transparent 78%);
}
.bt-approved-car img{
  position:relative;
  z-index:1;
  display:block;
  width:min(100%,720px);
  max-height:46vh;
  object-fit:contain;
  mix-blend-mode:multiply;
  filter:drop-shadow(0 30px 38px rgba(77,82,96,.09));
}
.bt-welcome .bt-feature-row{
  width:min(1240px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.bt-welcome .bt-feature-row article{
  min-height:116px;
  padding:20px 22px;
  border:1px solid rgba(226,230,236,.86);
  border-radius:18px;
  box-shadow:0 12px 34px rgba(20,28,39,.055);
  background:rgba(255,255,255,.94);
}
.bt-welcome .bt-feature-row h2{font-size:18px;margin-bottom:7px}
.bt-welcome .bt-feature-row p{font-size:13px;line-height:1.42}
.bt-welcome .bt-feature-icon{width:56px;height:56px}
.bt-welcome .bt-start-line{
  width:min(1040px,100%);
  min-height:72px;
  margin:0 auto;
  padding:8px 9px 8px 24px;
  border:1px solid #e1e5ea;
  box-shadow:0 18px 52px rgba(21,29,40,.09);
}
.bt-welcome .bt-start-line input{font-size:16px}
.bt-welcome .bt-start-line button{width:56px;height:56px;background:var(--bt-step-lime)}

/* =========================================================
   Кабинет / гараж по утверждённому макету
   ========================================================= */
.bt-app{grid-template-columns:86px minmax(0,1fr);background:#f7f8fa}
.bt-app.is-sidebar-expanded{grid-template-columns:220px minmax(0,1fr)}
.bt-sidebar{padding:28px 14px 22px;background:linear-gradient(180deg,#060a0f,#0a1118)}
.bt-sidebar-toggle{display:none}
.bt-nav{margin-top:70px;gap:14px}
.bt-nav button{height:54px;border-radius:17px;padding:0 17px}
.bt-nav button.is-active{color:var(--bt-step-lime);border-color:rgba(183,255,0,.25);box-shadow:0 0 28px rgba(183,255,0,.1)}
.bt-topbar{
  height:auto;
  min-height:108px;
  padding:24px clamp(26px,4vw,62px) 14px;
  align-items:flex-start;
  border-bottom:0;
  background:rgba(247,248,250,.92);
  backdrop-filter:blur(18px);
}
.bt-topbar__intro>span{font-size:15px!important;font-weight:500!important;color:#8992a2!important}
.bt-topbar h1{margin:8px 0 0;font-size:clamp(34px,3.4vw,52px);line-height:1;letter-spacing:-.055em}
.bt-topbar__intro p{margin:10px 0 0;color:#7d8796;font-size:17px}
.bt-topbar__actions{align-items:center;padding-top:2px}
.bt-topbar select{min-width:210px;background:#fff;border-radius:16px;padding:12px 38px 12px 15px;box-shadow:0 8px 22px rgba(20,28,39,.04)}
.bt-notification-button{position:relative;color:#8a94a3}
.bt-notification-button::after{content:"";position:absolute;right:8px;top:7px;width:7px;height:7px;border-radius:50%;background:var(--bt-step-lime)}
.bt-content{padding:12px clamp(24px,4vw,62px) 105px}
.bt-view{max-width:1380px}

.bt-garage-hero{
  min-height:295px;
  display:grid;
  grid-template-columns:minmax(370px,.8fr) minmax(540px,1.2fr);
  align-items:center;
  gap:30px;
  position:relative;
}
.bt-garage-identity{
  position:relative;
  z-index:2;
  width:min(100%,500px);
  min-height:180px;
  padding:26px 28px;
  border:1px solid var(--bt-step-line);
  border-radius:20px;
  background:rgba(255,255,255,.96);
  box-shadow:var(--bt-step-shadow);
}
.bt-garage-identity>span{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#8a94a3}
.bt-garage-identity h2{margin:8px 0 0;font-size:clamp(28px,2.8vw,40px);line-height:1;letter-spacing:-.045em}
.bt-garage-vin{margin:12px 0;color:#7c8696;font-size:13px}
.bt-garage-identity .bt-car-meta{margin:15px 0 0}
.bt-garage-identity__actions{display:flex;gap:18px;margin-top:20px}
.bt-garage-identity__actions button{padding:0;border:0;background:transparent;color:var(--bt-step-purple);font-weight:750;cursor:pointer}
.bt-garage-car-stage{
  min-height:295px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 48% 45%,rgba(117,71,255,.07),transparent 38%),
    radial-gradient(circle at 61% 70%,rgba(183,255,0,.045),transparent 30%);
}
.bt-garage-car-stage::before{
  content:"";
  position:absolute;
  width:min(38vw,520px);
  aspect-ratio:1;
  border-radius:50%;
  border:1px solid rgba(117,71,255,.12);
  background-image:radial-gradient(rgba(117,71,255,.14) 1px,transparent 1.15px);
  background-size:17px 17px;
  -webkit-mask-image:linear-gradient(to bottom,#000,transparent 76%);
  mask-image:linear-gradient(to bottom,#000,transparent 76%);
}
.bt-garage-car-stage .bt-vehicle-image{
  position:relative;
  z-index:1;
  display:block;
  width:min(100%,650px);
  max-height:315px;
  object-fit:contain;
  border-radius:0;
  box-shadow:none;
  mix-blend-mode:multiply;
  filter:drop-shadow(0 28px 35px rgba(50,58,72,.1));
}
.bt-garage-car-stage .bt-vehicle-image-status{
  left:auto;
  right:24px;
  bottom:20px;
  border:1px solid #e5e8ed;
  background:rgba(255,255,255,.9);
  color:#778193;
}
.bt-garage-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  margin:10px 0 22px;
  padding:20px 16px;
  border:1px solid var(--bt-step-line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 34px rgba(20,28,39,.05);
}
.bt-garage-stats article{display:flex;align-items:center;gap:14px;padding:0 22px;min-width:0}
.bt-garage-stats article+article{border-left:1px solid #e7eaf0}
.bt-garage-stats small{display:block;margin-bottom:4px;color:#818b9a;font-size:11px}
.bt-garage-stats strong{display:block;overflow:hidden;text-overflow:ellipsis;font-size:16px;white-space:nowrap}
.bt-stat-good{color:#81b900}
.bt-stat-icon{width:48px;height:48px;flex:none;display:grid;place-items:center;border-radius:50%;font-size:20px;font-weight:850}
.bt-stat-icon--lime{background:#f3ffdc;color:#89bd00}.bt-stat-icon--purple{background:#f1edff;color:var(--bt-step-purple)}
.bt-dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:0}
.bt-dashboard-grid .bt-panel{min-height:270px;padding:20px;border-radius:18px;border-top-width:1px;box-shadow:0 10px 30px rgba(20,28,39,.045)}
.bt-dashboard-grid .bt-panel--attention{border-color:#eceff3}.bt-dashboard-grid .bt-panel--service{border-color:#eceff3}.bt-dashboard-grid .bt-panel--history{border-color:#eceff3}.bt-dashboard-grid .bt-panel--symptom{border-color:#eceff3}
.bt-dashboard-grid .bt-panel__head{min-height:58px}
.bt-dashboard-grid .bt-panel__head h3{font-size:18px}
.bt-dashboard-grid .bt-link-button{align-self:flex-start;font-size:12px}
.bt-dashboard-grid .bt-list-item{padding:12px 0}
.bt-dashboard-grid .bt-timeline-item{padding-bottom:12px}
.bt-completeness-strip{margin-top:18px}
.bt-ai-dock{
  display:grid;
  grid-template-columns:minmax(220px,.75fr) minmax(360px,1.55fr) 54px;
  align-items:center;
  gap:24px;
  min-height:78px;
  margin-top:18px;
  padding:12px 16px 12px 18px;
  border:1px solid var(--bt-step-line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 32px rgba(20,28,39,.05);
}
.bt-ai-dock__brand{display:flex;align-items:center;gap:13px}
.bt-ai-dock__brand>span{width:46px;height:46px;display:grid;place-items:center;border-radius:16px;background:radial-gradient(circle at 30% 30%,#a881ff,#5d28ff);color:#fff;font-size:24px;box-shadow:0 8px 22px rgba(117,71,255,.24)}
.bt-ai-dock__brand strong,.bt-ai-dock__brand small{display:block}.bt-ai-dock__brand small{margin-top:3px;color:#8a94a3;font-size:11px}
.bt-ai-dock label{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:18px;min-width:0;color:#7f8998;font-size:12px}
.bt-ai-dock input{min-width:0;width:100%;height:46px;padding:0 18px;border:1px solid #e4e7ec;border-radius:999px;background:#fff;outline:0}
.bt-ai-dock input:focus{border-color:rgba(183,255,0,.8);box-shadow:0 0 0 4px rgba(183,255,0,.1)}
.bt-ai-dock>button{width:48px;height:48px;border:0;border-radius:50%;background:var(--bt-step-lime);font-size:22px;cursor:pointer}

/* Единое состояние для остальных разделов до следующего этапа */
.bt-section-intro h2{letter-spacing:-.045em}.bt-panel,.bt-plan-column,.bt-report-summary article,.bt-report-actions article,.bt-current-mileage{border-color:var(--bt-step-line);box-shadow:0 10px 30px rgba(20,28,39,.05)}

@media (max-height:820px) and (min-width:901px){
  .bt-welcome .bt-landing{gap:14px;padding-top:28px;padding-bottom:24px}
  .bt-landing-stage h1{font-size:clamp(52px,5vw,74px)}
  .bt-landing-stage p{margin:18px 0 22px}
  .bt-landing-stage .bt-button--large{min-height:54px}
  .bt-welcome .bt-feature-row article{min-height:96px;padding:15px 18px}
  .bt-welcome .bt-start-line{min-height:62px}
  .bt-approved-car img{max-height:42vh}
}
@media (max-width:1180px){
  .bt-landing-stage{grid-template-columns:minmax(390px,1fr) minmax(390px,1fr)}
  .bt-landing-stage h1{font-size:clamp(52px,6vw,72px)}
  .bt-garage-hero{grid-template-columns:minmax(330px,.9fr) minmax(420px,1.1fr)}
  .bt-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bt-garage-stats{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:18px}
  .bt-garage-stats article:nth-child(3){border-left:0}
  .bt-garage-stats article:nth-child(n+3){border-top:1px solid #e7eaf0;padding-top:18px}
}
@media (max-width:900px){
  body:not(.bt-in-app){overflow:auto}
  .bt-welcome:not([hidden]){height:auto;min-height:100dvh;grid-template-columns:78px minmax(0,1fr);overflow:visible}
  .bt-welcome .bt-rail--landing{position:sticky;top:0;width:78px;height:100dvh;padding:24px 11px}
  .bt-welcome .bt-wordmark{font-size:0;justify-content:center}.bt-welcome .bt-wordmark i{width:24px;transform:none}
  .bt-welcome .bt-landing{height:auto;min-height:100dvh;overflow:visible;display:block;padding:34px 26px}
  .bt-landing-stage{grid-template-columns:1fr;gap:10px}
  .bt-approved-car{min-height:300px}.bt-approved-car img{max-height:340px}
  .bt-welcome .bt-feature-row{margin-top:18px}.bt-welcome .bt-start-line{margin-top:20px}
  .bt-garage-hero{grid-template-columns:1fr}.bt-garage-identity{width:100%}.bt-garage-car-stage{min-height:250px}
  .bt-ai-dock{grid-template-columns:1fr 50px}.bt-ai-dock__brand{grid-column:1/-1}.bt-ai-dock label{grid-template-columns:1fr}.bt-ai-dock label>span{display:none}
}
@media (max-width:680px){
  .bt-welcome:not([hidden]){display:block}.bt-welcome .bt-rail--landing{display:none}
  .bt-welcome .bt-landing{padding:22px 16px 28px}
  .bt-landing-stage h1{font-size:48px}.bt-landing-stage p{font-size:16px;margin:19px 0 23px}
  .bt-landing-stage .bt-hero__actions{display:grid;grid-template-columns:1fr}.bt-landing-stage .bt-button--large{width:100%;min-width:0}
  .bt-approved-car{min-height:220px}.bt-approved-car img{max-height:240px}
  .bt-welcome .bt-feature-row{grid-template-columns:1fr;gap:10px}.bt-welcome .bt-feature-row article{min-height:88px;padding:14px 16px}.bt-welcome .bt-feature-row p br{display:none}
  .bt-welcome .bt-start-line{min-height:58px;padding-left:14px}.bt-welcome .bt-start-line input{font-size:14px}.bt-welcome .bt-start-line button{width:44px;height:44px}
  .bt-topbar{min-height:78px;padding:13px 14px}.bt-topbar h1{font-size:24px}.bt-topbar__intro p,.bt-topbar__intro>span{display:none}.bt-topbar__actions{max-width:60%}.bt-topbar select{min-width:0;max-width:145px}
  .bt-content{padding:12px 13px 90px}.bt-garage-identity{padding:20px}.bt-garage-car-stage{min-height:210px}.bt-garage-car-stage .bt-vehicle-image{max-height:220px}
  .bt-garage-stats{grid-template-columns:1fr}.bt-garage-stats article+article{border-left:0;border-top:1px solid #e7eaf0;padding-top:15px}.bt-garage-stats article{padding:0 8px}
  .bt-dashboard-grid{grid-template-columns:1fr}.bt-ai-dock{padding:12px;gap:12px}.bt-ai-dock__brand{display:none}
}

@media (min-width:783px){body.admin-bar .bt-app{height:calc(100dvh - 32px)}body.admin-bar .bt-sidebar{min-height:calc(100dvh - 32px)}}
@media (max-width:782px){body.admin-bar .bt-app{height:calc(100dvh - 46px)}}
