
@font-face{ font-family:"Nexa"; src:url("Fonts/Nexa-Light.woff2") format("woff2"), url("Fonts/Nexa-Light.woff") format("woff"); font-weight:300; font-style:normal; font-display:swap; }
@font-face{ font-family:"Nexa"; src:url("Fonts/Nexa-Book.woff2") format("woff2"), url("Fonts/Nexa-Book.woff") format("woff"); font-weight:350; font-style:normal; font-display:swap; }
@font-face{ font-family:"Nexa"; src:url("Fonts/Nexa-Regular.woff2") format("woff2"), url("Fonts/Nexa-Regular.woff") format("woff"); font-weight:400; font-style:normal; font-display:swap; }
@font-face{ font-family:"Nexa"; src:url("Fonts/Nexa-Medium.woff2") format("woff2"), url("Fonts/Nexa-Medium.woff") format("woff"); font-weight:500; font-style:normal; font-display:swap; }
@font-face{ font-family:"Nexa"; src:url("Fonts/Nexa-SemiBold.woff2") format("woff2"), url("Fonts/Nexa-SemiBold.woff") format("woff"); font-weight:600; font-style:normal; font-display:swap; }
@font-face{ font-family:"Nexa"; src:url("Fonts/Nexa-Bold.woff2") format("woff2"), url("Fonts/Nexa-Bold.woff") format("woff"); font-weight:700; font-style:normal; font-display:swap; }
@font-face{ font-family:"Nexa"; src:url("Fonts/Nexa-ExtraBold.woff2") format("woff2"), url("Fonts/Nexa-ExtraBold.woff") format("woff"); font-weight:800; font-style:normal; font-display:swap; }
@font-face{ font-family:"Nexa"; src:url("Fonts/Nexa-Black.woff2") format("woff2"), url("Fonts/Nexa-Black.woff") format("woff"); font-weight:900; font-style:normal; font-display:swap; }


:root{
  --bg:#ffffff;
  --text:#0e1b2b;
  --muted:#7a8aa0;

  --card:#ffffff;
  --right-bg:#eef2f6;

  --pill:#ffffff;           
  --pill-border:#e2e8f0;
  --pill-active-bg:#e6f9f5; 
  --pill-active-border:#2dd4bf;

  --brand:#10b981;
  --brand-strong:#0ea371;

  --radius:18px;
  --stroke:#d1d5db;


  --outer-space:20px;   
  --inner-space:60px;  


  --summary-h: 520px;  

  --goals-h:150px;
}


*{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  line-height:1.45;
  font-family:"Nexa", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}


.viewport{
  min-height:80vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:var(--outer-space);
}
.container{
  width:min(1400px, 92vw);
  margin:0 auto;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}


.logo-wrap{
  transform: translateY(calc(var(--outer-space) / 3));
  margin-bottom:90px;
}
.logo{ height:42px; width:auto; }


.frame{
  width:100%;
  border:1px solid var(--stroke);
  border-radius:16px;
  padding:var(--inner-space);
  background:#fff;
}


.wrap{ width:100%; }

header h1{
  font-size: clamp(28px, 3.2vw, 40px);
  margin:0 0 6px;
  letter-spacing:.2px;
  font-weight:700;
}
header p{
  margin:0 0 24px;
  color:var(--muted);
  font-size:14px;
}


.grid{
  display:grid;
  grid-template-columns: 220px 1fr 380px;
  gap:28px;
  align-items:start;
}


.card{
  background:var(--card);
  border-radius:var(--radius);
  
}
.section-title{ font-weight:700; margin:8px 0 10px; }
.field{ margin-bottom:18px; }


#filters{ padding:0; }


