:root{
  --rose:#c96f8a;
  --rose2:#d98fa3;
  --pale:#fff1f6;
  --line:#f1d9e1;
  --txt:#2d2025;
  --muted:#7c6870;
  --green:#13895d;
  --red:#b42318;
  --shadow:0 20px 55px rgba(201,111,138,.16);
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:linear-gradient(180deg,#fff,#fff7fa 58%,#fff);
  color:var(--txt);
  line-height:1.55;
}

.wrap{
  width:min(1180px,calc(100% - 28px));
  margin:auto;
}

.top-banner{
  background:linear-gradient(90deg,var(--rose),var(--rose2));
  color:#fff;
  text-align:center;
  font-weight:900;
  font-size:19px;
  letter-spacing:.3px;
  text-transform:uppercase;
  padding:18px 14px;
  box-shadow:0 6px 18px rgba(201,111,138,.25);
}

.top{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
  color:inherit;
  text-decoration:none;
}

.mark{
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#ffc8d8,var(--rose));
  color:#fff;
  font-weight:950;
}

.brand b{
  display:block;
  font-size:13px;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.brand small{
  color:var(--muted);
  font-weight:750;
}

.btn{
  border:0;
  border-radius:999px;
  padding:12px 18px;
  background:var(--rose);
  color:#fff;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 14px 32px rgba(201,111,138,.28);
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
}

.btn.secondary{
  background:#fff;
  color:var(--rose);
  border:1px solid var(--line);
  box-shadow:none;
}

.btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  box-shadow:none;
}

.app-shell{
  padding:24px 0 42px;
}

.intro-card{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-end;
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  padding:26px;
  box-shadow:var(--shadow);
  margin:22px 0;
}

.kicker{
  display:inline-flex;
  border:1px solid var(--line);
  background:var(--pale);
  color:var(--rose);
  border-radius:999px;
  padding:7px 12px;
  font-size:13px;
  font-weight:950;
  margin:0 0 12px;
}

h1{
  margin:0 0 10px;
  font-size:clamp(34px,5vw,58px);
  line-height:.98;
  letter-spacing:-.055em;
}

.lead{
  margin:0;
  color:#5d4d53;
  max-width:760px;
  font-size:clamp(16px,2vw,20px);
}

.mini-total{
  min-width:190px;
  background:var(--pale);
  border:1px solid var(--line);
  border-radius:22px;
  padding:14px;
  text-align:right;
}

.mini-total small{
  display:block;
  color:var(--muted);
  font-weight:900;
}

.mini-total strong{
  font-size:34px;
  color:var(--rose);
}

.grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:22px;
  align-items:start;
}

.bot,.panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:30px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.bot{
  position:sticky;
  top:90px;
}

.bot-head{
  display:flex;
  gap:12px;
  align-items:center;
  background:linear-gradient(135deg,#fff7fa,#ffe2ec);
  border-bottom:1px solid var(--line);
  padding:18px 20px;
}

.avatar{
  width:44px;
  height:44px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#f8bfd0,var(--rose));
  color:#fff;
  font-weight:950;
}

.bot-head b{
  display:block;
}

.bot-head span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}

