*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Arial, sans-serif;
  background:#f7f7f5;
  color:#111827;
}

.site-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 18px;
  background:#111827;
  color:#fff;
  position:relative;
}

.logo{
  margin:0;
  font-size:20px;
}

.nav{
  display:flex;
  gap:20px;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: 0.3s;
}

nav>a:hover {
  background: #00c853;
}

.burger{
  display:none;
  font-size:26px;
  background:none;
  border:none;
  color:#fff;
  cursor:pointer;
}

.wrap{
  max-width:1100px;
  margin:auto;
  padding:30px 20px 50px;
}

.hero{
  background:linear-gradient(135deg, #1f2937, #374151);
  color:white;
  border-radius:26px;
  padding:34px;
  margin-bottom:24px;
}

.hero-content{
  max-width:700px;
}

.eyebrow{
  margin:0 0 10px;
  color:#fbbf24;
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
}

.hero h1{
  margin:0 0 12px;
  font-size:38px;
}

.hero p{
  margin:0;
  line-height:1.7;
  color:#e5e7eb;
}

.main-layout{
  display:grid;
  grid-template-columns:1fr .95fr;
  gap:24px;
  margin-bottom:24px;
}

.form-card,
.results-card,
.info-card{
  background:white;
  border-radius:24px;
  padding:24px;
  box-shadow:0 12px 28px rgba(0,0,0,0.06);
}

.form-card h2{
  margin:0 0 6px;
}

.subtitle{
  margin:0 0 20px;
  color:#667085;
}

.grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:16px;
}

.full{
  grid-column:1 / -1;
}

.field{
  margin-bottom:18px;
}

.field label{
  display:block;
  margin-bottom:8px;
  font-weight:600;
}

.field input{
  width:100%;
  padding:13px;
  border:1px solid #d0d5dd;
  border-radius:14px;
  font-size:15px;
  background:#fff;
}

.section-block{
  margin-top:10px;
}

.section-block h3{
  margin:0 0 12px;
  font-size:18px;
}

.section-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  flex-wrap:wrap;
}

.section-top h3{
  margin:0;
}

.switch-group{
  display:flex;
  gap:8px;
}

.switch-btn{
  padding:10px 14px;
  border:1px solid #d0d5dd;
  background:#fff;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
}

.switch-btn.active{
  background:#fef3c7;
  border-color:#fcd34d;
  color:#92400e;
}

.goal-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.goal-btn{
  padding:11px 16px;
  border:1px solid #d0d5dd;
  background:#fff;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
}

.goal-btn.cut.active{
  background:#fee2e2;
  border-color:#fca5a5;
  color:#991b1b;
}

.goal-btn.maintain.active{
  background:#fef3c7;
  border-color:#fcd34d;
  color:#92400e;
}

.goal-btn.gain.active{
  background:#dcfce7;
  border-color:#86efac;
  color:#166534;
}

.calculate-btn{
  width:100%;
  margin-top:8px;
  border:none;
  border-radius:16px;
  background:#d97706;
  color:white;
  padding:15px;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
}

.calculate-btn:hover{
  background:#b45309;
}

.results-card{
  background:linear-gradient(180deg, #fffbeb, #ffffff);
  border:1px solid #fde68a;
}

.headline-result{
  text-align:center;
  margin-bottom:22px;
}

.headline-result span{
  display:block;
  color:#92400e;
  margin-bottom:8px;
  font-weight:600;
}

.headline-result strong{
  display:block;
  font-size:42px;
  color:#d97706;
  line-height:1.1;
}

.headline-result small{
  display:block;
  margin-top:4px;
  color:#92400e;
}

.stats-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.stat-card{
  background:white;
  border:1px solid #fde68a;
  border-radius:18px;
  padding:18px;
  text-align:center;
}

.stat-card span{
  display:block;
  color:#667085;
  margin-bottom:8px;
}

.stat-card strong{
  font-size:22px;
  color:#111827;
}

.result-note{
  margin:18px 0 0;
  color:#475467;
  line-height:1.6;
  text-align:center;
}

.bottom-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}

.info-card h2{
  margin-top:0;
}

.info-card p{
  color:#475467;
  line-height:1.7;
}

.faq-item{
  margin-bottom:18px;
}

.faq-item:last-child{
  margin-bottom:0;
}

.faq-item h3{
  margin-bottom:8px;
}

.hidden{
  display:none;
}

@media (max-width:900px){
  .main-layout,
  .bottom-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:700px){
  .grid{
    grid-template-columns:1fr;
  }

  .hero h1{
    font-size:32px;
  }
}

@media (max-width:600px){
  .burger{
    display:block;
  }

  .nav{
    display:none;
    position:absolute;
    top:60px;
    left:0;
    right:0;
    background:#111827;
    flex-direction:column;
    padding:15px;
    z-index:1000;
  }

  .nav.open{
    display:flex;
  }
}