.check{
  display:flex; align-items:center; gap:10px;
  margin:10px 0; font-size:15px; cursor:pointer; user-select:none;
  padding:0 20px; 
}
.check input{ appearance:none; position:absolute; opacity:0; width:0; height:0; }
.fakebox{
  width:22px; height:22px; border-radius:50%;
  border:2px solid var(--brand); background:#fff; display:inline-block; flex:0 0 22px;
}
.check input:checked + .fakebox{
  background:
    radial-gradient(circle at center, #fff 7px, #fff 7px, transparent 7px) content-box,
    var(--brand);
  padding:2px; border-color:var(--brand);
}


.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:18px 20px; 
}
.pill{
  border:1px solid var(--pill-border);
  background:var(--pill);
  padding:10px 20px;        
  border-radius:36px;
  font-size:14px;
  line-height:1.2;
  cursor:pointer;
  transition:transform .15s ease, outline-color .15s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  min-width:160px;          
  max-width:100%;
  text-align:center;
  white-space:normal;       
}
.pill:hover{ transform:translateY(-1px); }
.pill.active{
  background:var(--pill-active-bg);
  border-color:var(--pill-active-border);
  outline:1px solid var(--pill-active-border);
  font-weight:700;
}


.summary{
  background:var(--right-bg);
  border-radius:var(--radius);
  padding:22px;
  height:var(--summary-h);     
  display:flex;
  flex-direction:column;
}
.summary h2{ margin:0 0 8px; font-size:22px; }
.summary .row{
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 12px; background:#fff; border-radius:12px; margin:10px 0;
  border:1px solid #e6eaf0;
}
.summary .row.col{ flex-direction:column; align-items:stretch; gap:8px; }
.row-title{ font-weight:700 }


.goals-scroll{
  max-height: calc(var(--summary-h) - 180px); 
  overflow:auto;
  padding-right:6px;
}
.tag-list{
  display:flex; flex-wrap:wrap; gap:8px; margin-top:6px;
}
.tag{
  background:#fff; border:1px solid #e6eaf0; padding:6px 10px;
  border-radius:999px; font-size:12px;
}


.cta{
  margin-top:auto; 
  width:100%; padding:14px 16px;
  background:var(--brand); color:#fff; border:0; border-radius:999px;
  font-weight:700; font-size:15px; cursor:pointer;
  transition:background .15s ease, opacity .15s ease;
}
.cta:hover{ background:var(--brand-strong) }
.cta[disabled]{ opacity:.45; cursor:not-allowed; background:#9ccfbd; }

.muted{ color:var(--muted); font-size:13px; }
.footnote{ text-align:center; font-size:12px; color:var(--muted); margin-top:10px }

/* Адаптив */
@media (max-width: 1080px){
  .grid{ grid-template-columns: 220px 1fr; }
  .summary{ grid-column: 1 / -1; }
}
@media (max-width: 720px){
  .grid{ grid-template-columns: 1fr; }
  .pill{ min-width: 44%; } 
}


.footer{
  width:min(1400px, 92vw);
  margin:12px auto 24px; 
  text-align:center;
  font-family:"Nexa", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  font-weight:200;            
  color:var(--muted);
  line-height:1.4;
}


.goals-scroll{
  height: var(--goals-h);
  overflow: auto;
  padding-right: 6px;
}


@media (max-width: 720px){

  .container{ align-items: center; }           
  .logo-wrap{
    width: 100%;
    display: flex;
    justify-content: center;                   
    transform: none;                           
    margin-bottom: 20px;                       
  }


  .frame{
    padding: 0 !important;                     
    border: none !important;                   
    border-radius: 0;                            
  }
}


.overlay{
  position: fixed;
  inset: 0;
  background: rgba(14, 27, 43, .55); 
  display: none;                     
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.overlay.show{ display: flex; }

.modal{
  background: #fff;
  width: min(520px, 92vw);
  border-radius: 16px;
  padding: 22px;
  position: relative;
}

.modal-title{
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 20px;
}

.modal-close{
  position: absolute;
  right: 8px; top: 8px;
  background: transparent;
  border: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.modal-form{ display: grid; gap: 12px; }
.form-row{ display: grid; gap: 6px; }
.form-label{ font-size: 13px; color: var(--muted); }
.form-input{
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 12px;
  font-family: "Nexa", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  font-size: 14px;
  outline: none;
}
.form-input:focus{ border-color: var(--pill-active-border); box-shadow: 0 0 0 2px rgba(45,212,191,.25); }

.modal-submit{
  margin-top: 6px;
  width: 100%;
}


@media (max-width: 720px){
  .modal{ width: 100%; padding: 18px; border-radius: 12px; }
}
