: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;
}
.beyond-wrap {
  display: flex;
  width: min(1200px, 92%);
  margin: 80px auto 0;
  gap: 20px;
  align-items: flex-start;
}

/* ---- Bal oldal: 4 képes galéria ---- */
.beyond-left {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-self: flex-start; 
  margin-top: -50px; 
}

.tile img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ---- Jobb oldal: szöveg ---- */
.beyond-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  padding-left: 24px;
  padding-right: 16px;
  color: #eae6e5;
}

.beyond-right h1 {
  margin: 0 0 12px 0;
  font-size: 1.8rem;
  line-height: 1.3;
  text-decoration: none;
  margin-top: -40px; 
}
.back-link {
  position: fixed;   
  top: 20px;         
  left: 20px;        
  background: #eae6e5;
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
}

.beyond-right p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  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; 
  }

  .beyond-wrap {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin: 20px auto 0;
  }

  .beyond-left {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 10px;
    width: 100%;
    margin-top: 0; 
  }

  .beyond-left img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }

  .beyond-right {
    width: 100%;
    padding: 10px 16px;
    text-align: left;  
  }

  .beyond-right h1 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-top: 10px;
    margin-bottom: 12px;
  }

  .beyond-right p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
  }

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