*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Arial, sans-serif;
  background:#0f1115;
  color:#f9fafb;
}

.site-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:15px 18px;
  background:#171a21;
  color:#fff;
  position:relative;
  border-bottom:1px solid #262b36;
}

.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:1150px;
  margin:auto;
  padding:30px 20px 50px;
}

.hero-card{
  background:linear-gradient(135deg, #171a21, #222733);
  border:1px solid #2f3643;
  border-radius:24px;
  padding:30px;
  margin-bottom:24px;
}

.eyebrow{
  margin:0 0 10px;
  color:#a3e635;
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
}

.hero-card h1{
  margin:0 0 12px;
  font-size:40px;
  color:#ffffff;
}

.hero-text{
  margin:0;
  color:#cbd5e1;
  line-height:1.7;
  max-width:720px;
}

.main-layout{
  display:grid;
  grid-template-columns:1fr .95fr;
  gap:24px;
  margin-bottom:24px;
}

.form-card,
.result-panel,
.info-card{
  border-radius:24px;
  box-shadow:0 12px 28px rgba(0,0,0,0.25);
}

.form-card{
  background:#171a21;
  border:1px solid #2f3643;
  padding:24px;
}

.form-card h2{
  margin:0 0 6px;
  color:#ffffff;
}

.subtitle{
  margin:0 0 20px;
  color:#94a3b8;
}

.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;
  color:#e5e7eb;
}

.field input,
.field select{
  width:100%;
  padding:13px;
  border:1px solid #374151;
  border-radius:14px;
  font-size:15px;
  background:#0f1115;
  color:#f9fafb;
}

.section-block{
  margin-top:10px;
}

.section-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  flex-wrap:wrap;
}

.section-top h3,
.section-block h3{
  margin:0 0 12px;
  font-size:18px;
  color:#ffffff;
}

.switch-group{
  display:flex;
  gap:8px;
}

.switch-btn{
  padding:10px 14px;
  border:1px solid #374151;
  background:#0f1115;
  color:#f9fafb;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
}

.switch-btn.active{
  background:#1a2e05;
  border-color:#84cc16;
  color:#bef264;
}

.goal-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.goal-btn{
  padding:11px 16px;
  border:1px solid #374151;
  background:#0f1115;
  color:#f9fafb;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
}

.goal-btn.cut.active{
  background:#3f1d1d;
  border-color:#ef4444;
  color:#fecaca;
}

.goal-btn.maintain.active{
  background:#1a2e05;
  border-color:#84cc16;
  color:#d9f99d;
}

.goal-btn.gain.active{
  background:#172554;
  border-color:#60a5fa;
  color:#bfdbfe;
}

.calculate-btn{
  width:100%;
  margin-top:8px;
  border:none;
  border-radius:16px;
  background:#84cc16;
  color:#111827;
  padding:15px;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
}

.calculate-btn:hover{
  background:#65a30d;
}

.result-panel{
  background:linear-gradient(180deg, #171a21, #111827);
  border:1px solid #2f3643;
  padding:24px;
}

.headline-result{
  text-align:center;
  margin-bottom:22px;
}

.headline-result span{
  display:block;
  color:#a3e635;
  margin-bottom:8px;
  font-weight:600;
}

.headline-result strong{
  display:block;
  font-size:44px;
  color:#ffffff;
  line-height:1.1;
}

.headline-result small{
  display:block;
  margin-top:4px;
  color:#cbd5e1;
}

.macro-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.macro-card{
  border-radius:18px;
  padding:20px;
  text-align:center;
  border:1px solid #2f3643;
}

.macro-card span{
  display:block;
  margin-bottom:8px;
  font-size:14px;
}

.macro-card strong{
  font-size:24px;
}

.macro-card.protein{
  background:#172554;
  color:#dbeafe;
  border-color:#2563eb;
}

.macro-card.carbs{
  background:#3f2a0f;
  color:#fde68a;
  border-color:#f59e0b;
}

.macro-card.fats{
  background:#3f1d1d;
  color:#fecaca;
  border-color:#ef4444;
}

.macro-card.split{
  background:#1a2e05;
  color:#d9f99d;
  border-color:#84cc16;
}

.result-note{
  margin:18px 0 0;
  color:#cbd5e1;
  line-height:1.6;
  text-align:center;
}

.info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}

.info-card{
  background:#171a21;
  border:1px solid #2f3643;
  padding:24px;
}

.info-card h2{
  margin-top:0;
  color:#ffffff;
}

.info-card p{
  color:#cbd5e1;
  line-height:1.7;
}

.faq-item{
  margin-bottom:18px;
}

.faq-item:last-child{
  margin-bottom:0;
}

.faq-item h3{
  margin-bottom:8px;
  color:#ffffff;
}

.hidden{
  display:none;
}

@media (max-width:900px){
  .main-layout,
  .info-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:700px){
  .grid,
  .macro-grid{
    grid-template-columns:1fr;
  }

  .hero-card h1{
    font-size:32px;
  }
}

@media (max-width:600px){
  .burger{
    display:block;
  }

  .nav{
    display:none;
    position:absolute;
    top:60px;
    left:0;
    right:0;
    background:#171a21;
    flex-direction:column;
    padding:15px;
    z-index:1000;
  }

  .nav.open{
    display:flex;
  }
}