.bot-body{
  padding:18px;
  display:grid;
  gap:12px;
  max-height:670px;
  overflow:auto;
  background:linear-gradient(180deg,#fff,#fff9fb);
}

.bubble{
  max-width:92%;
  padding:13px 15px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  font-size:14px;
  box-shadow:0 10px 22px rgba(201,111,138,.06);
}

.bubble.bot-msg{
  border-top-left-radius:6px;
}

.bubble.user-msg{
  justify-self:end;
  background:var(--rose);
  border-color:var(--rose);
  color:#fff;
  border-top-right-radius:6px;
}

.choices{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}

.choice{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:10px 13px;
  font-weight:900;
  cursor:pointer;
}

.choice:hover,.choice.active{
  background:var(--rose);
  border-color:var(--rose);
  color:#fff;
}

.panel{
  padding:22px;
}

.panel-top{
  display:flex;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid var(--line);
  padding-bottom:16px;
  margin-bottom:18px;
}

.panel h2{
  margin:0;
  font-size:28px;
  letter-spacing:-.035em;
}

.panel p{
  margin:4px 0 0;
  color:var(--muted);
}

.courses{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.course{
  border:1px solid var(--line);
  border-radius:22px;
  padding:16px;
  background:#fff;
  cursor:pointer;
  min-height:176px;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:.16s;
}

.course:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(201,111,138,.13);
}

.course.selected{
  border-color:var(--rose);
  box-shadow:0 0 0 3px rgba(201,111,138,.12),0 18px 40px rgba(201,111,138,.15);
}

.course.disabled{
  opacity:.58;
  cursor:not-allowed;
}

.course.full{
  cursor:not-allowed;
  background:#faf6f7;
  border-color:#e7d7dc;
}

.course.full:hover{
  transform:none;
  box-shadow:none;
}

.course.full h4,
.course.full .price{
  color:#9a8791;
}

.tag.full-tag{
  color:#fff;
  background:#b0778a;
  border-color:#b0778a;
}

.course.full .state{
  background:#e3d3d9;
  color:#7c6570;
}

.course h4{
  margin:0;
  font-size:18px;
  line-height:1.15;
}

.meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.tag{
  font-size:11px;
  font-weight:950;
  color:#7a5260;
  background:#fff5f8;
  border:1px solid var(--line);
  border-radius:999px;
  padding:5px 8px;
}

.tag.hot{
  color:var(--red);
  background:#fff1f0;
  border-color:#ffd2cf;
}

.tag.ok{
  color:var(--green);
  background:#eefaf5;
  border-color:#ccefe2;
}

.course p{
  font-size:13px;
  color:var(--muted);
  margin:0;
}

.free-note{
  font-size:15px !important;
  font-weight:900;
  color:#fff !important;
  background:var(--green);
  border:1px solid var(--green);
  border-radius:10px;
  padding:10px 12px;
  width:100%;
  text-align:center;
  line-height:1.3;
}

.bottom{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.price{
  font-size:20px;
  font-weight:950;
  color:var(--rose);
}

.state{
  font-size:12px;
  font-weight:950;
  color:#fff;
  background:var(--rose);
  border-radius:999px;
  padding:7px 10px;
}

.course:not(.selected) .state{
  background:#f4d6df;
  color:#8c5164;
}

.empty{
  grid-column:1/-1;
  padding:22px;
  border:1px dashed var(--line);
  border-radius:22px;
  background:#fff9fb;
  color:var(--muted);
  text-align:center;
  font-weight:800;
}

.sticky-total{
  position:sticky;
  bottom:14px;
  z-index:10;
  margin-top:18px;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(14px);
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  box-shadow:0 20px 48px rgba(201,111,138,.2);
}

.sticky-total span{
  padding-left:12px;
  font-weight:950;
  color:var(--muted);
}

.form-wrap{
  display:none;
  margin-top:22px;
  border-top:1px solid var(--line);
  padding-top:22px;
}

.form-wrap.show{
  display:block;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.field{
  display:grid;
  gap:6px;
}

.field.full{
  grid-column:1/-1;
}

label{
  font-size:12px;
  font-weight:950;
  color:#6e5660;
}

input,textarea{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:13px 14px;
  font:inherit;
  outline:none;
  color:var(--txt);
}

input:focus,textarea:focus{
  border-color:var(--rose);
  box-shadow:0 0 0 3px rgba(201,111,138,.12);
}

textarea{
  min-height:92px;
  resize:vertical;
}

.notice{
  background:#fff8e8;
  border:1px solid #f2d99c;
  color:#66521d;
  border-radius:18px;
  padding:13px 14px;
  font-size:13px;
  font-weight:800;
}

.checkbox{
  display:flex;
  gap:10px;
  align-items:flex-start;
}

.checkbox input{
  width:18px;
  height:18px;
  margin-top:2px;
}

.submit{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:14px;
}

.submit small{
  color:var(--muted);
  font-weight:850;
}

.success{
  display:none;
  background:#edfdf6;
  color:#0f6848;
  border:1px solid #bdebd8;
  border-radius:18px;
  padding:14px;
  margin-top:12px;
  font-weight:900;
}

.success.show{
  display:block;
}

footer{
  padding:34px 0;
  text-align:center;
  color:var(--muted);
  font-size:13px;
}

@media(max-width:940px){
  .intro-card,.grid{
    grid-template-columns:1fr;
  }
  .intro-card{
    flex-direction:column;
    align-items:stretch;
  }
  .mini-total{
    text-align:left;
  }
  .bot{
    position:relative;
    top:auto;
  }
  .courses{
    grid-template-columns:1fr;
  }
}

@media(max-width:620px){
  .nav .btn{
    display:none;
  }
  .form-grid{
    grid-template-columns:1fr;
  }
  .submit,.sticky-total{
    flex-direction:column;
    align-items:stretch;
    border-radius:24px;
  }
  .sticky-total span{
    padding-left:0;
  }
  .btn{
    width:100%;
  }
  .bot-body{
    max-height:none;
  }
}

.modal-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(45,32,37,.45);
  align-items:center;
  justify-content:center;
  z-index:1000;
  padding:20px;
}
.modal-overlay.show{
  display:flex;
}
.modal-box{
  position:relative;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:32px 28px;
  max-width:360px;
  text-align:center;
  color:var(--txt);
}
.modal-box p{
  margin:0;
  font-weight:600;
}
.modal-close{
  position:absolute;
  top:10px;
  right:12px;
  border:none;
  background:none;
  font-size:22px;
  line-height:1;
  color:var(--muted);
  cursor:pointer;
}
.modal-close:hover{
  color:var(--rose);
}
