:root {
  --bg: #eae6e5;      /* oldal háttere */
  --ink: #375742;     /* szövegszín */
  --panel: #3c4d42;   /* jobb oldali panel háttere */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(to right, var(--bg) 0 50%, var(--panel) 50% 100%);
  color: var(--ink);
  font-family: Verdana, sans-serif;
  display: flex;
  flex-direction: column;  
  align-items: center;
  justify-content: flex-start; 
  padding: 16px 0;            
  gap: 30px;                  
}

/* Név sor */
.name-row {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 8px;
  position: relative;
  top: -40px; 
}

/* bal oldal: SARA */
.name-row .first {
  width: 50%;
  text-align: right;    
  padding-right: 10px;     
  color: #3c4d42;
}

/* jobb oldal: MUDRAK */
.name-row .last {
  width: 50%;
  text-align: left;        
  padding-left: 10px;      
  color: #d9d4d2;
}
.contact-wrap {
  display: flex;
  width: min(1200px, 92%);
  margin: 80px auto 0; 
  gap: 40px;           
}

/* Bal oldal - kép */
.contact-left {
  flex: 0 0 45%;       
  display: flex;
  justify-content: center;
  
}
.contact-left img {
  width: 100%;            
  max-width: 1000px;      
  height: 100%; 
  height: auto; 
  border-radius: 8px;
  object-fit: cover;
  margin-top: -85px;
 
}

/* Jobb oldal - szöveg */
.contact-right {
  flex: 0 0 55%;        
  padding: 40px;
  color: #eae6e5;
}
.contact-right p {
  margin: -75px 0;
  font-size: 1rem;
  line-height: 1.6;
  text-decoration: none;
}


a {
  color: #eae6e5;       
  font-weight: bold;    
  text-decoration: none; 
}
.back-link {
  position: fixed;   
  top: 20px;         
  left: 20px;        
  background: #eae6e5;
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
}

@media (max-width: 940px) {
  body {
    background: var(--panel); 
  }

  .name-row {
    flex-direction: column;
    align-items: center;
    top: 0;
  }
  .name-row .first,
  .name-row .last {
    width: auto;
    text-align: center;
    padding: 0;
    color: #d9d4d2; 
  }

  .contact-wrap {
    flex-direction: column; 
    align-items: center;
    gap: 24px;
  }

  .contact-left, .contact-right {
    flex: 1 1 100%;
    padding: 0 20px;
  }

  .contact-left img {
    margin-top: -50px;       
    display: block;
    margin-left: auto;
    margin-right: auto;      
    max-width: 80%;
    border-radius: 8px;
  }

  .contact-right {
    text-align: center;      
    padding-top: 120px;       
  }

  .back-link {
    background: none;        
    color: #fff;
    position: fixed;
    top: 20px;
    left: 20px;
    text-decoration: underline;
    font-weight: bold;
  }
}